postInvoiceItems
Create an Invoice Item, a resource that stores line item details for an invoice.
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 Item Request
Create Invoice Item Request
The identifier of the Login that owns this Invoiceitem.
The desired name of this InvoiceItem. This field is stored as a text string and must be between 1 and 500 characters long.
The description of this InvoiceItem. This field is stored as a text string and must be between 0 and 500 characters long.
A custom field of this InvoiceItem. This field is stored as a text string and must be between 0 and 500 characters long.
The price of this InvoiceItem is specified as an integer in cents.
0The unit of measure of this InvoiceItem is stored as a text string and must be between 0 and 100 characters long; examples of units of measure may be: each, kilogram, pound, month.
The commodity code for this InvoiceItem. This field is stored as a text string and must be between 0 and 12 characters long.
The product code for this invoice item such as: UPC, catalog number, or inventory number. This field is stored as a text string and must be between 0 and 100 characters long.
Whether this resource is marked as inactive.
0- Active1- Inactive
Value in
- 0
- 1
Whether this resource is marked as frozen.
0- Not Frozen1- Frozen
Value in
- 0
- 1
Response Body
application/json
application/json
curl -X POST "https://example.com/invoiceItems" \ -H "Content-Type: application/json" \ -d '{ "login": "t1_log_00d514abedbf6f641b7c2f2", "item": "Test Custom Links", "description": "Test Custom Links", "custom": "Sample custom field 1", "um": "kilogram", "commodityCode": "03000", "productCode": "SKU23456", "price": 1666, "inactive": 0, "frozen": 0 }'{ "response": { "data": [ { "id": "t1_ini_67a18bcde1a1b2ec3d9c9az", "created": "2025-01-31 08:42:16.7318", "modified": "2025-01-31 08:42:16.7318", "creator": "t1_log_8ad114b7edbf6f641b7c2f2", "modifier": "t1_log_00d114b7edbf6f641b7c2f2", "login": "t1_log_5ed514b7edbf6f641b7c2f2", "item": "Jay", "description": "Jay", "custom": "Sample custom field 1", "um": "kilogram", "commodityCode": "03000", "productCode": "SKU23456", "price": 150000, "inactive": 0, "frozen": 0 } ], "details": { "requestId": 1, "totals": [], "page": { "current": 1, "last": 1, "hasMore": false } }, "errors": [] }}