Transaction Items

putItemsId

PUT
/items/{id}

Update an Item. An Item is a line item that is associated with a particular Transaction. It allows you to describe the cost, quantity and other details of each line in the Transaction.

Authorization

APIKEY<token>

In: header

Path Parameters

id*string

The ID of this resource.

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 Item Request

Update Item Request

item?string

This is item resource.

description?string

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

custom?string

A custom identifier for this line Item. This field is stored as a text string and must be between 0 and 500 characters long.

quantity?integer

The quantity of this Item included in the Transaction. This field is specified as an integer.

price?integer

The amount charged for this Item. This field is specified as an integer in cents.

um?string

The unit of measure for this Item. This field 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.

total?integer

The total price for the line item. This field is specified as an integer in cents.

commodityCode?string

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

productCode?string

The product code for this 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.

discount?integer

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

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/items/t1_itm_67b48390abd89e15be2d000" \  -H "Content-Type: application/json" \  -d '{    "item": "Line Item 21",    "description": "A description of Item",    "custom": "Identifier",    "quantity": 1,    "price": 471,    "um": "EACH",    "total": 471,    "commodityCode": "9717123",    "discount": 0,    "productCode": "Prorated Tenant Protection Fee",    "inactive": 0,    "frozen": 0  }'
{  "response": {    "data": [      {        "id": "t1_itm_67b48390abd89e15be2d000",        "created": "2025-02-18 07:56:48.7124",        "modified": "2025-02-18 07:56:48.7124",        "creator": "t1_log_5f49777509d5d1d7c22e000",        "modifier": "t1_log_5f49777509d5d1d7c22e000",        "txn": "t1_txn_67b483904b280af5311234a",        "item": "Line Item 21",        "description": "A description of this Item",        "custom": "Identifier",        "quantity": 1,        "price": 471,        "inactive": 0,        "frozen": 0,        "um": "EACH",        "commodityCode": "9717123",        "total": 471,        "discount": 0,        "productCode": "Prorated Tenant Protection Fee"      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}