Discussions

Ask a Question

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

Shipment/Label API issues

Hey, I'm trying to setup a Shipment/Label API. I've used postman examples to get me started, and am filling out all of the required fields, however the API call returns an empty body tag- I'd expect this to contain a link to the shipping label/some of details? Could someone help please? Here's my request: --- callback: "{% log response, type: 'response object' %}\n" format: https request_headers: '{ "Authorization": "Bearer sand_c.........", "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": null "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": null "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": null "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": null, "platform_order_number": null, "order_tag_list": null "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": { "slug": null, "length": 5, "width": 4, "height": 2 }, "items": [ { "description": "Silk dress", "category": "fashion", "sku": "test01", "quantity": 2, "dimensions": { "length": null, "width": null, "height": null }, "actual_weight": 10, "declared_currency": "GBP", "declared_customs_value": 20 } ] } ] } Any fields that are wrapped in {{- are pulled from these: address_street: Gatehouse Lodge address_country: United Kingdom address_city: Reading address_state: eqweq address_zip: RG76NN buyer_name: Ben ben buyer_mobile: 07955450874 buyer_email: [email protected] seller_id: 24893 seller_name: Ben b seller_email: [email protected] courier_id: d70f503c-905b-4e28-a015-d27069a09e0c (There are some more that arn't shown there, but do have values- anything outputted within {{}} will be a String- not sure if that could cause issues). Thanks!

Get Optimal Box Size

We sell millions of different parts. I know the part length, width, height, and weight. We want to set the box sizes before we place a shipment so we know what type of boxes we need to order from our supplier. What is the best way to calculate box size so we can store it and order boxes?

"messages":["Not Support Failure: No rates for this country"]

During testing on "Request Rates & taxes API" https://api.easyship.com/rate/v1/rates, API response is with "messages":["Not Support Failure: No rates for this country"] for international delivery rate. I cannot find anything in API reference for this issue. let me know how to fix it.

label response problem

Hello, I have created label with sandbox account, i am not getting response for platform_order_number and label_url,tracking_number, i am getting null on it, so my question is, is it problem with sandbox api? we will get response when we use original key (production key)? Rates and shipping are working proper.

Integrate Easyship with Intuitive Shipping shopify app

we are currently using Intuitive Shipping app to control how shipping rates are calculated at our store's checkout. We now consider to use live rates feature to offer more accurate shipping rates at checkout and Intuitive Shipping app got us an option to to use Easyship live rates feature within their app by using API access token generated by Esyship. After following all instructions, the live rates feature from Easyship app still has not worked for our store checkout on our tested products. We reached out to live chat support team of Easyship and they confirmed that our API connection within Intuitive shipping app was un-verified, that could be the reason why the feature didn't work. Eventually, they asked us to reach out to developers team to get assistance. Could you please help us fix the issue. Thanks