RPX API Documentation

List of Methods for RPX Account Customers

NOTE : All Method Names Are CASE SENSITIVE

getRevenue
Description: Get Revenue from an Account for a Periodic Time Input parameters
Field NameTypeData LengthDescription
userString20API Username
passwordString20API Password
account_numberString9Your Account number
trackdate_fromString10trackdate from (YYYY-MM-DD)
trackdate_toString10trackdate to (YYYY-MM-DD)
Example XML return.


<RPX>
    <DATA>
	<AWB>705380098092</AWB>
	<SERVICE_TYPE_ID>ECP</SERVICE_TYPE_ID>
	<ACCOUNT_NUMBER>123456789</ACCOUNT_NUMBER>
	<CUSTOMER_NAME>PT ABC</CUSTOMER_NAME>
	<POSTAL_CODE>12870</POSTAL_CODE>
	<CONSIGNEE_NAME>khairanita renny</CONSIGNEE_NAME>
	<CONSIGNEE_PHONE>087856624437</CONSIGNEE_PHONE>
	<CONSIGNEE_COMPANY>khairanita renny</CONSIGNEE_COMPANY>
	<CONSIGNEE_ADDRESS1>Mulyorejo utara gang</CONSIGNEE_ADDRESS1>
	<CONSIGNEE_ADDRESS2>Mulyorejo</CONSIGNEE_ADDRESS2>
	<CONSIGNEE_CITY>Kota Surabaya</CONSIGNEE_CITY>
	<CONSIGNEE_CITY_ID></CONSIGNEE_CITY_ID>
	<CONSIGNEE_ZIP>60000</CONSIGNEE_ZIP>
	<REFERENCE_DESC>COD/300987232</REFERENCE_DESC>
	<TRACKING_STATUS_id>POD</TRACKING_STATUS_ID>
	<TRACKING_DATE>2013-03-01</TRACKING_DATE>
	<TRACKING_TIME>13:25:00</TRACKING_TIME>
	<TRACKING_COMMENT></TRACKING_COMMENT>
	<TOT_WEIGHT>1.00</TOT_WEIGHT>
	<TOT_PACKAGE>1</TOT_PACKAGE>
	<TOTAL_INVOICE>14000.00</TOTAL_INVOICE>
    </DATA>
    <DATA>
	<AWB>705380098092</AWB>
	<SERVICE_TYPE_ID>ECP</SERVICE_TYPE_ID>
	<ACCOUNT_NUMBER>123456789</ACCOUNT_NUMBER>
	<CUSTOMER_NAME>PT ABC</CUSTOMER_NAME>
	<POSTAL_CODE>12870</POSTAL_CODE>
	<CONSIGNEE_NAME>khairanita renny</CONSIGNEE_NAME>
	<CONSIGNEE_PHONE>087856624437</CONSIGNEE_PHONE>
	<CONSIGNEE_COMPANY>khairanita renny</CONSIGNEE_COMPANY>
	<CONSIGNEE_ADDRESS1>Mulyorejo utara gang</CONSIGNEE_ADDRESS1>
	<CONSIGNEE_ADDRESS2>Mulyorejo</CONSIGNEE_ADDRESS2>
	<CONSIGNEE_CITY>Kota Surabaya</CONSIGNEE_CITY>
	<CONSIGNEE_CITY_ID></CONSIGNEE_CITY_ID>
	<CONSIGNEE_ZIP>60000</CONSIGNEE_ZIP>
	<REFERENCE_DESC>COD/300987232</REFERENCE_DESC>
	<TRACKING_STATUS_id>POD</TRACKING_STATUS_ID>
	<TRACKING_DATE>2013-03-01</TRACKING_DATE>
	<TRACKING_TIME>13:25:00</TRACKING_TIME>
	<TRACKING_COMMENT></TRACKING_COMMENT>
	<TOT_WEIGHT>1.00</TOT_WEIGHT>
	<TOT_PACKAGE>1</TOT_PACKAGE>
	<TOTAL_INVOICE>14000.00</TOTAL_INVOICE>
    </DATA>
