03-21-2024 01:10 AM
Hi,
When I try to purchase an item listed in the sandbox environment, I get an error message "Unfortunately, this seller will not ship to your location. Please update your shipping address or contact the seller to request order total." and am unable to purchase the item.
I've verified on the product page that it's set to ship within the US, but when I enter the address on the purchase screen, I encounter an error.
Could anyone shed some light on what might be wrong or suggest any solutions?
Thank you in advance for your help!
Below are the responses from each API:
* getInventoryItem
{
"sku": "sample",
"locale": "en_US",
"product": {
"title": "Sapphire yellow necklace",
"subtitle": "subtitle",
"description": "Product Description.",
"imageUrls": [
"https://my-website-url/image.jpg"
]
},
"condition": "USED_EXCELLENT",
"conditionDescription": "Description of the item's condition. Required for used items.",
"packageWeightAndSize": {
"dimensions": {
"width": 15,
"length": 10,
"height": 5,
"unit": "INCH"
},
"packageType": "LETTER",
"weight": {
"value": 2.5,
"unit": "KILOGRAM"
},
"shippingIrregular": false
},
"availability": {
"shipToLocationAvailability": {
"quantity": 1,
"allocationByFormat": {
"auction": 0,
"fixedPrice": 1
}
}
}
}
* getOffer
{
"offerId": "xxx",
"sku": "xxx",
"marketplaceId": "EBAY_US",
"format": "FIXED_PRICE",
"listingDescription": "This is the item description at the time of listing.",
"availableQuantity": 1,
"pricingSummary": {
"price": {
"value": "99.48",
"currency": "USD"
}
},
"listingPolicies": {
"paymentPolicyId": "xxx",
"returnPolicyId": "xxx",
"fulfillmentPolicyId": "xxx",
"eBayPlusIfEligible": false
},
"categoryId": "855",
"merchantLocationKey": "xxx",
"tax": {
"applyTax": false
},
"listing": {
"listingId": "xxx",
"listingStatus": "ACTIVE",
"soldQuantity": 0
},
"status": "PUBLISHED",
"listingDuration": "GTC",
"includeCatalogProductDetails": true,
"hideBuyerDetails": false
}
* getFulfillmentPolicy
{
"name": "Worldwide shipping options: Free domestic, CALCULATED int'l",
"marketplaceId": "EBAY_US",
"categoryTypes": [
{
"name": "ALL_EXCLUDING_MOTORS_VEHICLES",
"default": false
}
],
"handlingTime": {
"value": 1,
"unit": "DAY"
},
"shipToLocations": {
"regionIncluded": [
{
"regionName": "Worldwide"
}
]
},
"shippingOptions": [
{
"optionType": "DOMESTIC",
"costType": "FLAT_RATE",
"shippingServices": [
{
"sortOrder": 1,
"shippingCarrierCode": "USPS",
"shippingServiceCode": "USPSPriorityFlatRateBox",
"shippingCost": {
"value": "0.0",
"currency": "USD"
},
"additionalShippingCost": {
"value": "0.0",
"currency": "USD"
},
"freeShipping": true,
"buyerResponsibleForShipping": false,
"buyerResponsibleForPickup": false
}
],
"shippingDiscountProfileId": "0",
"shippingPromotionOffered": false
},
{
"optionType": "INTERNATIONAL",
"costType": "CALCULATED",
"shippingServices": [
{
"sortOrder": 1,
"shippingCarrierCode": "USPS",
"shippingServiceCode": "USPSPriorityMailInternational",
"freeShipping": false,
"shipToLocations": {
"regionIncluded": [
{
"regionName": "Worldwide"
}
]
},
"buyerResponsibleForShipping": false,
"buyerResponsibleForPickup": false
}
],
"packageHandlingCost": {
"value": "0.0",
"currency": "USD"
},
"shippingDiscountProfileId": "0",
"shippingPromotionOffered": false
}
],
"globalShipping": false,
"pickupDropOff": false,
"freightShipping": false,
"fulfillmentPolicyId": "xxx"
}
* getPaymentPolicy
{
"name": "test-policy-1",
"description": "test payment policy",
"marketplaceId": "EBAY_US",
"categoryTypes": [
{
"name": "ALL_EXCLUDING_MOTORS_VEHICLES",
"default": false
}
],
"paymentMethods": [],
"immediatePay": false,
"paymentPolicyId": "xxx"
}
* getReturnPolicy
{
"name": "minimal return policy, US marketplace",
"marketplaceId": "EBAY_US",
"categoryTypes": [
{
"name": "ALL_EXCLUDING_MOTORS_VEHICLES"
}
],
"returnsAccepted": true,
"returnPeriod": {
"value": 30,
"unit": "DAY"
},
"refundMethod": "MONEY_BACK",
"returnShippingCostPayer": "SELLER",
"internationalOverride": {
"returnsAccepted": true,
"returnMethod": "MONEY_BACK",
"returnPeriod": {
"value": 30,
"unit": "DAY"
},
"returnShippingCostPayer": "SELLER"
},
"returnPolicyId": "xxx"
}
* getInventoryLocation
{
"name": "sample",
"phone": "123-456-7890",
"locationInstructions": "Open for drop-off only.",
"operatingHours": [
{
"intervals": [
{
"open": "09:00:00",
"close": "12:00:00"
},
{
"open": "13:00:00",
"close": "18:00:00"
}
],
"dayOfWeekEnum": "MONDAY"
},
{
"intervals": [
{
"open": "09:00:00",
"close": "15:00:00"
}
],
"dayOfWeekEnum": "TUESDAY"
}
],
"specialHours": [
{
"date": "2016-10-19T07:00:00.000Z",
"intervals": [
{
"open": "09:00:00",
"close": "11:00:00"
}
]
}
],
"merchantLocationKey": "xxx",
"location": {
"address": {
"addressLine1": "2055 Hamilton Ave",
"addressLine2": "Building 3",
"city": "San Jose",
"stateOrProvince": "CA",
"postalCode": "95125",
"country": "US"
},
"geoCoordinates": {
"latitude": 37.295357,
"longitude": -121.892598
},
"locationId": "xxx"
},
"merchantLocationStatus": "ENABLED",
"locationTypes": [
"WAREHOUSE"
]
}
03-21-2024 02:41 AM
We did not really need all that.
Some sellers do not ship internationally and that is their choice to make.
Before you ordered, did you read the listing carefully to make sure the seller ships to Japan?
What is the item #?
03-21-2024 11:20 AM
I don't know that I can find the problem because I don't use the Sandbox, nor do I use the Restful APIs, but here are some abnormalities that I see in the returned data.
getInventoryItem
We generally use all metric or all imperial for package specs. I see that you have a mix of inches and kilos.
getFulfillmentPolicy
Under International, this combination of settings doesn't make sense, as I suspect the buyer will be responsible for shipping.
"freeShipping": false,
"buyerResponsibleForShipping": false,
"buyerResponsibleForPickup": false
If you have created a listing in the Sandbox on the US site, I assume you have also created your shipping policies and a buyer in the Sandbox.
03-21-2024 07:28 PM
Thank you for your response.
For verification purposes, I've set the shipping destination to the US, and the warehouse location is also in the US, so it should be domestic shipping within the US, and I think international shipping settings should not be an issue.
> What is the item #?
Unfortunately, due to work-related reasons, I am unable to provide the specific item number.
03-21-2024 08:09 PM
Despite changing the units to centimeters and trying again, I'm still running into issues...
The shipment is intended for within the US, not international, yet I still encounter errors.
The shipping address is as follows:
Ship to
TARO TEST
999 Abc
San Jose, CA 95112 United States
(234)567-8900
Additionally, when I check the "shipping and payments" tab on the product page, it is displayed as follows:
Item location: San Jose, California, United States
Shipping to: Worldwide
Excludes: French Polynesia, Libya, New Caledonia, Guadeloupe, Venezuela, Reunion, Barbados, Martinique, French Guiana, Ukraine, Russian Federation, Israel
03-21-2024 08:24 PM
Is there shipping costs to that zip code shown in the listing?
If not, then the seller did not set up the listing correctly. Contact the seller. Tell them you want to buy it, but you can’t until the seller corrects the listing.
03-21-2024 08:58 PM
The OP is developing an application using the eBay API and the eBay "Sandbox" development environment. This is not a real onsite purchase, and the question is posted in the Developer forum. However, the developer is encountering issues that might be resolved by applying real-world logic.
For instance, when we see "Unfortunately, this seller will not ship to your location. Please update your shipping address or contact the seller to request order total," we know to look at the delivery options within the listing and the profile of the buyer.
Delivery options would include details found in the shipping profile, as pertain to both domestic and international shipping. Buyer details at checkout should include a US address, in this case. Any other thoughts?
When I use a buyer id that is from a blocked location, I encounter: "Unfortunately, this seller will not ship to your location. " However, when a seller allows international shipping, but has not set up the carrier or price, I'll see something like "The seller will ship to your location, but has not set up a shipping option."
Are you able to use the Account API to give your Sandbox buyer a US address?
03-22-2024 01:49 AM
Thank you for the response.
Shipping is set to free, and the product page displays as follows:
According to your observation, it doesn't seem like it's an issue of being blocked, nor does it appear to be an error due to unset carrier or price.
It looks like the sandbox environment does not allow for setting a buyer's address. Also, the Account API doesn't seem to offer a feature to set addresses.
However, as you mentioned, when I tried to retrieve the buyer's address via the API, I couldn't find any address, so it might not be set.
But, trouble is, I am at a loss as to how to set up an address in a sandbox environment....
I created the buyer account using the following page:
https://developer.ebay.com/sandbox/register
03-22-2024 04:34 AM
Thank you for your kind explanation. What is the advantage of doing it this way rather than just making a purchase?
And I guess I'm lax in never looking to see what forum a question is asked in before giving a reply. Will really be more careful hereafter.
03-22-2024 06:24 AM
@shipscript wrote:...
... However, the developer is encountering issues that might be resolved by applying real-world logic.
For instance, when we see "Unfortunately, this seller will not ship to your location. Please update your shipping address or contact the seller to request order total," we know to look at the delivery options within the listing and the profile of the buyer.
Delivery options would include details found in the shipping profile, as pertain to both domestic and international shipping. Buyer details at checkout should include a US address, in this case. Any other thoughts?
When I use a buyer id that is from a blocked location, I encounter: "Unfortunately, this seller will not ship to your location. " However, when a seller allows international shipping, but has not set up the carrier or price, I'll see something like "The seller will ship to your location, but has not set up a shipping option."
Are you able to use the Account API to give your Sandbox buyer a US address?
@shipscript, following up on your thought ...
@nagashima7599 did provide a shipping address in the USA (California) but the address is not valid, because the street does not exist.
eBay does test shipping addresses, to make sure that they are valid according to the USPS. I checked that address on the USPS lookup, and it was not able to make any suggestions, it just rejected the street name as given.
Perhaps the shipping address needs to be a valid address, which does exist.
@nagashima7599 wrote:...
The shipping address is as follows:
Ship to
TARO TEST
999 Abc
San Jose, CA 95112 United States
(234)567-8900
...