Skip to main content
POST
Apply a payment to an invoice

Headers

auth
string
required

Path Parameters

admission_id
string
required

Id of the IPD admission.

Minimum string length: 1
payment_id
string
required

Id of the payment.

Minimum string length: 1

Body

application/json
amount
string
required

Amount of the payment's unapplied balance to apply. Decimal string, for example "1500.00".

Pattern: ^-?\d+(\.\d+)?$
invoiceId
string
required

Invoice to apply it to.

Minimum string length: 1

Response

A payment: id, amount, mode, referenceNumber, status, receiptNumber, createdAt, …

A payment: id, amount, mode, referenceNumber, status, receiptNumber, createdAt, …