Create and close consignments
Imports consignment data with all associated receptacle and mail item information. Generates and includes consignment documents as applicable.
The API can import outbound receptacles. These must be closed and already exist in IPS.
The API can import receptacles in transit. These may or may not already exist in IPS.
The consignment update process is not supported. Consignments have to be manually reopened, modified and closed in IPS.
Values set by IPS during import
The following consignment and receptacle values in the IPS tables are automatically set by IPS during import:
Consignment level
- The GUID
- The postal status set to NULL
- The state indicator set to 62 (closed)
- The event type set to 301 (Close consignment (Otb))
- The conveyance type is automatically set by IPS based on the mail category of the dispatch:
- If mail category is A or D then conveyance type = P
- If mail category is B or C then conveyance type = N
- The number of receptacles
Receptacle level
- The state indicator set to 22 (closed)
- The event type is set to 105 (Change receptacle consignment (Otb))
Triggers
The import of a consignment triggers the creation of:
- Accounting dispatch and transit segment information (if the selected route has a closed transit point)
- 'Events' information
- PRECON EDI messages (if activated in the EDI exchanges configuration)
- CARDIT EDI messages (if activated in the EDI exchanges configuration)
HTTP request
POST http://[hostname:port]/IPSAPIService/ConsignmentImportService.svc/rest/consignment?token={token}
Parameters
Parameter | Mandatory? | Description |
---|---|---|
token
|
Y | GUID for authorization |
Error
In addition to the standard error codes described in Response codes, the IPS API returns a 404 error code for specific error cases, with additional error information as listed in the table below.
Code |
Description |
---|---|
1 |
Mandatory data is missing from the consignment. |
2 |
A property value in the request contains an invalid value or is in the wrong format. |
3 |
Reference data not found. |
4 |
The request contains inconsistent data. For example, if trying to send a receptacle to the wrong destination office. |
5 |
No transport found for the consignment. |
6 |
The route exists but is not compatible. |
7 |
Data already exists in the database. |
8 |
Failure storing the consignment. |
9 |
The request body does not match the specified structure. |
10 |
Unexpected error handled by the API. |
11 |
Error returned from internal IPS business process. |
Request body format
Response body format
Examples
Request
Response - with consignment documents