{
"from_address": {
"name": "John Doe",
"address_line_1": "Stadhuisplein",
"postal_code": "1013 AB",
"city": "Eindhoven",
"country_code": "NL",
"company_name": "Sendcloud",
"house_number": "50",
"address_line_2": "Apartment 17B",
"po_box": "<string>",
"state_province_code": "IT-RM",
"email": "johndoe@gmail.com",
"phone_number": "+319881729999"
},
"to_address": {
"name": "John Doe",
"address_line_1": "Stadhuisplein",
"postal_code": "1013 AB",
"city": "Eindhoven",
"country_code": "NL",
"company_name": "Sendcloud",
"house_number": "50",
"address_line_2": "Apartment 17B",
"po_box": "<string>",
"state_province_code": "IT-RM",
"email": "johndoe@gmail.com",
"phone_number": "+319881729999"
},
"ship_with": {
"type": "shipping_option_code",
"shipping_option_code": "dpd:return/return",
"shipping_product_code": "dpd:return/return",
"functionalities": {
"age_check": null,
"b2b": true,
"b2c": true,
"boxable": true,
"bulky_goods": true,
"carrier_billing_type": "country",
"cash_on_delivery": 123,
"dangerous_goods": true,
"delivery_attempts": 123,
"delivery_before": "<string>",
"delivery_deadline": "best_effort",
"direct_contract_only": true,
"eco_delivery": true,
"first_mile": "pickup",
"flex_delivery": true,
"form_factor": "letter",
"fragile_goods": true,
"fresh_goods": true,
"harmonized_label": true,
"id_check": true,
"incoterm": "dap",
"insurance": 123,
"last_mile": "home_delivery",
"manually": true,
"multicollo": true,
"neighbor_delivery": true,
"non_conveyable": true,
"personalized_delivery": true,
"premium": true,
"priority": "economical",
"registered_delivery": true,
"returns": true,
"segment": "a+",
"service_area": "domestic",
"signature": true,
"size": "xs",
"sorted": true,
"surcharge": true,
"tracked": true,
"tyres": true,
"weekend_delivery": "saturday",
"ers": true,
"pick_up": true,
"labelless": true
},
"contract": 123
},
"weight": 2.8,
"dimensions": {
"height": 10,
"width": 10,
"length": 10
},
"collo_count": 1,
"parcel_items": [
{
"item_id": "5552",
"description": "T-Shirt XL",
"quantity": 1,
"weight": {
"value": 14.5,
"unit": "g"
},
"price": {
"value": 123,
"currency": "EUR"
},
"value": {
"value": 123,
"currency": "EUR"
},
"hs_code": "6205.20",
"origin_country": "NL",
"sku": "TS1234",
"product_id": "19284",
"return_reason_id": "1",
"return_message": "Too big",
"mid_code": "NLOZR92MEL",
"material_content": "100% Cotton",
"intended_use": "Personal use",
"dangerous_goods": {
"chemical_record_identifier": "<string>",
"regulation_set": "IATA",
"packaging_type_quantity": "<string>",
"packaging_type": "<string>",
"packaging_instruction_code": "<string>",
"id_number": "<string>",
"class_division_number": "<string>",
"quantity": "<string>",
"unit_of_measurement": "kg",
"proper_shipping_name": "<string>",
"commodity_regulated_level_code": "LQ",
"transportation_mode": "Highway",
"emergency_contact_name": "<string>",
"emergency_contact_phone": "<string>",
"adr_packing_group_letter": "I",
"local_proper_shipping_name": "<string>",
"transport_category": "<string>",
"tunnel_restriction_code": "<string>",
"weight_type": "net"
},
"dds_reference": "25FIYPEK0A7573",
"taric_doc_code": "Y142",
"manufacturer_product_id": "ABC-12345",
"manufacturer_product_id_std": "01234567890128",
"cpsc": {
"product_id": "12345",
"certifier_id": "67890",
"version_id": "1"
},
"properties": {
"size": "red",
"color": "green"
},
"variant_id": "size-l"
}
],
"send_tracking_emails": false,
"brand_id": 1,
"total_insured_value": {
"value": 123,
"currency": "EUR"
},
"order_number": "ORD12355",
"total_order_value": {
"value": 123,
"currency": "EUR"
},
"external_reference": "RET9876",
"customs_shipment_type": 0,
"delivery_option": "drop_off_point"
}{
"errors": [
{
"field": "id",
"message": "This field is required",
"code": "unknown_field"
}
]
}Validate a return
Check if a return can be announced without actually creating the return, or announcing it with the carrier.
{
"from_address": {
"name": "John Doe",
"address_line_1": "Stadhuisplein",
"postal_code": "1013 AB",
"city": "Eindhoven",
"country_code": "NL",
"company_name": "Sendcloud",
"house_number": "50",
"address_line_2": "Apartment 17B",
"po_box": "<string>",
"state_province_code": "IT-RM",
"email": "johndoe@gmail.com",
"phone_number": "+319881729999"
},
"to_address": {
"name": "John Doe",
"address_line_1": "Stadhuisplein",
"postal_code": "1013 AB",
"city": "Eindhoven",
"country_code": "NL",
"company_name": "Sendcloud",
"house_number": "50",
"address_line_2": "Apartment 17B",
"po_box": "<string>",
"state_province_code": "IT-RM",
"email": "johndoe@gmail.com",
"phone_number": "+319881729999"
},
"ship_with": {
"type": "shipping_option_code",
"shipping_option_code": "dpd:return/return",
"shipping_product_code": "dpd:return/return",
"functionalities": {
"age_check": null,
"b2b": true,
"b2c": true,
"boxable": true,
"bulky_goods": true,
"carrier_billing_type": "country",
"cash_on_delivery": 123,
"dangerous_goods": true,
"delivery_attempts": 123,
"delivery_before": "<string>",
"delivery_deadline": "best_effort",
"direct_contract_only": true,
"eco_delivery": true,
"first_mile": "pickup",
"flex_delivery": true,
"form_factor": "letter",
"fragile_goods": true,
"fresh_goods": true,
"harmonized_label": true,
"id_check": true,
"incoterm": "dap",
"insurance": 123,
"last_mile": "home_delivery",
"manually": true,
"multicollo": true,
"neighbor_delivery": true,
"non_conveyable": true,
"personalized_delivery": true,
"premium": true,
"priority": "economical",
"registered_delivery": true,
"returns": true,
"segment": "a+",
"service_area": "domestic",
"signature": true,
"size": "xs",
"sorted": true,
"surcharge": true,
"tracked": true,
"tyres": true,
"weekend_delivery": "saturday",
"ers": true,
"pick_up": true,
"labelless": true
},
"contract": 123
},
"weight": 2.8,
"dimensions": {
"height": 10,
"width": 10,
"length": 10
},
"collo_count": 1,
"parcel_items": [
{
"item_id": "5552",
"description": "T-Shirt XL",
"quantity": 1,
"weight": {
"value": 14.5,
"unit": "g"
},
"price": {
"value": 123,
"currency": "EUR"
},
"value": {
"value": 123,
"currency": "EUR"
},
"hs_code": "6205.20",
"origin_country": "NL",
"sku": "TS1234",
"product_id": "19284",
"return_reason_id": "1",
"return_message": "Too big",
"mid_code": "NLOZR92MEL",
"material_content": "100% Cotton",
"intended_use": "Personal use",
"dangerous_goods": {
"chemical_record_identifier": "<string>",
"regulation_set": "IATA",
"packaging_type_quantity": "<string>",
"packaging_type": "<string>",
"packaging_instruction_code": "<string>",
"id_number": "<string>",
"class_division_number": "<string>",
"quantity": "<string>",
"unit_of_measurement": "kg",
"proper_shipping_name": "<string>",
"commodity_regulated_level_code": "LQ",
"transportation_mode": "Highway",
"emergency_contact_name": "<string>",
"emergency_contact_phone": "<string>",
"adr_packing_group_letter": "I",
"local_proper_shipping_name": "<string>",
"transport_category": "<string>",
"tunnel_restriction_code": "<string>",
"weight_type": "net"
},
"dds_reference": "25FIYPEK0A7573",
"taric_doc_code": "Y142",
"manufacturer_product_id": "ABC-12345",
"manufacturer_product_id_std": "01234567890128",
"cpsc": {
"product_id": "12345",
"certifier_id": "67890",
"version_id": "1"
},
"properties": {
"size": "red",
"color": "green"
},
"variant_id": "size-l"
}
],
"send_tracking_emails": false,
"brand_id": 1,
"total_insured_value": {
"value": 123,
"currency": "EUR"
},
"order_number": "ORD12355",
"total_order_value": {
"value": 123,
"currency": "EUR"
},
"external_reference": "RET9876",
"customs_shipment_type": 0,
"delivery_option": "drop_off_point"
}{
"errors": [
{
"field": "id",
"message": "This field is required",
"code": "unknown_field"
}
]
}write:return. See Scopes for OAuth apps.to and from address, the parcel weight and the shipping product id provided.
parcel_items field is mandatory if you’re creating a return from outside the EU.Authorizations
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.
Body
The Sendcloud id of the service point where the end consumer drops off the return parcel. Use the Retrieve a list of service points endpoint to find service points.
Required when the selected shipping method requires a service point (for example a drop-off return at a pick-up point). The service point must be active and belong to the carrier of the shipping method.
16476354
List of items contained in this return. Required outside EU.
A single item in a domestic return - one that does not cross a customs border and does not require customs documents. All customs fields are optional.
- Domestic return parcel item
- International return parcel item
Show child attributes
Show child attributes
The ID of the brand this return belongs to. To find the brand ID, refer to the Retrieve a list of brands endpoint. If not specified, no brand is applied to the return.
x >= 11
The options the customer has for returning this parcel:
drop_off_point: At a drop-off point - Print at homedrop_off_labelless: At a drop-off point - No printer neededin_store: Return in storepickup: Arrange a pick-up
drop_off_point, drop_off_labelless, pickup, in_store, null 1"drop_off_point"
Customs information used to generate customs documents. Required for returns that need customs documents, unless you provide customs_invoice_nr.
Show child attributes
Show child attributes
{ "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" } ] }, "return_data": { "return_postal_code": "1111 AA", "outbound_tracking_number": "JT1234567890", "outbound_shipment_date": "2023-08-14", "outbound_carrier_name": "UPS" }, "mrn": "25NLQ8PF0V3DJ1MKX7" }
Response
Your return passed all validation
A Sendcloud return validation object
The options the customer has for returning this parcel:
drop_off_point: At a drop-off point - Print at homedrop_off_labelless: At a drop-off point - No printer neededin_store: Return in storepickup: Arrange a pick-up
drop_off_point, drop_off_labelless, pickup, in_store, null 1"drop_off_point"