</RPX>

Output fields
Field NameTypeData LengthDescription
AWBString12AWB number
SERVICE_TYPE_IDString3Service type
ACCOUNT_NUMBERString9Your RPX Account number
CUSTOMER_NAMEString255Customer name
POSTAL_CODEString6Postal code
CONSIGNEE_NAMEString255Consignee name
CONSIGNEE_PHONEString50Consignee telephone number
CONSIGNEE_COMPANYString50Consignee company
CONSIGNEE_ADDRESS1String255Consignee address 1
CONSIGNEE_ADDRESS2String255Consignee address 2
CONSIGNEE_CITYString50Consignee city
CONSIGNEE_CITY_IDString50Consignee city ID
CONSIGNEE_ZIPString10Consignee postal code
REFERENCE_DESCString50Reference/Order description
TRACKING_STATUS_IDString3Tracking ID
TRACKING_DATEString10Tracking date (YYYY-MM-DD)
TRACKING_TIMEString8Tracking time (HH:mm:ss)
TRACKING_COMMENTString100Tracking comment
TOT_WEIGHTString50Total weight
TOT_PACKAGEString50Total package
TOTAL_INVOICEString50Total invoice
getPOD
Description: Get POD Report for an Account within a Periodic Time Input parameters
Field NameTypeData LengthDescription
userString20API Username
passwordString20API Password
account_numberString9Your RPX Account number
yearString10Periodic year (YYYY) -> OPTIONAL
Example XML return.

<RPX>
    <DATA>
	<TAHUN>2013</TAHUN>
	<BULAN>1</BULAN>
	<TOTAL_AWB>4541</TOTAL_AWB>
	<TOTAL_POD>4395</TOTAL_POD>
	<TOTAL_ONPROGRESS>146</TOTAL_ONPROGRESS>
    </DATA>
    <DATA>
	<TAHUN>2013</TAHUN>
	<BULAN>2</BULAN>
	<TOTAL_AWB>5465</TOTAL_AWB>
	<TOTAL_POD>5212</TOTAL_POD>
	<TOTAL_ONPROGRESS>253</TOTAL_ONPROGRESS>
    </DATA>
</RPX>
Output fields
Field NameTypeData LengthDescription
TAHUNString4Periodic Year
BULANString2Periodic Month
TOTAL_AWBString10Total AWB
TOTAL_PODString10Total POD
TOTAL_ONPROGRESSString10Total On Progress
getCustomerRates
Description: Get RPX Domestic Rates for a Customer Account Number from Origin to Destination with a Specific Weight and Discount with/without Service Type Input parameters
Field NameTypeData LengthDescription
userString20API Username
passwordString20API Password
account_numberString9Your RPX Account number
service_typeString93 chars RPX Service Type. Full list of RPX Service Type is available in API "getService" (OPTIONAL)
originString33 Char Origin from service "getOrigin"
destinationString33 Char Destination from service "getDestination"
weightNumeric33 Digit Weight Package (in Kg)
discNumeric33 Digit Discount (between 0 - 100\in percent) (OPTIONAL)
formatString5XML for output XML or JSON for output JSON
Example XML return. WITHOUT SERVICE TYPE

<RPX>
<TITLE>Rates for Account No. 123456789 From Jakarta (JAK) TO Denpasar (DPS), Weight 1 Kg, Discount 0 %</TITLE>
<DATA>
	<SERVICE>Next Day Package (NDP)</SERVICE>
	<PRICE>21462.5</PRICE>
	<ETD>2 day(s)</ETD>
</DATA>
<DATA>
	<SERVICE>MidDay Package (MDP)</SERVICE>
	<PRICE>31916</PRICE>
	<ETD>1 day(s)</ETD>
</DATA>
<DATA>
	<SERVICE>SameDay Package (SDP)</SERVICE>
	<PRICE>185840</PRICE>
	<ETD>0 day(s)</ETD>
