Warning!
The resource is available only in the following countries: PL, IT
The heart of the Integrated Services Platform are shipments. The definition of shipments consists of:
sender and recipient data
shipment (one or more), which will be physically shipped
selected service (optional added services)
other additional attributes dependent on user preference, eg.:
Insurance
Cash collection
To create a shipment ready for shipping, 3 steps are required:
Creating the shipment, consisting of recipient and sender details and information about the shipment itself (purple figures on the diagram below)
Downloading the information about the available services for the created shipment (blue figures on the diagram below),
Purchasing a label by selecting a service available for the shipment from step 1 (green figure on the diagram below)
Service prices may differ based on the shipment dimensions and parameters defined upon creation.
The list of all available services can be found in [1.23.0] Shipment sizes and servicesarchived
Service availability depends on the carriers with which the organization has signed contracts with.
For Clients whose agreement allows for a debit to be created in the InPost system (debit client), prices will not be returned to the JSON response to the request sent to the API.
Shipment creation diagram
Structure
Shipment resource has the following attributes:
Attribute | Type | Description | Availability |
|---|---|---|---|
| Integer | Read only. Shipment identifier in ShipX. | PL, IT |
| String | Read only. Current shipment status. | PL, IT |
| CustomAttributes | Additional, optional shipment attributes. | PL, IT |
| Array[Parcel] | List of parcels within the shipment. | PL, IT |
| DateTime | Read only. Shipment creation date in ShipX. | PL, IT |
| Integer | If of the user that created the shipment, if logged in. | PL, IT |
| Peer | Sender details. | PL, IT |
| Peer | Recipient details. | PL, IT |
| MoneyData | Cash collection for the shipment. | PL |
| MoneyData | Shipment insurance. | PL |
| Array[String] | Additional services selected when creating the shipment (different offers may contain different additional services). Available additional services: | PL, IT |
| String | Additional shipment description, e.g. order or client ID | PL, IT |
| Bool | Determines whether the shipment is a return. | PL, IT |
| Array[Offer] | List of available services with prices, which can be purchased for the shipment. | PL, IT |
| Offer | The service selected when buying the label. | PL, IT |
| Array[Transaction] | List of payment transactions related to the shipment. | PL, IT |
| String | Shipment tracking number (logistic system ID). | PL, IT |
| String | Duplicate of | PL, IT |
| String | ID of the broker generating the shipment within a different organization. | PL, IT |
Parcel object attributes:
Attribute | Type | Description | Availability |
|---|---|---|---|
| String | Required when creating a shipment with multiple parcels. Unique parcel ID within the shipment that allows for validation errors to be returned in connection to a specific parcel. ID is not persisted in the database and is not returned as an attribute of an already created shipment. | PL, IT |
| String | Predefined dimension and weight template name. The list of predefined dimension and weight templates can be found in [1.23.0] Shipment sizes and servicesarchived | PL, IT |
| Object | Shipment dimensions.
Filled automatically when selecting a valid | PL, IT |
| Object | Shipment weight
Filled automatically when selecting a valid | PL, IT |
| String | Shipment tracking number. Assigned when buying a selected offer. | PL, IT |
| Bool | Set to Parcel handled only within the domestic courier services, in which one of its dimensions exceeds 120 cm, or the sum of the dimensions (length + width + height) exceeds 220 cm. Additionally, parcels considered non-standard are: round, cylindrical or oval, irregular shaped and/or with protruding elements. | PL, IT |
Offer object attributes:
Attribute | Type | Description | Availability |
|---|---|---|---|
| Integer | Unique offer identifier in the context of the shipment. | PL, IT |
| Service | Offered service object. | PL, IT |
| Carrier | Carrier object. | PL, IT |
| Array[String] | Additional services selected when creating the shipment - available within the offer. | PL, IT |
| String | Offer status. Available offer statuses: | PL, IT |
| DateTime | Date and time when the offer expires. | PL, IT |
| Decimal | Service price. | PL, IT |
| String | Currency of the service price. | PL, IT |
| Array | Offer unavailability reasons. | PL, IT |
Service object attributes:
Attribute | Type | Description | Availability |
|---|---|---|---|
| String | Service ID | PL, IT |
| String | Service name | PL, IT |
| String | Service description | PL, IT |
Carrier object attributes:
Attribute | Type | Description | Availability |
|---|---|---|---|
| String | Carrier ID | PL, IT |
| String | Carrier name | PL, IT |
| String | Carrier description | PL, IT |
Transaction object attributes:
Attribute | Type | Description | Availability |
|---|---|---|---|
| String | Transaction ID | PL, IT |
| String | Transaction status. Available statuses: | PL, IT |
| DateTime | Transaction creation date and time. | PL, IT |
| DateTime | Last transaction modification date and time. | PL, IT |
| Integer | ID of the offer connected to the transaction. | PL, IT |
Peer object attributes:
Attribute | Type | Description | Availability |
|---|---|---|---|
| String | Peer ID | PL, IT |
| String | Peer name | PL, IT |
| String | Company name | PL, IT |
| String | First name | PL, IT |
| String | Last name | PL, IT |
| String | E-mail address | PL, IT |
| String | Telephone number | PL, IT |
| Address | Address | PL, IT |
Address: object attributes:
line1 and line2 attributes are still supported, however, usage of street and building number is recommended.
Attribute | Type | Description | Availability |
|---|---|---|---|
| String | Address ID | PL, IT |