docs

Update Variant stock

1.0.12
OpenAPI 3.0.3

Omnichannel Add-On

SCAYLE Omnichannel API is a REST API enabling integration of online and on-site stores. You can use it to locate nearby stores and identify available items needed for click-and-collect or reservations.

For more details, see the Omnichannel API Developer Guide

Request

Base URL

https://{{tenant-space}}-omnichannel.addon.scayle.cloud/api/v1

All requests must be made over HTTPS.

Header

  • Authorization Bearer Token
  • Content-Type application/json

How to Use:

  1. Generate access token via the login/register endpoint of the Auth Api.
  2. Use the access token as bearer token for authentication.
  3. Use the https://{{tenant-space}}-omnichannel.addon.scayle.cloud/api/v1 as the base URL.
Server:https://{tenant-space}-omnichannel.addon.scayle.cloud/api/v1
Client Libraries

Variants

​

Variants representing retail-store stock

Update Variant stock

​

Update the stores quantity of a variant

Path Parameters

  • storeId (integer) or referenceKey (prefixed with key=)

  • variantId or variantReferenceKey (prefixed with key=)

Body·

application/json
  • Integer numbers.

Responses

  • application/json
  • Unauthorized

  • Not Found

  • application/json
Request Example for post/stores/{storeId}/variants/{variantId}/stock-update
curl -X POST "https://{{tenant-space}}-omnichannel.addon.scayle.cloud/api/v1/stores/123/variants/456/stock-update" -H "Authorization: Bearer YOUR_ACCESS_TOKEN" -H "accept: application/json" -H "Content-Type: application/json" -d '{
  "quantity": 52,
  "source": "Tenant OMS"
}'

{
  "msg": "Stock updated"
}

Models

​
​

Last updated: September 14, 2026