Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Endpoint

https://prod.ax-cloud.com/v1/channel/inventory/day-ticket/<product_id>

Method

GET

Description

특정 Product의 Inventory를 조회합니다.

Content-Type

application/json

Headers > Authorization

Token {api_key}

Headers > Channel

Code {channel_code}

...

Expand
titleStatus Code : 200 정상 처리 시
Code Block
languagejson
{
  "status_code": 200,
  "data": [
    {
      "id": 1,
      "date": "2023-03-01",
      "start_time": "14:00", 
      "day_of_the_week": "Sunday", 
      "is_order": true, 
      "max_quantity": 25, 
      "minremain_quantity": 515, 
      "remainordered_quantity": 10,
      "ordereddepth_combination_quantityid": 15
    },
    {
      "id": 2,
      "date": "2023-03-08",
      "start_time": "14:00",
       "day_of_the_week": "Sunday", 
      "is_order": true, 
      "max_quantity": 25, 
      "minremain_quantity": 5, 
      "remainordered_quantity": 20,
      "ordereddepth_combination_quantityid": 515
    },
    {
      "id": 3,
      "date": "2023-03-15",
      "start_time": "14:00", 
      "day_of_the_week": "Sunday", 
      "is_order": true,
       "max_quantity": 25, 
      "minremain_quantity": 511, 
      "remainordered_quantity": 1114,
      "ordereddepth_combination_quantityid": 1415
    }
  ]
}

5) Error Spec

Expand
titleStatus Code : 400 Cause: 유효하지 않은 요청 값
Code Block
{'depth_combinations': [ErrorDetail(string='이 필드는 null일 수 없습니다.', code='null')]}

...