inventory-imports
endpoint. With the file uploaded, fabric process’s the CSV file and populates your inventory. With your baseline inventory populated, you’re ready to update the counters onHand, allocated, and shipped for each location. This populates your total available to purchase amount for each product and populates the inventory for each location.
To import orders, you must create an orders JSON file. Once you have completed the JSON file, you can upload it to the oms-imports
endpoint. With the file uploaded, fabric process’s the JSON file and populates your orders.
inventory-imports
endpoint, you must download and update the Update CSV file template. This file is uploaded in a subsequent API call.
Field | Description |
---|---|
SKU | The stock keeping unit. |
Item ID | The fabric item ID generated after a successful import of a product. This is required only if you use fabric Product Catalog. |
Location Number | A unique value used to identify the location such as a DC. Products can have multiple locations associated with their inventory. |
Channel ID | The sales channel ID. |
importId
inventory-imports
endpoint is used to create the importId
and returns a uploadFileUrl
. The uploadFileUrl
is used to upload the CSV file from step 2 that populates your inventory levels.
POST Request:
uploadFileUrl
value, which is returned in step 3, and send a PUT request with the template file.
Note: No authorization token is required for this step. If you use Postman, click the URL to automatically open the request in a new tab. Remember to change the request from GET to PUT and in the body of the request click the binary option followed by providing your inventory CSV file.
importId
value from the response in Step 3.
You can check your inventory upload status by making a GET request to the inventory-imports/{importId}
endpoint.
GET Request:
oms-imports
endpoint, you must create a JSON file containing all your order information in a specific format.
The JSON file is used to provide a centralized source for order, inventory, and warehouse information, enabling you to receive, track, and fulfill customer orders.
JSON order example
importId
and upload URLoms-imports
endpoint is used to create the importId
and returns a uploadFileUrl
. The uploadFileUrl
is used to upload the JSON file from step 1.
uploadFileUrl
value, which is returned in step 2, and send a PUT request with the template file.
Note: No authorization token is required for this step. If you use Postman, click the URL to automatically open the request in a new tab. Remember to change the request from GET to PUT and in the body of the request click the binary option followed by providing your inventory CSV file.
importId
value from the response in Step 2.
You can check your order upload status by making a GET request to the oms-imports/{importId}
endpoint.
GET Request:
statusCode
value is set to INITIATED until the process completes.
orders/order-number/{orderNumber}
endpoint using one of the imported order numbers.
Request: