POST
/
inventories
/
actions
/
hard-reserve-search
curl --request POST \
  --url https://api.fabric.inc/v3/inventories/actions/hard-reserve-search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-fabric-channel-id: <x-fabric-channel-id>' \
  --header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
  --data '{
  "filters": [
    {
      "condition": "EQ",
      "field": "hardReserve.allocationRequestId",
      "value": "123"
    },
    {
      "condition": "IN",
      "field": "hardReserve.inventoryAllocations.channelId",
      "values": [
        "WHBM",
        "CHO"
      ]
    }
  ],
  "sort": "-hardReserve.createdAt"
}'
{
  "data": [
    {
      "attributes": {
        "attribute": "12345"
      },
      "createdAt": "2022-08-01T18:03:28.483Z",
      "errorFileUrl": "https://example.com/tenant/import/bulk/1654680575676.csv?X-Amz-Security-Token=IQoJb3JpZ2",
      "fileName": "orderUpload.csv",
      "finishedAt": "2022-08-01T18:03:28.483Z",
      "importCount": {
        "error": 2000,
        "processed": 8000,
        "uploaded": 10000
      },
      "importId": "62ff5c0bec0aed3c86202c32",
      "originalFileUrl": "https://example.com/tenant/import/bulk/1654680575676.csv?X-Amz-Security-Token=IQoJb3JpZ2",
      "statusCode": "INITIATED",
      "type": "INVENTORY",
      "updatedAt": "2022-08-01T20:03:28.483Z"
    }
  ],
  "pagination": {
    "count": 1000,
    "limit": 10,
    "offset": 1
  }
}

Authorizations

Authorization
string
header
required

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-channel-id
string
required

x-fabric-channel-id identifies the sales channel where the API request is being made; primarily for multichannel use cases. The channel ids are 12 corresponding to US and 13 corresponding to Canada. The default channel id is 12. This field is required.

x-fabric-request-id
string

Unique request ID

Body

application/json

Hard reservation search request model

filters
object[]
required

Criteria to find inventories by a single value. Condition between field and value is anything except IN and NIN when valueSearchFilter is used.

sort
string
default:
-hardReserve.createdAt

Resource property on which data needs to be sorted on.

Example:

"+hardReserve.createdAt"

Response

200
application/json
OK

Search response

data
object[]

An object containing the inventory import status response details.

pagination
object

Pagination response