我正在AddFixedPriceItem请求中指定SKU,但响应不会返回SKU(尽管在架构中指定了SKU)。这是一个问题,因为我使用大型商户服务,可以一次提交许多项目。如果一批产品中有一个失败了,我怎么能分辨出是哪一个呢?如何将SKU与ItemID关联?如果我无法将响应信息映射回库存中的某个内容,那么响应信息就没有什么价值。
以下是一个不返回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>