Kami akan menggunakan protokol RestAPI dengan body berupa JSON object.
Anda dapat memanfaatkan endpoint tracking jika terjadi galat ketika menerima webhook dari kami
Format selalu menggunakan YYYY-MM-DD HH:i:s
(PHP date format) contoh seperti dibawah. Silahkan sesuaikan dengan
bahasa program yang anda gunakan.
Key | Type | Value |
---|---|---|
Authorization | Bearer | Bearer {your_token} |
Parameter | Type | Description |
---|---|---|
method | String | Kami akan menulis nama method mengikuti data yang dikirimkan (plural atau singular) |
data | Mixed | Kami akan menggunakan data sesuai method |
{
"method": "return_finished_packages",
"data": [
{
"order_id": "OID-40592020",
"date": "2021-03-31 00:00:00"
},
{
"order_id": "OID-40592021",
"date": "2021-03-31 00:00:00"
}
]
}
{
"method": "processed_packages",
"data": [
{
"order_id": "X",
"awb": "Y"
}
]
}
{
"method": "shipped_packages",
"data": [
{
"order_id": "X",
"shipped_at": "2022-05-05 00:00:00"
}
]
}
{
"method": "finished_packages",
"data": [
{
"order_id": "X",
"finished_at": "2022-05-05 00:00:00"
}
]
}
{
"method": "returned_packages",
"data": [
{
"order_id": "X",
"returned_at": "2022-05-05 00:00:00"
}
]
}
{
"method": "validated_packages",
"data": [
{
"order_id": "X",
"shipping_cost": 20000
}
]
}
{
"method": "rejected_packages",
"data": [
{
"order_id": "X",
"rejected_at": "2022-05-05 00:00:00",
"reason": "ABC"
}
]
}
{
"method": "update_instant_packages",
"data": {
"order_id": "NBL2-1704870212382",
"status": "cancel",
"awb": "GK-11-3114100",
"driver": {
"name": "string",
"phone": "string",
"image": "string"
},
"shipping_price": 34000,
"live_track_url": "http://gjk.io/abcd",
"detail": {
"weight": 2000,
"width": null,
"height": null,
"length": null
},
"insurance": null,
"insurance_amount": null,
"service": "gosend",
"service_name": "instant",
"poly_line": "string of polyline",
"event_date": "2024-01-10T08:21:28.301662Z",
"cancel_date": "2024-01-10T08:18:05.000000Z",
"cancel_reason": null,
"rejected_date": null,
"rejection_note": null
}
}