/v1/retail-itemsAuthentication
Bearer API key or Facily session, subject to permissions and facility scope.
Authentication and scopeRequest example
Replace bracketed path values with real IDs from your environment. The body, where shown, is generated from the schema and uses illustrative values.
curl --request POST \
--url 'https://api.staging.facily.ai/v1/retail-items' \
--header "Authorization: Bearer $FACILY_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"facilities": [
{
"facility_id": "00000000-0000-4000-8000-000000000001",
"on_hand": 0,
"par_level": 0
}
],
"name": "string",
"price": 0,
"category_id": "00000000-0000-4000-8000-000000000001",
"cost": 0,
"description": "string",
"sku": "string",
"taxable": true
}'Request body
application/json · Required
category_idstring | nullThe item's category; null for none.
Format: uuid
Show category_id schema
string | nullThe item's category; null for none.
Variant 1: string
stringVariant 2: null
nullcostnumber | string | nullWhat the item costs the organization; null for unknown.
Minimum: 0 · Pattern: ^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,11}0*$)\d{0,8}\.\d{0,2}0*$)
Show cost schema
number | string | nullWhat the item costs the organization; null for unknown.
Variant 1: number
numberVariant 2: string
stringVariant 3: null
nulldescriptionstring | nullA longer description; null for none.
Show description schema
string | nullA longer description; null for none.
Variant 1: string
stringVariant 2: null
nullfacilitiesFacilityRowInputRequest[]requiredThe facilities that carry the item. At least one.
Min items: 1
Show facilities schema
facility_idstringrequiredA facility that will carry the item.
Format: uuid
on_handintegerUnits in stock when the item is added; recorded as an opening movement.
Default: 0
par_levelintegerThe stock level the facility aims to keep; 0 for none.
Default: 0 · Minimum: 0
namestringrequiredThe item's name.
Min length: 1 · Max length: 120
pricenumber | stringrequiredThe item's price at every facility that has no price of its own.
Pattern: ^(?!^[-+.]*$)[+-]?0*(?:\d{0,8}|(?=[\d.]{1,11}0*$)\d{0,8}\.\d{0,2}0*$)
Show price schema
number | stringThe item's price at every facility that has no price of its own.
Variant 1: number
numberVariant 2: string
stringskustring | nullThe item's SKU; omit to derive one from its category and name.
Min length: 1 · Max length: 40
Show sku schema
string | nullThe item's SKU; omit to derive one from its category and name.
Variant 1: string
stringVariant 2: null
nulltaxablebooleanWhether sales of the item are taxed.
Default: true
Responses
Expand a status to inspect its schema. Generated examples show structure and synthetic values.
201Successful Response
{
"data": {
"can_edit": false,
"category_id": "00000000-0000-4000-8000-000000000001",
"cost": "<VALUE_MATCHING_PATTERN>",
"created_at": "2026-10-29T12:00:00Z",
"description": "string",
"facilities": [
{
"effective_price": "<VALUE_MATCHING_PATTERN>",
"facility_id": "00000000-0000-4000-8000-000000000001",
"is_low": false,
"last_received_at": "2026-10-29T12:00:00Z",
"on_hand": 0,
"par_level": 0,
"price": "<VALUE_MATCHING_PATTERN>"
}
],
"id": "00000000-0000-4000-8000-000000000001",
"name": "string",
"price": "<VALUE_MATCHING_PATTERN>",
"sku": "string",
"taxable": false,
"updated_at": "2026-10-29T12:00:00Z"
},
"meta": {
"request_id": "string"
}
}application/json
dataItemResponserequiredShow data schema
can_editbooleanrequiredTrue when the caller may change the item at every facility that carries it.
category_idstring | nullrequiredThe item's category, or null.
Format: uuid
Show category_id schema
string | nullThe item's category, or null.
Variant 1: string
stringVariant 2: null
nullcoststring | nullrequiredWhat the item costs the organization, or null.
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
Show cost schema
string | nullWhat the item costs the organization, or null.
Variant 1: string
stringVariant 2: null
nullcreated_atstringrequiredWhen the item was created.
Format: date-time
descriptionstring | nullrequiredA longer description, or null.
Show description schema
string | nullA longer description, or null.
Variant 1: string
stringVariant 2: null
nullfacilitiesItemFacilityResponse[]requiredThe facilities the caller can see that carry it.
Show facilities schema
effective_pricestringrequiredThe price a sale at this facility uses.
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
facility_idstringrequiredThe facility that carries the item.
Format: uuid
is_lowbooleanrequiredWhether stock is below the facility's low-stock line of its par level.
last_received_atstring | nullrequiredWhen stock last arrived here; null if it never has.
Format: date-time
Show last_received_at schema
string | nullWhen stock last arrived here; null if it never has.
Variant 1: string
stringVariant 2: null
nullon_handintegerrequiredUnits in stock; negative when sold beyond stock.
par_levelintegerrequiredThe stock level the facility aims to keep; 0 for none.
pricestring | nullrequiredThis facility's own price, or null when it follows the item price.
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
Show price schema
string | nullThis facility's own price, or null when it follows the item price.
Variant 1: string
stringVariant 2: null
nullidstringrequiredUnique identifier for this item.
Format: uuid
namestringrequiredThe item's name.
pricestringrequiredThe item's price at facilities with no price of their own.
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
skustringrequiredThe item's SKU; unique among items.
taxablebooleanrequiredWhether sales of the item are taxed.
updated_atstringrequiredWhen the item was last modified.
Format: date-time
metaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired400Validation error
{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"request_id": "string"
}
}application/json
errorErrorBodyrequiredThe shape of error.* in an error response.
Show error schema
codestringrequireddetailsobject | nullShow details schema
object | nullVariant 1: object
objectVariant 2: null
nullmessagestringrequiredmetaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired401Unauthenticated
{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"request_id": "string"
}
}application/json
errorErrorBodyrequiredThe shape of error.* in an error response.
Show error schema
codestringrequireddetailsobject | nullShow details schema
object | nullVariant 1: object
objectVariant 2: null
nullmessagestringrequiredmetaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired403Permission denied
{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"request_id": "string"
}
}application/json
errorErrorBodyrequiredThe shape of error.* in an error response.
Show error schema
codestringrequireddetailsobject | nullShow details schema
object | nullVariant 1: object
objectVariant 2: null
nullmessagestringrequiredmetaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired404Not found
{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"request_id": "string"
}
}application/json
errorErrorBodyrequiredThe shape of error.* in an error response.
Show error schema
codestringrequireddetailsobject | nullShow details schema
object | nullVariant 1: object
objectVariant 2: null
nullmessagestringrequiredmetaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired409Business logic error
{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"request_id": "string"
}
}application/json
errorErrorBodyrequiredThe shape of error.* in an error response.
Show error schema
codestringrequireddetailsobject | nullShow details schema
object | nullVariant 1: object
objectVariant 2: null
nullmessagestringrequiredmetaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired503Temporary failure
{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"request_id": "string"
}
}application/json
errorErrorBodyrequiredThe shape of error.* in an error response.
Show error schema
codestringrequireddetailsobject | nullShow details schema
object | nullVariant 1: object
objectVariant 2: null
nullmessagestringrequiredmetaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired