Items
Create Item
Create Item
post/pos/items
Query parameters
rawboolean
Include raw response. Mostly used for debugging purposes
Headers
x-apideck-consumer-idstring required
ID of the consumer which you want to get or push data from
x-apideck-app-idstring required
The ID of your Unify application
x-apideck-service-idstring
Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
Request body
Example request
{
"id": "#cocoa",
"idempotency_key": "random_string",
"name": "Cocoa",
"description": "Hot Chocolate",
"abbreviation": "Ch",
"product_type": "regular",
"price_amount": 10,
"pricing_type": "fixed",
"price_currency": "USD",
"cost": 2,
"tax_ids": [
"12345",
"67890"
],
"absent_at_location_ids": [
"12345",
"67890"
],
"sku": "11910345",
"code": "11910345",
"categories": [
{
"id": "12345",
"name": "Food",
"image_ids": [
"12345",
"67890"
]
}
],
"options": [
{
"id": "12345",
"name": "Option 1",
"attribute_id": "12345"
}
],
"variations": [
{
"id": "12345",
"name": "Food",
"sku": "11910345",
"item_id": "12345",
"sequence": 0,
"pricing_type": "fixed",
"price_amount": 10,
"price_currency": "USD",
"image_ids": [
"12345",
"67890"
]
}
],
"modifier_groups": [
{
"id": "12345"
}
],
"available": true,
"hidden": true,
"version": "12345",
"deleted": true,
"updated_by": "12345",
"created_by": "12345",
"updated_at": "2020-09-30T07:43:32.000Z",
"created_at": "2020-09-30T07:43:32.000Z",
"pass_through": [
{
"extend_paths": [
{
"path": "$.nested.property",
"value": {
"TaxClassificationRef": {
"value": "EUC-99990201-V1-00020000"
}
}
}
]
}
]
}Response
Items
Example response
{
"status_code": 200,
"status": "OK",
"service": "square",
"resource": "Items",
"operation": "add",
"data": {
"id": "12345"
}
}