我正在尝试发送添加运费的自动 ebay 发票,但在执行此操作时收到错误代码 10080。
我的代码
$ShippingServiceOptions = new stdClass();
$ShippingServiceOptions->ShippingService="AU_Frieght";
//$ShippingServiceOptions->ShippingType="AU_Frieght";
$ShippingServiceOptions->ShippingServiceCost = array('_'=>99,'currencyID'=>'AUD');
$ShippingServiceOptions->ShippingServiceAdditionalCost = array('_'=>0,'currencyID'=>'AUD');
$ShippingServiceOptions->ShippingInsuranceCost = array('_'=>0,'currencyID'=>'AUD');
$ShippingServiceOptions->InsuranceFee=0.00;
$ShippingServiceOptions->ShippingServicePriority=1;
$invoiceRequest = new stdClass();
$invoiceRequest->Version = 803;
$invoiceRequest->OrderID = "200937602540-950490227010";
$invoiceRequest->TransactionID=950490227010;
$invoiceRequest->ItemID = 200937602540;
$invoiceRequest->ShippingServiceOptions = $ShippingServiceOptions;
$sendInvoice = new EbayAPI();
$result=$sendInvoice->SendInvoice($invoiceRequest);
var_dump($result);
错误
object(stdClass)[393]
public 'Timestamp' => string '2013-10-24T02:35:47.049Z' (length=24)
public 'Ack' => string 'Failure' (length=7)
public 'Errors' =>
object(stdClass)[394]
public 'ShortMessage' => string 'Invalid postage type.' (length=21)
public 'LongMessage' => string 'Invalid <ShippingType>.' (length=23)
public 'ErrorCode' => string '10080' (length=5)
public 'SeverityCode' => string 'Error' (length=5)
public 'ErrorClassification' => string 'RequestError' (length=12)
public 'Version' => string '843' (length=3)
public 'Build' => string 'E843_INTL_APIXO_16449518_R1' (length=27)
谢谢阿布纳布