</DATA>
</RPX>
WITH SERVICE TYPE (example : ERP)

<RPX>
<TITLE>Rates for Account No. 123456789 From Jakarta (JAK) TO Denpasar (DPS), Weight 1 Kg, Discount 0 %</TITLE>
<DATA>
	<SERVICE>Ecommerce Package (ERP)</SERVICE>
	<PRICE>18028.5</PRICE>
	<ETD>2 day(s)</ETD>
</DATA>
</RPX>
Output fields
Field NameTypeData LengthDescription
TITLEString100Title
DATA - SERVICEString100Service Type
DATA - PRICEString20Price of Service Type depend on weight & disc
DATA - ETDString1Estimated Delivery Day
sendShipmentData
Description: Sending the Data Manifest of the Package that will be delivered by RPX. For using method sendShipmentData, you must have an API USER ID and PASSWORD. Also, you must have RPX Account Number to be used as SHIPPER_ACCOUNT in API array parameter. If you want to test with dummy data in RPX staging development database, please use 'demo' (without quotes) as user & password and 234098705 as shipper_account. You can also request a staging user id to be used during your development. Please contact your RPX Sales if you want to have this user id. Input parameters
Field NameTypeData LengthDescription
userString20API Username
passwordString20API Password
awbString20Airwaybill Number (AWB). AWB is a Numeric RPX Tracking Number. One RPX AWB must be assigned only to one order delivery package. This AWB must also be printed as BARCODE on Customer's Shipping Label. There are 3 ways of getting RPX AWB : 1. Customers requests a series (batch) of AWBs to RPX. RPX will then gave the AWB batch to customer. Customers will manage the usage of these AWBs in their internal system. One AWB can only be used once and can not be assigned to another package. Customers may request another series of AWBs in case they are running out of AWBs. 2. RPX reserved the AWBs under your RPX account in RPX system. One AWB will be given as part of the successfull response whenever customer send Sendshipmentdata (by leaving the awb parameter in blank). 3. By using another API\GetNewAwb. API GetNEwAwb can be used to get an RPX AWB which already reserved under your RPX account. After you get an AWB then you can send Sendshipmentdata with that AWB included in sendshipmentdata parameter. Check more information about GetNewAwb.
package_idString20Your internal reference id of your Package Delivery Number (if any). If you dont need to declare it\just fill in with the same information as you stated in order_number parameter. (OPTIONAL)
order_typeString3Related to who claim the Order. State as OS\if the package collected at your Warehouse. State as MP\if the package collected at your Market Place's Merchants or Partners address. (OS = Online Store\MP = Market Place\)
order_numberString60The Order / Package Number. The unique id of your package which must be print out as Barcode in your Shipping Label. This Order Number will be pairing one on one with AWB (RPX Tracking Number).
service_type_idString3RPX Delivery Service type applied to this Package. You can get a list of RPX Service Type by using API getService.
shipper_accountString9Shipper RPX account number to be used as Billed Account of this Package.
shipper_nameString40Shipper name. Could be Personal (Market Place Merchants) or Corporate ecommerce name.
shipper_companyString40Shipper company name. If you need to mentioned Company name of the shipper\please stated here. If not\put the same information as shipper name.
shipper_address1String255Shipper address1 (Street Name\Residence/Building Name\Residence/Building number).
shipper_address2String255Shipper address2 (additional line for Street Name\Residence/Building Name\Residence/Building number).
shipper_kelurahanString50Shipper Kelurahan (Sub District)
shipper_kecamatanString50Shipper Kecamatan (District)
shipper_cityString30Shipper city
shipper_stateString30Shipper state (Province)
shipper_zipString10Shipper zip code
shipper_phoneString20Shipper phone number
identity_noString50To identify COD (Cash On Delivery) Shipment. Stated as COD\ in case your package is a COD Shipment. Leave in blank for non COD Shipment.
shipper_mobile_noString30Shipper mobile number
shipper_emailString50Shipper email address (OPTIONAL)
consignee_accountString40Consignee account number (if any) (OPTIONAL)
consignee_nameString40Consignee name
consignee_companyString40Consignee company name. If you need to mentioned Company name of the consignee\please stated here. If not\put the same information as consignee name. (OPTIONAL)
consignee_address1String255Consignee address1. (Street Name\Residence/Building Name\Residence/Building number).
consignee_address2String255Consignee address2. (Street Name\Residence/Building Name\Residence/Building number).
consignee_kelurahanString50Consignee Kelurahan (Sub District)
consignee_kecamatanString50Consignee Kecamatan (District)
consignee_cityString30Consignee city
consignee_stateString30Consignee state (Province)
consignee_zipString10Consignee zip code
consignee_phoneString20Consignee phone number
consignee_mobile_noString30Consignee mobile number
consignee_emailString50Consignee email address (OPTIONAL)
desc_of_goodsString255Description of goods/package
tot_packageString4Total Quantities of Package's Box to be Delivered under one AWB Tracking Number.
actual_weightString10Actual Weight of the Package (in Kg) by your scale. However\Final Chargeable weight will be based on final RPX weighing. (OPTIONAL)
tot_weightString10Total Chargeable Weight (in Kg) of the Package by your scale. The bigger number between actual_weight and tot_domensi will be taken as Chargeable Weight. However\Final Chargeable weight will be based on final RPX weighing. RPX Weight is always in a full (non fractional) scale. Round Up method is applied. e.q : 1.3 will be saved as 2.
tot_declare_valueString10Total Paid Value of the Package (in case of COD Shipment\it will be considered as Amount of Money to be collected from Consignee by RPX Delivery Courier). Please stated as full numerical without dot or comma separator. e.q : 175000 for one hundred seventy five thousand)
tot_dimensiString10Total Dimension scale of the Package. RPX standard formula is (Longest X Widest X Highest)cm/6000. Just leave it blank if you are not sure. (OPTIONAL)
flag_mp_spec_handlingString1Flag request Special Handling (Y/N) (OPTIONAL)
insuranceString1Flag request Insurance (Y/N). To indicate covered by RPX Insurance. Must have Formal Agreement to apply this. Contact RPX Sales for more information.(OPTIONAL)
surchargeString1Surcharge value (If any)(OPTIONAL)
high_valueString1Flag request High Value (Y/N) (OPTIONAL)
value_docsString1Flag request Value Docs (Y/N) (OPTIONAL)
electronicString1Flag request Electronic (Y/N) (OPTIONAL)
flag_dangerous_goodsString1Flag request DangerousGoods (Y/N) (OPTIONAL)
flag_birdnestString1Flag request Birdnest (Y/N) (OPTIONAL)
declare_valueString10Total Value of Package which will be insuranced. Only applied if the insurance flag is Y. Please stated as full numerical without dot or comma separator. e.q : 175000 for one hundred seventy five thousand) (OPTIONAL)
formatString5stated XML (or blank) for XML response\or stated JSON for JSON response.
dest_store_idString4just leave in blank.
dest_dc_idString4just leave in blank.
widhtxString4Fill with total width of package (OPTIONAL)
lengthxString4Fill with total length of package (OPTIONAL)
heightxString4Fill with total height of package (OPTIONAL)
Example XML return.

