Download OpenAPI specification:Download
fabric's Location
APIs provide high performance, multi-tenancy, and configurability to the end-to-end location lifecycle events.These location APIs are mapped with inventory.
Retrieves a paginated list of all locations
object (LocationSearchModel) | |
object (PaginationModel) Pagination object represents the process of separating data into different pages |
Success
Client Error
Not Found
Internal Server Error
{- "locations": [
- {
- "attributes": {
- "isReturns": true
}, - "id": "622fae9a065d9e62a4029f79",
- "locationNum": 13,
- "name": "CA",
- "isActive": true,
- "address": {
- "addressLine1": "2800 Ashcraft Court",
- "addressLine2": "Fairview road",
- "addressLine3": "N 9 1/2 street",
- "addressLine4": "Coronado school",
- "city": "Coronado",
- "state": "California",
- "country": "USA",
- "postalCode": 92118,
- "type": "2800 Ashcraft Court",
- "contact": [
- {
- "type": "Residence",
- "email": "mark@email.com",
- "phone": [
- {
- "number": null,
- "type": null
}
], - "name": {
- "first": "John",
- "middle": "Mark",
- "last": "Doe"
}
}
]
}, - "type": "warehouse",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "operatingHours": [
- {
- "day": "Monday",
- "hours": [
- {
- "open": "10:00",
- "close": "16:00",
- "type": "OPEN"
}
]
}
], - "coordinates": {
- "type": "Point",
- "coordinates": [
- [
- "-22.95239063733024",
- "-43.21034257655916"
]
]
}
}
], - "pagination": {
- "total": 1,
- "limit": 1,
- "offset": 0
}
}
Creates a location with all of its details, such as location number, name, address, operating hours, operation type, location coordinates, and so on.
Success
Client Error
Not Found
Either Location number or coordinates already exists
Internal Server Error
{- "attributes": {
- "isReturns": true
}, - "locationNum": 13,
- "name": "CA",
- "isActive": true,
- "address": {
- "addressLine1": "2800 Ashcraft Court",
- "addressLine2": "Fairview road",
- "addressLine3": "N 9 1/2 street",
- "addressLine4": "Coronado school",
- "city": "Coronado",
- "state": "California",
- "country": "USA",
- "postalCode": 92118,
- "type": "2800 Ashcraft Court",
- "contact": [
- {
- "type": "Residence",
- "email": "mark@email.com",
- "phone": [
- {
- "number": "555-555-5555",
- "type": "mobile"
}
], - "name": {
- "first": "John",
- "middle": "Mark",
- "last": "Doe"
}
}
]
}, - "type": "Warehouse",
- "operatingHours": [
- {
- "day": "Monday",
- "hours": [
- {
- "open": "10:00",
- "close": "16:00",
- "type": "OPEN"
}
]
}
], - "coordinates": {
- "type": "Point",
- "coordinates": [
- [
- "-22.95239063733024",
- "-43.21034257655916"
]
]
}
}
{- "attributes": {
- "isReturns": true
}, - "id": "622fae9a065d9e62a4029f79",
- "locationNum": 13,
- "name": "CA",
- "isActive": true,
- "address": {
- "addressLine1": "2800 Ashcraft Court",
- "addressLine2": "Fairview road",
- "addressLine3": "N 9 1/2 street",
- "addressLine4": "Coronado school",
- "city": "Coronado",
- "state": "California",
- "country": "USA",
- "postalCode": 92118,
- "type": "2800 Ashcraft Court",
- "contact": [
- {
- "type": "Residence",
- "email": "mark@email.com",
- "phone": [
- {
- "number": "555-555-5555",
- "type": "mobile"
}
], - "name": {
- "first": "John",
- "middle": "Mark",
- "last": "Doe"
}
}
]
}, - "type": "warehouse",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "operatingHours": [
- {
- "day": "Monday",
- "hours": [
- {
- "open": "10:00",
- "close": "16:00",
- "type": "OPEN"
}
]
}
], - "coordinates": {
- "type": "Point",
- "coordinates": [
- [
- "-22.95239063733024",
- "-43.21034257655916"
]
]
}
}
Retrieves details of a specific location based on specified location number
OK
Client Error
Not Found
Internal Server Error
{- "attributes": {
- "isReturns": true
}, - "id": "622fae9a065d9e62a4029f79",
- "locationNum": 13,
- "name": "CA",
- "isActive": true,
- "address": {
- "addressLine1": "2800 Ashcraft Court",
- "addressLine2": "Fairview road",
- "addressLine3": "N 9 1/2 street",
- "addressLine4": "Coronado school",
- "city": "Coronado",
- "state": "California",
- "country": "USA",
- "postalCode": 92118,
- "type": "2800 Ashcraft Court",
- "contact": [
- {
- "type": "Residence",
- "email": "mark@email.com",
- "phone": [
- {
- "number": "555-555-5555",
- "type": "mobile"
}
], - "name": {
- "first": "John",
- "middle": "Mark",
- "last": "Doe"
}
}
]
}, - "type": "warehouse",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "operatingHours": [
- {
- "day": "Monday",
- "hours": [
- {
- "open": "10:00",
- "close": "16:00",
- "type": "OPEN"
}
]
}
], - "coordinates": {
- "type": "Point",
- "coordinates": [
- [
- "-22.95239063733024",
- "-43.21034257655916"
]
]
}
}
This endpoint updates details of a location by overriding the existing values with the details that are specified in the request body, or creates a location if location does not exist. If an existing property is not mentioned in the request body, then the value for the existing property will be displayed as null or zero. Location is identified based on the location number.
OK
Client Error
Not Found
Internal Server Error
{- "attributes": {
- "isReturns": true
}, - "locationNum": 13,
- "name": "CA",
- "isActive": true,
- "address": {
- "addressLine1": "2800 Ashcraft Court",
- "addressLine2": "Fairview road",
- "addressLine3": "N 9 1/2 street",
- "addressLine4": "Coronado school",
- "city": "Coronado",
- "state": "California",
- "country": "USA",
- "postalCode": 92118,
- "type": "2800 Ashcraft Court",
- "contact": [
- {
- "type": "Residence",
- "email": "mark@email.com",
- "phone": [
- {
- "number": "555-555-5555",
- "type": "mobile"
}
], - "name": {
- "first": "John",
- "middle": "Mark",
- "last": "Doe"
}
}
]
}, - "type": "Warehouse",
- "operatingHours": [
- {
- "day": "Monday",
- "hours": [
- {
- "open": "10:00",
- "close": "16:00",
- "type": "OPEN"
}
]
}
], - "coordinates": {
- "type": "Point",
- "coordinates": [
- [
- "-22.95239063733024",
- "-43.21034257655916"
]
]
}
}
{- "attributes": {
- "isReturns": true
}, - "id": "622fae9a065d9e62a4029f79",
- "locationNum": 13,
- "name": "CA",
- "isActive": true,
- "address": {
- "addressLine1": "2800 Ashcraft Court",
- "addressLine2": "Fairview road",
- "addressLine3": "N 9 1/2 street",
- "addressLine4": "Coronado school",
- "city": "Coronado",
- "state": "California",
- "country": "USA",
- "postalCode": 92118,
- "type": "2800 Ashcraft Court",
- "contact": [
- {
- "type": "Residence",
- "email": "mark@email.com",
- "phone": [
- {
- "number": "555-555-5555",
- "type": "mobile"
}
], - "name": {
- "first": "John",
- "middle": "Mark",
- "last": "Doe"
}
}
]
}, - "type": "warehouse",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "operatingHours": [
- {
- "day": "Monday",
- "hours": [
- {
- "open": "10:00",
- "close": "16:00",
- "type": "OPEN"
}
]
}
], - "coordinates": {
- "type": "Point",
- "coordinates": [
- [
- "-22.95239063733024",
- "-43.21034257655916"
]
]
}
}
This endpoint does not override all the existing properties, rather it updates location by adding only those properties or by updating the existing location properties that are specified in the request body. Location is identified by the unique location number.
Location Updated
Client Error
Not Found
Internal Server Error
{- "attributes": {
- "isReturns": true
}, - "locationNum": 13,
- "name": "CA",
- "isActive": true,
- "address": {
- "addressLine1": "2800 Ashcraft Court",
- "addressLine2": "Fairview road",
- "addressLine3": "N 9 1/2 street",
- "addressLine4": "Coronado school",
- "city": "Coronado",
- "state": "California",
- "country": "USA",
- "postalCode": 92118,
- "type": "2800 Ashcraft Court",
- "contact": [
- {
- "type": "Residence",
- "email": "mark@email.com",
- "phone": [
- {
- "number": "555-555-5555",
- "type": "mobile"
}
], - "name": {
- "first": "John",
- "middle": "Mark",
- "last": "Doe"
}
}
]
}, - "type": "Warehouse",
- "operatingHours": [
- {
- "day": "Monday",
- "hours": [
- {
- "open": "10:00",
- "close": "16:00",
- "type": "OPEN"
}
]
}
], - "coordinates": {
- "type": "Point",
- "coordinates": [
- [
- "-22.95239063733024",
- "-43.21034257655916"
]
]
}
}
{- "attributes": {
- "isReturns": true
}, - "id": "622fae9a065d9e62a4029f79",
- "locationNum": 13,
- "name": "CA",
- "isActive": true,
- "address": {
- "addressLine1": "2800 Ashcraft Court",
- "addressLine2": "Fairview road",
- "addressLine3": "N 9 1/2 street",
- "addressLine4": "Coronado school",
- "city": "Coronado",
- "state": "California",
- "country": "USA",
- "postalCode": 92118,
- "type": "2800 Ashcraft Court",
- "contact": [
- {
- "type": "Residence",
- "email": "mark@email.com",
- "phone": [
- {
- "number": "555-555-5555",
- "type": "mobile"
}
], - "name": {
- "first": "John",
- "middle": "Mark",
- "last": "Doe"
}
}
]
}, - "type": "warehouse",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "operatingHours": [
- {
- "day": "Monday",
- "hours": [
- {
- "open": "10:00",
- "close": "16:00",
- "type": "OPEN"
}
]
}
], - "coordinates": {
- "type": "Point",
- "coordinates": [
- [
- "-22.95239063733024",
- "-43.21034257655916"
]
]
}
}
Deletes a specific location based on specified location number
Location Deleted
Client Error
Not Found
Internal Server Error
{- "attributes": {
- "isReturns": true
}, - "id": "622fae9a065d9e62a4029f79",
- "locationNum": 13,
- "name": "CA",
- "isActive": true,
- "address": {
- "addressLine1": "2800 Ashcraft Court",
- "addressLine2": "Fairview road",
- "addressLine3": "N 9 1/2 street",
- "addressLine4": "Coronado school",
- "city": "Coronado",
- "state": "California",
- "country": "USA",
- "postalCode": 92118,
- "type": "2800 Ashcraft Court",
- "contact": [
- {
- "type": "Residence",
- "email": "mark@email.com",
- "phone": [
- {
- "number": "555-555-5555",
- "type": "mobile"
}
], - "name": {
- "first": "John",
- "middle": "Mark",
- "last": "Doe"
}
}
]
}, - "type": "warehouse",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "operatingHours": [
- {
- "day": "Monday",
- "hours": [
- {
- "open": "10:00",
- "close": "16:00",
- "type": "OPEN"
}
]
}
], - "coordinates": {
- "type": "Point",
- "coordinates": [
- [
- "-22.95239063733024",
- "-43.21034257655916"
]
]
}
}
Location attribute endpoints let you create, read, update, and delete location attributes. These location attributes are used while creating or updating locations. When the attribute is configured as required, it is mandatory to add the attribute while creating location.
Creates a unique location attribute
OK
Client Error
Conflict
Internal Server Error
{- "code": "isBopis",
- "name": "isBopis",
- "description": "To check the status of the BOPIS(Buy-Online-Pickup-In-Store)",
- "type": "BOOLEAN",
- "required": true
}
{- "id": "622786ae0bdb19221a24fb61",
- "code": "isBopis",
- "name": "Is Bopis",
- "description": "To check the status of the BOPIS (Buy-Online_Pickup-In-Store)",
- "type": "BOOLEAN",
- "required": true
}
Retrieves attributes for all the locations
OK
Client Error
Conflict
Internal Server Error
[- {
- "id": "622786ae0bdb19221a24fb61",
- "code": "isBopis",
- "name": "Is Bopis",
- "description": "To check the status of the BOPIS (Buy-Online_Pickup-In-Store)",
- "type": "BOOLEAN",
- "required": true
}
]
Retrieves details of the location attribute by attribute code
OK
Client Error
Not Found
Internal Server Error
{- "id": "622786ae0bdb19221a24fb61",
- "code": "isBopis",
- "name": "Is Bopis",
- "description": "To check the status of the BOPIS (Buy-Online_Pickup-In-Store)",
- "type": "BOOLEAN",
- "required": true
}
Updates the location attribute by attribute code
OK
Client Error
Not Found
Internal Server Error
{- "code": "isBopis",
- "name": "isBopis",
- "description": "To check the status of the BOPIS(Buy-Online-Pickup-In-Store)",
- "type": "BOOLEAN",
- "required": true
}
{- "id": "622786ae0bdb19221a24fb61",
- "code": "isBopis",
- "name": "Is Bopis",
- "description": "To check the status of the BOPIS (Buy-Online_Pickup-In-Store)",
- "type": "BOOLEAN",
- "required": true
}
deletes the location attribute by attribute code
OK
Client Error
Not Found
Internal Server Error
{- "id": "622786ae0bdb19221a24fb61",
- "code": "isBopis",
- "name": "Is Bopis",
- "description": "To check the status of the BOPIS (Buy-Online_Pickup-In-Store)",
- "type": "BOOLEAN",
- "required": true
}