Discussions
SandBox environment not Working
as i Check your rates Api in SandBox environmentNot Workin
Posted by Ishant Goyal 8 months ago
No shipping solutions available based on the information provided
<https://api.easyship.com/2023-01/rates>
{
"origin_address": {
"state": "IL",
"city": "Springfield",
"postal_code": "62701",
"country_alpha2": "US"
},
"destination_address": {
"country_alpha2": "IL",
"postal_code": "62701",
"city": "Springfield",
"state": "NY",
"line_1": "5678 Maple Avenue"
},
"incoterms": "DDU",
"insurance": {
"is_insured": false
},
"courier_selection": {
"show_courier_logo_url": false,
"apply_shipping_rules": true
},
"shipping_settings": {
"units": {
"weight": "kg",
"dimensions": "cm"
},
"output_currency": "USD"
},
"parcels": \[
{
"box": {
"slug": "usps-padded-flat-rate-envelope",
"length": 31.75,
"width": 7.62,
"height": 24.13
},
"items": [
{
"quantity": 1,
"hs_code": "85171300",
"contains_battery_pi966": false,
"contains_battery_pi967": true,
"declared_currency": "USD",
"declared_customs_value": 0.1
}
],
"total_actual_weight": 1
}
]
}
Posted by Ishant Goyal 8 months ago
API Integration
Do you guys have the API documents in spanish?
Posted by Rodolfo 8 months ago
No shipping solutions available based on the information provided attempting to get a rate
Can you shed some light on this error please?
curl --location '<https://api.easyship.com/2023-01/rates'>
--header 'Content-Type: application/json'
--header 'Authorization: Bearer XXXXX
--data-raw '{
"origin_address": {
"line_1": "5 Inez Drive",
"state": "NY",
"city": "Bay Shore",
"postal_code": "11706",
"country_alpha2": "US",
"company_name": "RH,
"contact_name": "Shipper",
"contact_phone": "5555555555",
"contact_email": "[[email protected]](mailto:[email protected])"
},
"destination_address": {
"country_alpha2": "US",
"line_1": "2603 Brant St",
"state": "CA",
"city": "San Diego",
"postal_code": "92101",
"contact_name": "Bob D",
"contact_phone": "5555555555",
"contact_email": "[[email protected]](mailto:[email protected])"
},
"incoterms": "DDU",
"insurance": {
"is_insured": false
},
"courier_selection": {
"show_courier_logo_url": false,
"apply_shipping_rules": true
},
"shipping_settings": {
"units": {
"weight": "lb",
"dimensions": "in"
}
},
"parcels": \[
{
"items": [
{
"quantity": 1,
"dimensions": {
"length": 10,
"width": 10,
"height": 10
},
"description": "Shirt",
"category": "Clothing",
"sku": "123456",
"hs_code": "111111",
"contains_battery_pi966": false,
"contains_battery_pi967": false,
"contains_liquids": false,
"origin_country_alpha2": "US",
"actual_weight": 2,
"declared_currency": "USD",
"declared_customs_value": 5.00
}
],
"total_actual_weight": 5
}
]
}'
Getting this error:
{
"error": {
"code": "invalid_content",
"details": [
"No shipping solutions available based on the information provided"
],
"message": "The request body content is not valid.",
"request_id": "7dd5fc7cd5f6b090ac724f478f75befb",
"type": "invalid_request_error"
}
}
Posted by Dave C 8 months ago
Return request
Hi, is there any API to create a return shipment for a shipment which was not created using easyship?
Posted by Anonymous 8 months ago
Return request
Hi is there any API to create a return shipment for a shipment which was not created using easyship?
Posted by anonymous 8 months ago
I can't create shipment use courier USPS - Ground Advantage
<https://prnt.sc/jew0VsI9uoUH>
Hello Team, I can't create a shipment with service USPS - Ground Advantage via API
Posted by Jim ASL 9 months ago
Labels Won't Generate
We use Optivision LMS to print labels and they won't print. The error message we receive is "additional services none is not a supported additional service."
Posted by Kyana Holmquist 9 months ago
API lable getting
Client error: `POST https://api.easyship.com/2023-01/labels` resulted in a `422 Unprocessable Entity` response: {"error":{"code":"invalid_content","details":\["undefined method \`map' for #\<ActionController::Parameters {\"easyship_shi (truncated...)
ESDE180423982
The Easyship dashboard has a sticker, but we don't get a sticker on the API. Can you help?
Posted by Kaspars 9 months ago
I am unable to request /api/rates endpoints
app.get('/api/rates', (request, response) => {
response.setHeader("Access-Control-Allow-Origin", "\*");
response.header(
"Access-Control-Allow-Headers",
"Origin, X-Requested-With, Content-Type, Accept"
);
const options = {
method: 'POST',
url: '<https://api.easyship.com/2023-01/rates'>,
headers: {
accept: 'application/json',
'content-type': 'application/json',
authorization: '<my production toke>'
},
data: {
origin_address: {
line_1: 'Kennedy Town',
line_2: 'Block 3',
state: 'Yuen Long',
city: 'Hong Kong',
postal_code: '0000',
country_alpha2: 'HK',
contact_name: 'Foo Bar',
company_name: null,
contact_phone: null,
contact_email: '[[email protected]](mailto:[email protected])'
},
destination_address: {
country_alpha2: 'HK',
line_1: 'Kennedy Town',
line_2: 'Block 3',
state: 'Yuen Long',
city: 'Hong Kong',
postal_code: '0000',
contact_name: 'Foo Bar',
company_name: null,
contact_phone: null,
contact_email: '[[email protected]](mailto:[email protected])'
},
incoterms: 'DDU',
insurance: {is_insured: false},
courier_selection: {show_courier_logo_url: true, apply_shipping_rules: true},
shipping_settings: {units: {weight: 'kg', dimensions: 'cm'}, custom_markup_rate: 0.1},
parcels: \[
{
box: null,
items: [
{
quantity: 2,
dimensions: {length: 1, width: 2, height: 3},
description: 'item',
category: 'fashion',
sku: 'sku',
origin_country_alpha2: 'HK',
actual_weight: 10,
declared_currency: 'USD',
declared_customs_value: 20
}
],
total_actual_weight: 1
}
]
}
};
axios
.request(options)
.then(function (response) {
response.send(response.data);
})
.catch(function (error) {
response.send(error);
});
})
The response that I am getting:
{"message":"Request failed with status code 403","name":"AxiosError","stack":"AxiosError: Request failed with status code 403\\n at settle (\\axios.cjs:1970:12)\\n at BrotliDecompress.handleStreamEnd (C:\\Users\\BlackHat\\Documents\\WebProjects\\github\\projects\\Vamoby\\backend\\node_modules\\axios\\dist\\node\\axios.cjs:3069:11)\\n at BrotliDecompress.emit (node:events:526:35)\\n at endReadableNT (node:internal/streams/readable:1359:12)\\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json","Content-Type":"application/json","authorization":"Bearer sand_93QscCPXsq/1mrqXt+erJeefUoKTuwD1DDIT7h5o7BM=","User-Agent":"axios/1.6.5","Content-Length":"982","Accept-Encoding":"gzip, compress, deflate, br"},"method":"post","url":"<https://api.easyship.com/2023-01/rates","data":"{\"origin_address\":{\"line_1\":\"Kennedy> Town\",\"line_2\":\"Block 3\",\"state\":\"Yuen Long\",\"city\":\"Hong Kong\",\"postal_code\":\"0000\",\"country_alpha2\":\"HK\",\"contact_name\":\"Foo Bar\",\"company_name\":null,\"contact_phone\":null,\"contact_email\":\"[[email protected]](mailto:[email protected])\"},\"destination_address\":{\"country_alpha2\":\"HK\",\"line_1\":\"Kennedy Town\",\"line_2\":\"Block 3\",\"state\":\"Yuen Long\",\"city\":\"Hong Kong\",\"postal_code\":\"0000\",\"contact_name\":\"Foo Bar\",\"company_name\":null,\"contact_phone\":null,\"contact_email\":\"[[email protected]](mailto:[email protected])\"},\"incoterms\":\"DDU\",\"insurance\":{\"is_insured\":false},\"courier_selection\":{\"show_courier_logo_url\":true,\"apply_shipping_rules\":true},\"shipping_settings\":{\"units\":{\"weight\":\"kg\",\"dimensions\":\"cm\"},\"custom_markup_rate\":0.1},\"parcels\":\[{\"box\":null,\"items\":[{\"quantity\":2,\"dimensions\":{\"length\":1,\"width\":2,\"height\":3},\"description\":\"item\",\"category\":\"fashion\",\"sku\":\"sku\",\"origin_country_alpha2\":\"HK\",\"actual_weight\":10,\"declared_currency\":\"USD\",\"declared_customs_value\":20}],\"total_actual_weight\":1}]}"},"code":"ERR_BAD_REQUEST","status":403}
***
The error Request failed with status code 403 (not authorized!!!)
{
"error": {
"code": "forbidden",
"details": [
"Access to this resource requires scope(s) rate, custom_markup_rate."
],
"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": "70e7fd2c1e8646ad5f873fe858cb133c",
"type": "invalid_request_error"
}
}
Posted by luis manon 9 months ago