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 Express

POST
/order/express

Request#

Parameters#

Property NameData TypeRequiredNotes
courier_codeStringYesThe unique code for the courier service (e.g., "paxel").
code_serviceStringYesThe specific service code offered by the courier (e.g., "PAXEL BIG").
codStringYesIndicates if Cash On Delivery (COD) is requested. Allowed values: "0" (No), "1" (Yes).
cod_amountNumberNoThe amount for the COD service. Required if cod is "1".
insuranceStringYesIndicates whether insurance is requested. Allowed values: "0" (No), "1" (Yes).
pickupStringYesIndicates if pickup service is required. Allowed values: "0" (No), "1" (Yes).
pickup_startStringNoThe start time for the pickup service, formatted as "YYYY-MM-DD HH:mm:ss". Required if pickup is "1".
pickup_endStringNoThe end time for the pickup service, formatted as "YYYY-MM-DD HH:mm:ss". Required if pickup is "1".
shipperObjectYesInformation about the shipper (sender).
shipper.nameStringYesThe name of the shipper.
shipper.phoneStringYesThe phone number of the shipper.
shipper.addressStringYesThe address of the shipper.
shipper.region_idNumberYesThe region ID of the shipper.
receiverObjectYesInformation about the receiver (recipient).
receiver.nameStringYesThe name of the receiver.
receiver.phoneStringYesThe phone number of the receiver.
receiver.addressStringYesThe address of the receiver.
receiver.region_idNumberYesThe region ID of the receiver.
itemObjectYesDetails about the item being shipped.
item.nameStringYesThe name of the item.
item.descStringYesA description of the item.
item.categoryStringYesThe category of the item.
item.valueNumberYesThe value of the item.
item.weightNumberYesThe weight of the item in grams.

Minimum weight: 1000g.
Maximum weight depends on courier service:
  • NINJA: 50,000g
  • ANTERAJA: 50,000g
  • JNT: 25,000g
  • IDX: 300,000g
  • PAXEL: 5,000g
  • PAXEL BIG: 25,000g
item.lengthNumberYesThe length of the item in cm.
item.widthNumberYesThe width of the item in cm.
item.heightNumberYesThe height of the item in cm.

Explanation#

courier_code: The unique identifier for the selected courier.
code_service: The specific service offered by the courier.
cod: A flag to indicate if the order should be handled as Cash On Delivery.
cod_amount: The value to be collected upon delivery if COD is enabled.
insurance: A flag to indicate if the shipment should be insured.
pickup: A flag to indicate if a pickup is required.
pickup_start: The starting time for the pickup window.
pickup_end: The ending time for the pickup window.
shipper: An object containing all the necessary details about the sender.
receiver: An object containing all the necessary details about the recipient.
item: An object containing all the necessary details about the shipment item.

Response#

API Response Explanation#

The following is the structure of the API response for a successful B2B Express Order creation:
{
    "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
        }
    }
}

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.
booking_id:
Type: String
Description: The unique identifier for the booking.
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.
insurance:
Type: Boolean
Description: Indicates if the shipment is insured.
insurance_detail:
Type: Object
Description: Contains details about the insurance.
cod:
Type: Boolean
Description: Indicates if the shipment is Cash On Delivery.
cod_detail:
Type: Object
Description: Contains details about the COD.
Request Request Example
Shell
JavaScript
Java
Swift
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
    }
}'
Response Response Example
200 - 200 - Works fine.
{
    "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
        }
    }
}

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

🟢200200 - Works fine.
application/json
Body

🟠400400 - Bad request. Missing required parameters or parameters are not correct
🔴500500 - Internal Server Error
🟢201cod&codamount0
Modified at 2025-08-28 10:24:04
Previous
Order API
Next
Order Instant
Built with