This API cancel CR generated from orders from the merchant.
Cancel CR is allowed at status : waiting_for_approve , approved
URL
https://api.tikinow.vn/aftersales/2.0/customer_return/{cr_code}/cancel/
Link Production
METHOD
PUT
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 |
PAYLOAD
| Params | Data Type | Required | Default Value | Description |
|---|---|---|---|---|
| cancel_reason_code | string | N | Lý do huỷ yêu cầu đổi trả Xem danh sách mã code tại đây |
RESPONSE
| Params | Type | Required | Description |
|---|---|---|---|
| is_success | boolean | Y | Huỷ thành công/ thất bại |
| message | string | Y | Câu thông báo |
ERROR
| Params | Type | Required | Description |
|---|---|---|---|
| errors | Object | Y | Thông tin lỗi |
| errors.error_code | string | Y | Mã lỗi |
| errors.error_message | string | Y | Thông báo lỗi |