Invoice Line Items

putInvoiceLineItemsId

PUT
/invoiceLineItems/{id}

Update an InvoiceLineItem or Invoice Line Item.

Authorization

APIKEY<token>

In: header

Path Parameters

id*string

The ID of this invoice line item.

Header Parameters

token?string

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.

request-token?string

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

Update Invoice Line Item Request

Update Invoice Line Item Request

invoice?string

The identifier of the Invoice that owns this InvoiceLineItem.

invoiceItem?string

The identifier of the InvoiceItem associated with this InvoiceLineItem.

quantity?integer

The quantity purchased for this line item, specified as an integer.

price?integer

The price for each item, this field is specified as an integer in cents.

discount?integer

The discount for the line item, this field is specified as an integer in cents.

Response Body

application/json

application/json

curl -X PUT "https://example.com/invoiceLineItems/t1_ini_00a18bcde1a1b2ec1d9c9az" \  -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": []  }}