Discussions

Ask a Question
Back to All

API shipment request failure - Denmark export to Spain

Hello,

We recently tried to book a shipment, via our API, going from Denmark to Spain. I expected that our DHL rates, on our own courier account DHL DK Export (302392238) would be returned and the shipment booked successfully. It appears we are able to book shipments, with this account, when it's a domestic (DK to DK) shipment, but DK to EU or rest of world is problematic.

Our request:

{"origin_address":{"line_1":"Bredgade 65","city":"Copenhagen K","postal_code":" 1260","country_alpha2":"DK","contact_email":"[email protected]","contact_phone":"+45 71 99 51 24","company_name":"Elhanati","contact_name":"Dave Marsland"},"destination_address":{"line_1":"Carrer de les Oliveres 9","line_2":"can macia","city":"Sant Pere de Ribes","postal_code":"08810","country_alpha2":"ES","contact_email":"[email protected]","contact_phone":"+34 633 67 88 27","company_name":"Karolin y Manuel Trockels Mora","contact_name":"Karolin y Manuel Trockels Mora"},"order_data":{"platform_name":"Finematter","platform_order_number":"FM4205-F1"},"incoterms":"DDP","shipping_settings":{"buy_label_synchronous":true,"buy_label":true},"parcels":[{"box":{"length":8,"width":23,"height":14},"total_actual_weight":0.184,"items":[{"quantity":1,"description":"Esmeralda duo emerald and diamond ring (54 mm)","hs_code":711319,"actual_weight":0.1,"origin_country_alpha2":"DK","declared_currency":"EUR","declared_customs_value":1149.59,"sku":"FM-ELH-ELH/SO/1010EM-54","category":"jewelry"}]}]}

The response:

{"shipment":{"easyship_shipment_id":"ESDK146994583","consignee_tax_id":null,"courier":null,"created_at":"2023-06-02T09:34:38Z","currency":"GBP","delivery_state":"not_created","destination_address":{"city":"Sant Pere de Ribes","company_name":"Karolin y Manuel Trockels Mora","contact_email":"[email protected]","contact_name":"Karolin y Manuel Trockels Mora","contact_phone":"+34633678827","country_alpha2":"ES","line_1":"Carrer de les Oliveres 9","line_2":"can macia","postal_code":"08810","state":null},"eei_reference":null,"incoterms":null,"insurance":{"is_insured":false,"insured_amount":0,"insured_currency":"GBP"},"label_generated_at":null,"label_paid_at":null,"label_state":"not_created","last_failure_http_response_messages":[],"metadata":{},"order_created_at":null,"order_data":{"platform_name":"Finematter","platform_order_number":"FM4205-F1","order_tag_list":[],"seller_notes":null,"buyer_notes":null},"origin_address":{"city":"Copenhagen K","company_name":"Elhanati","contact_email":"[email protected]","contact_name":"Dave Marsland","contact_phone":"+45 71 99 51 24","country_alpha2":"DK","line_1":"Bredgade 65","line_2":null,"postal_code":" 1260","state":null},"parcels":[{"box":{"id":null,"name":null,"outer_dimensions":{"length":8,"width":23,"height":14},"slug":null,"type":"box","weight":0},"items":[{"actual_weight":0.1,"category":"Jewelry","contains_battery_pi966":null,"contains_battery_pi967":null,"contains_liquids":null,"declared_currency":"EUR","declared_customs_value":1149.59,"description":"Esmeralda duo emerald and diamond ring (54 mm)","dimensions":{"length":0,"width":0,"height":0},"hs_code":"71131900","origin_country_alpha2":"DK","origin_currency":"GBP","origin_customs_value":980.7335603469579,"quantity":1,"sku":"FM-ELH-ELH/SO/1010EM-54"}],"total_actual_weight":0.184}],"pickup_state":"not_requested","rates":[],"regulatory_identifiers":{"eori":null,"ioss":null,"vat_number":null},"return":false,"return_address":{"city":"Copenhagen K","company_name":"Elhanati","contact_email":"[email protected]","contact_name":"Dave Marsland","contact_phone":"+45 71 99 51 24","country_alpha2":"DK","line_1":"Bredgade 65","line_2":null,"postal_code":" 1260","state":null},"sender_address":{"city":"Copenhagen K","company_name":"Elhanati","contact_email":"[email protected]","contact_name":"Dave Marsland","contact_phone":"+45 71 99 51 24","country_alpha2":"DK","line_1":"Bredgade 65","line_2":null,"postal_code":" 1260","state":null},"set_as_residential":false,"shipment_state":"created","shipping_documents":[],"tracking_page_url":"https://www.trackmyshipment.co/shipment-tracking/ESDK146994583","trackings":[],"updated_at":"2023-06-02T09:34:38Z","warehouse_state":"none"},"meta":{"status":"partial_success","errors":["Sorry, we couldn't find any shipping solutions based on the information provided."],"unavailable_couriers":[]}}