12-30-2024 12:29 AM - edited 12-30-2024 12:51 AM
Hello everyone,
I'm starting with eBay API on API Explorer, and trying a sample offer publish on Sandbox. However, I always get the following error response after calling publishOffer call:
{
"errors": [
{
"errorId": 25002,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "Request",
"message": "A user error has occurred. System error. Unable to process your request. Please try again later."
}
]
}
Here are my complete data I used so far.
Inventory Location:
{
"phone": "+13028312792",
"location": {
"address": {
"addressLine1": "2055 Hamilton Ave",
"addressLine2": "Building 3",
"city": "San Jose",
"stateOrProvince": "CA",
"postalCode": "95008",
"country": "US"
},
"geoCoordinates": {
"latitude": 33.089805,
"longitude": -88.709822
},
"locationId": "2177BDC6C6492B28E06490E2BAC50B98"
},
"locationTypes": [
"WAREHOUSE"
],
"operatingHours": [
{
"intervals": [
{
"open": "08:00:00",
"close": "23:00:00"
}
],
"dayOfWeekEnum": "MONDAY"
}
],
"timeZoneId": "America/Chicago",
"merchantLocationKey": "loc1",
"merchantLocationStatus": "ENABLED"
}
Fulfillment policy:
{
"name": "fulfillment_policy",
"description": "Initial Fulfillment Policy",
"marketplaceId": "EBAY_US",
"categoryTypes": [
{
"name": "ALL_EXCLUDING_MOTORS_VEHICLES",
"default": false
}
],
"handlingTime": {
"value": 1,
"unit": "DAY"
},
"shipToLocations": {},
"shippingOptions": [
{
"optionType": "DOMESTIC",
"costType": "FLAT_RATE",
"shippingServices": [
{
"sortOrder": 1,
"shippingCarrierCode": "USPS",
"shippingServiceCode": "USPSPriority",
"shippingCost": {
"value": "10.0",
"currency": "USD"
},
"additionalShippingCost": {
"value": "10.0",
"currency": "USD"
},
"freeShipping": false,
"buyerResponsibleForShipping": false,
"buyerResponsibleForPickup": false
}
],
"shippingDiscountProfileId": "0",
"shippingPromotionOffered": false
}
],
"globalShipping": false,
"pickupDropOff": false,
"freightShipping": false,
"fulfillmentPolicyId": "6207768000"
}
Payment policy:
{
"name": "payment_policy",
"description": "Initial Payment Policy",
"marketplaceId": "EBAY_US",
"categoryTypes": [
{
"name": "ALL_EXCLUDING_MOTORS_VEHICLES",
"default": false
}
],
"paymentMethods": [],
"immediatePay": false,
"paymentPolicyId": "6207766000"
}
Return policy:
{
"name": "return_policy",
"description": "Initial Return Policy",
"marketplaceId": "EBAY_US",
"categoryTypes": [
{
"name": "ALL_EXCLUDING_MOTORS_VEHICLES"
}
],
"returnsAccepted": false,
"returnPolicyId": "6207767000"
}
Inventory Item:
{
"sku": "ps5con",
"locale": "en_US",
"product": {
"title": "play station 5 controller",
"aspects": {
"Brand": [
"Sony"
],
"Type": [
"Controller"
]
},
"description": "This is a red Sony PlayStation 5 DualSense Wireless Controller. It is a wireless controller designed for use with the PlayStation 5 console.",
"imageUrls": [
"https://i.ebayimg.com/images/g/sUgAAOSw~SVnbxot/s-l1600.jpg"
]
},
"condition": "NEW",
"packageWeightAndSize": {
"dimensions": {
"width": 15,
"length": 10,
"height": 5,
"unit": "INCH"
},
"packageType": "LETTER",
"weight": {
"value": 1,
"unit": "POUND"
},
"shippingIrregular": false
},
"availability": {
"shipToLocationAvailability": {
"quantity": 10,
"allocationByFormat": {
"auction": 0,
"fixedPrice": 10
}
}
}
}
Offer (sku, location name, and policy IDs are correct):
{
"offerId": "9293376010",
"sku": "ps5con",
"marketplaceId": "EBAY_US",
"format": "FIXED_PRICE",
"availableQuantity": 10,
"quantityLimitPerBuyer": 2,
"pricingSummary": {
"price": {
"value": "100.0",
"currency": "USD"
}
},
"listingPolicies": {
"paymentPolicyId": "6207766000",
"returnPolicyId": "6207767000",
"fulfillmentPolicyId": "6207768000",
"eBayPlusIfEligible": false
},
"categoryId": "117042",
"merchantLocationKey": "loc1",
"tax": {
"applyTax": false
},
"status": "UNPUBLISHED",
"listingDuration": "GTC",
"includeCatalogProductDetails": true,
"hideBuyerDetails": false
}
Opted-in programs:
{
"programs": [
{
"programType": "SELLING_POLICY_MANAGEMENT"
}
]
}
Am I missing something?