Authorization
Example:
Authorization | Bearer Paste-Your-API-Key-HereRequest Body
Full name of the customer.
Email address of the customer.
Mobile phone number of the customer.
List of invoice items.
Quantity of the item.
Price per item.
Description of the item.
Description or notes related to the invoice.
Invoice expiration time in ISO 8601 format (UTC).
Tax amount applied to the invoice.
Restrict the invoice to a specific payment method.
Cashtag associated with the invoice.
Additional custom data attached to the invoice.
Response
Successful ResponseMain Structure (Root)
Status code form API.
Status message that describes the status code.
The created invoice data.
data Structure (Object)
Unique identifier of the invoice record.
Unique identifier of the associated transaction.
Invoice URL that can be accessed by the customer.
Timestamp (in milliseconds) indicating when the invoice will expire.
Additional custom data attached to the invoice (echoed from the request).
Errors
Returned when the request body fails validation:
{ "statusCode": 400, "messages": "Validation Error" } or
{ "statusCode": 400, "messages": "extraData Validation Error" }.Returned when the customer could not be found or created:
{ "statusCode": 404, "messages": "Customer not found and failed to create new customer" }.Returned when an invoice with the same identifier already exists:
{ "statusCode": 409, "messages": "already exist" }.Returned when a duplicate create request is detected:
{ "statusCode": 429, "messages": "Duplicate request detected. Please wait 1 minute before trying again." }.