1
我想在CompleteSaleRequest內更新TrackingInformation但它返回「無效的工作上下文類型」的eBay API CompleteSaleRequest失敗,錯誤代碼21843
有什麼不對?任何人都有提示?
請求:
<?xml version="1.0" encoding="UTF-8"?>
<CompleteSaleRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>ABC...123</eBayAuthToken>
</RequesterCredentials>
<Shipped>true</Shipped>
<ItemID>1234567890</ItemID>
<TransactionID>99999999999</TransactionID>
<OrderID>1234567890-99999999999</OrderID>
<Shipment>
<ShipmentTrackingDetails>
<ShipmentTrackingNumber>12345678987654321</ShipmentTrackingNumber>
<ShippingCarrierUsed>DHL</ShippingCarrierUsed>
</ShipmentTrackingDetails>
</Shipment>
</CompleteSaleRequest>
響應:
<?xml version="1.0" encoding="UTF-8"?>
<GetOrdersResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2016-03-08T20:58:58.831Z</Timestamp>
<Ack>Failure</Ack>
<Errors>
<ShortMessage>Invalid job context type</ShortMessage>
<LongMessage>The job context object is not supported by Action Service Framework.</LongMessage>
<ErrorCode>21843</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorParameters ParamID="0">
<Value>GetOrders</Value>
</ErrorParameters>
<ErrorParameters ParamID="1">
<Value>CompleteSaleRequestType</Value>
</ErrorParameters>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>953</Version>
<Build>E953_INTL_APIXO_17829668_R1</Build>
</GetOrdersResponse>
嘿大衛,那正是問題!謝謝你的解釋,你救了我的一天! – user1350963