Property Name | Data Type | Required | Notes |
---|---|---|---|
courier_code | String | Yes | The unique code for the courier service (e.g., "paxel"). |
code_service | String | Yes | The specific service code offered by the courier (e.g., "PAXEL BIG"). |
cod | String | Yes | Indicates if Cash On Delivery (COD) is requested. Allowed values: "0" (No), "1" (Yes). |
cod_amount | Number | No | The amount for the COD service. Required if cod is "1". |
insurance | String | Yes | Indicates whether insurance is requested. Allowed values: "0" (No), "1" (Yes). |
pickup | String | Yes | Indicates if pickup service is required. Allowed values: "0" (No), "1" (Yes). |
pickup_start | String | No | The start time for the pickup service, formatted as "YYYY-MM-DD HH:mm:ss". Required if pickup is "1". |
pickup_end | String | No | The end time for the pickup service, formatted as "YYYY-MM-DD HH:mm:ss". Required if pickup is "1". |
shipper | Object | Yes | Information about the shipper (sender). |
shipper.name | String | Yes | The name of the shipper. |
shipper.phone | String | Yes | The phone number of the shipper. |
shipper.address | String | Yes | The address of the shipper. |
shipper.region_id | Number | Yes | The region ID of the shipper. |
receiver | Object | Yes | Information about the receiver (recipient). |
receiver.name | String | Yes | The name of the receiver. |
receiver.phone | String | Yes | The phone number of the receiver. |
receiver.address | String | Yes | The address of the receiver. |
receiver.region_id | Number | Yes | The region ID of the receiver. |
item | Object | Yes | Details about the item being shipped. |
item.name | String | Yes | The name of the item. |
item.desc | String | Yes | A description of the item. |
item.category | String | Yes | The category of the item. |
item.value | Number | Yes | The value of the item. |
item.weight | Number | Yes | The weight of the item in grams. Minimum weight: 1000g. Maximum weight depends on courier service:
|
item.length | Number | Yes | The length of the item in cm. |
item.width | Number | Yes | The width of the item in cm. |
item.height | Number | Yes | The height of the item in cm. |
{
"success": true,
"message": "Success",
"data": {
"booking_id": "PESANAN-12345",
"awb": "AWB-67890",
"expect_pickup_start": "2025-07-25 10:00:00",
"expect_pickup_end": "2025-07-25 12:00:00",
"tariff": 15000,
"insurance": true,
"insurance_detail": {
"insurance_percent": 0.3,
"insurance_minimum": 45,
"insurance": 45
},
"cod": true,
"cod_detail": {
"item_value": 15000,
"cod_fee_percent": 3,
"cod_fee": 450,
"cod_custom": 0,
"cod_billed": 15450,
"cod_disbursement": 14550
}
}
}
curl --location --request POST '/order/express' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"code_service": "Standard",
"courier_code": "Ninja",
"insurance": "1",
"cod": "1",
"cod_amount": 5000, //custom cod amount
"pickup": "1",
"pickup_start": "2025-08-30 08:20:00",
"pickup_end": "2025-08-30 21:20:00",
"shipper": {
"region_id": "3571020010",
"name": "Asep Widiyotomo",
"phone": "6282211556273",
"email": "delapov790@ancewa.com",
"address": "Jl benda barat 10",
"latitude": "0",
"longitude": "0"
},
"receiver": {
"region_id": "3171020004",
"name": "Dena caknan",
"phone": "6282211556273",
"email": "asepsoo@gmail.com",
"address": "Jl benda barat 10",
"latitude": "0",
"longitude": "0"
},
"item": {
"name": "Buku",
"desc": "Buku pelajaran",
"category": "Dokumen",
"qty": 1,
"value": 100000, // IDR
"weight": 8000, // gram
"width": 50, // cm
"height": 30, //cm
"length": 30 //cm
}
}'
{
"success": true,
"message": "Order successfully created",
"data": {
"booking_id": "FSTR.CO-20241226DNZH0",
"awb": "FSTRA1321700196758740992",
"expect_pickup_start": "2024-12-27 09:00:00",
"expect_pickup_end": "2024-12-27 12:00:00",
"tariff": 11000,
"insurance": true,
"insurance_detail": {
"insurance_percent": 0.3,
"insurance_minimum": 2500,
"insurance": 2500
},
"cod": true,
"cod_detail": {
"item_value": 100000,
"cod_fee_percent": 3,
"cod_fee": 5000,
"cod_custom": 0,
"cod_billed": 118500,
"cod_disbursement": 100000
}
}
}