Import Invoice

Import an existing invoice from a third party service to reflect state in Candid.

Headers

AuthorizationstringRequired

OAuth authentication of the form <token>.

Request

This endpoint expects an object.
external_payment_account_config_idUUIDRequired
patient_external_idstringRequired
external_customer_identifierstringRequired

Id of the customer in the source system

itemslist of objectsRequired
statusenumRequired
external_identifierstringRequired

Id of the invoice being imported in the source system. Warning - This field CANNOT be updated.

notestringOptional
due_datedateOptional

If given as None, days_until_due in the payment config will be used to create a default date

customer_invoice_urlstringOptional

Link to the patient view of the invoice in the third-party service

Response

This endpoint returns an object.
idUUID
created_atdatetime
updated_atdatetime
itemsobject

The InvoiceItem rollup which contains all claim and service line invoice items

patient_external_idstring
external_customer_identifierstring

Id of the customer in the source system

statusenum
external_identifierstring

Id of the invoice being imported in the source system

due_datedate
amount_centsinteger

Total monetary amount (in cents) of all Invoice Items

notestringOptional
customer_invoice_urlstringOptional

Link to the patient view of the invoice in the third-party service

Errors