我遇到了联邦快递费率服务请求的问题。我需要从fedex获得Saturday Delivery Rate。我怎么能得到这个?我正在使用python-fedex模块。联邦快递费率请求使用python-fedex
我一直在使用
rate_request.RequestedShipment.ServiceType = None
rate_request.VariableOptions = 'SATURDAY_DELIVERY'
与其他参数尝试。请给我一些提示。我只是被困住了。
我遇到了联邦快递费率服务请求的问题。我需要从fedex获得Saturday Delivery Rate。我怎么能得到这个?我正在使用python-fedex模块。联邦快递费率请求使用python-fedex
我一直在使用
rate_request.RequestedShipment.ServiceType = None
rate_request.VariableOptions = 'SATURDAY_DELIVERY'
与其他参数尝试。请给我一些提示。我只是被困住了。
我不知道该模块。但一个周六分娩率的要求是这样的:
<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/rate/v13">
<SOAP-ENV:Body>
<RateRequest>
<WebAuthenticationDetail>
<UserCredential>
<Key></Key>
<Password/>
</UserCredential>
</WebAuthenticationDetail>
<ClientDetail>
<AccountNumber></AccountNumber>
<MeterNumber></MeterNumber>
</ClientDetail>
<TransactionDetail>
<CustomerTransactionId>RateRequest_Condor_Sat_Del</CustomerTransactionId>
</TransactionDetail>
<Version>
<ServiceId>crs</ServiceId>
<Major>13</Major>
<Intermediate>0</Intermediate>
<Minor>0</Minor>
</Version>
<RequestedShipment>
<ShipTimestamp>2012-08-17T09:30:47-05:00</ShipTimestamp>
<DropoffType>REGULAR_PICKUP</DropoffType>
<ServiceType>FIRST_OVERNIGHT</ServiceType>
<PackagingType>YOUR_PACKAGING</PackagingType>
<TotalWeight>
<Units>LB</Units>
<Value>50.0</Value>
</TotalWeight>
<Shipper>
<AccountNumber></AccountNumber>
<Contact>
<CompanyName>FedEx-WAPI</CompanyName>
<PhoneNumber>1234567890</PhoneNumber>
</Contact>
<Address>
<StreetLines>SN2000 Test Meter 8</StreetLines>
<StreetLines>10 Fedex Parkway</StreetLines>
<City>COLORADO SPRINGS</City>
<StateOrProvinceCode>CO</StateOrProvinceCode>
<PostalCode>80915</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Shipper>
<Recipient>
<AccountNumber></AccountNumber>
<Contact>
<PersonName>Recipient Contact</PersonName>
<PhoneNumber>1234567890</PhoneNumber>
</Contact>
<Address>
<StreetLines>Recipient Address Line 1</StreetLines>
<StreetLines>Recipient Address Line 2</StreetLines>
<City>Minneapolis</City>
<StateOrProvinceCode>MN</StateOrProvinceCode>
<PostalCode>55411</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Recipient>
<ShippingChargesPayment>
<PaymentType>SENDER</PaymentType>
<Payor>
<ResponsibleParty>
<AccountNumber></AccountNumber>
<Tins>
<TinType>BUSINESS_STATE</TinType>
<Number>123456</Number>
</Tins>
</ResponsibleParty>
</Payor>
</ShippingChargesPayment>
<SpecialServicesRequested>
<SpecialServiceTypes>SATURDAY_DELIVERY</SpecialServiceTypes>
</SpecialServicesRequested>
<LabelSpecification>
<LabelFormatType>COMMON2D</LabelFormatType>
<ImageType>PNG</ImageType>
<LabelStockType>PAPER_4X6</LabelStockType>
</LabelSpecification>
<RateRequestTypes>ACCOUNT</RateRequestTypes>
<PackageCount>1</PackageCount>
<RequestedPackageLineItems>
<SequenceNumber>1</SequenceNumber>
<GroupPackageCount>1</GroupPackageCount>
<Weight>
<Units>LB</Units>
<Value>20.0</Value>
</Weight>
<Dimensions>
<Length>12</Length>
<Width>12</Width>
<Height>12</Height>
<Units>IN</Units>
</Dimensions>
<ContentRecords>
<PartNumber>123445</PartNumber>
<ItemNumber>kjdjalsro1262739827</ItemNumber>
<ReceivedQuantity>12</ReceivedQuantity>
<Description>ContentDescription</Description>
</ContentRecords>
</RequestedPackageLineItems>
</RequestedShipment>
</RateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
其中ShipmentSpecialServiceType是定义开发手册 - 的-page 37的重要组成部分:
标识的特殊服务,由托运人要求集合 并由联邦快递提供。托运人要求特殊服务需要 附加数据(如C.O.D.),特殊服务类型必须为 ,并且必须在适当的子对象(如 CodDetail)中提供支持 明细。
我会看看Shiprush SDK。它有一个SOAP入口点,您可以为Fedex和其他运营商评分和发货。 (并且他们支持它。)
感谢您的回复。这对我帮助很大。现在我面临另一个问题。可能是所有服务或送货地址没有星期六递送特别服务可用,这就是为什么我得到'特殊服务星期六递送不允许'这样的错误。再次感谢。很好的帮助! – Codengine
当然是...星期六送货不适用于所有的联邦快递服务和国家。据我所知:联邦快递优先隔夜,联邦快递第一次过夜,联邦快递地面,联邦快递陆运,联邦快递2Day,联邦快递2Day A.M.,国际优先,联邦快递1Day®运费,联邦快递2天运费。但是,从阿根廷到美国在国际上检查国家对是非常重要的,可能你可以支付星期六的送货服务费,但不是从我们这里支付给阿根廷。很多非常感谢argentina.brgds –
。 :) – Codengine