Discussions

Ask a Question

get rates is not working

\`async function getShippingPriceEasyShip() { try { easyship.auth(easyShipSandBoxApi); const rates = await easyship.rates_request({ courier_selection: {apply_shipping_rules: false, show_courier_logo_url: false}, destination_address: {country_alpha2: 'US'}, incoterms: 'DDU', origin_address: { city: "New York", state: "NY", postal_code: "10001", country_alpha2: "US" }, destination_address: { city: "Washington", state: "DC", postal_code: "20500", country_alpha2: "US" }, incoterms: "DDU", insurance: { is_insured: false }, parcels: \[ { items: [ { contains_battery_pi966: true, contains_battery_pi967: true, contains_liquids: false, declared_currency: "USD", origin_country_alpha2: "US", quantity: 11, actual_weight: 20, declared_customs_value: 100, dimensions: { length: 30, width: 20, height: 10, unit: "cm" }, category: "Electronics", item_category_id: "12345", hs_code: "85171200" } ] } ], shipping_settings: { units: { dimensions: "cm", weight: "kg" } } }); return rates; ``` } catch (error) { console.error('Error processing shipment update:', error); throw error } ``` }\` This is my function my api keys are working fine, And i have scope for rates as well The issue is its retuning status code : 200, but response is empty `{ "data": { "rates": [], "meta": { "pagination": { "page": 1, "next": null, "count": 0 }, "request_id": "a740353a0c19e7f4a3828ac7702404d8" } }, "status": 200, "headers": {}, "res": {} }`
ANSWERED

Shipments not being recognised in front end

When I create a shipment using the <https://api.easyship.com/2023-01/shipments> and then <https://api.easyship.com/2023-01/labels>, the resulting shipment is not recognised in the front end at all! It appears under Manage Shipments -> All but it does NOT appear under Manage Shipments -> Pending, Manage Shipments -> Rejected, Managed Shipment -> To Print More importantly, if I select the checkbox for the shipment, and click Bulk Actions -> Schedule Pickup. The system says "Please select at least one shipment" Why does it not recognise api created shipments?
ANSWERED

Not Allowed to book timeslot for courier

I am trying to use this endpoint <https://api.easyship.com/2023-01/pickups> Before calling this, I first get the courier's available pickup slots using <https://api.easyship.com/2023-01/couriers/{courier_id}/pickup_slots> (My courier ID is 64b5d8b2-4c60-4faf-bf1b-9f7b1b7ca1c8) However, the "pickups" endpoint then states that the slot I have selected can no longer be booked. So why does it appear it appear in the list!? Also, the same timeslot is available when I book the pickup manually (which suggests that the api endpoint is returning incorrect information - is it using the correct time - i.e. Hong Kong?)
ANSWERED

Not Receiving Webhooks from Easyship Intermittently

I have several orders that I have not received the updated hook for the return. See that the order was delivered on the outbound, but not seeing the return hook bring in that information (most are sending return and I am getting hooks for them). <br /> Not getting any errors on our end for failing to parse the hooks and operate, seems like a ghost and we are just not receiving them. See that there status is updated in Easyship UI, but not seeing it at all on the webhook front. Any chance that Easyship has had occasional outages with this that have caused the kits to not be scanned on return?
ANSWERED

Please tell me how can I use API.

Hello Admin I hope you are doing well. I am new to easyship API. So please tell me specifically which API to use and when. Best Regards

Sandbox API returns no quotes

Using Sandbox API leads to no quotes returned Request: {"courier_selection":{"apply_shipping_rules":true},"origin_address":{"country_alpha2":"AU","city":"SYDNEY","postal_code":"2000","state":"NSW"},"destination_address":{"country_alpha2":"AU","postal_code":"3000","state":"VIC","city":"MELBOURNE"},"incoterms":"DDU","insurance":{"is_insured":true},"parcels":\[{"box":{"height":11.0,"length":11.0,"width":11.0},"items":[{"declared_currency":"AUD","declared_customs_value":1.0,"description":"Box","hs_code":"49011010","origin_country_alpha2":"AU","quantity":1}],"total_actual_weight":1.0}],"shipping_settings":{"units":{"dimensions":"cm","weight":"kg"}}} Response: {"rates":\[],"meta":{"pagination":{"page":1,"next":null,"count":0},"request_id":"411c1109064639fc7b9adecc1aa3cf60"}} I can share API Key in some private way also. Same for production returns some quotes.

How can I use test easyship API?

Hello Easyship Support, I am currently developing an application that will integrate with Easyship’s API, and I would like to request access to the Sandbox environment for testing purposes. This will allow me to simulate shipping processes without incurring real charges. First: Please provide the necessary credentials and any additional information needed to set up and use the Sandbox environment. Second: How many days does it take for delivery to be approved in a sandbox environment? Third: What is required to implement tracking in a sandbox environment? I appreciate your support. Best regards,
ANSWERED

i am getting "Sorry, we couldn't find any shipping solutions based on the information provided." i am using sandbox account for this

``` "meta": { "errors": [ "Sorry, we couldn't find any shipping solutions based on the information provided." ], "request_id": "29e8ff8c610e0610f1769319b02f4955", "status": "partial_success", "unavailable_couriers": [] } ```
ANSWERED

API is not working

I'm using this <https://api.easyship.com/2023-01/shipments> API for creating shipment but it is creating in one shipping method I'm sending the shipping id and name but its not using that particular shipping method.
ANSWERED

why I am Not able to add "Shipping Rule" scope in custom api integartion

I am not able to use this epi endpoint <https://api.easyship.com/2023-01/shipping_rules> { "error": { "code": "forbidden", "details": [ "Access to this resource requires scope(s) shipping_rule." ], "message": "You do not have permission to access this resource. Please contact our support team or your account manager if you believe you should have access.", "request_id": "afbf9eb37531f075083ca3e31b5c454b", "type": "invalid_request_error" } } Also there is no scope listed in the api integration scopes