v1
latestOpenAPI 3.1.02026-07-24120106.5 KBCreate an invoice
post/billing/invoices
Headers
merchantstring required
Merchant ID
Request body
Response
200
Example response
{
"id": "5cfda744-1dc5-4f21-b020-fb648429bce9",
"documentNumber": "IN0000000000000628",
"date": "2019-07-01",
"dueDate": "2019-07-01",
"status": "PROCESSING",
"items": [
{
"description": "testing",
"amount": {
"currency": "NZD",
"value": 100
},
"id": "110944ba-4f14-4ccf-bd72-9c5522ab5399",
"type": "on_demand_payment",
"discounted": {
"currency": "NZD"
}
}
],
"amount": {
"currency": "NZD",
"value": 100
},
"amountWithoutDiscount": {
"currency": "NZD",
"value": 100
},
"totalDiscounted": {
"currency": "NZD"
},
"totalRefunded": {
"currency": "NZD"
},
"totalTax": {
"currency": "NZD"
},
"customerId": "4c999653-9473-472e-b478-d56d2a7572a9",
"paymentMethodToken": "d178cea3-fdf9-4743-90d8-856af429ab18",
"autoPayment": true,
"processingModel": "CARD_ON_FILE",
"createdOn": "2019-07-01T00:33:42.562",
"channel": "api"
}