Discussions

Ask a Question

Hi, where I can get guide on the API requests history.

I use API but it does not show negotiated rates from Easyship

api if exist white list

easyship api if exist white list?

API can't get proper shipping solutions

I'm trying to use the API with my test key and getting this error: "Sorry, we couldn't find any shipping solutions based on the information provided." It works fine for the rates cal, but won't work when I try actually creating a package.

Shopify / Fulfillrite Intergration

Hi we would like to integrate our Easyship accounts to Shopify and then to Fulfillrite for fulfillment. We have one Shopify store and selling/ fulfilling orders in both Australia and the US. Currently we have 2 Easyship accounts (One for Australian rates the other for Us Rates) 1. How do we integrate Shopify to Easyship and then both Easyship accounts to Fulfillrite to get live rates at check out for both locations? I have can copy both API Tokens from each Easyship account but Fulfillrite has only one allocation spot. 2. How can we see the integrations are all working and when we do a test order through Shopify that the order has gone through Easyship and pushed the order to Fulfillrite for fulfillment? Thank you

Unable to download Shipping Documents

Goof afternoon, I am unable to download my documents in Easyship, its been an hour or so and it still says "pending". Do help me in this matter.

Buy label issue

Hello. I'm having this error when i'm trying to buy a label for a shipment using https://api.easyship.com/label/v1/labels request: { "message": "undefined method map' for nil:NilClass", "errors": [ "undefined methodmap' for nil:NilClass" ], "labels": [], "total_cost": null, "available_balance": 100.0 } I'm having it on both sandbox and prod accounts. Can you please explain what this error could mean? Can you please provide a list of possible error codes/errors which can occur on label creation? Also i see on the UI that for some destinations/weight the system can not find a courier. What will be in the buy label api response in this case? And what will be in the response if there's not enough money on available balance ? The shipment was created in postman using https://api.easyship.com/v2/shipments with following body: { "origin_address": { "line_1": "2509 Plantside Dr", "line_2": "Unit 401", "state": "KY", "city": "Louisville", "postal_code": "40299", "country_alpha2": "US", "contact_name": "Rob", "company_name": "SV", "contact_phone": "+8129876619", "contact_email": "[email protected]" }, "sender_address": { "line_1": "2509 Plantside Dr", "line_2": "Unit 401", "state": "KY", "city": "Louisville", "postal_code": "40299", "country_alpha2": "US", "contact_name": "Rob", "company_name": "SV", "contact_phone": "+8129876619", "contact_email": "[email protected]" }, "return_address": { "line_1": "2509 Plantside Dr", "line_2": "Unit 401", "state": "KY", "city": "Louisville", "postal_code": "40299", "country_alpha2": "US", "contact_name": "Rob", "company_name": "SV", "contact_phone": "+8129876619", "contact_email": "[email protected]" }, "destination_address": { "line_1": "9265 Firestone Blvd, Downey, CA 90241, United States", "line_2": "Porte A", "state": "CA", "city": "Downey", "postal_code": "90241", "country_alpha2": "US", "contact_name": "Sonny Bill", "company_name": "Sonny Bill", "contact_phone": "+336638000", "contact_email": "[email protected]" }, "metadata": {}, "set_as_residential": false, "incoterms": "DDU", "shipping_settings": { "units": { "weight": "lb", "dimensions": "in" }, "printing_options": { "format": "pdf", "label": "4x6", "commercial_invoice": "A4", "packing_slip": "none" }, "buy_label": false, "buy_label_synchronous": false }, "parcels": [ { "total_actual_weight": 10, "box": { "slug": null, "length": 10, "width": 8, "height": 5 }, "items": [ { "description": "Silk dress", "category": "fashion", "sku": "test01", "quantity": 2, "dimensions": { "length": 12, "width": 12, "height": 12 }, "actual_weight": 10, "declared_currency": "USD", "declared_customs_value": 20 } ] } ] }

Pickup API: "Sorry, it is too late to request a pickup at this time, please refresh and try again"

Hi I'm trying to create a pickup request for a shipment that I created using the API. In the pickups endpoint call that I'm making I'm passing in the data as per the documentation and the slots returned by the "pickup_slots" end point. It's failing to create the pickup, however, and returns this response: "Sorry, it is too late to request a pickup at this time, please refresh and try again" Here's how I'm passing the data in the request body: { "courier_id": "dfa5ba0d-4f91-4f6d-9622-8f1a22b23855", "preferred_date": "2022-04-26", "preferred_max_time": "2022-04-26T20:00", "preferred_min_time": "2022-04-26T08:00", "easyship_shipment_ids": ["xxxxxxxxxxxx"] } Please provide a solution.

We're sorry, but something went wrong (500)

