How to use this endpoint
IQ integration module is required to use this method
You can update Freight Price in a job/quote using Update Freight Cost Endpoint.
/api/QuoteProcess/UpdateFreightCost
Required payload to Postback to UpdateFreightCost Endpoint
{
"ItemFreightDeliveryKey": 11162,
"DeliveryCostPrice": 0,
"DeliverySalesPrice": 24.5
}
However in order to do so, you will required to grab the Delivery Key from Get Freight Session Endpoint.
{{ServerURL}}/api/QuoteProcess/GetFreightSession?LoginToken={{ApplicationToken}}&JobNo={{JobNo}}&QuoteNo={{QuoteNo}}
To run above method, you will required to get either JobNo, or QuoteNo
In this example, we will utilize JobNo and map the returned JSON value to GetFreightSession Endpoint.
{{ServerURL}}/api/QuoteProcess/GetFreightSession?LoginToken={{ApplicationToken}}&JobNo=J007440&QuoteNo
Run POST method with parameters JobNo will return this example payload.
"FDKey": 11162,
"FDDelNumber": 0,
"QFLKey": 1,
"dltID": 1216,
"dltDescription": "Description",
"dltTransferIntoInventory": false,
"FEDTPalletsOnly": false,
"dltAdminOnly": true,
"dltSignOff": 0,
"ProofofDeliveryCount": 0,
"ItemCount": 1,
"DeliveryFDSOSKey": 1,
"ProofofDeliverySignOffUser": null,
"ProofofDeliverySignOffDate": null,
"ProofofDeliverySignOffDate_Formatted": "",
"FDMKey": 8,
"FDDeliveryDays": 1.0,
"FDCalculatedDispatchDate": null,
"FDDispETADate": null,
"FDIsFree": false,
"FDIKey": null,
"FDSKey": 6,
ItemFreightDeliveryKey you required is FDKey located in Deliveries.FDKey
If you have multiple Deliveries, you will see multiple FDKey inside the Deliveries object
Example like so.
Each FDKey will be inside Deliveries Object.
Expected Output
Passing this payload.
{
"ItemFreightDeliveryKey": 11162,
"DeliveryCostPrice": 0,
"DeliverySalesPrice": 24.5
}
Will update the freight in Job Details Page.