status Listed, Picked Up, Delivered, Cancelled
carrier_type Open or Enclosed
veh_op 0 = Inoperable 1 = Operable
balance_method Cash/Certified Funds, Check, Company Check, Comchek, TCH, iTruckPay, Other
balance_time Immediately, 2 Business Days, 5 Business Days, 10 Business Days, 15 Business Days, 30 Business Days

Post to Loadboard API

End Point: http://dispatchcenter.com/dc/loadboard/api/post-listing/

Example JSON POST Data:

{"Api_key":"","Api_pin":"",
"order_id":"12366778",
"listing_type":"3",
"status":"Listed",
"o_contact_name":"Mickey Mouse",
"o_phone1":"(859) 123-1234",
"o_phone2":"",
"o_cell":"",
"o_fax":"",
"o_address1":"123 Main Street",
"o_address2":"",
"o_city":"Warren",
"o_state":"OH",
"o_zip":"44484",
"d_contact_name":"Donald Duck",
"d_phone1":"(859) 123-1231",
"d_phone2":"",
"d_cell":"",
"d_fax":"",
"d_address1":"123 Main Street",
"d_address2":"",
"d_city":"Lexington",
"d_state":"KY",
"d_zip":"40511",
"ship_date":"03/15/2021",
"pickup_date":"",
"deliver_date":"",
"pickup_on":"Estimated",
"deliver_on":"Exactley",
"carrier_type":"Open",
"Vehicles":[{
"veh_vin":"",
"veh_type":"Car",
"veh_year":"2018",
"veh_make":"KIA",
"veh_model":"Optima",
"veh_op":"1",
"veh_color":"Black",
"veh_license_plate":"",
"veh_lot_number":"",
"veh_state":"OH",
"veh_load":"0",
"veh_notes":"Use Belt Straps"
}],
"carrier_pay":"335",
"cod_cop_amount":"335",
"payment_method":"Cash/Certified Funds",
"payment_location":"Delivery",
"balance_amount":"335",
"balance_method":"Comchek",
"balance_time":"2 Business Days",
"balance_term":"Delivery",
"additional_information":"",
"special_instructions":""}

Example CURL:
$url = "http://dispatchcenter.com/dc/loadboard/api/post-listing/";
$data_json = json_encode($_POST['jsonArr']);
$key = "";
$pin = "";
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, $key.":".$pin);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$data_json);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
echo $result;



Edit Listing API

End Point: http://dispatchcenter.com/dc/loadboard/api/edit-listing/

Example JSON POST Data:

{"Api_key":"","Api_pin":"",
"order_id":"12366778",
"listing_type":"3",
"status":"Dispatched",
"carrier_name":"Mike Carrier",
"carrier_contact":"Mike Vega",
"carrier_mc":"11223344",
"carrier_address1":"108 Meadow Lane",
"carrier_address2":"",
"carrier_city":"Lexington",
"carrier_state":"KY",
"carrier_zip":"40511",
"carrier_phone1":"(339) 368-6750",
"carrier_phone2":"",
"carrier_cell":"",
"carrier_fax":"",
"driver_name":"Peter Ross",
"driver_phone":"(740) 346-6311",
"driver_email":"pross@gmail.com",
"o_contact_name":"Mickey Mouse",
"o_phone1":"(330) 123-1231",
"o_phone2":"",
"o_cell":"",
"o_fax":"",
"o_address1":"123 Main Street",
"o_address2":"",
"o_city":"Warren",
"o_state":"OH",
"o_zip":"44484",
"d_contact_name":"Donald Duck",
"d_phone1":"(859) 123-1231",
"d_phone2":"",
"d_cell":"",
"d_fax":"",
"d_address1":"123 Main Street",
"d_address2":"",
"d_city":"Lexington",
"d_state":"KY",
"d_zip":"40511",
"ship_date":"03/15/2021",
"pickup_date":"03/15/2021",
"deliver_date":"03/18/2021",
"pickup_on":"Estimated",
"deliver_on":"Exactley",
"carrier_type":"Open",
"Vehicles":[{
"veh_vin":"",
"veh_type":"Car",
"veh_year":"2018",
"veh_make":"KIA",
"veh_model":"Optima",
"veh_op":"1",
"veh_color":"",
"veh_license_plate":"",
"veh_lot_number":"",
"veh_state":"OH",
"veh_load":"0",
"veh_notes":"Use Belt Straps"
}],
"carrier_pay":"335",
"cod_cop_amount":"335",
"payment_method":"Cash/Certified Funds",
"payment_location":"Delivery",
"balance_amount":"335",
"balance_method":"Comchek",
"balance_time":"2 Business Days",
"balance_term":"Delivery",
"additional_information":"",
"special_instructions":""}

Example CURL:
$url = "http://dispatchcenter.com/dc/loadboard/api/edit-listing/";
$data_json = json_encode($_POST['jsonArr']);
$key = "";
$pin = "";
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, $key.":".$pin);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$data_json);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
echo $result;