Authorizations

Authorization
string
headerrequired

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

Body

application/json
patientId
integer
required

Patient id

locationId
integer
required

Location id

paymentMethodId
integer
required

Payment method id

amount
number | null
required

Total payment amount, it should be the same as the sum of all paymentInvoice amount

paymentDate
required

Payment date

paymentInvoices
object[]
required

Payments made to invoices

xeroId
string

Xero batch payment id, only applicable for Xero batch payment

Response

200 - application/json
id
integer
required

Payment id

paymentNumber
string
required

Payment number

amount
number | null
required

Total payment amount. 0 for credit allocation

patientId
integer
required

The payment patient id

locationId
integer
required

The payment location id

paymentMethodId
integer | null
required

The payment method id, null for credit allocation

paymentDate
required

Payment date

paymentInvoices
object[]
required

Payments made to invoices

creditAllocations
object[]
required

Credit allocated to invoices

xeroId
string | null
required

Xero batch payment id

archivedAt
required

Payment archive date time