getOrderPickPackHistory
The method allows you to retrieve pick pack history for a selected order.
Input parameters
Output data:
A sample request in PHP:
order_id | int | Order Identifier from BaseLinker order manager |
action_type | int | (optional) List of event types you want to retrieve. Available values: 1 - Reservation of an order for products collecting 2 - Picking products started 3 - Picking products cancelled 4 - Products picking status changed: in progress 5 - Products picking status changed: finished 6 - Products picking status changed: error 7 - Reservation of an order for products packing 8 - Packing products started 9 - Packing products cancelled 10 - Products packing status changed: in progress 11 - Products packing status changed: finished 12 - Products packing status changed: error 13 - Products photo initialized 14 - Products photo taken 15 - Products photo deleted 16 - Error when trying to save products photo 17 - Error when trying to save product image: image size too large |
Output data
The method returns the data in JSON format.
status | varchar(30) | SUCCESS - request executed correctly ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code |
history | array | An array of pick pack history list. Each entry contains fields: action_type (int) - action type. Available values: 1 - Reservation of an order for products collecting 2 - Picking products started 3 - Picking products cancelled 4 - Products picking status changed: in progress 5 - Products picking status changed: finished 6 - Products picking status changed: error 7 - Reservation of an order for products packing 8 - Packing products started 9 - Packing products cancelled 10 - Products packing status changed: in progress 11 - Products packing status changed: finished 12 - Products packing status changed: error 13 - Products photo initialized 14 - Products photo taken 15 - Products photo deleted 16 - Error when trying to save products photo 17 - Error when trying to save product image: image size too large profile (varchar) - name of the profile performing the change station_id (int) - id of the packing station cart_id (int) - id of cart assigned to order entry_date date of history entry (unix time format) |
Sample
Input data:Output data:
A sample request in PHP: