curl --request POST \
--url https://api.fabric.inc/v3/location-capacity/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
--data '
{
"sort": "-capacityOverride.createdAt",
"filters": [
{
"field": "capacityOverride.status",
"value": "CREATED",
"condition": "EQ"
}
]
}
'{
"pagination": {
"limit": 10,
"offset": 1,
"count": 1000
},
"data": [
{
"capacity": 30,
"schedule": {
"startDate": "2022-05-12T09:30:31Z",
"endDate": "2022-05-12T09:30:31Z"
},
"reasonCode": "holiday",
"capacityOverrideId": "9320183a01e214",
"capacityOverrideNumber": "capacityOverride1",
"locationNumber": "23",
"status": "CREATED",
"notes": "Any additional info",
"createdBy": "Carl Doe",
"createdAt": "2022-05-12T09:30:31Z",
"updatedBy": "Carl Doe",
"updatedAt": "2022-05-12T09:30:31Z",
"auditLogs": [
{
"lineItemId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"auditId": "a05b72dc-78d8-4ea4-90fc-2fe6a1fe1111",
"auditType": "CANCEL",
"employeeId": 6227,
"auditedAt": "2023-03-12T09:24:54.804Z",
"source": "POS",
"reasonCode": "Scratched item",
"subReasonCode": "Scratched item",
"policyCode": "POS",
"note": "Note",
"lineItemNumber": 1,
"sku": "SKU0023",
"quantity": 1,
"amount": 2.4,
"paymentToken": {
"token": "pi_34tr6787rt",
"paymentType": "VISA"
},
"updatedFields": [
{
"fieldName": "UOM",
"fieldOriginalValue": "PK"
}
],
"attributes": {
"key": "value"
},
"isSuccess": true
}
]
}
],
"stats": [
"<string>"
]
}Returns a list of capacity overrides by applying one or more filter criteria such as status, schedule, or location number.
curl --request POST \
--url https://api.fabric.inc/v3/location-capacity/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
--data '
{
"sort": "-capacityOverride.createdAt",
"filters": [
{
"field": "capacityOverride.status",
"value": "CREATED",
"condition": "EQ"
}
]
}
'{
"pagination": {
"limit": 10,
"offset": 1,
"count": 1000
},
"data": [
{
"capacity": 30,
"schedule": {
"startDate": "2022-05-12T09:30:31Z",
"endDate": "2022-05-12T09:30:31Z"
},
"reasonCode": "holiday",
"capacityOverrideId": "9320183a01e214",
"capacityOverrideNumber": "capacityOverride1",
"locationNumber": "23",
"status": "CREATED",
"notes": "Any additional info",
"createdBy": "Carl Doe",
"createdAt": "2022-05-12T09:30:31Z",
"updatedBy": "Carl Doe",
"updatedAt": "2022-05-12T09:30:31Z",
"auditLogs": [
{
"lineItemId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"auditId": "a05b72dc-78d8-4ea4-90fc-2fe6a1fe1111",
"auditType": "CANCEL",
"employeeId": 6227,
"auditedAt": "2023-03-12T09:24:54.804Z",
"source": "POS",
"reasonCode": "Scratched item",
"subReasonCode": "Scratched item",
"policyCode": "POS",
"note": "Note",
"lineItemNumber": 1,
"sku": "SKU0023",
"quantity": 1,
"amount": 2.4,
"paymentToken": {
"token": "pi_34tr6787rt",
"paymentType": "VISA"
},
"updatedFields": [
{
"fieldName": "UOM",
"fieldOriginalValue": "PK"
}
],
"attributes": {
"key": "value"
},
"isSuccess": true
}
]
}
],
"stats": [
"<string>"
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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.
Number of records to skip before returning all records. Default is 0 when no value is specified.
1
Maximum number of records per page
10
Capacity Override search request
50Show child attributes
The field name to apply the filter on. Must follow the format capacityOverride.<fieldName>.
"capacityOverride.status"
Type of condition to apply
EQ: Equal toNEQ: Not equal toIN: Included in listNIN: Not included in listLT: Less thanGT: Greater thanLTE: Less than or equal toGTE: Greater than or equal toEQ, NEQ, IN, NIN, LT, GT, LTE, GTE "EQ"
Optional group name to logically separate filter criteria for compound queries.
"GroupA"
Resource property on which data needed to be sorted on.
"+capacityOverride.createdAt"
OK
Response object returned after searching for Capacity Overrides. Includes paginated data and optional summary statistics.
Pagination response
Show child attributes
Maximum number of records per page
1 <= x <= 10010
Number of records to skip before returning all records. For example, offset=20, limit=10 returns records 21-30.
x >= 01
Total number of search results
1000
A list of Capacity Override records that match the search criteria.
Show child attributes
The maximum number of allocations the location can accept at any point during the override period. When currentAllocations equals this value, the location is considered "AtCapacity" and cannot receive further orders.
30
The date and time window during which the capacity override is in effect.
Show child attributes
A merchant-defined reason for the override, used for traceability or reporting (for example, holiday, peak demand).
"holiday"
A system-generated unique identifier for the capacity override.
"9320183a01e214"
A merchant-defined unique reference number for the capacity override.
"capacityOverride1"
A unique identifier for the location where the capacity override applies, as defined by the merchant.
"23"
The current status of the capacity override.
CREATED, STARTED, ENDED, CANCELLED "CREATED"
Optional notes or comments providing additional context for the override.
Show child attributes
Time note was created (UTC)
"2022-05-12T09:30:31.198Z"
Customer Service Representative or Employee (ID or name) who created the note
"62272e917b12209e68751d94"
Additional info about the order, if any
"Fragile - handle with care"
"Any additional info"
Identifier or name of the user or system that created the override.
"Carl Doe"
The timestamp when the capacity override was created, in ISO 8601 UTC format.
"2022-05-12T09:30:31Z"
Identifier or name of the user or system that last updated the override.
"Carl Doe"
The timestamp of the most recent update to the override record, in ISO 8601 UTC format.
"2022-05-12T09:30:31Z"
A list of audit log entries tracking changes made to the override.
Show child attributes
Merchant-defined unique identifier for each item in an order. When omitted, fabric will generate it during order creation, in UUID format.
"b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569"
System-generated audit ID (UUID format)
"a05b72dc-78d8-4ea4-90fc-2fe6a1fe1111"
Audit type such as cancel, return, etc.
"CANCEL"
Employee (ID or name) who made the last update
6227
Audit time (UTC)
"2023-03-12T09:24:54.804Z"
Merchant-defined source from where the update was initiated. There are no predefined values; possible values could be Customer Service Representative (CSR), Point-of-Sale (POS), etc.
"POS"
Merchant-defined reason code, varies from merchant to merchant
"Scratched item"
Merchant-defined sub reason code; provides more clarity to audit reason
"Scratched item"
Configurable in Copilot as per requirement. If omitted, default policy is used.
"POS"
Additional info, if any
"Note"
Item identifier
1
Stock keeping unit (SKU), unique item identifier
"SKU0023"
Ordered quantity of given item
1
Amount for which audit is done
2.4
Payment token provided by payment provider. Must be provided during order creation if the payment life cycle orchestration is through fabric Orders (OMS).
Custom attributes
{ "key": "value" }true: Update operation (any update to the service) is successful
false: Update operation has failed
true
An array of summary statistics or aggregated data related to the search.
Was this page helpful?