1300 748 510
Tracking
with

Api Make Order

Make Order

The 'Create order' service initializes the booking process. In order to do this, you need to provide information concerning the package, its collection and destination addresses, dimensions etc. Then as a response from this service, you get the exact cost.

Request

Orders
URI  http://www.baggagefreight.com.au/api/doBooking.aspx
Method

POST

Authentication Required Yes

Parameters

Field Data Type Description
strInvoiceNumber
String Invoice Number
strCarrier
String Carrier
strService
String Service
strTotalBookingRate
String Order Amount
strBookingAmount
String Shipping Cost
strCollectCompany
String Collection Company
strCollContactName
String Collection Contact Name
strCollectAddress
String Collection Address
strCollectAddress1
String Collection Address1
strCollectCity
String Collection City
strCollectState
String Collection State
strCollectZip
String Collection Zip
strCollectCountry
String Collection Country
strCollectEmail
String Collection Email
strCollectPhNo String Collection Phn Number
strDestContactName String Destination Contact Name
strDestEmail String Destination Email
strDestPhNo String Destination Phn Number
strDestCompany String Destination Company
strDestAddress String Destination Address
strDestAddress1 String Destination Address1
strDestCity String Destination City
strDestState String Destination State
strDestZip String Destination Zip
strDestCountry String Destination Country
strEmail String Store Owner Email in Baggagefreight Site
strPassword String Store Owner Password in Baggagefreight Site
coverCost String Warranty Cost
strTransitTime String Transit Time
strDescription String Item SKU. [comma(,)
separated for multiple items]
arrWeight String Item Weight in KG. [comma(,)
separated for multiple items]
arrLength String Item Length in CM. [comma(,)
separated for multiple items]
arrWidth String Item Width in CM. [comma(,)
 separated for multiple items]
arrHeight String Item Height in CM. [comma(,)
separated for multiple items]
arrUnit String Item Unit  in CM[comma(,)
separated for multiple items]
strUrl String Site Url
strUnitVal String Cost of each item [comma(,)
separated for multiple items]

Request body

 'strInvoiceNumber' => '12345678',
'strCarrier' => 'DHL',
 'strService' => 'BF Express International Parcels',
 'strTotalBookingRate' => 200,
'strBookingAmount' => 1727.51,
'strCollectCompany' => 'TEST',
 'strCollContactName' => 'Test Test',
'strCollectAddress' => 'Test',
 'strCollectAddress1' => '',
 'strCollectCity' => 'LAKEMBA',
 'strCollectState' => 'NSW',
 'strCollectZip' => '2195',
'strCollectCountry' => 'Australia',
'strCollectEmail' => 'test@test.com',
'strCollectPhNo' => '12587545',
 'strDestContactName' => 'Test Test',
'strDestEmail' => 'test@test.com',
 'strDestPhNo' => '12587545',
 'strDestCompany' => 'TEST',
 'strDestAddress' => 'TEST',
 'strDestAddress1' => '',
 'strDestCity' => 'KATHMANDU',
'strDestState' => 'Bagmati',
 'strDestZip' => '',
 'strDestCountry' => 'Nepal',
'strEmail' => storeowner@test.com',
'strPassword' => ' storeowner ',
 'coverCost' => '0',
'strTransitTime' => '2',
 'strDescription' => 'SKU1,SKU2',
'arrWeight' => '100,90',
 'arrLength' => '98,78',
 'arrWidth' => '78,58',
 'arrHeight' => '65,65',
'arrUnit' => 'cm,cm' ,
'strUrl' => 'www.testsite.com' ,
'strUnitVal' => '150.00,50.00' ,

Response

Order Id

Note: This Api will return "0" if Error Occured.

Example Response

1234

Example Code(PHP cUrl)

Download Source Code