首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >联邦快递WS API测试-开放装运

联邦快递WS API测试-开放装运
EN

Stack Overflow用户
提问于 2022-07-25 19:34:30
回答 1查看 50关注 0票数 0

一直试图了解如何从联邦快递文档创建开放发货。一个可以工作的Open请求的例子可能会有帮助,就我所得到的是“需要一个合并键”。虽然我找不到合并键的例子来尝试。

代码语言:javascript
复制
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v18="http://fedex.com/ws/openship/v18">
 <soapenv:Header/>
 <soapenv:Body>
 <v18:CreateOpenShipmentRequest>
 <v18:WebAuthenticationDetail>
 <v18:UserCredential>
 <v18:Key>KEY**</v18:Key>
 <v18:Password>PASS**</v18:Password>
 </v18:UserCredential>
 </v18:WebAuthenticationDetail>
 <v18:ClientDetail>
 <v18:AccountNumber>ACCOUNT#**</v18:AccountNumber>
 <v18:MeterNumber>METER#**</v18:MeterNumber>
 <v18:Localization>
 <v18:LanguageCode>EN</v18:LanguageCode>
 <v18:LocaleCode>en</v18:LocaleCode>
 </v18:Localization>
 </v18:ClientDetail>
 <v18:TransactionDetail>
 <v18:CustomerTransactionId>8006665550555</v18:CustomerTransactionId>
 <v18:Localization>
 <v18:LanguageCode>EN</v18:LanguageCode>
 <v18:LocaleCode>en</v18:LocaleCode>
 </v18:Localization>
 </v18:TransactionDetail>
 <v18:Version>
 <v18:ServiceId>ship</v18:ServiceId>
 <v18:Major>18</v18:Major>
 <v18:Intermediate>0</v18:Intermediate>
 <v18:Minor>0</v18:Minor>
 </v18:Version>
 
 <v18:RequestedShipment>
 <v18:ShipTimestamp>2021-02-05T00:00:00-00:00</v18:ShipTimestamp>
 <v18:DropoffType>REGULAR_PICKUP</v18:DropoffType>
 <v18:ServiceType>INTERNATIONAL_ECONOMY_DISTRIBUTION</v18:ServiceType>
 <v18:PackagingType>YOUR_PACKAGING</v18:PackagingType>
 <v18:TotalWeight>
 <v18:Units>LB</v18:Units>
 <v18:Value>250.0</v18:Value>
 </v18:TotalWeight>
 <v18:TotalDimensions>
 <v18:Length>12</v18:Length>
 <v18:Width>12</v18:Width>
 <v18:Height>12</v18:Height>
 <v18:Units>IN</v18:Units>
 </v18:TotalDimensions>
 <v18:Shipper>
 <v18:AccountNumber>703101976</v18:AccountNumber>
 <v18:Tins>
 <v18:TinType>BUSINESS_NATIONAL</v18:TinType>
 <v18:Number>INDIVIDUAL</v18:Number>
 </v18:Tins>
 <v18:Contact>
 <v18:PersonName>AMAR</v18:PersonName>
 <v18:CompanyName>SYNTEL</v18:CompanyName>
 <v18:PhoneNumber>1234567890</v18:PhoneNumber>
 <v18:EMailAddress>Amarnadh_Chennmsetti@syntelinc.com</v18:EMailAddress>
 </v18:Contact>
 <v18:Address>
 <v18:StreetLines>80 Fedex Prkwy</v18:StreetLines>
 <v18:StreetLines>Suite 101</v18:StreetLines>
 <v18:City>BOGOTA</v18:City>
 <v18:StateOrProvinceCode>DC</v18:StateOrProvinceCode>
 <v18:PostalCode>110311</v18:PostalCode>
 <v18:CountryCode>CO</v18:CountryCode>
 <v18:Residential>false</v18:Residential>
 </v18:Address>
 </v18:Shipper>
 <v18:Recipient>
 <v18:Contact>
 <v18:PersonName>via FEDEX IED</v18:PersonName>
