#web-services #soap #fedex
#веб-сервисы #soap #FedEx
Вопрос:
Когда я создаю этикетки доставки FedEx с использованием веб-сервиса «Ship», передавая необходимую справочную информацию о клиенте в полезной нагрузке, но этикетки генерируются без ссылки на клиента.
Пожалуйста, ознакомьтесь с приведенной ниже информацией:
- URL-адрес службы — https://wsbeta.fedex.com/web-services/ship
- Прилагается
- Полезная нагрузка
- Ответ
- В свою очередь, этикетки создаются без ссылки на клиента. Я могу видеть другие детали, PO, INV и т. Д.
Пример полезной нагрузки:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://fedex.com/ws/ship/v13">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ProcessShipmentRequest>
<WebAuthenticationDetail>
<UserCredential>
<Key>Input your key</Key>
<Password>Input your password</Password>
</UserCredential>
</WebAuthenticationDetail>
<ClientDetail>
<AccountNumber>Input your account number</AccountNumber>
<MeterNumber>Input your meter number</MeterNumber>
</ClientDetail>
<TransactionDetail>
<CustomerTransactionId>J-0080000190-12345671000000128</CustomerTransactionId>
</TransactionDetail>
<Version>
<ServiceId>ship</ServiceId>
<Major>13</Major>
<Intermediate>0</Intermediate>
<Minor>0</Minor>
</Version>
<RequestedShipment>
<ShipTimestamp>2021-12-09T02:10:52-05:00</ShipTimestamp>
<DropoffType>REGULAR_PICKUP</DropoffType>
<ServiceType>FEDEX_2_DAY</ServiceType>
<PackagingType>YOUR_PACKAGING</PackagingType>
<TotalWeight>
<Units>LB</Units>
<Value>39.683</Value>
</TotalWeight>
<Shipper>
<AccountNumber>Input your account number</AccountNumber>
<Contact>
<CompanyName>Input your company name</CompanyName>
<PhoneNumber>Input phone number</PhoneNumber>
<EMailAddress>Input your email id</EMailAddress>
</Contact>
<Address>
<StreetLines>Input Street</StreetLines>
<City>Input City</City>
<StateOrProvinceCode>Input State</StateOrProvinceCode>
<PostalCode>Input postal code</PostalCode>
<CountryCode>Input country code</CountryCode>
</Address>
</Shipper>
<Recipient>
<Contact>
<PersonName>Input person</PersonName>
<CompanyName>Input company name</CompanyName>
<PhoneNumber>Input phone number</PhoneNumber>
</Contact>
<Address>
<StreetLines>Input Street</StreetLines>
<City>Input City</City>
<StateOrProvinceCode>Input State</StateOrProvinceCode>
<PostalCode>Input postal code</PostalCode>
<CountryCode>Input country code</CountryCode>
</Address>
</Recipient>
<ShippingChargesPayment>
<PaymentType>SENDER</PaymentType>
<Payor>
<ResponsibleParty>
<AccountNumber>Input your account number</AccountNumber>
<Contact>
<PersonName>Input person</PersonName>
<CompanyName>Input company name</CompanyName>
<PhoneNumber>Input phone number</PhoneNumber>
</Contact>
<Address>
<StreetLines>Input Street</StreetLines>
<City>Input City</City>
<StateOrProvinceCode>Input State</StateOrProvinceCode>
<PostalCode>Input postal code</PostalCode>
<CountryCode>Input country code</CountryCode>
</Address>
</ResponsibleParty>
</Payor>
</ShippingChargesPayment>
<CustomsClearanceDetail>
<CustomsOptions>
<Type>COURTESY_RETURN_LABEL</Type>
</CustomsOptions>
<DutiesPayment>
<PaymentType>SENDER</PaymentType>
<Payor>
<ResponsibleParty>
<AccountNumber>510087100</AccountNumber>
<Contact>
<CompanyName>Cutera</CompanyName>
<PhoneNumber>4106273499</PhoneNumber>
<EMailAddress>fedex-api@cutera.com</EMailAddress>
</Contact>
<Address>
<StreetLines>3240 BAYSHORE BLVD</StreetLines>
<City>BRISBANE</City>
<StateOrProvinceCode>CA</StateOrProvinceCode>
<PostalCode>94005</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</ResponsibleParty>
</Payor>
</DutiesPayment>
<CustomsValue>
<Currency>USD</Currency>
<Amount>17.55</Amount>
</CustomsValue>
<Commodities>
<Name>TG11</Name>
<NumberOfPieces>1</NumberOfPieces>
<Description>TG11</Description>
<CountryOfManufacture>US</CountryOfManufacture>
<Weight>
<Units>KG</Units>
<Value>16.2</Value>
</Weight>
<Quantity>1</Quantity>
<QuantityUnits>EA</QuantityUnits>
<UnitPrice>
<Currency>USD</Currency>
<Amount>17.55</Amount>
</UnitPrice>
<CustomsValue>
<Currency>USD</Currency>
<Amount>17.55</Amount>
</CustomsValue>
<PartNumber>TG11</PartNumber>
</Commodities>
</CustomsClearanceDetail>
<LabelSpecification>
<LabelFormatType>COMMON2D</LabelFormatType>
<ImageType>PDF</ImageType>
<LabelStockType>PAPER_4X6</LabelStockType>
</LabelSpecification>
<ShippingDocumentSpecification>
<ShippingDocumentTypes>COMMERCIAL_INVOICE</ShippingDocumentTypes>
<CommercialInvoiceDetail>
<Format>
<ImageType>PDF</ImageType>
<StockType>PAPER_LETTER</StockType>
</Format>
</CommercialInvoiceDetail>
</ShippingDocumentSpecification>
<RateRequestTypes>LIST</RateRequestTypes>
<RateRequestTypes>ACCOUNT</RateRequestTypes>
<PackageCount>1</PackageCount>
<RequestedPackageLineItems>
<Weight>
<Units>LB</Units>
<Value>39.683</Value>
</Weight>
<Dimensions>
<Length>10</Length>
<Width>20</Width>
<Height>30</Height>
<Units>IN</Units>
</Dimensions>
<CustomerReferences>
<CustomerReferenceType>CUSTOMER_REFERENCE</CustomerReferenceType>
<Value>abcfdggalkewgr</Value>
</CustomerReferences>
<CustomerReferences>
<CustomerReferenceType>P_O_NUMBER</CustomerReferenceType>
<Value>1235566</Value>
</CustomerReferences>
<ContentRecords>
<PartNumber>TG11</PartNumber>
<ItemNumber>TG11</ItemNumber>
<ReceivedQuantity>1</ReceivedQuantity>
<Description>Trad.Good 11,PD,Reg.Trading</Description>
</ContentRecords>
</RequestedPackageLineItems>
</RequestedShipment>
</ProcessShipmentRequest>
</SOAP-ENV:Body>
</SOAP-ENV: конверт>
Комментарии:
1. Запрос выглядит нормально, однако я не понимаю, как
PO:
это произошлоREF 23
, потому1235566
что вместо этого было указано?