eBay SOAP API';无效的邮资类型';发送发票时出现错误代码10080
我正在尝试发送自动易趣发票添加运费金额,但在执行此操作时收到错误代码10080 我的代码eBay SOAP API';无效的邮资类型';发送发票时出现错误代码10080,soap,ebay-api,Soap,Ebay Api,我正在尝试发送自动易趣发票添加运费金额,但在执行此操作时收到错误代码10080 我的代码 $ShippingServiceOptions = new stdClass(); $ShippingServiceOptions->ShippingService="AU_Frieght"; //$ShippingServiceOptions->ShippingType="AU_Frieght"; $ShippingServiceOptions->ShippingServiceCost
$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)
对象(stdClass)[393]
公共“时间戳”=>string“2013-10-24T02:35:47.049Z”(长度=24)
公共“确认”=>字符串“失败”(长度=7)
公共“错误”=>
对象(stdClass)[394]
公共“短消息”=>字符串“无效邮资类型”。(长度=21)
公共“LongMessage”=>字符串“无效”。(长度=23)
公共“错误代码”=>字符串“10080”(长度=5)
公共“SeverityCode”=>字符串“错误”(长度=5)
公共“ErrorClassification”=>字符串“RequestError”(长度=12)
公共“版本”=>字符串“843”(长度=3)
公共“构建”=>string“E843\u INTL\u APIXO\u 16449518\u R1”(长度=27)
谢谢
Abnab不能指定AU_运费,因为调用GeteBayDetails时未设置服务的ValidForSellingFlow标志。eBay只允许此标志为真的服务。更多信息可在官方网站上获得 下面显示的是可在ShippingService字段中传递的装运服务的当前列表。由于这些值在易趣添加和删除服务时会发生变化,因此您应该定期致电 (注意,要指定的值以粗体显示) 国内航运服务 标准服务
- AU_标准交付标准交付(1-6个工作日)
- 澳大利亚普通邮包澳大利亚邮包(1-6个工作日)
- 澳大利亚邮政定期包裹+跟踪(1-6个工作日)
- 澳大利亚邮政包裹+签名(1-6个工作日)
- AU_Prepaid邮包500g澳大利亚邮政预付邮包500g邮包(1-6个工作日)
- AU_Prepaid包裹邮包3千克澳大利亚邮政预付包裹邮包3千克(1-6个工作日)
- AU_Prepaid包裹邮袋5kg澳大利亚邮政预付邮资包裹邮袋5kg(1-6个工作日)
- Auu_挂号澳大利亚邮政普通包裹挂号(1-6个工作日)
- AU_RegisteredParcelPostRepaidSatchel500g澳大利亚邮政预付邮包500克邮包+签名(1-6个工作日)
- AU_RegisteredParcelPostRepaidSatchel3kg澳大利亚邮政预付邮包邮寄3kg邮包+签名(1-6个工作日)
- AU_RegisteredParcelPostRepaidSatchel5kg澳大利亚邮政预付邮资包裹邮包5kg+签名(1-6个工作日)
- 澳大利亚邮政局注册的澳大利亚邮政局普通包裹注册(1-6个工作日)
- Auu Express delivery快递(1-3个工作日)
- Auu Express澳大利亚邮政快递包裹(1-3个工作日)
- AU_PrepaideExpress邮包500gAustralia Post Express邮包500g(1-3个工作日)
- AU_PrepaideExpress邮包3kgAustralia Post Express邮包3kg(1-3个工作日)
- AU_PrepaideExpress邮包5kgAustralia Post Express邮包5kg(1-3个工作日)
- AU_PrePaidExpressPostPlatinum500gAustralia Post Express Post 500g背包+签名(1-3个工作日)
- AU_Prepaidexpresspostplationum3kg澳大利亚邮政速递3kg背包+签名(1-3个工作日)
- AU_DHLDHL(1-3个工作日)
- Auu Fastways快递公司Fastway快递公司(1-3个工作日)
- AU_StarTrackExpressStar Track Express(1-3个工作日)
- AU_TNTTNT(1-3个工作日)
- AU_收费收费客户交付(1-3个工作日)
- 非盟经济区境外交货非盟经济区境外交货(11-20个工作日)
- AU\u外部标准交付AU外部标准交付(6-10个工作日)
- 非盟境外加急交货非盟境外加急交货(1-5个工作日)
- AU_TntIntlExpTNT国际快递(2-4个工作日)
- AU_Standard International标准国际统一费率邮资(3-15个工作日)
- Auu Airmail InternationalAusPost航空邮件包裹(3-10个工作日)
- Auu AusPostRegisteredPostInternationalParcelAusPost挂号邮寄国际包裹(3-10个工作日)
- AU_AusPostRegisteredPostInternationalPaddedBag 500gAusPost Registered Post International PaddedBag 500g(3-10个工作日)
- AU_AusPostRegisteredPostInternationalPaddedBag 1kgAusPost Registered Post International PaddedBag 1kg(3-10个工作日)
- AU_Seamail InternationalAuspest海运包裹(30-60个工作日)
- Auu ExpeditedInternational快递国际统一费率邮资(3-7个工作日)
- Auu Express Post InternationalAus Express Post国际包裹(3-7个工作日)
- AU_PrePaidExpressPostInternationalEnvelopeC5AusPost预付费快递国际信封C5(3-7个工作日)
- Auu_PrepaideExpress Post国际信封B4AusPost预付费快递国际信封B4(3-7个工作日)
- AU_PrePaidExpre