Consultation Cancellation ACK
When buyer has requested cancellation, partner can approve/reject the cancellation
Path
post
{host}/v1/epharmacy/partner/consultation/cancellation/ack
Request Header
Parameter | Type | Description | Example | Required |
---|---|---|---|---|
X-Consultation-Partner | string | Consultation Partner Identifier | Halodoc | true |
Authorization | string | Access Token with Bearer. Refers to Authentication Guide | Bearer LSPr7x7sRGaewzwZE6IcuA | true |
Request Parameters
Name | Type | Required | Example | Description |
---|---|---|---|---|
Integer | Yes | 123 | Tokopedia consultation identifier | |
Boolean | Yes | true | Approved or rejected | |
String | No | buyer meminta refund atas kemauan sendiri | Fill if cancellation has rejected, can empty if approved |
Example Request
curl --location 'https://fs.tokopedia.com/v1/epharmacy/partner/consultation/cancellation/ack' \
--header 'X-Consultation-Partner: dkonsul' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InRrcGQ6ZDgyZmJiOTgtN2EwYS00NDJmLTkxYjctYmRmMjE5OGFkODRjIiwidHlwIjoiSldUIn0.eyJhdWQiOlsiOWQ0NzVhNzcyMzM0NDQ1YzhlMGMwYzdlNjIxZWM2NDgiXSwiYXpwIjoiZGtvbnN1bCIsImV4cCI6MTcxMTE3ODEwNiwiaWF0IjoxNzExMDkxNzA2LCJpc3MiOiJodHRwczovL3Rva29wZWRpYS5jb20iLCJqdGkiOiI0Nzk4YWFiMi01Yjg2LTRhMTAtYTZlOS05NWM3YTBmM2FjMzkiLCJzY29wZSI6ImVtYWlsIHBob25lIGZ1bGxfbmFtZSIsInN1YiI6IjlkNDc1YTc3MjMzNDQ0NWM4ZTBjMGM3ZTYyMWVjNjQ4IiwidHlwZSI6IkJlYXJlciJ9' \
--data '{
"tokopedia_consultation_id": 814,
"is_approved": false,
"reject_reason": "buyer meminta refund atas kemauan sendiri"
}'
Success Response Example
{
"header": {
"server_process_time": "18.059909ms",
"code": 200
},
"data": {
"status": "OK",
"error": ""
}
}
Error Response Example
{
"header": {
"server_process_time": "1.840779ms",
"code": 400
},
"data": null,
"error": "ERROR_ALREADY_UPDATED"
}