Invoice Items

putInvoiceItemsId

PUT
/invoiceItems/{id}

Update an Invoice Item, A InvoiceItem is a resource that stores line item details for an invoice.

Authorization

APIKEY<token>

In: header

Path Parameters

id*string

The ID of this invoice 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 Item Request

Update Invoice Item Request

login?string

The identifier of the Login that owns this Invoiceitem.

item?string

The desired name of this InvoiceItem. This field is stored as a text string and must be between 1 and 500 characters long.

description?string

The description of this InvoiceItem. This field is stored as a text string and must be between 0 and 500 characters long.

custom?string

A custom field of this InvoiceItem. This field is stored as a text string and must be between 0 and 500 characters long.

price?integer

The price of this InvoiceItem is specified as an integer in cents.

um?string

The 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.

commodityCode?string

The commodity code for this InvoiceItem. This field is stored as a text string and must be between 0 and 12 characters long.

productCode?string

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.

inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1
frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1

Response Body

application/json

application/json

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