<RPX>
<DATA>
	<RESULT>Success</RESULT>
	<AWB_RETURN>123456789012</AWB_RETURN>
</DATA>
</RPX>
 

<RPX>
<DATA>
	<RESULT>Success - Already Sent</RESULT>
	<AWB_RETURN>123456789012</AWB_RETURN>
</DATA>
</RPX>
Common Failed Response.

<RPX>
	<RESULT>Failed - User ID or Password or Account Number Incorrect</RESULT>
</RPX>

 

<RPX>
<DATA>
	<RESULT>Failed - Service Type Incorrect</RESULT>
	<AWB_RETURN></AWB_RETURN>
</DATA>
</RPX>
 

<RPX>
<DATA>
	<RESULT>Failed - Posting Data Error</RESULT>
	<AWB_RETURN></AWB_RETURN>
</DATA>
</RPX>
 

<RPX>
<DATA>
	<RESULT>Failed - Sending Privilege Denied</RESULT>
	<AWB_RETURN></AWB_RETURN>
</DATA>
</RPX>
 

<RPX>
<DATA>
	<RESULT>Failed - AWB Unavailable</RESULT>
	<AWB_RETURN></AWB_RETURN>
</DATA>
</RPX>
 

<RPX>
<DATA>
	<RESULT>Failed - Non COD Destination</RESULT>
	<AWB_RETURN></AWB_RETURN>
