These docs are for v1.0. Click to read the latest docs for v2024.09.

Discussions

Ask a Question
Back to All

API integration

I tested the rates API it's working correctly,the same thing for the shippement creation.
But when I extract the courier id and place it in the selected_courier_id i got this message :
Sorry, we couldn't find any shipping solutions based on the information provided.

Shippment creation code :
{
"origin_address": {
"line_1": "33 Rue Bergette",
"state": "Saint Germain",
"city": "Bergette",
"postal_code": "78100",
"contact_name": "ayoub company",
"contact_phone": "+33264700417",
"contact_email": "[email protected]",
"company_name": "ayoub company"
},
"destination_address": {
"line_1": "4 Av. de la Barquière",
"city": "Marseille",
"postal_code": "13009",
"country_alpha2": "FR",
"contact_name": "amine ",
"contact_email": "[email protected]",
"contact_phone": "+33264700417",
"state": "la"
},
"incoterms": "DDU",
"insurance": {
"is_insured": false
},
"courier_selection": {
"allow_courier_fallback": false,
"apply_shipping_rules": true,
"selected_courier_id": "de7ef00e-0b56-46da-b6c7-0a7cd7c0e1d3"
},
"shipping_settings": {
"units": {
"weight": "kg",
"dimensions": "cm"
},
"buy_label": false,
"buy_label_synchronous": false,
"printing_options": {
"format": "png",
"label": "4x6",
"commercial_invoice": "A4",
"packing_slip": "4x6"
}
},
"parcels": [
{
"total_actual_weight": 1,
"box": {
"length": 10,
"width": 10,
"height": 10
},
"items": [
{
"quantity": 1,
"dimensions": {
"length": 10,
"width": 10,
"height": 10
},
"category": "Home Decor",
"description": "motors parametres",
"actual_weight": 10,
"declared_currency": "EUR",
"declared_customs_value": 1,
"sku": "helloayoub"
}
]
}
]
}

Rates code :
{
"origin_address": {
"line_1": "33 rue bergette",
"state": "saint germain",
"city": "Saint-Germain-en-Laye",
"postal_code": "78100",
"company_name": "amine company",
"contact_name": "amine",
"contact_phone": "+33264700417",
"contact_email": "[email protected]"
},
"destination_address": {
"line_1": "Utica Ave",
"state": "New York",
"city": "New York",
"postal_code": "11213",
"country_alpha2": "US",
"company_name": "ayoub company",
"contact_name": "ayoub",
"contact_phone": "+4420325896",
"contact_email": "[email protected]"
},
"incoterms": "DDU",
"insurance": {
"is_insured": false
},
"courier_selection": {
"apply_shipping_rules": true
},
"shipping_settings": {
"units": {
"weight": "kg",
"dimensions": "cm"
}
},
"parcels": [
{
"total_actual_weight": 1,
"box": {
"length": 10,
"width": 10,
"height": 10
},
"items": [
{
"quantity": 1,
"dimensions": {
"length": 10,
"width": 10,
"height": 10
},
"category": "Home Decor",
"description": "motors parametres",
"actual_weight": 10,
"declared_currency": "EUR",
"declared_customs_value": 1,
"sku": "helloayoub"
}
]
}
]
}