전체상품 판매상태(문의 : km1262@nate.com)

기본설정

  • 상품 판매상태 데이터

전달값

필드명 설명
id 조회 아이디(국민클럽비투비 회원 아이디)
divide_count 분할 처리 최대 개수(기본값 4000)

리턴값

필드명 하위필드명 하위필드명 설명
state - - success or fail
message - - fail 일 경우 오류 메세지
total - - 총 상품 개수
soldout - - 품절 상품 개수
discontinued - - 판매중지(단종) 상품 개수
sell - - 판매 상품 개수
data soldout 2차원 배열
0 상품고유코드(it_serial) 배열
1 상품고유코드(it_serial) 배열
discontinued 2차원 배열
0 상품고유코드(it_serial) 배열
1 상품고유코드(it_serial) 배열
sell 2차원 배열
0 상품고유코드(it_serial) 배열
1 상품고유코드(it_serial) 배열

HTTP

POST /item/product HTTP/1.1
Host: api.kmclubb2b.com
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="data"

{"id":"비투비 아이디"}
----WebKitFormBoundary7MA4YWxkTrZu0gW

HTTP

POST /item/state HTTP/1.1
Host: api.kmclubb2b.com
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="data"

{"id":"비투비 아이디","divide_count":"10000"}
----WebKitFormBoundary7MA4YWxkTrZu0gW

성공 예제

{
    "state": "success",
    "total": "50000",
    "soldout": "2000",
    "discontinued": "20000",
    "sell": "28000",
    "data": {
        "soldout":[
            ["11097","10108","9296"...],
            ["12234","12333","9297"...],
            ...
        ],
        "discontinued":[
            ["11097","10108","9296"...],
            ["12234","12333","9297"...],
            ...
        ],
        "sell":[
            ["11097","10108","9296"...],
            ["12234","12333","9297"...],
            ...
        ],
    }
}