Operations related to authentication tokens
Use this API to send an Outbound Logistic from an Invoice.
NOTE: We have 3 hierarchy for Inventory stock reduction.
If [Dispatch] = true, then the inventory will reduce from the selected outlets in Pick Pack Ship, read more about it here: https://support.dealpos.com/en/articles/5990583-create-fulfillment-pick-pack-and-ship
If [Dispatch] = false, then the inventory will reduce from FulfillmentOutlet configuration.
If Fulfillment Outlet is null or empty, then the inventory will reduce from [Outlet] or in which Outlet the Inventory was made.
You must have "EDIT" role in "Logistic" Module OR "EDIT" role in "Global" Module
Flowchart of Send Outbound Logistic:
Backwards compatibility with property FulfillmentOutlet"
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/OutboundLogistic \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "18.10.00009",
"Fulfillment": {
"Outlet": "Outlet2",
"Date": "2024-06-20"
},
"PickList": {
"Dispatch": false
}
}'
{ "ID": "712098c6-0703-4e36-9679-c14dbeb4e3fe", "OrderFulfillmentState": "Sent" }
Previous Endpoint: https://brand.dealpos.net/api/v3/CustomerDelivery. As for now, both the new & the old ones can be use.
Also available as HTTP POST (endpoint: /api/v3/CustomerDelivery/p)
Required Group Role: "Logistic" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/OutboundLogistic \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"From": "2020-04-01",
"To": "2020-04-30",
"PageNumber": 1,
"PageSize": 20,
"Outlet": "Outlet1"
}'
[ { "Outlet": "Outlet1", "Number": "20.04.00082", "Customer": "Ferdi", "Date": "2020-04-17T00:00:00", "Delivery": "Sent", "Time": "2020-04-17T15:01:00" }, { "Outlet": "Outlet1", "Number": "20.04.00081", "Customer": "Ferdi", "Date": "2020-04-17T00:00:00", "Delivery": "Sent", "Time": "2020-04-17T14:30:00" } ]
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/OutboundLogistic \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "21.12.00123"
}'
{ "Message": "Customer Delivery 925a9ce8-96a0-4c38-92d5-f8b5a9599bc2 has been deleted!" }
Previous Endpoint: https://brand.dealpos.net/api/v3/CustomerDelivery/Number. As for now, both the new & the old ones can be use.
Also available as HTTP POST with the same endpoint
Required Group Role: "Logistic" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/OutboundLogistic/Number \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "20.04.00018"
}'
{ "Outlet": "Outlet1", "Number": "20.04.00018", "Date": "2020-04-29T00:00:00", "Customer": {}, "CreatorID": "ff7848c9-21f1-4c05-ac9e-1e71d829cc9c", "Created": "2020-04-29T12:02:26.903", "Variants": [ { … } ] }
Also available as HTTP POST with the same endpoint
Required Group Role: "Logistic" - "VIEW"