Discussions

Ask a Question

Getting error on shipment create

I am getting the below error while creating new shipment. ["origin_address.contact_email is invalid","destination_address.postal_code is too long (maximum is 20 characters)","destination_address.contact_phone is too long (maximum is 20 characters)","destination_address.contact_email is invalid","sender_address.contact_email is invalid","return_address.contact_email is invalid","insurance.insured_amount is not a number"],"request_id":"4d489bb7-852e-4f8e-b5d2-e3cb8507cea1","timestamp":"2022-01-11T18:35:34.269Z"} I am sending the follwoing data:

In node js i get this unexpected error

shipping rates error [ 'Oops, an unexpected error occurred. Please check your request and try sending it again. You can contact us if the problem persists.' ]

Shipment status not match

I have created and brought label for two shipment. Both use HK Post - Local Parcel One created by easyship website. status: to be dropoff The other one created by api. status: label ready In the shipment infomation popup: Created by api shipment's Handover Information is empty. Created by easyship website shipment's Handover Information is not empty. And according to api document's status, both two shipment's status not in the list. ```Each Checkpoint has a message to indicate what the status of the Shipment was for that Checkpoint. The list of possible status messages are: Pending Tracking Event, Tracking Information Received, In Transit to Customer, Out For Delivery, Delivered, Exception, Cancelled, Pending Refund, Cancelled and Refunded.``` Is there any problem with the shipment status?

Not getting the Rate

When we call the rate api we get's an error message as "Sorry, we couldn't find any shipping solutions based on the information provided" This is he body {'origin_address': {'line_1': 'Room B, 17/F,', 'line_2': "King's Road 388, North Point", 'state': 'hong kong', 'city': 'Hong Kong', 'postal_code': False, 'company_name': 'My Company (San Francisco)', 'contact_name': 'Azure Interior', 'contact_phone': '+58 212 681 0538', 'contact_email': '[email protected]'}, 'destination_address': {'line_1': 'Room B, 17/F,', 'line_2': "King's Road 388, North Point", 'state': 'hong kong', 'city': 'Hong Kong', 'postal_code': False, 'country_alpha2': 'HK', 'company_name': 'My Company (San Francisco)', 'contact_name': 'Azure Interior', 'contact_phone': '+58 212 681 0538', 'contact_email': '[email protected]'}, 'incoterms': 'DDU', 'selected_courier_id': '8bcdb095-bf5f-43bd-8721-6c665d5b398d', 'courier_selection': {'apply_shipping_rules': True}, 'shipping_settings': {'units': {'weight': 'kg', 'dimensions': 'cm'}, 'output_currency': 'USD'}, 'insurance': {'is_insured': True, 'insured_amount': 1.0, 'insured_currency': 'HKD'}, 'parcels': [{'total_actual_weight': 2.0, 'box': {'slug': 'crafts', 'length': 2.0, 'width': 2.0, 'height': 2.0}, 'items': [{'quantity': 2, 'category': 'Crafts', 'description': '[E-COM06] Corner Desk Right Sit', 'sku': 'E-COM06', 'actual_weight': 1.0, 'declared_currency': 'HKD', 'declared_customs_value': 147.0, 'dimensions': {'length': 1.0, 'width': 1.0, 'height': 1.0}}]}]}

Note getting Rates

When we call the rate api we get's an error message as "Sorry, we couldn't find any shipping solutions based on the information provided" This is he body {'origin_address': {'line_1': 'Room B, 17/F,', 'line_2': "King's Road 388, North Point", 'state': 'hong kong', 'city': 'Hong Kong', 'postal_code': False, 'company_name': 'My Company (San Francisco)', 'contact_name': 'Azure Interior', 'contact_phone': '+58 212 681 0538', 'contact_email': '[email protected]'}, 'destination_address': {'line_1': 'Room B, 17/F,', 'line_2': "King's Road 388, North Point", 'state': 'hong kong', 'city': 'Hong Kong', 'postal_code': False, 'country_alpha2': 'HK', 'company_name': 'My Company (San Francisco)', 'contact_name': 'Azure Interior', 'contact_phone': '+58 212 681 0538', 'contact_email': '[email protected]'}, 'incoterms': 'DDU', 'selected_courier_id': '8bcdb095-bf5f-43bd-8721-6c665d5b398d', 'courier_selection': {'apply_shipping_rules': True}, 'shipping_settings': {'units': {'weight': 'kg', 'dimensions': 'cm'}, 'output_currency': 'USD'}, 'insurance': {'is_insured': True, 'insured_amount': 1.0, 'insured_currency': 'HKD'}, 'parcels': [{'total_actual_weight': 2.0, 'box': {'slug': 'crafts', 'length': 2.0, 'width': 2.0, 'height': 2.0}, 'items': [{'quantity': 2, 'category': 'Crafts', 'description': '[E-COM06] Corner Desk Right Sit', 'sku': 'E-COM06', 'actual_weight': 1.0, 'declared_currency': 'HKD', 'declared_customs_value': 147.0, 'dimensions': {'length': 1.0, 'width': 1.0, 'height': 1.0}}]}]}

