order_pick_list
POST /order_pick_list
To create a new order picking list.
{
"api_credentials": {
"token": "XXXX"
},
"order": {
"user_code": "your_user_name",
"order_type": "SalesOrder",
"order_status_code_365": "PICKLIST",
"comment": "here is additional comments",
"list_order_details": [
{
"line_id_365": "00100002L1",
"line_quantity": "20",
"pick_order_no": 2
},
{
"line_id_365": "00100002L2",
"line_quantity": "10",
"pick_order_no": 1
}
]
}
}
To create a new order picking list with lot and expired date analysis.
{
"api_credentials": {
"token": "XXXX"
},
"order": {
"user_code": "your_user_name",
"order_type": "SalesOrder",
"order_status_code_365": "PICKLIST",
"comment": "here is additional comments",
"list_order_details": [
{
"line_id_365": "00100002L1",
"line_quantity": "30",
"pick_order_no": 2,
"list_lot_expired_date_analysis": [
{
"lot_number":"",
"expired_date": "2024-06-15",
"display_date": "2024-06-15",
"lot_quantity": 5
},
{
"lot_number":"",
"expired_date": "2025-06-15",
"display_date": "2025-06-15",
"lot_quantity": 15
},
{
"lot_number":"",
"expired_date": "2026-12-31",
"display_date": "2026-12-31",
"lot_quantity": 10
}
]
},
{
"line_id_365": "00100002L2",
"line_quantity": "10",
"pick_order_no": 1,
"list_lot_expired_date_analysis": [
{
"lot_number":"22I915",
"expired_date": "2024-06-15",
"display_date": "2024-06-15",
"lot_quantity": 10
}
]
}
]
}
}
| field |
type |
description |
|
api_credentials
|
| token |
string |
Credentials provided by Powersoft that allow access to the API |
|
order
|
| user_code |
string |
User code/name that created the picking list on your system. Maximum 36 characters are allowed. |
| order_type |
string |
Order Type. Only 'SalesOrder' and 'PurchaseOrder' values are accepted. |
| order_status_code_365 |
string |
The order status code in 365. Not required. |
|
list_order_details
|
| line_id_365 |
string |
The detail line id of the order as registered in 365 |
| line_quantity |
decimal |
The number of picked pieces of the item for this order line |
| pick_order_no |
integer |
The pick/sorting order no in the picking list |
|
list_lot_expired_date_analysis
|
| lot_number |
string |
Lot Number. Required only if the item is flagged as 'has_lot_number'. |
| expired_date |
string |
Expired Date. Required only if the item is flagged as 'has_expiration_date. Date format yyyy-MM-dd. |
| display_date |
string |
Display Date. Not required. |
| lot_quantity |
decimal |
The number of picked pieces of the item for the specifc lot and/or expired date. The total quantity of the lot and expired date analysis must be equal with the line quantity |
Returns
Returns the standard api_response object. The Powersoft365 Order Picking List code is returned in the response_id field.