This is the right section for you if you are acting as a supplier and looking to send shipping notices to your customers. Throughout this guide you will learn how to send shipping notices to the Procuros API. PHP examples are included but you will likely also want to look at the relevant API calls in the API reference.Documentation Index
Fetch the complete documentation index at: https://docs.procuros.io/llms.txt
Use this file to discover all available pages before exploring further.
Process
These are usually the steps taken when sending a shipping notice:- Check, if this document should be sent via Procuros (see: Enabled Trade Partners)
- Verify this document has not already been sent (see: Tracking Document Status)
- Build the transaction payload to be sent via Procuros.
- If products being shipped are perishable and thus require shelf-life tracking, batch information needs to be added (see: Batches & Best Before Dates)
- If you are sending large shipments on Euro Pallets, additional shipment identification needs to be provided. (see: Package Identification)
- Send the transaction payload via the Procuros API
Authentication
You will need an API token to authenticate. We use a bearer token which has to be included in each request you send to the API. Please read the Authentication section of our API reference for a detailed description.Error Handling
The API will return a2xx status code for successful requests. Anything else indicates an error.
Please read the Errors section of our API reference for a detailed description plus examples of how to handle them.
Send Shipping Notices
The API call Send transaction is used to create transactions, including shipping notices. The following fields are required:type(Transaction type. In this caseSHIPPING_NOTICE)content(The details of the shipping notice items.)
content you will need to build all shipping notice items. All details can be found in the SHIPPING_NOTICE schema as described in the API reference.
Each item in
transportUnits must have a unitType. The following values are supported:| Value | Description |
|---|---|
EURO_PALLET | Euro Pallet (120 × 80 cm) |
EURO_PALLET_HALF | 1/2 Euro Pallet (80 × 60 cm) |
EURO_PALLET_QUARTER | 1/4 Euro Pallet (60 × 40 cm) |
PALLET | Generic / non-Euro pallet |
PACKAGE | Package |
CARTON | Carton |
CONTAINER | Shipping container |
Mark Document Status
Finally, as per the instructions mentioned under Tracking Document Status you must now track the status of the document locally, based on the returned HTTP response. The document should be marked with either statusTRANSMITTED or NO_ACTION. If there is an error with the document and it is not accepted, do not mark it with a status so it may be retried. For more information on retrying failed documents, please see: Retrying Documents.
For example: