GET /manager/orders/{id}

Path parameters

  • id integer Required

    The order id

Responses

  • 200 application/json

    Returns the order

    Hide response attributes Show response attributes object
    • status array[object]
      Hide status attributes Show status attributes object
      • id_order_status integer(int32)
      • date_insert string
      • date_update string
      • comment string
      • id_order integer(int32)
      • status string
    • products array[object]
      Hide products attribute Show products attribute object
      • order_details object
        Hide order_details attributes Show order_details attributes object
        • id_order integer(int32)
        • id_product integer(int32)
        • quantity integer(int32)
        • unit_price number(float)
        • sku string
        • currency string
        • total_price integer(float)

          unit_price * quantity

    • total_products_quantity integer(int32)

      Total quantity of products in the order

  • 403

    Forbidden - You don't have permission to access this route

  • 404

    Not found - The Order does not exist

GET /manager/orders/{id}
curl \
 --request GET 'https://domain.tld/api/v2/manager/orders/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "status": [
    {
      "id_order_status": 42,
      "date_insert": "string",
      "date_update": "string",
      "comment": "string",
      "id_order": 42,
      "status": "string"
    }
  ],
  "products": [
    {
      "order_details": {
        "id_order": 42,
        "id_product": 42,
        "quantity": 42,
        "unit_price": 42.0,
        "sku": "string",
        "currency": "string",
        "total_price": 42
      }
    }
  ],
  "total_products_quantity": 42
}