Create delivery package

POST /v1/packages
{
  "customer_name": "Sopheak",
  "phone_number": "016955505",
  "address_name": "Wat Phnom Penh",
  "lat": 11.5760445,
  "lng": 104.9208625,
  "instruction": "Drop at the door. No need to call"
}

JSON Response

It will return the package_id.

{
  "data": {
    "package_id": 635431
  }
}

Params

FieldsDescription
valueValue of the package in USD
cashCash on delivery. The cash that you want us to collect
latLatitude of your customer. It does not need to be exact. Our delivery team will make another call customer to verify if neccessary
lngLongitude of your customer. It does not need to be exact. Our delivery team will make another call customer to verify if neccessary
address_nameCustomer address
phone_numberCustomer phone number. It is number that our team contact to when deliver
customer_nameCustomer name
appointed_atAppointed time with customer. We try to delivery within this time but it is not guarantee. For example: "2021-01-01 15:00:00"
instructionAdditional instruction that help us delivery or additional request
xWidth of package in cm
yHeight of package in cm
zLength of package in cm
weightWeight in kg
sender.lat(Optional) Specified the sender latitude
sender.lng(Optional) Specified the sender longitude
sender.address_name(Optional) Sender address name
sender.phone_number(Optional) Sender phone number
sender.name(Optional) Sender name

Create package for someone else

POST /v1/packages
{
  "customer_name": "Sopheak",
  "phone_number": "016955505",
  "address_name": "Wat Phnom Penh",
  "lat": 11.5760445,
  "lng": 104.9208625,
  "instruction": "Drop at the door. No need to call",
  "sender": {
     "lat": "11.5564",
     "lng": "104.9282",
     "address_name": "Wat Phnom",
     "phone_number": "016000001",
     "name": "Random Online Shop"
   }
}

Coming Soon

Estimate Delivery Price

Sometimes, you want to know the fee in advance to display to your customer. You can use the following endpoint. You can use the same parameters as you use for creating the package to get the estimate price.

POST /v1/packages/estimate_price
{
  "customer_name": "Sopheak",
  "phone_number": "016955505",
  "address_name": "Wat Phnom Penh",
  "lat": 11.5760445,
  "lng": 104.9208625,
  "instruction": "Drop at the door. No need to call"
}

JSON Response

{
  "data": {
    "price": 0.5
  }
}