postInvoiceLineItems
Create an InvoiceLineItem or Invoice Line Item.InvoiceLineItem is a resource that relates an invoice item with an invoice. It holds information such as quantity, and price each item.
In: header
Header Parameters
A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.
A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.
Request Body
application/json
Create Invoice Line Item Request
Create Invoice Line Item Request
The identifier of the Invoice that owns this InvoiceLineItem.
The identifier of the InvoiceItem associated with this InvoiceLineItem.
The quantity purchased for this line item, specified as an integer.
1The price for each item, this field is specified as an integer in cents.
The discount for the line item, this field is specified as an integer in cents.
Response Body
application/json
application/json
curl -X POST "https://example.com/invoiceLineItems" \ -H "Content-Type: application/json" \ -d '{ "invoice": "t1_inv_00b62cb82db90057aae7000", "invoiceItem": "t1_ini_00b62cb7d3b3a7e6a841000", "quantity": 1, "price": 50000, "discount": 100 }'{ "response": { "data": [ { "id": "t1_ini_00a18bcde1a1b2ec1d9c9az", "created": "2025-01-31 08:42:16.7318", "modified": "2025-01-31 08:42:16.7318", "creator": "t1_log_8ad114b7edbf6f641b7c2f2", "modifier": "t1_log_00d114b7edbf6f641b7c2f2", "invoice": "t1_inv_00b62cb82db90057aae7000", "invoiceItem": "t1_ini_00b62cb7d3b3a7e6a841000", "quantity": 1, "price": 50000, "discount": 100, "total": 49900 } ], "details": { "requestId": 1, "totals": [], "page": { "current": 1, "last": 1, "hasMore": false } }, "errors": [] }}getInvoiceLineItems GET
Query an InvoiceLineItem. InvoiceLineItem is a resource that relates an invoice item with an invoice. It holds information such as quantity, and price each item.
getInvoiceResultsId GET
Query an invoiceResults resource that represents the result of an invoice processing, which is generated when a customer pays for an invoice.
