| Payload | Values | Type | Required |
|---|
service | Courier code: gosend, borzo, grab_express | String | YES |
service_type | Service type from pricing response (costs[].service_type) | String | YES |
vehicle | Vehicle type: motor (bike) or mobil (car) | String | YES |
order_prefix | Your prefix for order ID generation (e.g., BDI) | String | YES |
packages | Array of package objects (see below) | Array of Object | YES |
| Payload | Values | Type | Required |
|---|
origin_name | Sender name | String | YES |
origin_phone | Sender phone (use country prefix) | String | YES |
origin_lat | Sender latitude | Float | YES |
origin_long | Sender longitude | Float | YES |
origin_address | Sender full address | String | YES |
origin_address_note | Sender address note (e.g., "Near office") | String | YES |
destination_name | Recipient name | String | YES |
destination_phone | Recipient phone (use country prefix) | String | YES |
destination_lat | Recipient latitude | Float | YES |
destination_long | Recipient longitude | Float | YES |
destination_address | Recipient full address | String | YES |
destination_address_note | Recipient address note (e.g., "Near office") | String | YES |
shipping_price | Shipping cost value (used for validation) | Integer | YES |
item | Item details (see below) | Object | YES |
| Payload | Values | Type | Required |
|---|
name | Item name | String | YES |
description | Item description | String | YES |
price | Goods value (for insurance) | Integer | YES |
weight | Package weight in grams | Integer | YES |
{
"service": "gosend",
"service_type": "instant",
"vehicle": "motor",
"order_prefix": "BDI",
"packages": [
{
"destination_name": "Okka Syahputra",
"destination_phone": "081280045616",
"destination_lat": -7.776192418965594,
"destination_long": 110.32505379554323,
"destination_address": "Godean, Sidoarum, Sleman",
"destination_address_note": "Tidak Ada Destination",
"origin_name": "Rizky Syahputra",
"origin_phone": "081280045616",
"origin_lat": -7.854584796417944,
"origin_long": 110.33115444430031,
"origin_address": "Wirobrajan, Kota Yogyakarta, Daerah Istimewa Yogyakarta, Indonesia",
"origin_address_note": "Tidak Ada Origin",
"shipping_price": 34000,
"item": {
"name": "Barang 1",
"description": "Barang 1 Description",
"price": 20000,
"weight": 1000
}
}
]
}
{
"status": true,
"text": "success",
"code": 0,
"method": null,
"result": {
"payment": {
"payment_id": "PID-1736406074",
"amount": 34000,
"status_code": "Pembayaran berhasil",
"qr_content": null,
"pay_time": null
},
"packages": [
{
"awb": "GK-11-3177494",
"order_id": "BDI-1736406073777",
"service": "gosend",
"service_type": "instant",
"status": 105,
"live_track_url": null,
"poly_line": "db}n@{`l`TyAYp@yDhAaIt@yEd@wBTwAx@{FbAaGRgBf@_CjA}H?IoMoBeEi@iBY{PaCcCg@cGcCqFqBi@jIg@a@eNeBeKwA}Dc@u@Ck`@QuMIiCKcATu@?_AUuMUmC[SCQGUgAe@a@UCiCGsAEKAANsEhe@CfIXzKGh@Qr@Ul@mPzXa@nAYjAKbAIlEKnTQx@QZW\\_@Zk@T]Fk@@c{@mB}a@mAkAO_Bm@aAMqXJ[AOEMsAAo@H_@vCqKF_@Ae@Oe@c@o@m@g@_C_B_@[wAw@w@@iUu@uLe@}]eAkBCyJ]}KS?JqFQsBO_CI}FOeGUkDWo@GqAE]Lc@XCLGrA?fE@p@AN[|Am@|AO\\c@r@_@v@_@~BYrBo@jD`B\\XDLL@PKt@@J",
"origin": {
"name": "Rizky Syahputra",
"address": "Wirobrajan, Kota Yogyakarta, Daerah Istimewa Yogyakarta, Indonesia",
"phone": "081280045616",
"lat_long": "-7.8545847964179,110.3311544443"
},
"destination": {
"name": "Okka Syahputra",
"address": "Godean, Sidoarum, Sleman",
"phone": "081280045616",
"lat_long": "-7.7761924189656,110.32505379554"
},
"driver": {
"name": null,
"phone": null,
"image": null
}
}
]
}
}
{
"status": false,
"text": "cannot process the request, distance more than 40km",
"code": 2,
"method": null,
"result": null
}