Create an invoice
Creates a new invoice for a customer. The response includes a hosted checkout session URL that the customer can use to pay.
Headers
string The Bearer token for authentication.
string The user agent of the request. Must contain at least two identifiers separated by a space.
string The content type of the request.
Request Body
application/jsonstring ID or email address of the customer being billed.
string Detailed description about the invoice.
string Currency code in ISO 4217 format.
SRDUSDEURstring Due date in relative time. (e.g. 'In 3 days')
array List of line items for the invoice.
string Detailed description about the item.
number Number of units.
float Price per unit.
Response Body
application/jsonboolean Indicates that the request was successful.
object Invoice session data.
string The ID of the newly created invoice.
string The status of the newly created invoice.
object The session details for collecting payment
string The checkout url
date-time Session expiration time.