</DATA>
</RPX>
 

<RPX>
<DATA>
	<RESULT>Failed - Possibly Non Served Area</RESULT>
	<AWB_RETURN></AWB_RETURN>
</DATA>
</RPX>
 

<RPX>
<DATA>
	<RESULT>Failed - Service Unavailable for Origin and Destination</RESULT>
	<AWB_RETURN></AWB_RETURN>
</DATA>
</RPX>
Output fields
Field NameTypeData LengthDescription
RESULTString50Return Success/Failed when Sending Data OK/Not OK
AWB_RETURNString12AWB Response when Sending Data OK
sendSuratJalan
Description: Send Receipt information Data of AWB numbers for 1 booking code number from store to RPX Input parameters
Field NameTypeData LengthDescription
userString20API Username
passwordString20API Password
account_numberString9Account number
kode_tokoString20Kode Toko/Store
nomor_surat_jalanString50Nomor Surat Jalan
booking_code_noString50Booking code no
cashierString50Nama Cashier
courier_idString12ID Kurir yang melakukan pickup barang
courier_nameString50Nama Kurir yang melakukan pickup
awb_numbersString1000AWB number untuk 1 booking code\jika lebih dari 1 maka dipisahkan dengan tanda ; (koma)
formatString5XML for output XML or JSON for output JSON
Example XML return.

<RPX>
<DATA>
	<RESULT>Success</RESULT>
</DATA>
</RPX>
OR

<RPX>
<DATA>
	<RESULT>Failed</RESULT>
</DATA>
</RPX>
Output fields
Field NameTypeData LengthDescription
RESULTString1Return Success or Failed
sendPickupRequest

ATTENTION ! Last Update 02 NOV 2016 : For JSON response, please check and reorder again your flag order as below. Otherwise the response will be in XML format Description: Send Pickup Information Request

Input parameters
Field NameTypeData LengthDescription
userString20API Username
passwordString20API Password
order_typeString3Order Type (please fill in with PU) (MANDATORY)
pickup_agent_idString10Agent ID/Loket ID/Unique ID for Pickup Information
pickup_ready_timeString16Pickup Date and Time for Pickup \can be Today or Next Day (YYYY-MM-DD HH:NN)(MANDATORY)
pickup_request_byString50Name of Contact Person at Pickup Point (MANDATORY)
pickup_account_numberString50Your RPX Account Number to be used for This Pickup Request (MANDATORY)
pickup_company_nameString50Company Name for Pickup Information
pickup_company_addressString200Detail Address of Pickup Point (Nama dan No.Jalan-Gedung Lantai-Kecamatan-Kota Kab-Provinsi)(MANDATORY)
pickup_cityString3City ID for Pickup Information (from service "getRouteOrigin" -> tag ORIGIN)
pickup_postal_codeString10Postal Code of Pickup Location (MANDATORY)
service_typeString33 chars Service Type (from service "getService")
desc_of_goodsString255Description of goods/package
tot_declare_valueString10Total Value of Package (Needs for Insurance Info)
office_closed_timeString5Time of Office Close for Pickup Information (HH:NN)
pickup_shipper_nameString50Shipper Name for Pickup Information
pickup_company_emailString50Email Address for Pickup Information
pickup_cellphoneString50Available Mobile Number at Pickup Point (MANDATORY)
pickup_phoneString50Available Phone Number at Pickup Point (MANDATORY if Cellphone is not available))
destin_postal_codeString10Destination Postal Code (from service "getPostalCode")
destin_cityString3Destination City ID (from service "getCity")
destin_provinceString50Destination Province (from service "getProvince")
total_weightString10Total Weight of Package (NUMERIC)\default = 1
total_packageString10Total Package (NUMERIC)\default = 1
awb_numbersString10000RPX AWB Number of the Package that ready to be picked up. Please separate by semicolon(;) to list multiple AWB. untuk 1 booking code jika lebih dari 1 maka dipisahkan dengan tanda ';'(titik koma)
formatString5XML for output XML or JSON for output JSON
Example XML return.

