Skip to content

Create Parcels

Request Method

http
POST /openapi/order/create-order
FieldDescription
Content-Typeapplication/json
x-auth-token$TOKEN
x-auth-name$APP_NAME
x-auth-seed$TS

Parameter

FieldMandatoryTypeDescriptionLength
custom_tracking_numYstringCustom Tracking Num
Only alphanumeric characters including '-','_' are allowed
<= 32 characters
service_typeYstringTo be advised by your account manager.= 3 characters
service_codeYstringTo be advised by your account manager.= 3 characters
sender_nameNstringFull Name of the sender. when "service_type=1XX" Mandatory<= 64 characters
sender_phoneNstringPhone number of sender. Digits only. Support following formats:

Country calling code + phone, e.g. 8613012345678, 6586020000
Phone (Singapore numbers by default), e.g. 86020000.

Please remove symbols like "+" in the phone number. For list of country calling code, see: List of country calling code Wikipedia.
when "service_type=1XX" Mandatory
<= 24 characters
sender_emailNstringEmail address of sender Email address format: RFC 5321 Section-4.5.3.1.1.<= 320 characters
sender_addressNstringAddress of sender. UTF-8 charset supported.
when "service_type=1XX" Mandatory
<= 512 characters
sender_cityNstringCity name (include province/state) of sender.<= 64 characters
sender_countryYstringAll uppercase.
For country code, we propose the format of ISO 3166-1 alpha 2 (two-letter). See ISO 3166-1 Alpha-2 Country Codes for more information.
= 2 characters
sender_postal_codeNstringPostal code of sender.
when "service_type=1XX and sender_country!=HK" Mandatory
5-20 characters
recipient_nameYstringName of the recipient
recipient_phoneYstringPhone number of sender. Digits only. Support following formats:

Country calling code + phone, e.g. 8613012345678, 6586020000
Phone (Singapore numbers by default), e.g. 86020000.

Please remove symbols like "+" in the phone number. For list of country calling code, see: List of country calling code Wikipedia.
<= 24 characters
recipient_emailNstringEmail address of sender Email address format: RFC 5321 Section-4.5.3.1.1.<= 320 characters
recipient_addressYstringAddress of recipient. UTF-8 charset supported.<= 512 characters
recipient_stateNstringState of recipient. when "recipient_country=US/JP" Mandatory<= 60 characters
recipient_cityNstringCity name (include province/state) of recipient. when "recipient_country=JP" Mandatory<= 64 characters
recipient_countryYstringAll uppercase.
For country code, we propose the format of ISO 3166-1 alpha 2 (two-letter). See ISO 3166-1 Alpha-2 Country Codes for more information.
= 2 characters
postal_codeYstringIf not 6-digits, will auto prefix leading 0. For instance, "38696" will be converted to "038696".5-7 characters
client_sizeYstringFormat: Package size: "length, width, height" (comma separated, whitespace not mandatory). System will automatically adjust the order (from greatest to smallest). Unit: centimeter. Max value of l,w,h: 999 cm.<= 30 characters
client_weightYstringPackage weight. Unit: kilogram. Numeric value with 2 decimal places.[ 0 .. 9999 ]
declared_value_currencyYstringCurrency code of declared value. Check Currency / Wikipedia for more information.<= 3 characters
declared_valueYstringDeclared value of the parcel. Numeric value with 2 decimal places.[ 0 .. 9999.99 ]
instructionNstringInstructions from clients.<= 1024 characters
cash_currencyNstringNOTE: Currently, only "SGD" supported. If not specified, we will apply "SGD" to the datapoints.
Currency code of cash on delivery value. Check Currency / Wikipedia for more information.
<= 3 characters
cashNstringCurrency: Singpore dollar. Numeric value with 2 decimal places. Values like "12" will be converted to "12.00".[ 0 .. 9999.99 ]
supplier_nameNstringName of the supplier. This field is mandatory when the recipient_country is "SG" (Singapore). For all other countries, this field is optional unless otherwise specified.<= 64 characters
supplier_gstnNstringGST registration number (GSTN) of the Overseas Supplier registered under Overseas Vendor Registration (OVR) regime. This field is mandatory when the recipient_country is "SG" (Singapore). For all other countries, this field is optional unless otherwise specified.<= 64 characters
total_gst_amountNstringTotal amount of Goods and Services Tax (GST). This field is mandatory when recipientCountry is "SG" (Singapore). For all other countries, this field is optional unless specified otherwise.[ 0 .. 9999.99 ]
gst_currencyNstringCurrency in which the GST amount is reported. This field is mandatory when recipientCountry is "SG" (Singapore). For other countries, this field is optional unless otherwise specified.<= 3 characters
gst_paidNstringIndicates whether GST has been paid for the transaction. This field is mandatory when recipientCountry is "SG" (Singapore).

