Webhook Call

Kami akan menggunakan protokol RestAPI dengan body berupa JSON object.

*Segala bentuk kegagalan di sistem anda diluar tanggungjawab kami.

Format selalu menggunakan YYYY-MM-DD HH:i:s (PHP date format) contoh seperti dibawah. Silahkan sesuaikan dengan bahasa program yang anda gunakan.

KeyTypeValue
AuthorizationBearerBearer {your_token}

Parameter

ParameterTypeDescription
methodStringKami akan menulis nama method mengikuti data yang dikirimkan (plural atau singular)
dataMixedKami akan menggunakan data sesuai method

Available Method

MethodNounsDescription
processed_packagesPluralKonfirmasi pemrosesan nomor AWB
shipped_packagesPluralKonfirmasi paket yang telah dibawa pihak expedisi
finished_packagesPluralKonfirmasi paket yang telah diterima oleh penerima
returned_packagesPluralPaket yang telah mendapat informasi pengembalian dari expedisi
return_finished_packagesPluralList paket yang telah sampai di destinasi pengembalian

Package Correction Code

CodeDescription
1If the actual postage value is greater than the postage when the package is created
2Nilai ongkos kirim aktual lebih kecil dari nilai yang ditagihkan di awal

Payload Sample

Payload Sample (Return finished)

{
  "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"
    }
  ]
} 

Payload Sample (Processed packages)

{
  "method": "processed_packages",
  "data": [
    {
      "order_id": "X",
      "awb": "Y"
    }
  ]
}

Payload Sample (Shipped packages)

{
  "method": "shipped_packages",
  "data": [
    {
      "order_id": "X",
      "shipped_at": "2022-05-05 00:00:00"
    }
  ]
}

Payload Sample (Finished packages)

{
  "method": "finished_packages",
  "data": [
    {
      "order_id": "X",
      "finished_at": "2022-05-05 00:00:00"
    }
  ]
}

Payload Sample (Returned packages)

{
  "method": "returned_packages",
  "data": [
    {
      "order_id": "X",
      "returned_at": "2022-05-05 00:00:00"
    }
  ]
}

Payload Sample (Validated packages)

{
  "method": "returned_packages",
  "data": [
    {
      "order_id": "X",
      "shipping_cost": 20000
    }
  ]
}

Payload Sample (Rejected packages)

{
  "method": "rejected_packages",
  "data": [
    {
      "order_id": "X",
      "rejected_at": "2022-05-05 00:00:00",
      "reason": "ABC"
    }
  ]
}
Sebelumnya
Status Code
Berikutnya
Set Callback URL
© 2022 - 2023 PT Selalu Siap Solusi, All Right Reserved