Skip to main content
GET
/
dev
/
v1
/
products
/
{id}
/
stock
Get product stock
curl --request GET \
  --url https://api.shoppex.io/dev/v1/products/{id}/stock \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "product_id": "prod_db_1",
    "product_uniqid": "prod_1",
    "type": "SERIALS",
    "stock": 12,
    "available_stock": 7,
    "unlimited": false,
    "variants": [
      {
        "id": "variant_1",
        "uniqid": "variant_1",
        "title": "Gold",
        "stock": 5,
        "available_stock": 5,
        "unlimited": false
      },
      {
        "id": "variant_2",
        "uniqid": "variant_2",
        "title": "Platinum",
        "stock": 2,
        "available_stock": 2,
        "unlimited": false
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Path Parameters

id
string
required

Response

200 - application/json

Successful response

data
object