<v18:CompanyName>Syntel</v18:CompanyName>
<v18:PhoneNumber>9017977100</v18:PhoneNumber>
 </v18:Contact>
<v18:Address>
 <v18:StreetLines>2903 SPRANKEL AVE</v18:StreetLines>
<v18:City>MEMPHIS</v18:City>
 <v18:StateOrProvinceCode>TN</v18:StateOrProvinceCode>
 <v18:PostalCode>38199</v18:PostalCode>
<v18:CountryCode>US</v18:CountryCode>
<v18:Residential>false</v18:Residential>
<v18:GeographicCoordinates>+0.0+0.0/</v18:GeographicCoordinates>
 </v18:Address>
 </v18:Recipient>
 <v18:Origin>
 <v18:Contact>
 <v18:PersonName>RAVI</v18:PersonName>
<v18:CompanyName>SYNTEL</v18:CompanyName>
<v18:PhoneNumber>7896543210</v18:PhoneNumber>
<v18:EMailAddress>Ravikumar_Sharma@syntelinc.com</v18:EMailAddress>
 </v18:Contact>
<v18:Address>
 <v18:StreetLines>80 Fedex Prkwy</v18:StreetLines>
<v18:StreetLines>Suite 101</v18:StreetLines>
<v18:City>BOGOTA</v18:City>
<v18:StateOrProvinceCode>DC</v18:StateOrProvinceCode>
<v18:PostalCode>110311</v18:PostalCode>
<v18:CountryCode>CO</v18:CountryCode>
<v18:Residential>false</v18:Residential>
 </v18:Address>
 </v18:Origin>
 <v18:ShippingChargesPayment>
 <v18:PaymentType>SENDER</v18:PaymentType>
<v18:Payor>
 <v18:ResponsibleParty>
 <v18:AccountNumber>703101976</v18:AccountNumber>
<v18:Contact>
<v18:PersonName>Amar</v18:PersonName>
<v18:CompanyName>Fedex</v18:CompanyName>
<v18:PhoneNumber>1234567890</v18:PhoneNumber>
<v18:EMailAddress>amar.ch@gmail.com</v18:EMailAddress>
 </v18:Contact>
<v18:Address>
 <v18:StreetLines>80 Fedex Prkwy</v18:StreetLines>
<v18:StreetLines>Suite 101</v18:StreetLines>
 <v18:City>BOGOTA</v18:City>
 <v18:StateOrProvinceCode>DC</v18:StateOrProvinceCode>
<v18:PostalCode>110311</v18:PostalCode>
<v18:CountryCode>CO</v18:CountryCode>
<v18:Residential>false</v18:Residential>
 </v18:Address>
 </v18:ResponsibleParty>
 </v18:Payor>
 </v18:ShippingChargesPayment>
 <v18:ConsolidationDetail>
 <v18:RelationshipTimestamp>2021-02-05T01:42:48-06:00</v18:RelationshipTimestamp>
 <v18:Type>INTERNATIONAL_ECONOMY_DISTRIBUTION</v18:Type>
<v18:Role>MASTER_AIRWAYBILL_SHIPMENT</v18:Role>
<v18:InternationalDistributionDetail>
 <v18:SummaryDetail>
 <v18:TotalWeight>
 <v18:Units>LB</v18:Units>
<v18:Value>250.0</v18:Value>
 </v18:TotalWeight>
 <v18:TotalPackageCount>5</v18:TotalPackageCount>
 <v18:TotalUniqueAddressCount>1</v18:TotalUniqueAddressCount>
<v18:TotalCustomsValue>
 <v18:Currency>USD</v18:Currency>
 <v18:Amount>2500.0</v18:Amount>
 </v18:TotalCustomsValue>
 </v18:SummaryDetail>
 </v18:InternationalDistributionDetail>
 </v18:ConsolidationDetail>
 <v18:CustomsClearanceDetail>
 <v18:CustomsOptions>
 <v18:Type>OTHER</v18:Type>
