createPackageManual
The method allows you to enter the shipping number and the name of the courier to the order (function used only to add shipments created outside BaseLinker)
Input parameters
| order_id | int | Order identifier |
| courier_code | varchar(20) | Courier code (courier code retrieved with getCouriersList or custom courier name) |
| package_number | varchar(40) | Shipping number (consignment number) |
| pickup_date | int | Date of dispatch (unix time format) |
| return_shipment | bool | (optional, false by default) Marks package as return shipment |
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 |
| package_id | int | Shipment ID |
| package_number | varchar(40) | Shipping number (consignment number) |
Sample
Input data:Output data:
A sample request in PHP: