Skip to main content
POST
Cambia lo stato di un preventivo

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Identificativo della risorsa.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$

Body

application/json
status
enum<string>
required

standby = presentato al paziente.

Available options:
standby,
accepted,
rejected
acceptedAmount
number

Solo con accepted: l'importo accettato, maggiore di 0 e non oltre il totale del preventivo (altrimenti 400). Predefinito: il totale.

Response

Il preventivo aggiornato.

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
patientId
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
facilityId
string<uuid> | null
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
name
string
required
description
string | null
required
status
enum<string>
required
Available options:
draft,
proposed,
standby,
accepted,
rejected,
in_progress,
completed
totalCost
number | null
required
presentedAmount
number | null
required
presentedAt
string | null
required
acceptedAmount
number | null
required
acceptedAt
string | null
required
doctorId
string<uuid> | null
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
createdAt
string
required
updatedAt
string
required
items
object[]
required
odontogramType
string | null

Solo con clinical:read.

toothData
object | null

Solo con clinical:read.

diagnoses
object[]

Solo con clinical:read.