"Y" – GST has been paid
"N" – GST is not applicable
= 1 character
itemYArray of objectsPackage product information

item

FieldMandatoryTypeDescriptionLength
descriptionYstringTrade name
unitPriceYstringunit-price
quantityYstringquantity
countryOfOriginYstringcountry of origin
itemHSCodeYstringHS Tariff Code of the Line Item.
weightYstringweight
currencyYstringcurrency
totalValueYstringtotal value
productURLNstringproduct url

Request

json
{
  "custom_tracking_num": "C240719112805334a634B",
  "service_type": "001",
  "service_code": "000",
  "sender_name": "Mrs. Dawn Lowe",
  "sender_phone": "17129045947",
  "sender_email": "kiara93@hotmail.com",
  "sender_address": "42050 General Road\nOlehaven, IN 59521-5312",
  "sender_city": "Schowalterland",
  "sender_country": "MG",
  "sender_postal_code": "25280",
  "recipient_name": "Estrella Mohr",
  "recipient_phone": "13184732563",
  "recipient_email": "friesen.gloria@okon.com",
  "recipient_address": "97506 Sammy Garden Suite 681\nPort Louiefort, DC 32153-8863",
  "recipient_city": "New Adan",
  "recipient_country": "DO",
  "postal_code": "298469",
  "client_size": "7.72,3.5,17.66",
  "client_weight": "2.99",
  "declared_value_currency": "MGA",
  "declared_value": "913.11",
  "instruction": "I believe.' 'Boots and shoes.",
  "cash_currency": "MGA",
  "cash": "716.64",
  "item": [
    {
      "description": "Et qui sunt ut est.",
      "unitPrice": "205.95",
      "quantity": "1",
      "countryOfOrigin": "MG",
      "itemHSCode": "1818457376",
      "weight": "25.8",
      "currency": "MGA",
      "totalValue": "205.95",
      "productURL": "https:\/\/www.grimes.biz\/repellat-ea-odit-veritatis-non-veniam"
    },
    {
      "description": "Fugit et ipsa.",
      "unitPrice": "579.98",
      "quantity": "6",
      "countryOfOrigin": "MG",
      "itemHSCode": "1818630924",
      "weight": "3.18",
      "currency": "MGA",
      "totalValue": "3479.88",
      "productURL": ""
    },
    {
      "description": "Quibusdam sit sint.",
      "unitPrice": "286.06",
      "quantity": "9",
      "countryOfOrigin": "MG",
      "itemHSCode": "370303",
      "weight": "44.14",
      "currency": "MGA",
      "totalValue": "2574.54",
      "productURL": ""
    },
    {
      "description": "Qui voluptas quas.",
      "unitPrice": "840.42",
      "quantity": "7",
      "countryOfOrigin": "MG",
      "itemHSCode": "48996115",
      "weight": "48.36",
      "currency": "MGA",
      "totalValue": "5882.94",
      "productURL": ""
    }
  ]
}

Response(success)

json
{
  "code": 0,
  "message": "success",
  "data": {
    "custom_tracking_num": "C240719112805334a634B",
    "wmg_tracking_num": "WGC000000000233",
    "date_time": "2024-07-19T13:34:26+08:00",
    "status": "",
    "error": []
  }
}

Response(error)

json
{
  "code": 1,
  "message": "Client Size invalid",
  "data": []
}