POST
/
inventory-networks
curl --request POST \
  --url https://api.fabric.inc/v3/inventory-networks \
  --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 '{
  "code": "DC",
  "name": "Distribution Center",
  "safetyStock": 10,
  "description": "network-mar6th",
  "lowStock": 10,
  "rule": {
    "locationData.type": "Store",
    "locationData.attributes.safetyStock": 10,
    "locationData.isActive": true,
    "productData.attributes.brand": "ABC",
    "productData.attributes.isSoldOnline": true
  }
}'
{
  "code": "DC",
  "name": "Distribution Center",
  "safetyStock": 10,
  "description": "network-mar6th",
  "lowStock": 10,
  "rule": {
    "locationData.type": "Store",
    "locationData.attributes.safetyStock": 10,
    "locationData.isActive": true,
    "productData.attributes.brand": "ABC",
    "productData.attributes.isSoldOnline": true
  },
  "createdAt": "2022-08-01T18:03:28.483Z",
  "updatedAt": "2022-08-01T18:03:28.483Z"
}

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
code
string
required

Unique network code

name
string
required

Network name

safetyStock
integer

Safety stock count. The reserve quantity of an item kept to fulfill an emergency requirement, in case of damage to the product that is set for sale.

description
string

Network description

lowStock
integer

Inventory quantity below which consumer service wants to be alerted as low stock at the network

rule
object
required

Rule by which a network will be created with the group of inventories

Response

201 - application/json
code
string
required

Unique network code

name
string
required

Network name

safetyStock
integer

Safety stock count. The reserve quantity of an item kept to fulfill an emergency requirement, in case of damage to the product that is set for sale.

description
string

Network description

lowStock
integer

Inventory quantity below which consumer service wants to be alerted as low stock at the network

rule
object
required

Rule by which a network will be created with the group of inventories

createdAt
string

Time network was configured

updatedAt
string

Time network was last updated