亚马逊MWS CreateShipment每次都会因Fedex失败而没有任何实际错误

时间:2018-11-01 15:41:55

标签: amazon amazon-mws

我正在使用Amazon C#SDK调用CreateShipment并从Amazon购买货运标签。

https://docs.developer.amazonservices.com/en_UK/merch_fulfill/MerchFulfill_CreateShipment.html

我们每天使用100次相同的代码来购买USPS和UPS标签,但尝试购买联邦快递标签时却有100%的时间失败。

这是我们得到的错误描述,不是描述性的。

<ErrorResponse xmlns="https://mws.amazonservices.com/MerchantFulfillment/2015-06-01">
  <Error>
    <Type>Sender</Type>
    <Code>InvalidRequest</Code>
  </Error>
  <RequestId>470076a3-781e-4fa9-8b8e-796c3fd286ef</RequestId>
</ErrorResponse>

这是我们直接从SDK中获取的请求xml。我只替换了占位符,而不是我们的实际信息。

<CreateShipmentRequest
    xmlns="https://mws.amazonservices.com/MerchantFulfillment/2015-06-01">
    <SellerId>{selelr id}</SellerId>
    <ShipmentRequestDetails>
        <AmazonOrderId>{amazon order id}</AmazonOrderId>
        <ItemList>
            <Item>
                <OrderItemId>{amazon item id}</OrderItemId>
                <Quantity>1</Quantity>
            </Item>
        </ItemList>
        <ShipFromAddress>
            <Name>{ship from name}</Name>
            <AddressLine1>{ship from address}</AddressLine1>
            <Email>{email}</Email>
            <City>{city}</City>
            <StateOrProvinceCode>{state}</StateOrProvinceCode>
            <PostalCode>{zip code}</PostalCode>
            <CountryCode>US</CountryCode>
            <Phone>{phone number}</Phone>
        </ShipFromAddress>
        <PackageDimensions>
            <Length>32.00</Length>
            <Width>23.50</Width>
            <Height>2.50</Height>
            <Unit>inches</Unit>
        </PackageDimensions>
        <Weight>
            <Value>120.00</Value>
            <Unit>ounces</Unit>
        </Weight>
        <ShippingServiceOptions>
            <DeliveryExperience>DeliveryConfirmationWithoutSignature</DeliveryExperience>
            <CarrierWillPickUp>False</CarrierWillPickUp>
            <LabelFormat>PDF</LabelFormat>
        </ShippingServiceOptions>
    </ShipmentRequestDetails>
    <ShippingServiceId>FEDEX_PTP_HOME_DELIVERY</ShippingServiceId>
</CreateShipmentRequest>

与Fedex不兼容的请求有什么影响?为了记录,我尝试了每种可用的标签类型。每个问题都相同。

在亚马逊支持下,我还提交了大约10个案例。他们从不回应。

[更新] 问题最终是标签格式。显然我的代码中有一个错误,因此它总是要求提供PDF标签。 Amazon不支持Fedex带有PDF标签。它们仅支持PNG和ZPL。

0 个答案:

没有答案
相关问题