Skip to main content

Consultation Order Notification Webhook

  • Notification for the new consultation order
  • Notification for the changes in consultation statuses

Pathโ€‹

post

{partner-host}/v1/partner/send-consultation-order-data

Request Headerโ€‹

ParameterTypeDescription
x-key
string
public key
x-authorization
string
access token

Request Parametersโ€‹

NameTypeExampleDescription
data
Object

Order Status Codeโ€‹

Order StatusDescription
NEW_ORDER_VERIFIED
Consultation has been paid
CONSULTATION_START
Consultation has started
FINISH_UNREDEEMED
Doctor has approved the consultation
FINISH_REDEEMED
Prescription has redemeed
FINISH_NO_PRESCRIPTION
Doctor has rejected the consultation
FINISH_EXPIRED
Consultation just expired without started

Example Requestโ€‹

{
"data": {
"toko_consultation_id": 12345,
"order_id": 514466482116558851,
"payment_id": 12345,
"payment_method": "Gopay",
"payment_amount": 10000,
"payment_date": "2021-08-26T09:41:22.235377511+07:00",
"invoice_number": "PRC/20191223/XIX/XII/514466482116558851",
"rate_tokopedia_percentage": 10,
"tax_percentage": 5,
"order_status": "NEW_ORDER_VERIFIED"
}
}

Success Response Exampleโ€‹

{
"header": {
"server_process_time": "399.238721ms",
"code": 200
},
"status": "ok",
"error" : ""
}

Error Response Exampleโ€‹

{
"header": {
"server_process_time": "718.792ยตs",
"code": 400
},
"status": null,
"error": "error message"
}

Have a feedback?