Create and announce a shipment synchronously
Changed onThis endpoint announces a shipment synchronously under your API credentials.
Request
- Base URLhttps://panel.sendcloud.sc/api/v3
- URLhttps://panel.sendcloud.sc/api/v3/shipments/announce
- Auth
- HTTP basic
- or OAuth 2Client credentialsToken URL: https://account.sendcloud.com/oauth2/token/ scopes: write:parcel
Headers
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.
Request body
Example request
{
"brand_id": 42,
"ship_with": {
"type": "shipping_option_code",
"properties": {
"shipping_option_code": "postnl:standard/insured=3000",
"contract_id": 517
}
},
"to_address": {
"name": "John Doe",
"company_name": "Sendcloud",
"address_line_1": "Stadhuisplein",
"house_number": "50",
"address_line_2": "Apartment 17B",
"postal_code": "1013 AB",
"city": "Eindhoven",
"state_province_code": "IT-RM",
"country_code": "NL",
"email": "johndoe@gmail.com",
"phone_number": "+319881729999"
},
"total_order_price": {
"value": "12.65",
"currency": "USD"
},
"reference": "shipment-1234",
"external_reference_id": "unique-value-1234",
"validation_methods": [
"here"
],
"carrier_fields": {
"hide_sender": true
},
"customs_information": {
"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"
},
"goods_description": "Electronic components and accessories",
"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"
}
]
},
"mrn": "25NLQ8PF0V3DJ1MKX7"
},
"from_address": {
"sender_address_id": 192
},
"to_service_point": {
"id": "123"
},
"label_details": {
"mime_type": "application/zpl",
"dpi": 300
},
"delivery_dates": {
"handover_at": "2025-02-27T10:00:00.555309+00:00",
"deliver_at": "2025-03-15T10:00:00.555309+00:00",
"earliest_delivery_time": "09:00",
"latest_delivery_time": "17:00"
},
"parcels": [
{
"dimensions": {
"length": "15",
"width": "20.5",
"height": "37",
"unit": "mm"
},
"weight": {
"value": "14.5",
"unit": "g"
},
"additional_insured_price": {
"value": "12.65",
"currency": "USD"
},
"label_notes": [
"The doorbell isn’t working"
],
"sscc": "019844628346512933",
"package_type": "package",
"carrier_fields": {
"collo_barcode": "ABC123"
},
"parcel_items": [
{
"item_id": "5552",
"description": "T-Shirt XL",
"quantity": 1,
"weight": {
"value": 0.5,
"unit": "kg"
},
"price": {
"value": "10.00",
"currency": "EUR"
},
"hs_code": "620520",
"origin_country": "NL",
"sku": "TS1234",
"cpsc": {
"product_id": "12345",
"certifier_id": "67890",
"version_id": "1"
}
}
]
}
]
}Response
Shipment response
Example response
{
"data": {
"brand_id": 42,
"ship_with": {
"type": "shipping_option_code",
"properties": {
"shipping_option_code": "postnl:standard/insured=3000",
"contract_id": 517
}
},
"to_address": {
"name": "John Doe",
"company_name": "Sendcloud",
"address_line_1": "Stadhuisplein",
"house_number": "50",
"address_line_2": "Apartment 17B",
"postal_code": "1013 AB",
"city": "Eindhoven",
"state_province_code": "IT-RM",
"country_code": "NL",
"email": "johndoe@gmail.com",
"phone_number": "+319881729999"
},
"total_order_price": {
"value": "12.65",
"currency": "USD"
},
"reference": "shipment-1234",
"external_reference_id": "unique-value-1234",
"validation_methods": [
"here"
],
"carrier_fields": {
"hide_sender": true
},
"customs_information": {
"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"
},
"goods_description": "Electronic components and accessories",
"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"
}
]
},
"mrn": "25NLQ8PF0V3DJ1MKX7"
},
"from_address": {
"name": "John Doe",
"company_name": "Sendcloud",
"address_line_1": "Stadhuisplein",
"house_number": "50",
"address_line_2": "Apartment 17B",
"postal_code": "1013 AB",
"city": "Eindhoven",
"state_province_code": "IT-RM",
"country_code": "NL",
"email": "johndoe@gmail.com",
"phone_number": "+319881729999"
},
"to_service_point": {
"id": "123",
"carrier_service_point_id": "91233"
},
"delivery_dates": {
"handover_at": "2025-02-27T10:00:00.555309+00:00",
"deliver_at": "2025-03-15T10:00:00.555309+00:00",
"earliest_delivery_time": "09:00",
"latest_delivery_time": "17:00"
},
"carrier": {
"code": "postnl",
"name": "PostNL"
},
"announced_by": {
"id": 12345,
"name": "Marie Doe",
"email": "marie.doe@example.com"
},
"parcels": [
{
"dimensions": {
"length": "15",
"width": "20.5",
"height": "37",
"unit": "mm"
},
"weight": {
"value": "14.5",
"unit": "g"
},
"additional_insured_price": {
"value": "12.65",
"currency": "USD"
},
"label_notes": [
"The doorbell isn't working"
],
"sscc": "019844628346512933",
"package_type": "package",
"carrier_fields": {
"collo_barcode": "ABC123"
},
"parcel_items": [
{
"item_id": "5552",
"description": "T-Shirt XL",
"quantity": 1,
"weight": {
"value": 0.5,
"unit": "kg"
},
"price": {
"value": "10.00",
"currency": "EUR"
},
"hs_code": "620520",
"origin_country": "NL",
"sku": "TS1234",
"cpsc": {
"product_id": "12345",
"certifier_id": "67890",
"version_id": "1"
}
}
],
"created_at": "2024-09-04T12:14:36.506925Z",
"updated_at": "2024-09-04T12:14:47.203107Z",
"announced_at": "2024-09-04T12:14:47.153985Z",
"status": {
"code": "ANNOUNCING",
"message": "Being announced"
},
"tracking_number": "3SYZXG8498635",
"tracking_numbers": [
{
"tracking_number": "3SYZXG8498635"
}
]
}
],
"label_details": {
"mime_type": "application/zpl",
"dpi": 300
}
}
}Changes
- warning
added the new
VOECenum value to the////////response property for the response status - warning
added the new
VOECenum value to the////////response property for the response status - warning
added the new
VOECenum value to the////////response property for the response status - warning
added the new
VOECenum value to the/////////response property for the response status - warning
added the new
VOECenum value to the/////////response property for the response status - warning
added the new
VOECenum value to the/////////response property for the response status - info
added the new
VOECenum value to the request property//////// - info
added the new
VOECenum value to the request property//////// - info
added the new
VOECenum value to the request property////////
- warning
- info
added the required property
///to the response with the status - info
added the required property
////to the response with the status
- info