Create and announce a shipment applying shipping rules and/or defaults asynchronously.
Basic ...).
Basic Authentication using API key and secrets is currently the main authentication mechanism.
If you are an official Sendcloud Tech Partner, send your unique Sendcloud Partner UUID as a request header for the system to recognize you.
The header is not required but if it is set, the system will check it. An unknown or invalid UUID will cause a 400 error.
Asynchronous Shipment with Rules request object model
Sendcloud Address object
The id of the brand. Brands can be added through the Sendcloud panel and be retrieved (alongside their id) from the Retrieve a list of brands endpoint.
42
The ship with object can be used to define how you would like to send your shipment.
You can use a shipping_option_code. This is a unique identifier that displays what carrier and what set of shipping functionalities you want to use.
{
"type": "shipping_option_code",
"properties": {
"shipping_option_code": "postnl:standard/insured=3000",
"contract_id": 517
}
}Sendcloud Address object
Node for service point information. Use the Retrieve a list of service points endpoint to find service points.
Order number generated manually or by shop system
Price, consisting of a value and currency.
A reference that will be stored on the Shipment and returned in your responses. This is not sent to the carrier.
"shipment-1234"
An optional reference can be provided by the API user; if included, it must be unique across shipments of the user. Using the same reference more than once will result in a 409 HTTP status code and the associated object being returned.
"unique-value-1234"
Optional customs information that should be provided for international shipments. This information is used for generating customs documents.
{
"invoice_number": "INV-123",
"export_reason": "commercial_goods",
"export_type": "private",
"invoice_date": "2023-08-24",
"discount_granted": { "value": "14.99", "currency": "EUR" },
"freight_costs": null,
"insurance_costs": { "value": "3.60", "currency": "EUR" },
"other_costs": { "value": "1.2", "currency": "EUR" },
"general_notes": "Compliance: Goods comply with international safety standards (CE certified).",
"additional_declaration_statements": [
"With reference to the above shipment, I understate that the content is not made of leather parts of animal species protected by the Washington Convention.",
"I solemnly declare that the contents of this document represent a true and accurate account of the events as they occurred. I acknowledge my responsibility for the information presented herein and understand that any misrepresentation or falsification may result in legal consequences or other penalties as applicable."
],
"importer_of_record": {
"name": "John Doe",
"company_name": "ImporterCo",
"address_line_1": "Maple Avenue",
"house_number": "123",
"postal_code": "90210",
"city": "Springfield",
"country_code": "US",
"state_province_code": "US-MA",
"telephone": "+15551234567",
"email": "info@importer-of-record-example.com"
},
"tax_numbers": {
"sender": [
{
"name": "VAT",
"country_code": "NL",
"value": "NL123456789B01"
},
{
"name": "EORI",
"country_code": "NL",
"value": "NL123456789"
}
],
"receiver": [
{
"name": "EIN",
"country_code": "US",
"value": "123456789"
}
],
"importer_of_record": [
{
"name": "EIN",
"country_code": "US",
"value": "987654321"
}
]
}
}Describes the format and resolution of the label.
Note: If you request a label in ZPL format and the carrier supports native ZPL, then it won't be possible to download the label in any other format later.
Defined delivery dates. The handover_at date indicates when the item will be handed over to the carrier by the merchant in ISO 8601. If this date is not passed the carrier default will be used. For most carriers this is the following working day.
Represents each package of the shipment. Each carrier can have its own number of parcels limit per shipment, otherwise there is a restriction to a maximum of 50 parcels (default).
1 - 50 elementsWhen set to true, the "Default weight", "Preferred shipping method" and "Default export reason" shipping defaults will be applied, if they were not provided by the request payload.
Note that the request payload values and shipping rules take precedence over these defaults.
true
When set to true, shipping rules will be applied.
For instance, if a contract is specified in one of the applicable rules for the shipment that is being requested, the contract value provided in the request payload will be ignored.
Also keep in mind that since orders created by the API do not appear in the Sendcloud panel's Incoming Orders overview, not all shipping rules can be applied.
true
Free text that is intended for applying the Checkout Delivery Method condition in shipping rules.
Learn more about Shipping rules.
"DHL home delivery"
OK
Create a shipment
Shipment response object model