<v18:Description>Consolidatedproduct</v18:Description>
 </v18:CustomsOptions>
<v18:ImporterOfRecord>
 <v18:AccountNumber>703101976</v18:AccountNumber>
<v18:Contact>
 <v18:PersonName>swapnil</v18:PersonName>
<v18:CompanyName>Syntel</v18:CompanyName>
<v18:PhoneNumber>9985621496</v18:PhoneNumber>
<v18:EMailAddress>Swapnil_Ghadage@syntelinc.com</v18:EMailAddress>
 </v18:Contact>
<v18:Address>
 <v18:StreetLines>2 INTERNATIONAL PL</v18:StreetLines>
<v18:StreetLines>IPD TESTING FXRS</v18:StreetLines>
<v18:City>Memphis</v18:City>
<v18:StateOrProvinceCode>TN</v18:StateOrProvinceCode>
<v18:PostalCode>38117</v18:PostalCode>
 <v18:CountryCode>US</v18:CountryCode>
<v18:Residential>false</v18:Residential>
 </v18:Address>
 </v18:ImporterOfRecord>
<v18:RecipientCustomsId>
 <v18:Type>COMPANY</v18:Type>
<v18:Value>125</v18:Value>
 </v18:RecipientCustomsId>
<v18:DutiesPayment>
 <v18:PaymentType>SENDER</v18:PaymentType>
 <v18:Payor>
 <v18:ResponsibleParty>
 <v18:AccountNumber>703101976</v18:AccountNumber>
<v18:Contact>
 <v18:PersonName>Amarnadh</v18:PersonName>
<v18:CompanyName>SYNTEL</v18:CompanyName>
<v18:PhoneNumber>1234567890</v18:PhoneNumber>
<v18:EMailAddress>Amarnadh_Chennmsetti@syntelinc.com</v18:EMailAddress>
 </v18:Contact>
 <v18:Address>
 <v18:StreetLines>2 INTERNATIONAL PL</v18:StreetLines>
<v18:StreetLines>IPD TESTING FXRS</v18:StreetLines>
<v18:City>Memphis</v18:City>
<v18:StateOrProvinceCode>TN</v18:StateOrProvinceCode>
<v18:PostalCode>38117</v18:PostalCode>
<v18:CountryCode>US</v18:CountryCode>
<v18:Residential>false</v18:Residential>
 </v18:Address>
 </v18:ResponsibleParty>
 </v18:Payor>
 </v18:DutiesPayment>
<v18:DocumentContent>NON_DOCUMENTS</v18:DocumentContent>
<v18:CustomsValue>
 <v18:Currency>USD</v18:Currency>
<v18:Amount>2500.0</v18:Amount>
 </v18:CustomsValue>
<v18:InsuranceCharges>
 <v18:Currency>USD</v18:Currency>
<v18:Amount>1000.0</v18:Amount>
 </v18:InsuranceCharges>
<v18:PartiesToTransactionAreRelated>false</v18:PartiesToTransactionAreRelated>
<v18:CommercialInvoice>
 <v18:TermsOfSale>DDP</v18:TermsOfSale>
 </v18:CommercialInvoice>
<v18:Commodities>
 <v18:Name>product</v18:Name>
<v18:NumberOfPieces>1</v18:NumberOfPieces>
<v18:Description>product</v18:Description>
<v18:CountryOfManufacture>US</v18:CountryOfManufacture>
<v18:Weight>
 <v18:Units>LB</v18:Units>
<v18:Value>10.0</v18:Value>
 </v18:Weight>
<v18:Quantity>1.0</v18:Quantity>
<v18:QuantityUnits>X</v18:QuantityUnits>
<v18:UnitPrice>
 <v18:Currency>USD</v18:Currency>
 <v18:Amount>1000.0</v18:Amount>
 </v18:UnitPrice>
