Webhook Collection

Halaman ini menjelaskan Webhook API yang digunakan untuk menerima notifikasi otomatis terkait perubahan status shipment dari Lion Parcel.

Deskripsi

Webhook Collection adalah mekanisme callback yang memungkinkan sistem Anda menerima pemberitahuan secara otomatis setiap kali terjadi perubahan status pada sebuah shipment. Begitu status diperbarui dalam sistem Lion Parcel (misalnya: shipment dibuat, pickup berhasil, transit, gagal kirim, hingga delivered), sistem kami akan mengirimkan payload ke URL webhook yang telah Anda daftarkan.

Webhook ini memastikan:

  • Pembaruan status diterima secara real-time

  • Client tidak perlu melakukan polling berkala

  • Data tracking dapat langsung disinkronkan ke sistem Anda

  • Meningkatkan akurasi monitoring dan pengalaman pelanggan

Endpoint

Name
Value

Content-Type

application/json

Authorization

Authorization:Bearer {{webhook_client_token}}

Response

{
  "stt_no": "88LP1755847228344",
  "sender": {
    "name": "TESTING HELPDESK",
    "address": "JL. TESTING PEMBUATAN RESI",
    "phone": "6285700411293"
  },
  "recipient": {
    "name": "testing helpdesk 77",
    "address": "JL> TESTING < JANGAN DI PICKUP",
    "phone": "62857004112931"
  },
  "service_type": "PACKAGE",
  "product": "REGPACK",
  "pieces": 1,
  "gross_weight": 1,
  "volume_weight": 0.17,
  "chargeable_weight": 1,
  "publish_rate": 5250,
  "origin_district_rate": 0,
  "destination_district_rate": 0,
  "forward_rate": 0,
  "shipping_surcharge_rate": 2250,
  "commodity_surcharge_rate": 0,
  "heavy_weight_surcharge_rate": 0,
  "is_cod": false,
  "is_dfod": false,
  "is_wood_packing": false,
  "wood_packing_rate": 0,
  "is_insurance": false,
  "insurance_rate": 0,
  "insurance_type": "free",
  "goods_value": 100000,
  "cod_value": 0,
  "cod_amount": 0,
  "cod_fee": 0,
  "cash_collected": 0,
  "is_cash_out": false,
  "origin": "KEDOYA UTARA, KEBON JERUK, JAKARTA BARAT (CGK)",
  "destination": "PAL MERAH, JAKARTA BARAT (CGK)",
  "current_status": "BKD",
  "status_code": "BKD",
  "external_id": "",
  "shipment_id": "C1DYETGD",
  "created_on": "2025-08-22T07:20:27Z",
  "updated_on": "2025-08-22T07:20:27Z",
  "is_shipment_done": true,
  "document_surcharge": 0,
  "location": "CGK",
  "city": "JAKARTA",
  "remarks": "PAKETMU TELAH DIPROSES OLEH AGEN LION PARCEL POS QA GENESIS.",
  "updated_by": "TESTING_AFTER_RILIS",
  "total_tariff": 7500,
  "is_promo": false,
  "discount": 0,
  "total_discount": 0,
  "publish_rate_before_discount": 5250,
  "shipping_surcharge_rate_before_discount": 2250,
  "origin_district_rate_before_discount": 0,
  "destination_district_rate_before_discount": 0,
  "forward_rate_before_discount": 0,
  "document_surcharge_before_discount": 0,
  "commodity_surcharge_before_discount": 0,
  "heavy_weight_surcharge_before_discount": 0,
  "woodpacking_rates_before_discount": 0,
  "insurance_rates_before_discount": 0,
  "total_tariff_before_discount": 7500,
  "shipment_id_reference_reverse_journey": "",
  "stt_no_reference_reverse_journey": "",
  "is_return_do": false,
  "percentage_cod_fee": 0,
  "min_cod_fee": 0,
  "agent_name": "",
  "stt_attach_files": [],
  "url_picture": "",
  "bm_tax_rate": 0,
  "ppn_tax_rate": 0,
  "pph_tax_rate": 0,
  "insurance_admin_fee": 0,
  "return_fee_basic": 0,
  "return_fee": 0,
  "shipping_cost": 7500,
  "stt_weight_attach_file_signeds": null,
  "stt_journey_type": "",
  "recipient_district_code": "DKI30",
  "attachment": null,
  "stt_booked_at": "2025-08-22T14:20:27+07:00",
  "stt_booked_by": 0,
  "stt_booked_name": "",
  "stt_booked_by_code": "",
  "stt_booked_by_type": "",
  "stt_booked_by_tier": "",
  "origin_city_id": "CGK",
  "destination_city_id": "CGK",
  "estimated_sla": {
    "range": "1 - 2 Hari",
    "start_date": "2025-08-23T00:00:00Z",
    "end_date": "2025-08-25T00:00:00Z"
  },
  "total_piece": 1,
  "commodity": {
    "code": "ABR036",
    "name": "AKSESORIS & BARANG PRIBADI",
    "is_dg": false,
    "is_quarantine": false
  },
  "source": "AGREGATOR",
  "total_dim_length": 10,
  "total_dim_width": 10,
  "total_dim_height": 10,
  "pieces_details": [
    {
      "piece_id": 124667014,
      "piece_length": 10,
      "piece_width": 10,
      "piece_height": 10,
      "piece_gross_weight": 1,
      "piece_volume_weight": 0.16666666666666666
    }
  ],
  "client_code": "CGK-2912"
}

Last updated

Was this helpful?