API Search Package information
URL
https://api.tikinow.vn/aftersales/2.0/inbound/search/
Link Production
METHOD
GET
QUERY HEADERS
| Header | Value | Note |
|---|---|---|
| Content-Type | application/json | |
| Authorization | Bearer <access_token> | access_token is generated by authorizing the In-House application of the Tiki Developer Platform |
QUERY PARAMS
| Params | Data Type | Required | Default Value | Description |
|---|---|---|---|---|
| limit | integer | N | 10 | Number of results to return per page. |
| offset | integer | N | 0 | The initial index from which to return the results. |
| ordering | string | N | Which field from to use when ordering the results: created_at|order_completed_at|completed_at. | |
| search | string | N | Search by package code | |
| package_code__in | string | N | The list of Package Codes is concatenated with a “__” sign | |
| status_code__in | string | N | Search by status is concatenated with a “__” sign. For example: created, created__received | |
| warehouse_code__in | string | N | Search by Warehouse is concatenated with a “__” sign. |
RESPONSE
| Params | Type | Required | Description |
|---|---|---|---|
| count | integer | Y | Số lượng records |
| next | string | N | URL để lấy kết quả page tiếp theo |
| previous | string | N | URL để lấy kết quả page trước |
| results | array | Y | Danh sách records |
| results[].package_code | string | Y | Mã kiện |
| results[].status_code | string | Y | Mã trạng thái kiện |
| results[].status_name | string | Y | Tên trạng thái kiện |
| results[].warehouse_code | string | Y | Mã kho |
| results[].warehouse_name | string | Y | Tên kho |
| results[].created_at | Datetime | Y | Ngày tạo |
| results[].created_by | Object | Y | Thông tin người tạo |