Skip to main content
POST
Create an invoice

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
subMerchantId
string
required

The subMerchantId associated with the invoice.

customerId
string
required

The customer id of the invoice.

items
object[]
required

Line items included in the total amount.

totalAmount
number
required

The total amount of the invoice.

Example:

500

date
string
required

The invoice date.

Example:

"2023-12-10T20:02:20.454Z"

dueDate
string
required

The invoice dueDate.

Example:

"2023-12-10T20:02:20.454Z"

paymentTerm
string
required

The invoice paymentTerm.

Example:

"Due Upon Receipt"

hostedSession
object

Configuration for the hosted payment page.

Response

Invoice successfully created.

Last modified on July 14, 2026