Skip to main content
POST
/
orders
/
create-label-sync
curl --request POST \
  --url https://panel.sendcloud.sc/api/v3/orders/create-label-sync \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "integration_id": 70,
  "label_details": {
    "mime_type": "application/pdf",
    "dpi": 72
  },
  "order": {
    "order_number": "ORDER-25763",
    "apply_shipping_rules": false
  }
}
'
{
  "data": [
    {
      "parcel_id": 420,
      "shipment_id": "511",
      "order_id": "593c853e-ca90-4ab4-953c-fd2f47dd8dc3",
      "order_number": "ORD-2024-00174",
      "ship_with": {
        "type": "shipping_option_code",
        "properties": {
          "contract_id": 517,
          "shipping_option_code": "postnl:standard"
        }
      },
      "tracking_number": "ABCD1234567890",
      "tracking_url": "https://test.shipping-portal.com/tracking/?tracking_number=abcd1234567890&country=nl&postal_code=1234AB",
      "label": {
        "file": "<base64-encoded-pdf-data>",
        "mime_type": "application/pdf",
        "dpi": 72
      },
      "documents": [
        {
          "type": "label",
          "size": "a6",
          "link": "https://panel.sendcloud.sc/api/v3/parcels/1234567890/documents/label"
        }
      ]
    },
    {
      "parcel_id": 4428,
      "shipment_id": "512",
      "order_id": "23458265234",
      "order_number": "ORD-2024-00166",
      "ship_with": {
        "type": "shipping_option_code",
        "properties": {
          "contract_id": 517,
          "shipping_option_code": "postnl:standard"
        }
      },
      "tracking_number": "ABCD1234567890",
      "tracking_url": "https://test.shipping-portal.com/tracking/?tracking_number=abcd1234567890&country=nl&postal_code=1234AB",
      "label": {
        "file": "<base64-encoded-pdf-data>",
        "mime_type": "application/pdf",
        "dpi": 72
      },
      "documents": [
        {
          "type": "label",
          "size": "a6",
          "link": "https://panel.sendcloud.sc/api/v3/parcels/1234567890/documents/label"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic Authentication using API key and secrets is currently the main authentication mechanism.

Headers

Sendcloud-Partner-Id
string

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.

Body

application/json

Payload for creating labels for orders.

Note that if the sender_address_id is not specified, the API will use the default sender address associated with your account.

integration_id
integer
required

The ID of the integration your orders belong to.

Example:

70

order
object
required
sender_address_id
integer

The ID of the sender address you would like to ship from. If not specified, your default sender address will be used.

A sender address can be added through the Sendcloud panel and be retrieved using the Retrieve a list of sender addresses endpoint.

Example:

192

brand_id
integer

The ID of the brand. Brands can be added through the Sendcloud panel and be retrieved using the Retrieve a list of brands endpoint.

Required range: x >= 1
Example:

42

ship_with
Ship with object · object

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.

Example:
{
"type": "shipping_option_code",
"properties": {
"shipping_option_code": "postnl:standard/insured=3000",
"contract_id": 517
}
}
label_details
object

Response

Parcel ID along with generated label.

data
Reference to label · object

Parcel ID, tracking details and generated label.