FASTRAC-DOC-API V2 (B2B API STAGING)
  1. Order API
FASTRAC-DOC-API V2 (B2B API STAGING)
  • Overview
  • Changelog V2
  • Region API
    • Province
      GET
    • City
      GET
    • District
      GET
    • Sub-District
      GET
    • Post Code
      GET
    • Search Region
      POST
  • Courier API
    • All Courier
      GET
    • Courier Service
      GET
  • Check Tariff API
    • Check Tariff (Express Delivery)
      POST
    • Check Tariff (Instant Delivery)
      POST
    • Calculate Multi Items
      POST
  • Order API
    • Order Express
      POST
    • Order Instant
      POST
    • Cancel Order
      POST
    • Tracking Order
      GET
    • Item Categories
      GET
  • Webhook API
    • Example Webhook payload
    • Set Webhook
      POST
    • Get Webhook
      GET
  • User API
    • Balance History
      POST
  • API-Tariff
  • API-Order
  1. Order API

Order Instant

POST
/order/instant
This API is used to create an instant delivery order with a selected courier using a previously obtained tariff_id from Check Tariff Instant.

Main Request Fields#

Property NameData TypeRequiredNotes
shipperObjectYesShipper (sender) details. See table below.
receiverObjectYesReceiver details. See table below.
stopObjectNoOptional stop/waypoint details. See table below.
itemObjectYesItem/package details. See table below.
courier_codeStringYesCourier service provider code (e.g., lalamove, grab, etc.). Must match one from the tariff check.
tariff_idStringYesTariff ID obtained from the Check Tariff API. Expires in 5 minutes and must be reused here to ensure consistent pricing.

shipper Object#

Property NameData TypeRequiredNotes
nameStringYesShipper’s full name.
emailStringYesShipper’s email address.
addressStringYesShipper’s full address.
phoneStringYesShipper’s phone number (must be in international format, e.g., 62812345678).

receiver Object#

Property NameData TypeRequiredNotes
nameStringYesReceiver’s full name.
emailStringYesReceiver’s email address.
addressStringYesReceiver’s full address.
phoneStringYesReceiver’s phone number (must be in international format, e.g., 62812345678).

stop Object (Optional)#

Property NameData TypeRequiredNotes
addressStringNoFull stop/waypoint address.
nameStringNoContact person’s name at stop point.
phoneStringNoContact person’s phone number (international format).

item Object#

Property NameData TypeRequiredNotes
nameStringYesItem name.
descStringYesItem description.
categoryStringYesItem category. Allowed values: Perlengkapan Mobil & Motor, Peralatan Olahraga & Hiburan, Peralatan Kesehatan & Kecantikan, Peralatan Rumah Tangga, Peralatan Elektronik & Gadget, Dokumen, Dokumen Berharga, Pecah Belah, Pakaian, Aksesoris, Makanan, Elektronik, Obat, Frozen, Lainnya.
weightNumberYesWeight of the item in grams.
widthNumberYesWidth of the item in centimeters.
heightNumberYesHeight of the item in centimeters.
lengthNumberYesLength of the item in centimeters.
valueNumberYesDeclared value of the item in IDR.

Response#

API Response Explanation#

The following is the structure of the API response for a successful B2B Instant Order creation:
{
    "success": true,
    "message": "Success",
    "data": {
        "awb": "AWB-67890",
        "expect_pickup_start": "2025-07-25 10:00:00",
        "expect_pickup_end": "2025-07-25 12:00:00",
        "tariff": 15000
    }
}

Response Properties#

success:
Type: Boolean
Description: Indicates whether the API request was successful.
message:
Type: String
Description: A message related to the API response.
data:
Type: Object
Description: Contains detailed information about the created order.
awb:
Type: String
Description: The Air Waybill number for the shipment.
expect_pickup_start:
Type: String
Description: The expected start time for pickup.
expect_pickup_end:
Type: String
Description: The expected end time for pickup.
tariff:
Type: Number
Description: The total tariff for the shipment.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/order/instant' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
    // "schedule": "2024-05-28 14:04:00", // YYYY-MM-DD HH:mm:ss (optional)
    "shipper": {
        "name": "John Doe",
        "email": "john@example.com",
        "address": "Jl. Cikini Raya",
        "phone": "62812345678"
    },
    "receiver": {
        "name": "John Doe",
        "email": "john@example.com",
        "address": "Jl. Puri Indah Raya",
        "phone": "62812345678"
    },
    "stop":{//optional
        "address":"Jl. Thamrin No.20, Jakarta",
        "name": "John Doe2",
        "phone": "62812345678"
    },
    "item": {
        "name": "Item name",
        "desc": "Item description",
        "category": "Makanan",
        "weight": 1000, //gram
        "width": 10, // cm
        "height": 10, // cm
        "length": 1, //cm
        "value": 10000
    },
    "courier_code": "lalamove",
    "tariff_id": "0198c177-5efe-74ed-bd57-0585a3fe8282"
}'
Response Response Example
201 - 200 - Works fine.
{
    "success": true,
    "message": "success",
    "data": {
        "awb": "3299216282796585922",
        "expect_pickup_start": "2025-08-19T06:01:46.000Z",
        "expect_pickup_end": "2025-08-19T06:01:46.000Z",
        "tariff": 23618
    },
    "timestamp": "2025-08-19T06:01:47.001Z"
}

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Body Params application/json

Examples

Responses

🟢201200 - Works fine.
application/json
Body

🟠400400 - Bad request. Missing required parameters or parameters are not correct
🔴500500 - Internal Server Error
Modified at 2025-08-28 10:23:33
Previous
Order Express
Next
Cancel Order
Built with