GithubHelp home page GithubHelp logo

Comments (3)

dantio avatar dantio commented on June 12, 2024

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.

AndrewEyesman avatar AndrewEyesman commented on June 12, 2024

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.

AndrewEyesman avatar AndrewEyesman commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.