Discussions

Ask a Question

Failed to create shipment

Hello Team, I am facing a issue related to categories, items of category are not supported to any of the countries. I am using sand box token => "sand_0XgiXm/JrPsaOJCOy94HN8+9oqpv8sCwXHKJBVMN+2M=" here is my code : request({ method: 'POST', url: 'https://api.easyship.com/shipment/v1/shipments', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer sand_0XgiXm/JrPsaOJCOy94HN8+9oqpv8sCwXHKJBVMN+2M=' }, body: { "platform_name": "Amazon", "platform_order_number": "#1234", "selected_courier_id": "b8d528a7-a2d4-4510-a7ac-11cbbb6542cd", "destination_country_alpha2": "US", "destination_city": "New York", "destination_postal_code": "10022", "destination_state": "NY", "destination_name": "Aloha Chen", "destination_company_name": "My Company", "destination_address_line_1": "300 Park Avenue", "destination_address_line_2": null, "destination_phone_number": "+1 234-567-890", "destination_email_address": "[email protected]", "items": [{ "description": "toy cars", "sku": "test", "actual_weight": 1.2, "height": 10, "width": 15, "length": 20, "category": "gaming", "declared_currency": "SGD", "declared_customs_value": 100 }] }, json: true }, function (error, response, body) { console.log('Status:', response.statusCode); console.log('Headers:', JSON.stringify(response.headers)); console.log('Response:', body); if (error) { console.log(error); } }); and getting the error: { "message": "Failed to create shipment: [\"error_message: Sorry, we don't support this item category for India. (Fashion)\"]" }

"label_url":null

I was able to create and purchase a label sucessfully using the API, however I received a null value for label url in response .

unable to generate shipping label

I'm trying to create a shipment by combining create shipment and buying a label by following your this API docs "https://developers.easyship.com/reference#create-a-shipment".I was able to create a shipment , but no label was generated.. values = { "platform_name": "Cura Health ", "platform_order_number": "001", "destination_country_alpha2": order.destination_country, "destination_city": order.destination_city, "destination_postal_code": order.destination_postal_code, "destination_state": order.destination_state, "destination_name": order.name, "destination_company_name": "Hugo", "destination_address_line_1": order.address, "destination_address_line_2": order.address2, "destination_phone_number": order.phone, "destination_email_address": order.email_address, "items": [ { "description": "Silk dress", "actual_weight": 0.5, "height": 10, "width": 15, "length": 20, "category": "fashion", "declared_currency": "SGD", "declared_customs_value": 100 } ], "shipments": [ { "easyship_shipment_id": order.shipment_id, "courier_id": "" }, ] } headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer xxxxxProduction API xxxxxx' } r = requests.post("https://api.easyship.com/shipment/v1/shipments/create_and_buy_label", data=json.dumps(values), headers=headers) print(r.json()) order.shipment_id = r.json()['shipment']['easyship_shipment_id'] order.shipment_status = 'Created' print(r.text)

Set origin when create a shipping

On the API docs, there is no option to set the origin address. URL: https://developers.easyship.com/reference#create-a-shipment

WSGIRequest' object has no attribute 'type

I'm using django to to integrate esyship with our manufacturing system and when the shipment creation event is triggered , we are getting this error " 'WSGIRequest' object has no attribute 'type' ." I would appreciate if your technical tean could help me out . Thanks !

Company name not sent by API when creating shipping label

Company name is sent both in billing and shipping address, but it is lost when I print the label. Here is a sample of API code: 'payment_custom_field' => array ( ), 'payment_method' => 'Credit/Debit Card (3D and SCA Secured) Stripe', 'payment_code' => 'stripe', 'shipping_firstname' => 'David', 'shipping_lastname' => 'Li', 'shipping_company' => 'Allonis LLC', 'shipping_address_1' => '4078 Waterland Drive',

Verifying an Incoming Event with Easyship's Signature

On EasyShip documentation, I can only find a Ruby example for verify an event. Does anyone have examples in nodejs?

Splitting an order

Workflow question from an EasyShip newbie (PHP programmer). I'm comfortable enough with the basic concepts of the API, and so far I have verified my webhook website endpoint works. Now I would be grateful if someone could guide on how to achieve the following goal. From our incoming orders we wish to extract certain books that will need to be sent off to a book Print On Demand (POD) service. ***These books will not be shipped.*** We will pull out those specific products using an identifier, such as the product number. Therefore, we need to split (or remove) those particular products from the order. In a later step, I hope to have a trigger from this POD service to automatically go back into EasyShip and update those above separated items to have a warehouse status of "shipped". How do I separate these items to their own order? Then later I will apply the warehouse state change to "shipped", I assume. What API function(s) would be involved here?

Set origin when create a shipping

Hi! On the API docs, i don't saw any parameter for the orgin address. What I need to do to set de origin address?

Unable to sync orders properly in woocommerce

I am unable to even disable the easyship by the button. I can't sync my orders properly as well.