<v18:CustomsValue>
 <v18:Currency>USD</v18:Currency>
<v18:Amount>1000.0</v18:Amount>
 </v18:CustomsValue>
 </v18:Commodities>
<v18:ExportDetail>
 <v18:ExportComplianceStatement>30.37(f)</v18:ExportComplianceStatement>
 </v18:ExportDetail>
 </v18:CustomsClearanceDetail>
 <v18:BlockInsightVisibility>false</v18:BlockInsightVisibility>
 <v18:LabelSpecification>
 <v18:LabelFormatType>COMMON2D</v18:LabelFormatType>
<v18:ImageType>PNG</v18:ImageType>
 <v18:LabelStockType>PAPER_4X6</v18:LabelStockType>
 <v18:LabelPrintingOrientation>TOP_EDGE_OF_TEXT_FIRST</v18:LabelPrintingOrientation>
 </v18:LabelSpecification>
 <v18:RateRequestTypes>LIST</v18:RateRequestTypes>
 <v18:EdtRequestType>ALL</v18:EdtRequestType>
 <v18:PackageCount>1</v18:PackageCount>
 <v18:RequestedPackageLineItems>
 <v18:SequenceNumber>1</v18:SequenceNumber>
<v18:GroupNumber>0</v18:GroupNumber>
<v18:GroupPackageCount>1</v18:GroupPackageCount>
<v18:TrackingIds>
 <v18:TrackingIdType>FEDEX</v18:TrackingIdType>
<v18:FormId>0431</v18:FormId>
<v18:TrackingNumber>794999198509</v18:TrackingNumber>
 </v18:TrackingIds>
<v18:Weight>
 <v18:Units>LB</v18:Units>
<v18:Value>250.0</v18:Value>
 </v18:Weight>
<v18:Dimensions>
 <v18:Length>12</v18:Length>
<v18:Width>12</v18:Width>
<v18:Height>12</v18:Height>
<v18:Units>IN</v18:Units>
 </v18:Dimensions>
 <v18:CustomerReferences>
 <v18:CustomerReferenceType>CUSTOMER_REFERENCE</v18:CustomerReferenceType>
<v18:Value>abcfdggalkewgr</v18:Value>
 </v18:CustomerReferences>
 </v18:RequestedPackageLineItems>
 </v18:RequestedShipment>
 </v18:CreateOpenShipmentRequest>
 </soapenv:Body>
</soapenv:Envelope>

下面是我得到的回应:

代码语言:javascript
复制
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
    <CreateOpenShipmentReply xmlns="http://fedex.com/ws/openship/v18">
        <HighestSeverity>ERROR</HighestSeverity>
        <Notifications>
            <Severity>ERROR</Severity>
            <Source>ship</Source>
            <Code>3791</Code>
            <Message>Consolidation Key required.</Message>
            <LocalizedMessage>Consolidation Key required.</LocalizedMessage>
        </Notifications>
        <TransactionDetail>
            <CustomerTransactionId>8006665550555</CustomerTransactionId>
            <Localization>
                <LanguageCode>EN</LanguageCode>
                <LocaleCode>en</LocaleCode>
            </Localization>
        </TransactionDetail>
        <Version>
            <ServiceId>ship</ServiceId>
            <Major>18</Major>
            <Intermediate>0</Intermediate>
            <Minor>0</Minor>
        </Version>
    </CreateOpenShipmentReply>
</SOAP-ENV:Body>
EN

回答 1

Stack Overflow用户

发布于 2022-07-29 19:24:47

事实证明,联邦快递已经承认他们的开发人员-测试关键环境中存在一个漏洞,特别是与开放发货。他们建议我可以在生产中直接进行这种测试,或者将类型从: INTERNATIONAL_ECONOMY_DISTRIBUTION更改为FEDEX_GROUND,合并键错误将停止。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73114494

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档