floogos
    All templates
    New
    Workflow
    Intermediate
    Operations & ERP
    E-commerce

    Create a FedEx shipment and label from an order

    When an order arrives via webhook it creates the FedEx shipment, saves the tracking in a Data Store and emails the customer.

    Everything is created inactive in a new folder of your account. Nothing runs until you activate it, and you can undo it for 24 hours.

    Workflow diagram: Create a FedEx shipment and label from an order

    What it does

    Connect your shop or ERP to FedEx: every order arriving via webhook becomes a shipment with its label, without touching the carrier portal. The workflow builds the sender and recipient in the exact format FedEx requires, creates the shipment, stores the tracking number in the envios Data Store (the same one used by automatic tracking and the logistics dashboard) and emails the customer the tracking link.

    What you need: FedEx credentials allowed to create shipments and a mail account.

    How to use it: install the template, enter your warehouse details, connect FedEx and email and send a test order to the webhook.

    How to set it up

    1. 1

      Connect the FedexCreateShipment credential

      This template uses FedexCreateShipment in: Crear envío FedEx. Create or pick the credential and assign it in those nodes.

    2. 2

      Connect the smtp credential

      This template uses smtp in: Avisar al cliente. Create or pick the credential and assign it in those nodes.

    3. 3

      Copy the webhook URL (Recibir pedido)

      A new URL is generated on install. Paste it into the external system that must call this workflow.

    4. 4

      Open the dashboard "Panel de logística"

      Check that the test data shows up.

    5. 5

      Set your warehouse details

      In the Preparar envío node, at the top of the script, replace the REMITENTE data (name, address, postal code, phone, email) with your warehouse details.

    6. 6

      Review the FedEx service

      The Preparar envío script uses FEDEX_EXPRESS_SAVER when the order is in the same country as your warehouse and FEDEX_INTERNATIONAL_PRIORITY otherwise. Adjust the servicio variable to your contracted services.

    7. 7

      Connect FedEx and email

      Select your credentials in Crear envío FedEx and the mail account in Avisar al cliente.

    8. 8

      Test with an order

      Send a POST to the webhook with {"pedido":"PED-1001","nombre":"Ana López","email":"ana@ejemplo.com","telefono":"+34600000001","direccion":"Av. Diagonal 100","ciudad":"Barcelona","provincia":"B","cp":"08019","pais":"ES","peso_kg":1.5,"descripcion":"Pedido web"}. The shipment should be created, saved in the envios Data Store and the customer should get the email.

    9. 9

      Activate the workflow

      Workflows are installed inactive. Once everything is set, activate it.

    Try it in under 5 minutes

    Create the template in your account, connect your credentials and activate it when you are ready.

    Use this template