Comments (3)
Hey, I have no experience with adding trading card to ebay. But I will try to help you. As I understood, ConditionDescriptor
is required if your ConditionId
is either 2750 or 4000 for the category 261328
. Since you are using 400012
and this ID is mapped to Ungraded Card Condition, I would recommend setting the ConditionId to 4000
here.
Next:
https://developer.ebay.com/api-docs/user-guides/static/mip-user-guide/mip-enum-condition-descriptor-ids-for-trading-cards.html
- Used in the Condition Descriptor Value n (where n = 1-4) or conditionDescriptor.value field with the name field of 40001.
As I understood, the correct syntax should be:
ConditionDescriptors: [
{
ConditionDescriptor: { Name: '40001', Value: '400012' }
}
]
I hope this helps!
from ebay-api.
Hello @dantio, unfortunately this isn't working either. However it seems the syntax you provided is correct and I was using the ConditionDescriptor.Name field incorrectly.
I logged the raw XML request and it appears everything is accurate according to the AddFixedPriceItem documentation:
<?xml version="1.0" encoding="utf-8"?>
<VerifyAddFixedPriceItemRequest
xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>{{TOKEN}}</eBayAuthToken>
</RequesterCredentials>
<Item>
<CategoryMappingAllowed>true</CategoryMappingAllowed>
<Country>US</Country>
<Currency>USD</Currency>
<PrimaryCategory>
<CategoryID>261328</CategoryID>
</PrimaryCategory>
<DispatchTimeMax>3</DispatchTimeMax>
<ListingDuration>Days_7</ListingDuration>
<PictureDetails>
<PictureURL>https://mypicserver.com/myphoto.jpg</PictureURL>
</PictureDetails>
<PostalCode>10989</PostalCode>
<Quantity>1</Quantity>
<ReturnPolicy>
<ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption>
<RefundOption>MoneyBack</RefundOption>
<ReturnsWithinOption>Days_30</ReturnsWithinOption>
<ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption>
</ReturnPolicy>
<ShippingDetails>
<ShippingType>Flat</ShippingType>
<ShippingServiceOptions>
<ShippingServicePriority>1</ShippingServicePriority>
<ShippingService>USPSMedia</ShippingService>
<ShippingServiceCost>2.5</ShippingServiceCost>
</ShippingServiceOptions>
</ShippingDetails>
<ConditionID>4000</ConditionID>
<ConditionDescriptors>
<ConditionDescriptor>
<Name>40001</Name>
<Value>400012</Value>
</ConditionDescriptor>
</ConditionDescriptors>
<Title>1965 TOPPS #16 JOE MORGAN SONNY JACKSON HOUSTON ROOKIE STARS</Title>
<Description>1965 TOPPS #16 JOE MORGAN SONNY JACKSON HOUSTON ROOKIE STARS</Description>
<ItemSpecifics>
<NameValueList>
<Name>Sport</Name>
<Value>Baseball</Value>
</NameValueList>
<NameValueList>
<Name>Set</Name>
<Value>1965 Topps</Value>
</NameValueList>
<NameValueList>
<Name>Year Manufactured</Name>
<Value>1965</Value>
</NameValueList>
<NameValueList>
<Name>Team</Name>
<Value>Houston</Value>
</NameValueList>
<NameValueList>
<Name>Manufacturer</Name>
<Value>Topps</Value>
</NameValueList>
<NameValueList>
<Name>Player/Athlete</Name>
<Value>Joe Morgan, Sonny Jackson</Value>
</NameValueList>
<NameValueList>
<Name>Card Number</Name>
<Value>#16</Value>
</NameValueList>
</ItemSpecifics>
<StartPrice>4</StartPrice>
</Item>
</VerifyAddFixedPriceItemRequest>
Unless you have any other suggestions I can only assume it's an issue with the Ebay API itself. I guess I will need to contact Ebay directly. Thank you so much for your help!
from ebay-api.
Hello @dantio, I posted my issue in the Ebay developer forums and it's likely the ConditionDescriptors aren't yet supported in the sandbox environment. I think this makes sense considering I've had other issues with the sandbox. Closing this issue because it's probably not related to this package. Thanks again for your help!
from ebay-api.
Related Issues (20)
- Access token is not being refreshed by 403s on inventory item endpoint HOT 1
- Switching from axios to unjs/ofetch HOT 1
- Unable to compile ebay-api in react project HOT 1
- "could not be found or is not available in the system for the marketplace EBAY_AU" HOT 1
- listingStartDate not on type EbayOfferDetailsWithId HOT 6
- aspects in InventoryItem is now just a string HOT 12
- Adding default error handler logic HOT 5
- description: 'There was a problem with an eBay internal system or process. Contact eBay developer support for assistance', HOT 7
- getItemConditionPolicies filter is not working HOT 4
- get listing policies of sku in an inventory items HOT 1
- Call to `/oauth2/token` should allow a `redirect_uri` to be passed as a urlencoded key HOT 1
- Media API HOT 6
- [Media API] CreateVideo HOT 5
- Auth token not refreshed HOT 6
- Metric enum missing some HOT 1
- Unable to set 'refresh_token' value HOT 2
- Update docs: How to handle errors? HOT 8
- Cloudflare Worker support HOT 3
- How do I import types from ebay-api? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebay-api.