1

我正在使用 ebay Trading API 来列出产品,但是在我卡在它需要为选项设置价值的地方之后Return policy Type API,我需要设置ShippingCostPaidByOption由买方支付或由卖方支付的价值?

同样,我需要设置RefundOptionMoney或金钱或项目替换。

4

1 回答 1

1

要获取适用的RefundOptionShippingCostPaidByOption值,请调用GeteBayDetails并将DetailName设置为ReturnPolicyDetails,然后在响应中查找ReturnPolicyDetails.Refund.RefundOptionReturnPolicyDetails.ShippingCostPaidBy.ShippingCostPaidByOption字段。字段的值可以在您的AddItem请求中使用。

以下示例可用作使用 eBay API资源管理器对GeteBayDetails的请求。

<?xml version="1.0" encoding="utf-8"?>
<GeteBayDetailsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <RequesterCredentials>
        <eBayAuthToken>[ADD YOU OWN AUTH TOKEN</eBayAuthToken>
    </RequesterCredentials>
    <DetailName>ReturnPolicyDetails</DetailName>
</GeteBayDetailsRequest>

典型的响应如下所示。

<?xml version="1.0" encoding="UTF-8"?>
<GeteBayDetailsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
    <ReturnPolicyDetails>
        <Refund>
            <RefundOption>MoneyBackOrExchange</RefundOption>
            <Description>Money back or exchange (buyer's choice)</Description>
        </Refund>
    </ReturnPolicyDetails>
    <ShippingCostPaidBy>
        <ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption>
        <Description>Buyer</Description>
    </ShippingCostPaidBy>
    </ReturnPolicyDetails>
</GeteBayDetailsResponse>
于 2013-10-23T19:32:56.280 回答