POST /api/rest/inventory/stock

Returns stock for all products across Rayo fulfillment network warehouses. Requires a valid JWT Bearer token.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • inventario array[object] Required
      Hide inventario attributes Show inventario attributes object
      • disponibles integer Required

        Available units for fulfillment.

      • en_inventario integer Required

        Total units in inventory.

      • nombre string Required

        Product name.

      • sku string Required

        Product SKU.

      • upc string | null

        Product UPC (may be null if not provided).

      • imagen_url string | null

        Public image URL or a base64 data URL.

  • default application/json

    Unexpected error

    Hide response attributes Show response attributes object
    • error string Required
    • code string Required
    • path string
POST /api/rest/inventory/stock
curl \
 --request POST 'https://cerebro.techrayo.com/api/rest/inventory/stock' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "inventario": [
    {
      "sku": "Balon",
      "upc": null,
      "nombre": "Balon de futbol",
      "imagen_url": "https://m.media-amazon.com/images/I/41aZrTXy7eL._AC_SX425_.jpg",
      "disponibles": 22,
      "en_inventario": 26
    }
  ]
}
Response examples (default)
{
  "error": "internal error",
  "code": "unexpected",
  "path": "$"
}