Could not return rates

Hi, I'm trying to get rates for provided data, but I'm always getting an error: "Sorry, we couldn't find any shipping solutions based on the information provided." Endpoint: https://api.easyship.com/v2/rates Json request: { "origin_address": { "line_1": "417 Montgomery st", "line_2": "floor 5", "state": "CA", "city": "San Francisco", "postal_code": "94104", "country_alpha2": "US" }, "destination_address": { "line_1": "10231 Ridge Road", "line_2": "", "state": "OH", "city": "North Royalton", "postal_code": "44133", "country_alpha2": "US" }, "incoterms": "DDU", "insurance": { "is_insured": false, "insured_amount": 10, "insured_currency": "USD" }, "courier_selection": { "apply_shipping_rules": true }, "shipping_settings": { "units": { "weight": "lb", "dimensions": "in" }, "output_currency": "HKD" }, "parcels": [ { "total_actual_weight": 0.8, "box": { "slug": null, "length": 10, "width": 8, "height": 5 }, "items": [ { "description": "Silk dress", "category": "fashion", "sku": "test01", "quantity": 2, "dimensions": { "length": null, "width": null, "height": null }, "actual_weight": 10, "declared_currency": "USD", "declared_customs_value": 20 } ] } ] } Can you help me and tell me where I was wrong, or send me one valid json request?

Could not find rates with multiple parcels

Hi there, hope you are doing great. I am using Easyship API to get rates and create shipment, but I am facing an issue related to rates API. Whenever I send request with multiple parcels, I receive this kind of response,{"status":"failure","errors":["Sorry, we couldn't find any shipping solutions based on the information provided."],"request_id":"20a212fa-b873-4d20-b5a2-50b8c43201f4"}. But this works fine and return rates, if I send requests with the same information with only one parcel. I am using PHP Crul to send requests. I also attached a file so you can check what the issue is, maybe there is something missing in my request. I have tried many combinations of information but the response is the same with multiple parcels. I already send a request(285846), in which I have attached my code file. Thank you Qasim Rafique

Rates API not returning TNT rates

Hi, I can't seem to get TNT rates using the Rates API, even though they are showing under quotes in the Admin Dashboard for the exact same item/addresses. Would anyone know the reason for this? Do TNT rates require additional parameters to be included when making requests to the Rates API? Thanks

create Shipment and buy label give errors

1. can we required amount for buy labels (Integrate label API for development purpose) and also getting following error , check screenshot https://prnt.sc/1azwaym 2. is it required to fill all parameter at the time of shipment create process and brief about following parameter (a)taxes_duties_paid_by (b) is_insured (c) declared_customs_value 3.Pleae can you provide details about how to get tracking status of any shipment

Create and Buy Label API with Sandbox account

