Discussions

Ask a Question
ANSWERED

Cannot create shipment and API return error message

I want to create shipment for my order, but the API return error as below: ![](https://files.readme.io/f668ad1-image.png) I think this is because one of the item in my order is free gift thus the _declared_customs_value_ is 0. In this case, is there any way can support for item like free gift which price will be 0? Can we make_declared_custom_value_ support 0 value? If not, is there any suggestion/solution?
ANSWERED

Create a shipment API call - no valid responses

We've tried filling out the fields a million different ways and can't seem to ever get a valid 200 response with shipping options from the "Create a shipment" API call. We always get a 202. Please see below for the payload: <?php require_once('vendor/autoload.php'); $client = new \\GuzzleHttp\\Client(); $response = $client->request('POST', '<https://api.easyship.com/2023-01/shipments'>, \[ 'body' => '{"origin_address":{"line_1":"45915 Maries Rd","line_2":"Unit 110","state":"VA","city":"Sterling","postal_code":"20166","country_alpha2":"US","company_name":"Babel","contact_name":"Addison Meyers","contact_phone":"5716439910","contact_email":"[[email protected]](mailto:[email protected])"},"sender_address":{"line_1":"45915 Maries Rd","line_2":"Unit 110","state":"VA","city":"Sterling","postal_code":"20166","country_alpha2":"US","company_name":"Babel","contact_name":"Addison Meyers","contact_phone":"5716439917","contact_email":"[[email protected]](mailto:[email protected])"},"destination_address":{"line_1":"2701 Glencroft Rd","state":"VA","city":"Vienna","postal_code":"22181","country_alpha2":"US","contact_name":Jay Cole","contact_phone":"5716439919","contact_email":"[[email protected]](mailto:[email protected])"},"incoterms":"DDU","insurance":{"is_insured":false,"insured_currency":"USD"},"courier_selection":{"allow_courier_fallback":false,"apply_shipping_rules":true,"list_unavailable_couriers":true},"shipping_settings":{"additional_services":{"qr_code":"none"},"units":{"weight":"lb","dimensions":"in"},"buy_label":false,"buy_label_synchronous":false,"printing_options":{"format":"png","label":"4x6","commercial_invoice":"A4","packing_slip":"4x6"}},"set_as_residential":true,"parcels":\[{"box":{"length":13,"width":10,"height":4},"items":[{"dimensions":{"length":10,"width":8,"height":1},"description":"fabric","category":"home decor","sku":"12313","hs_code":"5907100","contains_battery_pi966":false,"contains_battery_pi967":false,"contains_liquids":false,"origin_country_alpha2":"US","quantity":2,"actual_weight":1,"declared_currency":"USD","declared_customs_value":1}],"total_actual_weight":3}]}', 'headers' => [ 'accept' => 'application/json', 'authorization' => 'Bearer sand_38a0aJsSP+dx8udjcAePOE886TxS0Ya8wx0EUDkeNfE=', 'content-type' => 'application/json', ], ]); echo $response->getBody(); The response that we get is as follows: { "shipment": { "easyship_shipment_id": "ESUS10131966", "consignee_tax_id": null, "courier": null, "created_at": "2023-12-04T16:55:12Z", "currency": "USD", "delivery_state": "not_created", "destination_address": { "city": "Vienna", "company_name": null, "contact_email": "[[email protected]](mailto:[email protected])", "contact_name": "Jay Cole", "contact_phone": "5716439917", "country_alpha2": "US", "line_1": "2701 Glencroft Rd", "line_2": null, "postal_code": "22181", "state": "VA" }, "eei_reference": null, "incoterms": null, "insurance": { "is_insured": false, "insured_amount": 0, "insured_currency": "USD" }, "label_generated_at": null, "label_paid_at": null, "label_state": "not_created", "last_failure_http_response_messages": \[], "metadata": {}, "order_created_at": null, "order_data": { "platform_name": null, "platform_order_number": null, "order_tag_list": \[], "seller_notes": null, "buyer_notes": null }, "origin_address": { "city": "Sterling", "company_name": "Babel", "contact_email": "[[email protected]](mailto:[email protected])", "contact_name": "Addison Meyers", "contact_phone": "5716439917", "country_alpha2": "US", "line_1": "45915 Maries Rd", "line_2": "Unit 110", "postal_code": "20166", "state": "VA" }, "parcels": \[ { "box": { "id": null, "name": null, "outer_dimensions": { "length": 33.02, "width": 25.4, "height": 10.16 }, "slug": null, "type": "box", "weight": 0 }, "items": [ { "actual_weight": 0.45359237, "category": "Home Decor", "contains_battery_pi966": null, "contains_battery_pi967": null, "contains_liquids": null, "declared_currency": "USD", "declared_customs_value": 1, "description": "fabric", "dimensions": { "length": 25.4, "width": 20.32, "height": 2.54 }, "hs_code": "59071000", "origin_country_alpha2": "US", "origin_currency": "USD", "origin_customs_value": 1, "quantity": 2, "sku": "12313" } ], "total_actual_weight": 1.36077711 } ], "pickup_state": "not_requested", "rates": \[], "regulatory_identifiers": { "eori": null, "ioss": null, "vat_number": null }, "return": false, "return_address": { "city": "Sterling", "company_name": "Babel", "contact_email": "[[email protected]](mailto:[email protected])", "contact_name": "Addison Meyers", "contact_phone": "5716439918", "country_alpha2": "US", "line_1": "45915 Maries Rd", "line_2": "Unit 114", "postal_code": "20166", "state": "VA" }, "sender_address": { "city": "Sterling", "company_name": "Babel", "contact_email": "[[email protected]](mailto:[email protected])", "contact_name": "Addison Meyers", "contact_phone": "5716439910", "country_alpha2": "US", "line_1": "45915 Maries Rd", "line_2": "Unit 110", "postal_code": "20166", "state": "VA" }, "set_as_residential": true, "shipment_state": "created", "shipping_documents": \[], "tracking_page_url": "<https://www.trackmyshipment.co/shipment-tracking/ESUS10131966">, "trackings": \[], "updated_at": "2023-12-04T16:55:15Z", "warehouse_state": "none" }, "meta": { "status": "partial_success", "errors": [ "No shipping solutions available based on the information provided" ], "unavailable_couriers": \[] } }
ANSWERED

Server 500 Error in Production but not Dev mode

I am getting a server error (500) in my production after a user click the address they would like to use to ship to but on the development mode it works perfectly. All the variables are the same so I do not understand why its doing this
ANSWERED

No shipping solutions available based on the information provided

I was getting this message when i create shipment . but it get same courier . but when i use same courier id for create shipment it show following message
ANSWERED

UPS GroundSaver (UPS SurePost) OrderNo/SKU Not displaying on Label

My Order# and SKU # are displaying correctly on UPS Ground Shipment Labels but not on the UPS Ground Saver (UPS SurePost). Is it allowed?
ANSWERED

wow gold

Dear immortals, I need some inspiration to create <https://www.wowtot.com>
ANSWERED

How to get the commercial invoice of a shipment

<https://api.easyship.com/2023-01/shipments/{easyship_shipment_id}> I am reading about the above url and the part about commercial invoice says "An invoice will only be provided if necessary. Some couriers offer a paperless invoice service". What exactly does it mean "if necessary"? Is there an api endpoint that allows me to get the commercial invoice of a shipment regardless?
ANSWERED

URL is not yet supported for this courier.

Today when trying to post to the <https://api.easyship.com/2023-01/shipments> endpoint all our internal tools stoped working and are saying : "URL is not yet supported for this courier." using printing_options: { format: 'url', label: '4x6', commercial_invoice: 'A4', packing_slip: '4x6' } Shipping with UPS (made tons of url ups labels over the last few months... Any idea? is this an issue on easyship side? This is business operations critical for us
ANSWERED

Creaet a shipment issue

Request array:4 \[▼ "courier_selection" => array:4 [▼ "selected_courier_id" => "c3e97b11-2842-44f1-84d1-afaa6b3f0a7c" "allow_courier_fallback" => false "apply_shipping_rules" => true "list_unavailable_couriers" => null ] "origin_address" => array:10 [▼ "line_1" => "Jinyuan 2nd Road" "line_2" => "Liangping Avenue no 3" "state" => "Nebraska" "city" => "Fort Campbell" "postal_code" => "51023" "country_alpha2" => "US" "contact_name" => "demo" "company_name" => "demo Co" "contact_phone" => "" "contact_email" => "[email protected]" ] "destination_address" => array:10 [▼ "line_1" => "RK empire" "line_2" => "150 feet ring road" "state" => "Kentucky" "city" => "Fort Campbell" "postal_code" => "42223" "country_alpha2" => "US" "contact_name" => "demo" "company_name" => "demo Co" "contact_phone" => "" "contact_email" => "[email protected]" ] "parcels" => array:1 \[▼ 0 => array:3 \[▼ "total_actual_weight" => 0.5 "box" => null "items" => array:1 \[▼ 0 => array:10 \[▼ "description" => "Electronics" "sku" => "123456" "category" => "Mobile Phones" "hs_code" => "123456" "origin_country_alpha2" => "US" "quantity" => 1 "dimensions" => array:3 [▼ "length" => 5 "width" => 5 "height" => 5 ] "actual_weight" => 0.5 "declared_currency" => "HKD" "declared_customs_value" => 0.5 ] ] ] ] ] Response "data": """ Client error: `POST https://api.easyship.com/2023-01/shipments` resulted in a `422 Unprocessable Entity` response: {"error":{"code":"invalid_content","details":\["destination_address.contact_phone can't be blank","origin_address.contact (truncated...) I have added this address but response is invalid content what is the issues?

<https://api.easyship.com/2023-01/shipments>

uzzleHttp\\Exception\\RequestException cURL error 77: error setting certificate verify locations: CAfile: C:\\xampp\\apache\\bin\\curl-ca-bundle.crt CApath: none (see <https://curl.haxx.se/libcurl/c/libcurl-errors.html>) for <https://api.easyship.com/2023-01/shipments>