Request


https://wsbeta.fedex.com:443/web-services/rate<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://fedex.com/ws/rate/v28"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <RateRequest> <WebAuthenticationDetail> <UserCredential> <Key>zNFUzeyv7o1QXWL8</Key> <Password>EEkpUhyAaLcpXdijcegXytq1g</Password> </UserCredential> </WebAuthenticationDetail> <ClientDetail> <AccountNumber>510087780</AccountNumber> <MeterNumber>119235251</MeterNumber> </ClientDetail> <TransactionDetail> <CustomerTransactionId>*** PS Rate Request ***</CustomerTransactionId> </TransactionDetail> <Version> <ServiceId>crs</ServiceId> <Major>28</Major> <Intermediate>0</Intermediate> <Minor>0</Minor> </Version> <VariableOptions>FEDEX_ONE_RATE</VariableOptions> <RequestedShipment> <ShipTimestamp>2021-07-26T00:00:00+00:00</ShipTimestamp> <DropoffType>REGULAR_PICKUP</DropoffType> <PackagingType>FEDEX_SMALL_BOX</PackagingType> <TotalWeight> <Units>KG</Units> <Value>0.001</Value> </TotalWeight> <PreferredCurrency>USD</PreferredCurrency> <Shipper> <AccountNumber>510087780</AccountNumber> <Address> <PostalCode>02721</PostalCode> <CountryCode>US</CountryCode> </Address> </Shipper> <Recipient> <Address> <PostalCode></PostalCode> <CountryCode>US</CountryCode> <Residential>true</Residential> </Address> </Recipient> <ShippingChargesPayment> <PaymentType>SENDER</PaymentType> <Payor> <ResponsibleParty> <AccountNumber>510087780</AccountNumber> </ResponsibleParty> </Payor> </ShippingChargesPayment> <RateRequestTypes>NONE</RateRequestTypes> <PackageCount>1</PackageCount> <RequestedPackageLineItems><SequenceNumber>1</SequenceNumber><GroupNumber>1</GroupNumber><GroupPackageCount>1</GroupPackageCount><Weight><Units>KG</Units><Value>0.001</Value></Weight></RequestedPackageLineItems> </RequestedShipment> </RateRequest> </SOAP-ENV:Body> </SOAP-ENV:Envelope>

Response


Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Sun, 25 Jul 2021 23:34:14 GMT [server] => Apache [set-cookie] => siteDC=wtc; path=/; domain=.fedex.com; expires=Mon, 26-Jul-2021 23:34:14 GMT; secure; HttpOnly [accept] => text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 [x-csr-log-transaction-id] => ad5bb240-7f61-4691-a7fa-4dc7dcb9190d [soapaction] => "" [x-csr-elapsed_millis] => 317 [vary] => Accept-Encoding [content-encoding] => gzip [responsesslprotocol] => TLSv1.3 [content-type] => text/xml; charset=utf-8 ) ) [body] => ERRORERRORcrs521Destination postal code missing or invalid. Destination postal code missing or invalid. *** PS Rate Request ***crs2800 [response] => Array ( [code] => 200 [message] => OK ) [cookies] => Array ( [0] => WP_Http_Cookie Object ( [name] => siteDC [value] => wtc [expires] => 1627342454 [path] => / [domain] => fedex.com [host_only] => ) ) [filename] => [http_response] => WP_HTTP_Requests_Response Object ( [response:protected] => Requests_Response Object ( [body] => ERRORERRORcrs521Destination postal code missing or invalid. Destination postal code missing or invalid. *** PS Rate Request ***crs2800 [raw] => HTTP/1.1 200 OK Date: Sun, 25 Jul 2021 23:34:14 GMT Server: Apache Set-Cookie: siteDC=wtc; path=/; domain=.fedex.com; expires=Mon, 26-Jul-2021 23:34:14 GMT; secure; HttpOnly Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 X-CSR-LOG-TRANSACTION-ID: ad5bb240-7f61-4691-a7fa-4dc7dcb9190d SOAPAction: "" X-CSR-ELAPSED_MILLIS: 317 Vary: Accept-Encoding Content-Encoding: gzip RESPONSESSLProtocol: TLSv1.3 Connection: close Transfer-Encoding: chunked Content-Type: text/xml; charset=utf-8 ERRORERRORcrs521Destination postal code missing or invalid. Destination postal code missing or invalid. *** PS Rate Request ***crs2800 [headers] => Requests_Response_Headers Object ( [data:protected] => Array ( [date] => Array ( [0] => Sun, 25 Jul 2021 23:34:14 GMT ) [server] => Array ( [0] => Apache ) [set-cookie] => Array ( [0] => siteDC=wtc; path=/; domain=.fedex.com; expires=Mon, 26-Jul-2021 23:34:14 GMT; secure; HttpOnly ) [accept] => Array ( [0] => text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 ) [x-csr-log-transaction-id] => Array ( [0] => ad5bb240-7f61-4691-a7fa-4dc7dcb9190d ) [soapaction] => Array ( [0] => "" ) [x-csr-elapsed_millis] => Array ( [0] => 317 ) [vary] => Array ( [0] => Accept-Encoding ) [content-encoding] => Array ( [0] => gzip ) [responsesslprotocol] => Array ( [0] => TLSv1.3 ) [content-type] => Array ( [0] => text/xml; charset=utf-8 ) ) ) [status_code] => 200 [protocol_version] => 1.1 [success] => 1 [redirects] => 0 [url] => https://wsbeta.fedex.com/web-services/rate [history] => Array ( ) [cookies] => Requests_Cookie_Jar Object ( [cookies:protected] => Array ( [siteDC] => Requests_Cookie Object ( [name] => siteDC [value] => wtc [attributes] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [path] => / [domain] => fedex.com [expires] => 1627342454 [secure] => 1 [httponly] => 1 ) ) [flags] => Array ( [creation] => 1627256054 [last-access] => 1627256054 [persistent] => [host-only] => ) [reference_time] => 1627256054 ) ) ) ) [filename:protected] => [data] => [headers] => [status] => ) )

Response Body


SimpleXMLElement Object ( [@attributes] => Array ( [xmlnsSOAPENV] => http//schemas.xmlsoap.org/soap/envelope/ ) [SOAPENVHeader] => SimpleXMLElement Object ( ) [SOAPENVBody] => SimpleXMLElement Object ( [RateReply] => SimpleXMLElement Object ( [HighestSeverity] => ERROR [Notifications] => SimpleXMLElement Object ( [Severity] => ERROR [Source] => crs [Code] => 521 [Message] => Destination postal code missing or invalid. [LocalizedMessage] => Destination postal code missing or invalid. ) [TransactionDetail] => SimpleXMLElement Object ( [CustomerTransactionId] => *** PS Rate Request *** ) [Version] => SimpleXMLElement Object ( [ServiceId] => crs [Major] => 28 [Intermediate] => 0 [Minor] => 0 ) ) ) )