<RPX>
<DATA>
	<RESULT>Success</RESULT>
	<PICKUP_REQUEST_NO>14012700012</PICKUP_REQUEST_NO>
    <PIN>A7B7C</PIN>
</DATA>
</RPX>

<RPX>
<DATA>
	<RESULT>Success - Already Sent</RESULT>
	<PICKUP_REQUEST_NO>14012700012</PICKUP_REQUEST_NO>
    <PIN>A7B7C</PIN>
</DATA>
</RPX>
Common Failed Response.

<RPX>
	<RESULT>Failed - User ID or Password or Account Number Incorrect</RESULT>
</RPX>

<RPX>
	<RESULT>Failed - Posting Data Error</RESULT>
</RPX>
Output fields
Field NameTypeData LengthDescription
RESULTString50Return Success/Failed when Sending Data OK/Not OK
PICKUP_REQUEST_NOString20Pickup Request Number Receipt when Sending Data OK
PINString5PIN Code when Sending Data OK. The same PIN Code will be sent out to the courier
voidShipmentData

ATTENTION : FOR USING METHOD voidShipmentData, PLEASE CONTACT US FIRST. THANK YOU. If you want to test with dummy data to our development database, please use 'demo' (without quotes) as user & password.

Description: Void/Cancel Shipment Data from RPX Client to RPX Database by AirwayBill Number & Account Number Input parameters
Field NameTypeData LengthDescription
userString20API Username
passwordString20API Password
account_numberString9Your RPX Account number
awbString20Airwaybill Number
void_reasonString50Reason for Void Shipment (Optional)
formatString5XML for output XML or JSON for output JSON
Example XML return.

<RPX>
<DATA>
	<RESULT>Success</RESULT>
	<DATE_VOIDED>2014-01-27 11:23:05</DATE_VOIDED>
	<VOID_REASON>Void Reason</VOID_REASON>
</DATA>
</RPX>

<RPX>
<DATA>
	<RESULT>Success - Already Voided</RESULT>
	<DATE_VOIDED>2014-01-27 11:23:05</DATE_VOIDED>
	<VOID_REASON>Void Reason</VOID_REASON>
</DATA>
</RPX>
Common Failed Response.

<RPX>
<DATA>
	<RESULT>Failed - Void Privilege Denied</RESULT>
</DATA>
</RPX>
 

<RPX>
<DATA>
	<RESULT>Failed - Shipment not found</RESULT>
</DATA>
</RPX>
 

<RPX>
<DATA>
	<RESULT>Failed - Shipment Already Processed</RESULT>
</DATA>
</RPX>
 

<RPX>
<DATA>
	<RESULT>Failed - Server Busy. Try again.</RESULT>
</DATA>
</RPX>
Output fields
Field NameTypeData LengthDescription
RESULTString50Return Success/Failed when Sending Data OK/Not OK
DATE_VOIDEDString19Datetime of Voided Shipment (YYYY-MM-DD HH:NN:SS)
VOID_REASONString50Reason of Voided Shipment