Create Item
POST/accounting/items
Create an Accounting Item.
Request
Query Parameters
The ID of the credential.
Header Parameters
Default value: bearer YOUR_API_KEY
- application/json
Body
The unique name or label identifying the specific item.
Classification of the item based on its nature or usage. Possible values: SERVICE, NON_INVENTORY, INVENTORY
The current quantity of the item available in stock or on-hand. Required if itemType is INVENTORY. Not allowed if itemType is SERVICE or NON_INVENTORY
The account ID reflecting the item's value if considered as an asset. Required if itemType is INVENTORY
The account ID used for bills related to the item.
The current condition or phase of the item. Possible values: ACTIVE, ARCHIVED
The selling cost per individual unit of the item. Required if itemType is INVENTORY. Not allowed if itemType is SERVICE or NON_INVENTORY
The cost incurred to acquire or produce a single unit of the item.
The account ID used for invoices associated with the item.
An object containing remote fields that are not supported by the common model. The keys are the names of the fields of the corresponding resource in the remote app, and the values can be strings, numbers, arrays or objects.
Responses
- 200
- 400
200
- application/json
- Schema
- Example (from schema)
- Result
Schema
item
object
Default value: 0
Default value: 0
Default value: true
{
"item": {
"remoteId": "4",
"itemName": "My Item",
"itemStatus": "ACTIVE",
"itemType": "SERVICE",
"unitPrice": {},
"purchasePrice": {},
"qtyOnHand": {},
"billAccountId": "0651a0b2-13a7-4662-86fc-94e0ccd44cb8",
"invoiceAccountId": {},
"assetAccountId": {},
"companyId": {},
"createdTimestamp": 1701195593,
"updatedTimestamp": 1701195593,
"id": "7ae2c99c-fee3-47b6-932a-fa7a14a46f72",
"remoteCreatedAt": "2023-11-19T17:00:17.000Z",
"remoteUpdatedAt": "2023-11-19T17:00:17.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:17:53.264Z",
"updatedAt": "2024-02-22T13:54:03.445Z"
}
}
{
"item": {
"remoteId": "4",
"itemName": "My Item",
"itemStatus": "ACTIVE",
"itemType": "SERVICE",
"unitPrice": null,
"purchasePrice": null,
"qtyOnHand": null,
"billAccountId": "0651a0b2-13a7-4662-86fc-94e0ccd44cb8",
"invoiceAccountId": null,
"assetAccountId": null,
"companyId": null,
"createdTimestamp": 1701195593,
"updatedTimestamp": 1701195593,
"id": "7ae2c99c-fee3-47b6-932a-fa7a14a46f72",
"remoteCreatedAt": "2023-11-19T17:00:17.000Z",
"remoteUpdatedAt": "2023-11-19T17:00:17.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:17:53.264Z",
"updatedAt": "2024-02-22T13:54:03.445Z"
}
}
400
- application/json
- Schema
- Example (from schema)
- Result
Schema
{}
{}