English 中文(简体)
eBay s Large Merchant Services not returning a SKU
原标题:

I am specifying a SKU in my AddFixedPriceItem requests but the response does not come back with a SKU (although SKU is specified in the schema). This is a problem because I am using Large Merchant Services and can submit many items at once. If one item in a batch fails, how am I supposed to be able to tell which one it is? How can I relate SKUs to ItemIds? The response information has very little value if I can t map it back to something in my inventory.

Here is an example of a request going out that does not return a SKU:

<?xml version="1.0" encoding="UTF-8"?>
<BulkDataExchangeRequests xmlns="urn:ebay:apis:eBLBaseComponents">
  <Header>
    <SiteID>0</SiteID>
    <Version>639</Version>
  </Header>
  <AddFixedPriceItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <Version>639</Version>
    <Item>
      <CategoryMappingAllowed>true</CategoryMappingAllowed>
      <Country>US</Country>
      <Currency>USD</Currency>
      <Description>This is the description.</Description>
      <ListingDuration>GTC</ListingDuration>
      <ListingType>FixedPriceItem</ListingType>
      <Location>Provo, UT</Location>
      <PaymentMethods>PayPal</PaymentMethods>
      <PayPalEmailAddress>ebay@mystore.com</PayPalEmailAddress>
      <PrimaryCategory>
        <CategoryID>63850</CategoryID>
      </PrimaryCategory>
      <Quantity>10</Quantity>
      <ShippingDetails>
        <SalesTax>
          <SalesTaxPercent>6.5</SalesTaxPercent>
          <SalesTaxState>UT</SalesTaxState>
          <ShippingIncludedInTax>false</ShippingIncludedInTax>
        </SalesTax>
        <ShippingServiceOptions>
          <ShippingService>UPSGround</ShippingService>
          <ShippingServiceCost currencyID="USD">7.99</ShippingServiceCost>
          <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
          <ShippingServicePriority>1</ShippingServicePriority>
        </ShippingServiceOptions>
        <ShippingType>Flat</ShippingType>
        <InsuranceDetails>
          <InsuranceOption>NotOffered</InsuranceOption>
        </InsuranceDetails>
      </ShippingDetails>
      <Site>US</Site>
      <StartPrice currencyID="USD">100.0</StartPrice>
      <Title>Test Product</Title>
      <SKU>PROD02-TST</SKU>
      <DispatchTimeMax>3</DispatchTimeMax>
      <ReturnPolicy>
        <ReturnsWithinOption>Days_30</ReturnsWithinOption>
        <ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption>
        <Description>Our return policy details.</Description>
        <ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption>
      </ReturnPolicy>
      <InventoryTrackingMethod>ItemID</InventoryTrackingMethod>
    </Item>
  </AddFixedPriceItemRequest>
</BulkDataExchangeRequests>
最佳回答

If one item in a batch fails, how am I supposed to be able to tell which one it is?

Use MessageID in your AddFixedPriceItem Request.

How can I relate SKUs to ItemIds

Most likely I m assuming you re wanting to manage your inventory via SKUs, i.e. "Increase Quantity by +2 for SKU MYTESTSKU02 . If this is the case, you ll want:

<InventoryTrackingMethod>SKU</InventoryTrackingMethod>

Then you can Relist/Revise/End by SKU. If you merely wish to associate a SKU to an ItemID as more of a label and you still desire to manage your inventory by ItemID, then your current request seems correct.

In terms of the SKU field not being returned, can you paste the AddFixedPriceItemResponse?

问题回答

暂无回答




相关问题
Unserializing an API return object (PHP/Ebay API)

I have been working with the Ebay api for a project and have found it great. I have however found a problem now, more PHP related. When I read my items from Ebay, I store a bunch of details in the ...

how to add a new item to ebay using ebay API [closed]

i want to add an item to ebay using ebay API and PHP i read their website for hours and i m lost. i created a developer account. but what should i do after that? i read about "Add item" call http://...

Why can t I send SOAP requests to Ebay finding API?

This is my code: <?php error_reporting(E_ALL); //new instance of soapClient pointing to Ebay finding api $client = new SoapClient("http://developer.ebay.com/webservices/finding/latest/...

eBay managing listings via API

Using PHP5, how can I use the eBay API to set all my 2000+ eBay Store items on sale except for a specific set of 45 items? I can t find a way to do this on eBay s website, and would prefer an API ...

eBay s Large Merchant Services not returning a SKU

I am specifying a SKU in my AddFixedPriceItem requests but the response does not come back with a SKU (although SKU is specified in the schema). This is a problem because I am using Large Merchant ...

热门标签