Returns an order by ID.

GET /api/v2/orders/{id}

Path parameters

  • id string Required

Responses

  • 200 application/json

    Returns the order

    Hide response attributes Show response attributes object
    • id integer
    • public_id string
    • shipping_status string
    • to_ship boolean
    • bordereau_url string
    • price_h_t integer
    • price_t_v_a integer
    • price_t_t_c integer
    • shipping_h_t integer
    • shipping_t_v_a integer
    • shipping_t_t_c integer
    • shipping_address_json string
    • tracking_slug string
    • tracking_number string
    • delivered_at string
    • invoiced_at string
    • created_at string
    • cart_items array[object]
      Hide cart_items attributes Show cart_items attributes object
      • tax_class string | null
      • product_name string | null
      • product_sku string | null
      • product_quantity integer
      • unit_price_h_t number(float)
      • unit_price_t_v_a number(float)
      • unit_price_t_t_c number(float)
      • color string | null
      • grade string | null
      • attr_test string | null
      • product_extra_infos object | null Deprecated

        Deprecated field. Contains legacy additional information. Use color, grade and attr_test fields instead.

  • 404 application/json

    Not found

    Hide response attributes Show response attributes object
    • code integer
    • msg string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • code integer
    • msg string
GET /api/v2/orders/{id}
curl \
 --request GET 'https://bi.agora.place/api/v2/orders/{id}' \
 --header "apikey: $API_KEY"
Response examples (200)
{
  "id": 42,
  "public_id": "string",
  "shipping_status": "string",
  "to_ship": true,
  "bordereau_url": "string",
  "price_h_t": 42,
  "price_t_v_a": 42,
  "price_t_t_c": 42,
  "shipping_h_t": 42,
  "shipping_t_v_a": 42,
  "shipping_t_t_c": 42,
  "shipping_address_json": "string",
  "tracking_slug": "string",
  "tracking_number": "string",
  "delivered_at": "string",
  "invoiced_at": "string",
  "created_at": "string",
  "cart_items": [
    {
      "tax_class": "TVA Classique",
      "product_name": "Samsung Galaxy J3 2017 Dual Sim",
      "product_sku": "SM-J330FZ",
      "product_quantity": 5,
      "unit_price_h_t": 119.9,
      "unit_price_t_v_a": 23.98,
      "unit_price_t_t_c": 143.88,
      "color": "Noir",
      "grade": "Grade C",
      "attr_test": "PREMIUM",
      "product_extra_infos": {}
    }
  ]
}
Response examples (404)
{
  "code": 404,
  "msg": "Not Found"
}
Response examples (500)
{
  "code": 500,
  "msg": "Internal Server Error"
}