Skip to content

Instantly share code, notes, and snippets.

@jphungcode
Last active October 21, 2020 02:44
Show Gist options
  • Save jphungcode/641340be3c655d166103a460daec6aaf to your computer and use it in GitHub Desktop.
Save jphungcode/641340be3c655d166103a460daec6aaf to your computer and use it in GitHub Desktop.
1_wooCommercePFCIntegration
{
"Type":2, // 1 fulfilment, 2 for ordinary order
"CustomerId":"107085", // your account ID - this is mandatory
"ChannelId":158, // This is mandatory and refers to the base channel ID for shipping providers for a certain country. You can find the channelId from http://www.pfcexpress.com/webservice/APIWebService.asmx/getChannel. You will need to filter based on country code to determine what channelId to use.
"INorOut":0, // 0 for exports - most common
"IDCardNo":"",
"Remark":"",
"Products":[
{
"Price":64,
"SKU":"FC0001", // The SKU from woocommerce must match the SKU from PFC product list, otherwise, the order won't go through
"Length":0.1, // Pulled from Woocommerce webhook payload line_items meta data
"EnName":"Example Product Name",
"High":0.3,
"ProducingArea":"China",
"CnName":"",
"HSCode":"",
"MaterialQuantity":1,
"Weight":0.1,
"Width":0.2
}
],
"ShipToName":"John Phung",
"ShipToAdress1":"123 Short St",
"ShipToAdress2":"",
"ShipToCity":"Sydney",
"ShipToState":"NSW",
"ShipToCountry":"AU",
"ShipToCompanyName":"",
"ShipToZipCode":"2000",
"ShipToPhoneNumber":"04487478745",
"OrderStatus":1, // 0 for draft, 1 to be sent and 2 - is sent. Usually 1 to be sent.
"WarehouseId":"302", // You can find the warehouse ID from the fulfillment dashboard on PFC website, alternatively, you can go here http://www.pfcexpress.com/webservice/getWarehouse.htm and enter your API key to get the list of warehouse ID's.
"Sender":"huangjia",
"SendEmail":"www.parcelfromchina.com",
"SendAddress":"4th Floor, Building C, №2, Road 1,Shangxue Science and Technology Park,Bantian street, Longgang District, Shenzhen, Guangdong Province, China",
"SendCompany":"www.parcelfromchina.com",
"SendPhone":"0755–83727415",
"TrackingNo":"",
"CODFee":0,
"BatteryFlag":0,
"CsRefNo": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment