POST
/
inventory-imports

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

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.

x-fabric-request-id
string

Unique request ID

x-fabric-channel-id
string

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

An object containing the inventory import request details.

fileName
string
required

Uploaded file name

type
enum<string>
required
Available options:
INVENTORY,
INVENTORY_COUNTERS

Response

201 - */*

An object containing the inventory import response details.

createdAt
string
required

Time of import request

importId
string
required

Imported file's unique ID

uploadFileUrl
string
required

Uploaded file's path (including security token) generated by the system and returned in the response of the Create import request endpoint.

attributes
object

A custom attribute placeholder.

fileName
string

Uploaded file name

statusCode
enum<string>

Uploaded file's current status

Available options:
INITIATED,
PROCESSING,
COMPLETED,
SYSTEM_ERROR
type
enum<string>

Import file type

Available options:
INVENTORY,
INVENTORY_COUNTERS
updatedAt
string

Date and time record was last modified