Order User Guides
- Overview
- Order Management
- Order Fulfillment Logic
- Activity Log
- Settings
Inventory User Guides
- Overview
- Inventory
- Locations
- Networks
- Activity Log
Orders API Endpoints
- Orders (3.0.0)
- Developer Guide
- Orders FAQ
- Shopping Lists
- Shipping Methods
- Imports
- Exports
- Orders
- Frauds
- Notifications
- Backorders Preorders
- Cancellations
- Allocations
- Shipments
- Inventory Transfers
- Tracking
- Invoices
- Payments
- Credits
- Appeasements
- Returns
Inventory API Endpoints
- Inventory (3.0.0)
- Inventory FAQ
- Imports
- Counters
- Inventory
- Locations
- Networks
Locations
Create a location
Create a location to use for managing inventory and orders.
POST
/
locations
curl --request POST \
--url https://api.fabric.inc/v3/locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
--data '{
"activeFulfillmentMethods": {
"ShipToHome": "true"
},
"address": {
"addressLine1": "123 Main St.",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"city": "Seattle",
"contacts": [
{
"email": "abc@mail.com",
"name": {
"firstName": "Pat",
"lastName": "Kake",
"middleName": "E"
},
"phone": [
{
"number": "0281923712",
"type": "MOBILE"
}
],
"type": "OFFICE"
}
],
"countryCode": "US",
"postalCode": "98121",
"region": "WA",
"type": "Home"
},
"attributes": {
"isReturns": "true"
},
"capacity": {
"allocationPercentage": 20,
"infiniteAllocation": true,
"isCapacityFull": true,
"maxAllocations": 30
},
"coordinates": {
"coordinates": [
-122.3493,
47.6205
],
"type": "Point"
},
"isActive": true,
"locationNumber": 23,
"name": "Seattle Store",
"operatingHours": [
{
"day": "SUNDAY",
"hours": [
{
"close": "20",
"open": "10",
"type": "PICK_UP"
}
]
}
],
"services": {
"brand": "WHBM",
"channel": "Frontline"
},
"transfer": {
"autoStockWindow": "PT10M",
"isAutoReceiving": true
},
"type": "DC"
}'
{
"address": {
"addressLine1": "123 Main St.",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"city": "Seattle",
"contacts": [
{
"email": "abc@mail.com",
"name": {
"firstName": "Pat",
"lastName": "Kake",
"middleName": "E"
},
"phone": [
{
"number": "0281923712",
"type": "MOBILE"
}
],
"type": "OFFICE"
}
],
"countryCode": "US",
"postalCode": "98121",
"region": "WA",
"type": "Home"
},
"capacity": {
"allocationPercentage": 20,
"currentAllocations": 5,
"infiniteAllocation": true,
"isCapacityFull": true,
"maxAllocations": 30
},
"coordinates": {
"coordinates": [
-122.3493,
47.6205
],
"type": "Point"
},
"createdAt": "2022-05-25T07:58:30.996Z",
"isActive": true,
"locationId": "9372919a8219e8",
"locationNumber": 23,
"name": "Seattle Store",
"operatingHours": [
{
"day": "SUNDAY",
"hours": [
{
"close": "20",
"open": "10",
"type": "PICK_UP"
}
]
}
],
"transfer": {
"autoStockWindow": "PT10M",
"isAutoReceiving": true
},
"type": "DC",
"updatedAt": "2022-05-25T07:58:30.996Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
Unique request ID
x-fabric-channel-id identifies the sales channel through which the API request is being made; primarily for multichannel use cases. It is an optional field. The default US channel is 12 while the default Canada channel is 13.
Body
application/json
Location request
Response
201
application/json
OK
Location response
Was this page helpful?
curl --request POST \
--url https://api.fabric.inc/v3/locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
--data '{
"activeFulfillmentMethods": {
"ShipToHome": "true"
},
"address": {
"addressLine1": "123 Main St.",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"city": "Seattle",
"contacts": [
{
"email": "abc@mail.com",
"name": {
"firstName": "Pat",
"lastName": "Kake",
"middleName": "E"
},
"phone": [
{
"number": "0281923712",
"type": "MOBILE"
}
],
"type": "OFFICE"
}
],
"countryCode": "US",
"postalCode": "98121",
"region": "WA",
"type": "Home"
},
"attributes": {
"isReturns": "true"
},
"capacity": {
"allocationPercentage": 20,
"infiniteAllocation": true,
"isCapacityFull": true,
"maxAllocations": 30
},
"coordinates": {
"coordinates": [
-122.3493,
47.6205
],
"type": "Point"
},
"isActive": true,
"locationNumber": 23,
"name": "Seattle Store",
"operatingHours": [
{
"day": "SUNDAY",
"hours": [
{
"close": "20",
"open": "10",
"type": "PICK_UP"
}
]
}
],
"services": {
"brand": "WHBM",
"channel": "Frontline"
},
"transfer": {
"autoStockWindow": "PT10M",
"isAutoReceiving": true
},
"type": "DC"
}'
{
"address": {
"addressLine1": "123 Main St.",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"city": "Seattle",
"contacts": [
{
"email": "abc@mail.com",
"name": {
"firstName": "Pat",
"lastName": "Kake",
"middleName": "E"
},
"phone": [
{
"number": "0281923712",
"type": "MOBILE"
}
],
"type": "OFFICE"
}
],
"countryCode": "US",
"postalCode": "98121",
"region": "WA",
"type": "Home"
},
"capacity": {
"allocationPercentage": 20,
"currentAllocations": 5,
"infiniteAllocation": true,
"isCapacityFull": true,
"maxAllocations": 30
},
"coordinates": {
"coordinates": [
-122.3493,
47.6205
],
"type": "Point"
},
"createdAt": "2022-05-25T07:58:30.996Z",
"isActive": true,
"locationId": "9372919a8219e8",
"locationNumber": 23,
"name": "Seattle Store",
"operatingHours": [
{
"day": "SUNDAY",
"hours": [
{
"close": "20",
"open": "10",
"type": "PICK_UP"
}
]
}
],
"transfer": {
"autoStockWindow": "PT10M",
"isAutoReceiving": true
},
"type": "DC",
"updatedAt": "2022-05-25T07:58:30.996Z"
}