Discussions
Partial Success creating shipment
over 1 year ago by Stratos G
Hello,
I tried creating my first shipment, but I get a partial success and can't really understand what I'm sending wrong from the error output under the meta property:
easyship createShipment res.data {
"shipment": {
"easyship_shipment_id": "ESNL10119730",
"consignee_tax_id": null,
"courier": {
"id": "a8b34d9c-e1a0-4bd3-a972-113a9a7c3d6a",
"name": "UPS® Standard"
},
"created_at": "2023-03-02T23:42:18Z",
"currency": "EUR",
"delivery_state": "not_created",
"destination_address": {
"city": "Berlin",
"company_name": "Testy Testionopoulos",
"contact_email": "[email protected]",
"contact_name": "Testy Testionopoulos",
"contact_phone": "0044011001100",
"country_alpha2": "DE",
"line_1": "Test 2",
"line_2": null,
"postal_code": "10117",
"state": null
},
"eei_reference": null,
"incoterms": "DDU",
"insurance": {
"is_insured": false,
"insured_amount": 28.08,
"insured_currency": "EUR"
},
"label_generated_at": null,
"label_paid_at": "2023-03-02T23:42:18Z",
"label_state": "technical_failed",
"metadata": {},
"order_created_at": null,
"order_data": {
"platform_name": null,
"platform_order_number": null,
"order_tag_list": [],
"seller_notes": null,
"buyer_notes": null
},
"origin_address": {
"city": "Amsterdam",
"company_name": "Testos Testopoulos",
"contact_email": "[email protected]",
"contact_name": "Testos Testopoulos",
"contact_phone": "6900000000",
"country_alpha2": "NL",
"line_1": "Test 1",
"line_2": null,
"postal_code": "1076 CV",
"state": null
},
"parcels": [
{
"box": {
"id": null,
"name": null,
"outer_dimensions": {
"length": 10,
"width": 10,
"height": 10
},
"slug": null,
"weight": 0
},
"items": [
{
"actual_weight": 0,
"category": null,
"contains_battery_pi966": null,
"contains_battery_pi967": null,
"contains_liquids": null,
"declared_currency": "EUR",
"declared_customs_value": 1.5,
"description": "DESCRIPTION",
"dimensions": {
"length": 0,
"width": 0,
"height": 0
},
"hs_code": "4821104000",
"origin_country_alpha2": "GR",
"origin_currency": "EUR",
"origin_customs_value": 1.5,
"quantity": 10,
"sku": null
}
],
"total_actual_weight": 0.001
}
],
"pickup_state": "not_requested",
"rates": [
{
"additional_services_surcharge": 0,
"available_handover_options": [
"dropoff",
"paid_pickup"
],
"cost_rank": 1,
"courier_id": "a8b34d9c-e1a0-4bd3-a972-113a9a7c3d6a",
"courier_name": "UPS® Standard",
"courier_remarks": "Surcharge for Residential Deliveries",
"currency": "EUR",
"ddp_handling_fee": 0,
"delivery_time_rank": 1,
"description": null,
"discount": {
"amount": 0,
"origin_amount": 0
},
"easyship_rating": null,
"estimated_import_duty": 0,
"estimated_import_tax": 0,
"fuel_surcharge": 2.27,
"full_description": null,
"import_duty_charge": 0,
"import_tax_charge": 0,
"import_tax_non_chargeable": 0,
"incoterms": "DDU",
"insurance_fee": 0,
"is_above_threshold": false,
"max_delivery_time": 5,
"min_delivery_time": 3,
"minimum_pickup_fee": 0,
"other_surcharges": null,
"oversized_surcharge": 0,
"payment_recipient": "Easyship",
"provincial_sales_tax": 0,
"rates_in_origin_currency": null,
"remote_area_surcharge": 0,
"remote_area_surcharges": null,
"residential_discounted_fee": null,
"residential_full_fee": null,
"sales_tax": 0,
"shipment_charge": 10.81,
"shipment_charge_total": 13.08,
"total_charge": 13.08,
"tracking_rating": 3,
"value_for_money_rank": 1,
"warehouse_handling_fee": 0
}
],
"regulatory_identifiers": {
"eori": null,
"ioss": null,
"vat_number": null
},
"return_address": {
"city": "Amsterdam",
"company_name": "Testos Testopoulos",
"contact_email": "[email protected]",
"contact_name": "Testos Testopoulos",
"contact_phone": "6900000000",
"country_alpha2": "NL",
"line_1": "Test 1",
"line_2": null,
"postal_code": "1076 CV",
"state": null
},
"sender_address": {
"city": "Amsterdam",
"company_name": "Testos Testopoulos",
"contact_email": "[email protected]",
"contact_name": "Testos Testopoulos",
"contact_phone": "6900000000",
"country_alpha2": "NL",
"line_1": "Test 1",
"line_2": null,
"postal_code": "1076 CV",
"state": null
},
"set_as_residential": false,
"shipment_state": "created",
"shipping_documents": [],
"tracking_page_url": "https://www.trackmyshipment.co/shipment-tracking/ESNL10119730",
"trackings": [],
"updated_at": "2023-03-02T23:42:18Z",
"warehouse_state": "none"
},
"meta": {
"status": "partial_success",
"errors": [
"undefined method `[]' for nil:NilClass"
]
}
}```