10-06-2023 05:10 AM - edited 10-06-2023 05:12 AM
Hi
I'm trying to create a product and offer and publish that offer, but the eBay API appears to be broken.
BulkUpdate Request:
{
"requests": [
{
"sku": "YOURLJ-1238",
"locale": "en_GB",
"product": {
"title": "9ct Yellow Gold Twist Hoop Earrings",
"aspects": {
"Weight": [ "0.9000g" ],
"Width": [ "16.0000mm" ],
"Depth": [ "3.0000mm" ],
"Height": [ "10.0000mm" ],
"Brand": [ "Your Local Jeweller" ],
"Main Stone": [ "No Stone" ],
"Metal": [ "Yellow Gold" ],
"Metal Purity": [ "9ct" ],
"Style": [ "Hoop" ],
"Type": [ "Earrings" ]
},
"description": "9ct Yellow Gold Twist Hoop Earrings",
"imageUrls": [ "https://www.danjewellers.co.uk/products/i/1238-1-2020313145733.jpg" ]
},
"condition": "NEW",
"availability": {
"shipToLocationAvailability": {
"quantity": 0,
"merchantLocationKey": "default"
}
}
}
]
}
-------------------------------------------
Bulk Update Response:
{
"responses": [
{
"statusCode": 200,
"sku": "YOURLJ-1238",
"locale": "en_GB",
"warnings": [],
"errors": []
}
]
}
-------------------------------------------
Create Offer Request:
{
"requests": [
{
"availableQuantity": "0",
"categoryId": "261990",
"format": "FIXED_PRICE",
"listingDescription": "A best seller these classic hoop earrings are made from round tubing twisted into a spiral. Fitted with a hinged bar closure. For pierced ears only.",
"marketplaceId": "EBAY_GB",
"merchantLocationKey": "default",
"pricingSummary": {
"price": {
"currency": "GBP",
"value": "22.8200"
}
},
"listingPolicies": {
"fulfillmentPolicyId": "140771436019",
"returnPolicyId": "195398376019",
"paymentPolicyId": "200210019019"
},
"sku": "YOURLJ-1238",
"tax": { "applyTax": "false" }
}
]
}
-------------------------------------------
Create Offer Response:
{
"responses": [
{
"statusCode": 200,
"sku": "YOURLJ-1238",
"marketplaceId": "EBAY_GB",
"format": "FIXED_PRICE",
"offerId": "366557040016",
"warnings": [],
"errors": []
}
]
}
-------------------------------------------
Activate Offer Response: try #1
{
"listingId": "305184180811",
"warnings": [
{
"errorId": 25402,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "REQUEST",
"message": "System warning. Returns policy attribute returnDescription not valid on this site",
"parameters": [
{
"name": "0",
"value": "returnDescription"
}
]
}
]
}
-------------------------------------------
OR
{"errors":[{"errorId":2003,"domain":"ACCESS","category":"APPLICATION","message":"Internal error","longMessage":"There was a problem with an eBay internal system or process. Contact eBay developer support for assistance","parameters":[{"name":"code","value":"415"}]}]}
-------------------------------------------
then
Activate Offer Response: try #2
{
"listingId": "305184180811",
"warnings": [
{
"errorId": 25402,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "REQUEST",
"message": "System warning. Offer(s) are already published, please enter a new unpublished offer.",
"parameters": [
{
"name": "offerId",
"value": "366557040016"
}
]
}
]
}
-------------------------------------------
I don't know where this offer is being published but it isn't to the client's eBay store.
It isn't an issue with just this product. I'm trying to publish and activate 15 items. One has worked seemingly through brute force of trying. Same returns policy as all the others failing due to return policy caption. Which is valid and isn't blank. The eBay API still won't accept the others.
Do we know when eBay will be fixed?
10-06-2023 06:00 AM
Aha - the offer is being published when it only returns the warning which I assume I can ignore. Eventually. It takes a few minutes. When it returns the internal error, not. I shall take a look at that from my end..
10-06-2023 06:13 AM
In case it helps anyone - calling Activate Offer with the .NET RestClient requires these two lines of code:
request.AddHeader("Content-Length", "0");
request.AddParameter("application/json", string.Empty, ParameterType.RequestBody);
.. or eBay will return the above internal error. Adding these means it merely returns the warnings above.