Developer Docs
Inventory
Read inventory by fulfillment location and submit idempotent inventory adjustments.
GET
/api/integrations/v1/inventory
List inventory
Returns merchant inventory rows grouped by variant and fulfillment location.
POST
/api/integrations/v1/inventory/adjustments
Apply inventory adjustments
Applies merchant-scoped inventory adjustments by variant or SKU and fulfillment location.
GETRead inventory
/api/integrations/v1/inventory
List inventory
Use this endpoint to sync available quantities or detect changed stock assignments.
Query Parameters
Supported inputs for this operation.
variant_id
uuidOptionalFilter to a specific variant.
Example: 66f1b765-1fe7-4e3a-98db-d2334f3bcb43
sku
stringOptionalFilter to a specific SKU.
Example: CAP-RED-OS
updated_after
ISO-8601 timestampOptionalReturn inventory rows updated after this timestamp.
Example: 2026-03-12T18:15:00.000Z
location_id
uuidOptionalFilter to a specific fulfillment location.
Example: 77a1a4d0-93a9-4cf8-a34c-208e64b0ad4f
limit
integerOptionalMaximum number of rows returned per page.
Default: 50
cursor
stringOptionalOpaque cursor from a previous response page.
| Name | Type | Required | Description |
|---|---|---|---|
| variant_id | uuid | No | Filter to a specific variant. Example: 66f1b765-1fe7-4e3a-98db-d2334f3bcb43 |
| sku | string | No | Filter to a specific SKU. Example: CAP-RED-OS |
| updated_after | ISO-8601 timestamp | No | Return inventory rows updated after this timestamp. Example: 2026-03-12T18:15:00.000Z |
| location_id | uuid | No | Filter to a specific fulfillment location. Example: 77a1a4d0-93a9-4cf8-a34c-208e64b0ad4f |
| limit | integer | No | Maximum number of rows returned per page. Default: 50 |
| cursor | string | No | Opaque cursor from a previous response page. |
Headers
Supported inputs for this operation.
Authorization
Bearer tokenOptionalPreferred API key header.
X-API-Key
stringOptionalFallback API key header.
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | Bearer token | No | Preferred API key header. |
| X-API-Key | string | No | Fallback API key header. |
Examples
Switch between the sample request and example responses for this endpoint.
Sample cURL
curl -X GET "https://merchants.rarely.co/api/integrations/v1/inventory" \
-H "Authorization: Bearer YOUR_API_KEY"POSTWrite inventory
/api/integrations/v1/inventory/adjustments
Apply inventory adjustments
Provide one or more adjustment rows. If an idempotency key is reused with the same payload, the stored response is replayed.
Headers
Supported inputs for this operation.
Authorization
Bearer tokenOptionalPreferred API key header.
X-API-Key
stringOptionalFallback API key header.
Idempotency-Key
stringOptionalRecommended for write safety. The same key with the same payload replays the stored response.
Example: inventory-adjustment-001
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | Bearer token | No | Preferred API key header. |
| X-API-Key | string | No | Fallback API key header. |
| Idempotency-Key | string | No | Recommended for write safety. The same key with the same payload replays the stored response. Example: inventory-adjustment-001 |
Request Body
JSON payload fields accepted by this endpoint.
adjustments
arrayRequiredList of inventory adjustment rows.
adjustments[].variant_id
uuidOptionalVariant to adjust. Required if SKU is not provided.
adjustments[].sku
stringOptionalSKU to resolve when variant_id is omitted.
adjustments[].fulfillment_location_id
uuidRequiredFulfillment location to adjust.
adjustments[].adjustment
integerRequiredSigned quantity delta to apply.
adjustments[].reason
stringOptionalOperational reason string for the adjustment.
| Field | Type | Required | Description |
|---|---|---|---|
| adjustments | array | Yes | List of inventory adjustment rows. |
| adjustments[].variant_id | uuid | No | Variant to adjust. Required if SKU is not provided. |
| adjustments[].sku | string | No | SKU to resolve when variant_id is omitted. |
| adjustments[].fulfillment_location_id | uuid | Yes | Fulfillment location to adjust. |
| adjustments[].adjustment | integer | Yes | Signed quantity delta to apply. |
| adjustments[].reason | string | No | Operational reason string for the adjustment. |
Examples
Switch between the sample request and example responses for this endpoint.
Sample cURL
curl -X POST "https://merchants.rarely.co/api/integrations/v1/inventory/adjustments" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"adjustments": [
{
"variant_id": "66f1b765-1fe7-4e3a-98db-d2334f3bcb43",
"fulfillment_location_id": "77a1a4d0-93a9-4cf8-a34c-208e64b0ad4f",
"adjustment": 5,
"reason": "cycle count reconciliation"
}
]
}'Live PlaygroundClient memory only
Test live requests against your merchant integration API.
The docs app proxies requests server-side to the merchant API. Your API key stays in local browser memory for the current docs session and is never stored by this UI.
Resolved request
https://merchants.rarely.co/api/integrations/v1/inventory
Live Output
Switch between the generated request and the most recent live response.
Generated cURL
curl -X GET "https://merchants.rarely.co/api/integrations/v1/inventory" \
-H "Authorization: Bearer YOUR_API_KEY"