Create shipment

⚠️ We no longer recommend implementing the Shipments API. Please refer to the Captures API instead. We are actively working on adding support for line-specific captures to the Captures API.

Create a shipment for specific order lines of an order.

When using Klarna, using this endpoint is mandatory for the order amount to be captured. A capture will automatically be created for the shipment.

The word 'shipment' is used in the figurative sense here. It can also mean that a service was provided or digital content was delivered.

🔑

Access with

API key

Access token with shipments.write

Path Params
string
required

Provide the ID of the related order.

Body Params
tracking
object

Shipment tracking details. Can be omitted if tracking details are not available or not applicable.

lines
array of objects

The order lines that are being fulfilled with this shipment. If left blank, all open order lines will be considered fulfilled.

lines
Responses

Response body
object
string
Defaults to shipment

Indicates the response contains a shipment object. Will always contain the string shipment for this endpoint.

string

The identifier uniquely referring to this shipment. Example: shp_gNapNy9qQTUFZYnCrCF7J.

string

Whether this entity was created in live mode or in test mode.

Possible values: live test

string

The unique identifier of the order this shipment was created for. For example: ord_8wmqcHMN4U.

string

The entity's date and time of creation, in ISO 8601 format.

tracking
object

Shipment tracking details. Can be omitted if tracking details are not available or not applicable.

string

The name of the postal carrier.

string

The track-and-trace code for the shipment.

string

The URL where your customer can track the shipment.

routing
array of objects
routing
object
string

The identifier uniquely referring to this route. Mollie will always refer to the route by this ID. Example: rt_5B8cwPMGnU6qLbRvo7qEZo.

amount
object

The portion of the total payment amount being routed.

destination
object

The destination of this portion of the payment.

lines
array of objects

The order lines that are being fulfilled with this shipment. If left blank, all open order lines will be considered fulfilled.

lines
object
string
Defaults to orderline
string

The ID of the order line you wish to refund. For example: odl_jp31y97yjz.

string
string
string | null
string

physical digital discount shipping_fee store_credit gift_card surcharge

string

created authorized paid canceled shipping completed

Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.

boolean
integer

The number of items that should be refunded for this order line. When this parameter is omitted, the whole order line will be refunded.

Must be less than the number of items already refunded for this order line.

integer
amountShipped
object

In v2 endpoints, monetary amounts are represented as objects with a currency and value field.

integer
amountRefunded
object

In v2 endpoints, monetary amounts are represented as objects with a currency and value field.

integer
amountCanceled
object

In v2 endpoints, monetary amounts are represented as objects with a currency and value field.

integer
integer
integer
unitPrice
object

In v2 endpoints, monetary amounts are represented as objects with a currency and value field.

totalAmount
object

In v2 endpoints, monetary amounts are represented as objects with a currency and value field.

string
vatAmount
object

In v2 endpoints, monetary amounts are represented as objects with a currency and value field.

string
discountedAmount
object

In v2 endpoints, monetary amounts are represented as objects with a currency and value field.

_links
object

Language
Credentials
Request