Hey! I'm attempting to use shipment api to print labels, whilst in sandbox enviroment. I had this working last week- but came back to finish my work and am getting 'We're sorry, but something went wrong (500)' I've run through the script to make sure nothing is wrong with my json etc, and all seems the same as before. All my data, which is passed to the request successfully: {"origin_address":{"line_1":"Gatehouse Lodge","state":"eqweq","city":"Reading","postal_code":"RG76NN","country_alpha2":"GB","contact_name":"Ben b","company_name":"SwapCs","contact_phone":"[email protected]","contact_email":"[email protected]"},"sender_address":{"line_1":"Gatehouse Lodge","state":"eqweq","city":"Reading","postal_code":"RG76NN","country_alpha2":"GB","contact_name":"Ben b","company_name":"SwapCs","contact_phone":"[email protected]","contact_email":"[email protected]"},"return_address":{"line_1":"Gatehouse Lodge","state":"eqweq","city":"Reading","postal_code":"RG76NN","country_alpha2":"GB","contact_name":"Ben b","company_name":"SwapCs","contact_phone":"[email protected]","contact_email":"[email protected]"},"destination_address":{"line_1":"Gatehouse Lodge","state":"eqweq","city":"Reading","postal_code":"RG7 6NN","country_alpha2":"GB","contact_name":"Ben ben","contact_phone":"07955450874","contact_email":"[email protected]"},"metadata":{},"set_as_residential":false,"consignee_tax_id":null,"eei_reference":null,"incoterms":"DDU","insurance":{"is_insured":false,"insured_amount":10,"insured_currency":"GBP"},"order_data":{"platform_name":"SwapCs","platform_order_number":"1003","order_tag_list":["clothes"],"seller_notes":null,"buyer_notes":null},"courier_selection":{"selected_courier_id":"d70f503c-905b-4e28-a015-d27069a09e0c","allow_courier_fallback":true,"apply_shipping_rules":true},"shipping_settings":{"units":{"weight":"lb","dimensions":"in"},"printing_options":{"format":"pdf","label":"4x6","commercial_invoice":"A4","packing_slip":"none"},"buy_label":true,"buy_label_synchronous":true},"parcels":[{"total_actual_weight":0.8,"box":{"length":5,"width":4,"height":2},"items":[{"description":"Silk dress","category":"fashion","sku":"test01","quantity":1,"declared_currency":"GBP","declared_customs_value":20}]}]} Here's my request: --- callback: "{% log response, type: 'response object' %}\n" format: https request_headers: '{ "Authorization": "Bearer sand_c+vc4wvtoxCsbVpPxUOb6uGECV81PyPy................=", "Content-Type": "application/json" }' to: https://api.easyship.com/v2/shipments trigger_condition: t --- { "origin_address": { "line_1": "{{data.seller_address_street}}", "state": "{{data.seller_address_state}}", "city": "{{data.seller_address_city}}", "postal_code": "{{data.seller_address_zip}}", "country_alpha2": "GB", "contact_name": "{{data.seller_name}}", "company_name": "SwapCs", "contact_phone": "{{data.seller_mobile}}", "contact_email": "{{data.seller_email}}" }, "sender_address": { "line_1": "{{data.seller_address_street}}", "state": "{{data.seller_address_state}}", "city": "{{data.seller_address_city}}", "postal_code": "{{data.seller_address_zip}}", "country_alpha2": "GB", "contact_name": "{{data.seller_name}}", "company_name": "SwapCs", "contact_phone": "{{data.seller_mobile}}", "contact_email": "{{data.seller_email}}" }, "return_address": { "line_1": "{{data.seller_address_street}}", "state": "{{data.seller_address_state}}", "city": "{{data.seller_address_city}}", "postal_code": "{{data.seller_address_zip}}", "country_alpha2": "GB", "contact_name": "{{data.seller_name}}", "company_name": "SwapCs", "contact_phone": "{{data.seller_mobile}}", "contact_email": "{{data.seller_email}}" }, "destination_address": { "line_1": "{{data.address_street}}", "state": "{{data.address_state}}", "city": "{{data.address_city}}", "postal_code": "{{data.address_zip}}", "country_alpha2": "GB", "contact_name": "{{data.buyer_name}}", "contact_phone": "{{data.buyer_mobile}}", "contact_email": "{{data.buyer_email}}" }, "metadata": {}, "set_as_residential": false, "consignee_tax_id": null, "eei_reference": null, "incoterms": "DDU", "insurance": { "is_insured": false, "insured_amount": 10, "insured_currency": "GBP" }, "order_data": { "platform_name": "SwapCs", "platform_order_number": "1003", "order_tag_list": [ "clothes" ], "seller_notes": null, "buyer_notes": null }, "courier_selection": { "selected_courier_id": "{{data.courier_id}}", "allow_courier_fallback": true, "apply_shipping_rules": true }, "shipping_settings": { "units": { "weight": "lb", "dimensions": "in" }, "printing_options": { "format": "pdf", "label": "4x6", "commercial_invoice": "A4", "packing_slip": "none" }, "buy_label": true, "buy_label_synchronous": true }, "parcels": [ { "total_actual_weight": 0.8, "box": { "length": 5, "width": 4, "height": 2 }, "items": [ { "description": "Silk dress", "category": "fashion", "sku": "test01", "quantity": 1, "declared_currency": "GBP", "declared_customs_value": 20 } ] } ] }

"error": "User doesn't have permissions for this request"

Hi, We are trying to pull one of our user's data using this call. curl --location --request GET 'https://api.easyship.com/shipment/v1/shipments?page=0&per_page=100&created_at_from=2022-04-03T07:04:...' \--header 'Authorization: Bearer pr' \--header 'Content-Type: application/json' And getting this error. "error": "User doesn't have permissions for this request" when trying to fetch shipments: curl --location --request GET 'https://api.easyship.com/shipment/v1/shipments?page=0&per_page=100&created_at_from=2022-04-03T07:04:...' \--header 'Authorization: Bearer ' \--header 'Content-Type: application/json' Any advice on what may have gone wrong here?

Sorry, we couldn't find any shipping solutions based on the information provided

My API Response returned this error "Sorry, we couldn't find any shipping solutions based on the information provided". Please advice