When we call https://api.easyship.com/shipment/v1/shipments/create_and_buy_label with the data (see attached) to the sandbox, we got the error "There is not enough credit on your account" but we have already deposited money. Please help to check. Thanks. [Data sending to EasyShip] {'origin_country_alpha2': 'HK', 'origin_city': '', 'origin_state': '', 'origin_postal_code': '', 'destination_country_alpha2': 'HK', 'destination_city': 'Quarry Bay', 'destination_state': '', 'destination_postal_code': '', 'destination_address_line_1': 'aaa', 'destination_address_line_2': 'ccc', 'taxes_duties_paid_by': 'Sender', 'is_insured': False, 'nz_delivery_carrier': delivery.carrier(3,), 'platform_order_number': 'WH/OUT/00010', 'destination_name': 'Andy Wai', 'destination_company_name': '', 'destination_phone_number': False, 'destination_email_address': False, 'items': [{'description': '克羅地亞松露蜜糖', 'sku': 'GT01', 'actual_weight': 1.0, 'category': 'dry_food_supplements', 'quantity': 1.0, 'declared_currency': 'HKD', 'declared_customs_value': 118.0}], 'box': {'length': 0, 'width': 0, 'height': 0}, 'total_actual_weight': 0.0, 'selected_courier_id': False, 'buy_label_synchronous': True, 'label': '4x6', 'commercial_invoice': '4x6', 'packing_slip': '4x6', 'format': 'PDF'} [Response] {'created_at': '2021-06-30T09:41:39.317Z', 'updated_at': '2021-06-30T09:41:39.621Z', 'order_created_at': None, 'easyship_shipment_id': 'ESHK10078114', 'origin_address': {'id': '2313ec67-df3c-48a2-89ee-b6b285b8c406', 'company_name': 'Shop Croatia', 'contact_name': 'Jutin Chan', 'contact_email': '[email protected]', 'contact_phone': '63601403', 'line_1': 'Room 117, The Merit A3, G/F', 'line_2': 'Merit Industrial Centre', 'postal_code': '', 'city': 'Ma Tau Kok', 'state': None, 'country': {'name': 'Hong Kong'}, 'default_values': {'pickup': True, 'billing': True, 'sender': True, 'return': True}, 'hk_district_id': 63}, 'store_name': 'Odoo', 'set_as_residential': False, 'destination_name': 'Andy Wai', 'destination_company_name': '', 'consignee_tax_id': None, 'destination_address_line_1': 'aaa', 'destination_address_line_2': 'ccc', 'destination_city': 'Quarry Bay', 'destination_state': None, 'destination_postal_code': '0', 'destination_phone_number': 'f', 'destination_email_address': 'f', 'order_notes': None, 'buyer_notes': None, 'seller_notes': None, 'order_tag_list': [], 'platform_order_number': 'WH/OUT/00010', 'platform_name': 'API', 'total_customs_value': 118.0, 'total_actual_weight': 1.0, 'total_dimensional_weight': 0.0, 'total_volumetric_weight': 1.0, 'is_insured': False, 'currency': 'HKD', 'shipment_state': 'created', 'pickup_state': 'not_requested', 'delivery_state': 'not_created', 'label_state': 'not_created', 'warehouse_state': 'none', 'label_response': {'errors': ['There is not enough credit on your account'], 'available_balance': 0.0}, 'origin_country': {'name': 'Hong Kong', 'alpha2': 'HK'}, 'destination_country': {'name': 'Hong Kong', 'alpha2': 'HK'}, 'items': [{'id': '54c31d35-0f3f-49ee-a6de-b9a61dda8299', 'description': '克羅地亞松露蜜糖', 'sku': 'GT01', 'width': None, 'length': None, 'height': None, 'actual_weight': 1.0, 'dimensional_weight': 0.0, 'volumetric_weight': 1.0, 'declared_customs_value': 118.0, 'declared_currency': 'HKD', 'origin_customs_value': 118.0, 'origin_currency': 'HKD', 'category': 'dry_food_supplements', 'quantity': 1}], 'box': {'name': None, 'length': '0.0', 'width': '0.0', 'height': '0.0'}, 'selected_courier': {'id': '64b5d8b2-4c60-4faf-bf1b-9f7b1b7ca1c8', 'name': 'SF Express - Local', 'min_delivery_time': '2', 'max_delivery_time': '3', 'shipment_charge': 22.0, 'fuel_surcharge': 0.0, 'remote_area_surcharge': 0.0, 'oversized_surcharge': 0.0, 'additional_services_surcharge': 0.0, 'residential_full_fee': 0.0, 'residential_discounted_fee': 0.0, 'shipment_charge_total': 22.0, 'warehouse_handling_fee': 0.0, 'insurance_fee': 0.0, 'import_tax_charge': 0.0, 'import_duty_charge': 0.0, 'ddp_handling_fee': 0.0, 'total_charge': 22.0, 'is_above_threshold': False, 'effective_incoterms': 'DDU', 'estimated_import_tax': 0, 'estimated_import_duty': 0, 'courier_does_pickup': None, 'courier_dropoff_url': 'https://htm.sf-express.com/hk/en/dynamic_function/S.F.Network/SF_store_address/', 'available_handover_options': 'dropoff,free_pickup', 'courier_remarks': None, 'payment_recipient': 'Easyship'}, 'rates': [{'courier_id': '64b5d8b2-4c60-4faf-bf1b-9f7b1b7ca1c8', 'courier_name': 'SF Express - Domestic', 'min_delivery_time': 2, 'max_delivery_time': 3, 'value_for_money_rank': 1.0, 'delivery_time_rank': 1.0, 'shipment_charge': 22.0, 'fuel_surcharge': 0.0, 'remote_area_surcharge': 0.0, 'oversized_surcharge': 0.0, 'additional_services_surcharge': 0.0, 'residential_full_fee': 0.0, 'residential_discounted_fee': 0.0, 'shipment_charge_total': 22.0, 'warehouse_handling_fee': 0.0, 'insurance_fee': 0.0, 'sales_tax': 0.0, 'provincial_sales_tax': 0.0, 'ddp_handling_fee': 0.0, 'import_tax_charge': 0.0, 'import_duty_charge': 0.0, 'total_charge': 22.0, 'is_above_threshold': False, 'effective_incoterms': 'DDU', 'estimated_import_tax': 0, 'estimated_import_duty': 0, 'courier_does_pickup': True, 'courier_dropoff_url': 'https://htm.sf-express.com/hk/en/dynamic_function/S.F.Network/SF_store_address/', 'available_handover_options': 'dropoff,free_pickup', 'tracking_rating': 3, 'easyship_rating': 3.7, 'courier_remarks': None, 'payment_recipient': 'Easyship'}, {'courier_id': '3e71bdf7-1aaa-4cbb-b29c-c52829e69419', 'courier_name': 'HK Post - Smart Post', 'min_delivery_time': 2, 'max_delivery_time': 4, 'value_for_money_rank': 2.0, 'delivery_time_rank': 2.0, 'shipment_charge': 28.0, 'fuel_surcharge': 0.0, 'remote_area_surcharge': 0.0, 'oversized_surcharge': 0.0, 'additional_services_surcharge': 0.0, 'residential_full_fee': 0.0, 'residential_discounted_fee': 0.0, 'shipment_charge_total': 28.0, 'warehouse_handling_fee': 0.0, 'insurance_fee': 0.0, 'sales_tax': 0.0, 'provincial_sales_tax': 0.0, 'ddp_handling_fee': 0.0, 'import_tax_charge': 0.0, 'import_duty_charge': 0.0, 'total_charge': 28.0, 'is_above_threshold': False, 'effective_incoterms': 'DDU', 'estimated_import_tax': 0, 'estimated_import_duty': 0, 'courier_does_pickup': False, 'courier_dropoff_url': 'https://www.ec-ship.hk/platform/accept_office.jsp', 'available_handover_options': 'dropoff', 'tracking_rating': 1, 'easyship_rating': 4.3, 'courier_remarks': None, 'payment_recipient': 'Courier'}, {'courier_id': 'd6cfc6d2-3857-4f42-a2a4-9e10ac9766ac', 'courier_name': 'HK Post - Local Parcel', 'min_delivery_time': 2, 'max_delivery_time': 4, 'value_for_money_rank': 3.0, 'delivery_time_rank': 3.0, 'shipment_charge': 75.0, 'fuel_surcharge': 0.0, 'remote_area_surcharge': 0.0, 'oversized_surcharge': 0.0, 'additional_services_surcharge': 0.0, 'residential_full_fee': 0.0, 'residential_discounted_fee': 0.0, 'shipment_charge_total': 75.0, 'warehouse_handling_fee': 0.0, 'insurance_fee': 0.0, 'sales_tax': 0.0, 'provincial_sales_tax': 0.0, 'ddp_handling_fee': 0.0, 'import_tax_charge': 0.0, 'import_duty_charge': 0.0, 'total_charge': 75.0, 'is_above_threshold': False, 'effective_incoterms': 'DDU', 'estimated_import_tax': 0, 'estimated_import_duty': 0, 'courier_does_pickup': False, 'courier_dropoff_url': 'https://www.hongkongpost.hk/en/about_us/network/post_offices/index.html#list', 'available_handover_options': 'dropoff', 'tracking_rating': 1, 'easyship_rating': 4.5, 'courier_remarks': None, 'payment_recipient': 'Courier'}], 'is_merged': False, 'discount': {'code': None, 'amount': 0, 'expires_at': None, 'percentage': None}}