Import inventory data
Import inventory data by specifying file name. Successfully uploading the file triggers the import process, which is an event-driven extraction of the file’s data to update the respective resource’s system.
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
An object containing the inventory import request details.
Uploaded file name
"import-file.csv"
INVENTORY
, INVENTORY_COUNTERS
"INVENTORY"
Response
An object containing the inventory import response details.
Time of import request
"2022-08-01T18:03:28.483Z"
Imported file's unique ID
"62ff5c0bec0aed3c86202c32"
Uploaded file's path (including security token) generated by the system and returned in the response of the Create import request
endpoint.
"https://example.com/tenant/import/bulk/1654680575676.csv?X-Amz-Security-Token=IQoJb3JpZ2"
A custom attribute placeholder.
{ "attribute": "12345" }
Uploaded file name
"orderUpload.csv"
Uploaded file's current status
INITIATED
, PROCESSING
, COMPLETED
, SYSTEM_ERROR
"INITIATED"
Import file type
INVENTORY
, INVENTORY_COUNTERS
"INVENTORY"
Date and time record was last modified
"2022-08-01T20:03:28.483Z"
Was this page helpful?