Operations related to authentication tokens
Delivery Status of Transfer Order
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/TransferOrder \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Destination": "Outlet2",
"Date": "10/10/2018",
"Number": "18.07.02.0000002",
"Courier": "JNE",
"Note": "Yes Kirim",
"Variants": [
{
"Code": "2012",
"Quantity": "6",
"Price": 150000,
"Note": "Cotton Combet 30'\''s"
},
{
"Code": "2012",
"Quantity": "6",
"Price": 150000,
"Note": "Cotton Combet 30'\''s"
}
]
}'
{ "ID": "0b151d3f-e7ab-44dd-a63a-dbc4019d5cad" }
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/TransferOrder \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Destination": "Outlet2",
"Date": "10/10/2018",
"Number": "18.07.02.0000002",
"Courier": "JNE",
"Note": "Yes Kirim",
"Variants": [
{
"Code": "2012",
"Quantity": "6",
"Price": 150000,
"Note": "Cotton Combet 30'\''s"
},
{
"Code": "2012",
"Quantity": "6",
"Price": 150000,
"Note": "Cotton Combet 30'\''s"
}
]
}'
{ "ID": "0b151d3f-e7ab-44dd-a63a-dbc4019d5cad" }
Previous Endpoint: /api/v3/OutletDelivery. As for now, both the new & the old ones can be use.
Also available as HTTP POST (endpoint: /api/v3/OutletDelivery/p)
Required Group Role: "Logistic" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/TransferOrder \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"From": "2019-01-01",
"To": "2019-01-30",
"PageNumber": 1,
"PageSize": 20,
"Status": ""
}'
[ { "Number": "19.01.18.000000002", "Date": "2019-01-18T00:00:00", "Courier": "JsonSerializerOptions", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-18T15:14:48.64", "Quantity": 2 }, { "Number": "19.01.18.000000001", "Date": "2019-01-18T00:00:00", "Courier": "JsonSerializerOptions", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Dispatched", "Created": "2019-01-18T15:13:27.377", "Quantity": 2 }, { "Number": "19.01.17.000000005", "Date": "2019-01-17T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-17T16:48:30.813", "Quantity": 8 }, { "Number": "19.01.17.000000004", "Date": "2019-01-17T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Dispatched", "Created": "2019-01-17T16:47:09.893", "Quantity": 5 }, { "Number": "19.01.17.000000003", "Date": "2019-01-17T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-17T13:59:16.77", "Quantity": 1 }, { "Number": "19.01.17.000000001", "Date": "2019-01-17T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-17T10:08:34.61", "Quantity": 1 }, { "Number": "19.01.17.000000002", "Date": "2019-01-17T00:00:00", "Courier": "JNI", "Outlet": "Outlet 2", "OutletCode": "OT2", "Destination": "Outlet 3", "DestinationCode": "OT3", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-17T15:57:50.71", "Quantity": 7 }, { "Number": "19.01.17.000000001", "Date": "2019-01-17T00:00:00", "Courier": "JNI", "Outlet": "Outlet 2", "OutletCode": "OT2", "Destination": "Outlet 3", "DestinationCode": "OT3", "TypeName": "Restock", "Status": "Dispatched", "Created": "2019-01-17T15:49:20.533", "Quantity": 7 }, { "Number": "19.01.15.000000004", "Date": "2019-01-15T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-15T11:15:57.027", "Quantity": 3 }, { "Number": "19.01.15.000000003", "Date": "2019-01-15T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-15T11:14:21.953", "Quantity": 7 }, { "Number": "19.01.15.000000002", "Date": "2019-01-15T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-15T11:07:44.59", "Quantity": 3 }, { "Number": "19.01.15.000000001", "Date": "2019-01-15T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-15T10:43:41.89", "Quantity": 2 }, { "Number": "19.01.14.000000001", "Date": "2019-01-14T00:00:00", "Courier": "JNI", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "TypeName": "Restock", "Status": "Received", "Created": "2019-01-14T16:08:48.027", "Quantity": 10 } ]
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/TransferOrder \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"OutletSource": "Outlet1",
"Number": "18.07.02.0000002"
}'
"Number 18.07.02.0000002 from source Test2 succesfully deleted."
Previous Endpoint: /api/v3/OutletDelivery/Detail. 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/TransferOrder/Detail \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "18.07.02.0000002"
}'
{ "Number": "19.01.18.000000002", "Date": "2019-01-18T00:00:00", "Outlet": "Outlet 1", "OutletCode": "OT1", "Destination": "Outlet 2", "DestinationCode": "OT2", "Courier": "JNE", "TypeName": "Restock", "StateLabel": "Received", "CreatedName": "Sys DealPOS", "Note": "Paid", "Variants": [ { … } ], "Total": { "Quantity": 2, "Total": 7000 }, "Delivery": { "ReceivedNote": "Good quality", "ReceivedDate": "2019-01-24T15:04:29.01", "ReceivedBy": "Sys DealPOS" } }
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/TransferOrder/UpdateStatus \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "DO.0001",
"State": "Dispatched"
}'
{ "Message": "Outlet Delivery status has been updated" }
Previous Endpoint: /api/v3/OutletDelivery/WithTotalCount. 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/TransferOrder/WithTotalCount \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"From": "2019-01-01",
"To": "2019-01-30",
"PageNumber": 1,
"PageSize": 20
}'
{ "Data": [ { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … } ], "TotalCount": 100 }