POST
/
inventory-counters
curl --request POST \
  --url https://api.fabric.inc/v3/inventory-counters \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-fabric-channel-id: <x-fabric-channel-id>' \
  --header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
  --data '{
  "name": "onHand",
  "code": "onHand"
}'
{
  "id": "38271022e832a1",
  "name": "onHand",
  "code": "onHand"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-fabric-tenant-id
string
required

Merchant's 24-character tenant ID

x-fabric-channel-id
string
required

Sales channel ID

x-fabric-request-id
string

Unique request ID

Body

application/json
name
string

Counter name

code
string
required

Counter code

Response

201 - application/json
id
string

fabric system-generated counter ID

name
string

Counter name

code
string
required

Counter code