HTTP requests and postal services: Difference between revisions

From Planfix
Jump to: navigation, search
Line 20: Line 20:
*Once we’ve parsed the response and received the token, we send a main request to FedEx to obtain our shipment information.
*Once we’ve parsed the response and received the token, we send a main request to FedEx to obtain our shipment information.
https://s.pfx.so/pf/qr/aHANI5.jpg
https://s.pfx.so/pf/qr/aHANI5.jpg
**'''Note:'''Remember to add the token to the header of your main request.

Revision as of 14:54, 26 August 2025

Using HTTP Requests in Planfix, you can track shipments from transportation companies.

DHL

We’ll configure parcel tracking via the DHL API.

  • Firstly we send a GET request containing our tracking number, and the API key of our app.

hlBm20.jpg

  • Once we have received the response, we parse the shipping data received from DHL and add it to the appropriate fields.

1AZfQB.jpg

FedEx

You can also track your shipment using a POST request to the FedEx API.

  • Here, we’ll start by sending a POST request to obtain our authorization token.

sbfq6O.jpg

  • Once we’ve parsed the response and received the token, we send a main request to FedEx to obtain our shipment information.

aHANI5.jpg

    • Note:Remember to add the token to the header of your main request.