getPickPackOrderCart
The method allows you to retrieve cart assignment information for a single order in the PickPack system. The method returns which cart (if any) the order is currently assigned to, along with cart details. The method uses singular naming since it handles a single order and its cart assignment.
Input parameters
Output data:
A sample request in PHP:
| order_id | int | Order identifier to check cart assignment for |
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 |
| cart_id | int | Cart identifier (0 if order is not assigned to any cart) |
| cart_name | varchar(5) | Cart name (empty string if not assigned) |
| cart_color | varchar(7) | Cart color (empty string if not assigned) |
Sample
Input data:Output data:
A sample request in PHP: