web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Answered

FedEx Create Shipment Action

(1) ShareShare
ReportReport
Posted on by 12,515 Super User 2025 Season 2

Has anyone used the FedEx Create Shipment action? In the connector reference, FedEx | Microsoft Power Automate, when I click on the documentation, it says it does not exist. I can add the connector to a workflow, but without documentation I am not sure how to configure it. Do you put the same body as if you were using an HTTP request?

David_MA_0-1701893028860.png

I have a FedEx developer account and have been having trouble with using HTTP requests and thought this action would be easier to use and more reliable.

I have the same question (0)
  • Verified answer
    David_MA Profile Picture
    12,515 Super User 2025 Season 2 on at
    Re: FedEx Create Shipment Action

    I wasn't able to get the action working, but after much trial and error, I got the FedEx API working through HTTP requests. It was not an easy task, but automating the creation of shipping labels will save us 40 plus hours per month.

     

    This is what it takes:

    David_MA_0-1705074578202.png

    Next step is to process the responses from the HTTP requests and e-mail the shipping label to the customer. The above just processes each request and I am manually verifying the HTTP response and extracting the URL to the FedEx label, pasting in my browser and checking it is accurate. 

     

    But I have tested these steps in another workflow, which I need to incorporate into the above:

    David_MA_1-1705074785127.png

    If anyone is looking to automate the creation of shipping labels with Power Automate and the FedEx API, it is not easy but so far seems possible. My next step is to get a label from the development environment validated by FedEx so I can use the production API.

  • Spolavori Profile Picture
    6 on at
    Re: FedEx Create Shipment Action

    Hello, I'm trying to perform the same action as you, but without success, could you help me?
    Could you send me a printout and the body of your request, which was correct? Help please

  • David_MA Profile Picture
    12,515 Super User 2025 Season 2 on at
    Re: FedEx Create Shipment Action

    Maybe, it is quite complicated and took me about six months to finally work out all the issues. Have you set up a developer account with FedEx? If not, that will need to be done first and then a solution will need to be created in their developer environment that has your company's correct information and the account that will be billed from the API calls. For each billing account, you'll need a separate solution. If you have all that, is there a specific action you are having trouble with?

     

    I have only figured this out for shipping an RMA through FedEx Ground. 

  • Spolavori Profile Picture
    6 on at
    Re: FedEx Create Shipment Action

    Good afternoon, we have currently set up a developer account, but we have made some unsuccessful attempts. Could you share the content from within your http that sends the request? Can you explain to me better what 

    "creating a solution in your developer environment"

    I believe I have already configured the topics you mentioned above, but so far without success.

    Maybe I have the structure that you used and had success, I can solve it...

  • David_MA Profile Picture
    12,515 Super User 2025 Season 2 on at
    Re: FedEx Create Shipment Action

    The following is how the top portion of the HTTP request is formatted:

    David_MA_0-1711396717733.png

    Then this is the body:

     

     "labelResponseOptions": "URL_ONLY",
     "requestedShipment": {
     "shipper": {
     "contact": {
     "personName": "@{items('Apply_to_each')?['ReportedBy']}",
     "phoneNumber": @{items('Apply_to_each')?['Telephone']},
     "companyName": "@{items('Apply_to_each')?['Name']}"
     },
     "address": {
     "streetLines": [
     "@{items('Apply_to_each')?['Street']}"
     ],
     "city": "@{items('Apply_to_each')?['City']}",
     "stateOrProvinceCode": "@{items('Apply_to_each')?['Region']}",
     "postalCode": @{items('Apply_to_each')?['PostalCode']},
     "countryCode": "US"
     }
     },
     "recipients": [
     {
     "contact": {
     "personName": "@{items('Apply_to_each')?['ReturnAttention']}",
     "phoneNumber": 8005551212,
     "companyName": "@{items('Apply_to_each')?['ReturnCompany']}"
     },
     "address": {
     "streetLines": [
     "@{items('Apply_to_each')?['ReturnStreet']}"
     ],
     "city": "@{items('Apply_to_each')?['ReturnCity']}",
     "stateOrProvinceCode": "@{items('Apply_to_each')?['ReturnState']}",
     "postalCode": @{items('Apply_to_each')?['ReturnZIP']},
     "countryCode": "US"
     }
     }
     ],
     "shipDatestamp": "@{formatDateTime(utcNow(),'yyyy-MM-dd')}",
     "serviceType": "FEDEX_GROUND",
     "packagingType": "YOUR_PACKAGING",
     "pickupType": "DROPOFF_AT_FEDEX_LOCATION",
     "blockInsightVisibility": false,
     "shippingChargesPayment": {
     "paymentType": "SENDER"
     },
     "shipmentSpecialServices": {
     "specialServiceTypes": [
     "RETURN_SHIPMENT"
     ],
     "returnShipmentDetail": {
     "returnType": "PRINT_RETURN_LABEL"
     }
     },
     "labelSpecification": {
     "imageType": "PDF",
     "labelStockType": "PAPER_85X11_TOP_HALF_LABEL"
     },
     "requestedPackageLineItems": [
     {
     "weight": {
     "value": 10,
     "units": "LB"
     },
     "dimensions": {
     "length": 10,
     "width": 10,
     "height": 10,
     "units": "IN"
     },
     "customerReferences": [
     {
     "customerReferenceType": "RMA_ASSOCIATION",
     "value": "@{items('Apply_to_each')?['Document']}"
     },
     {
     "customerReferenceType": "CUSTOMER_REFERENCE",
     "value": "@{items('Apply_to_each')?['Description']}"
     }
     ]
     }
     ]
     },
     "accountNumber": {
     "value": "your account number"
     }
    }

     

    Keep in mind, this is specific to the shipment type we are sending, which is an RMA via FedEx Ground. If you are using a different service, they all have different requirements.

     

    It results in a label that looks like this:

    fedexlabel.png

  • LR-23071916-0 Profile Picture
    11 on at
    FedEx Create Shipment Action
    Hi there again David, for some reason there was an authentication issue and I'm being denied access to the conversation we had the other day. 
    I am successfully able to get the oauth token and use it to successfully make a label via HTTP POST using the JSON schema you provided. Will continue tweaking it as needed with trial and error.

    However, I'm trying to verify the label itself, but Im not able to view it using the url in the response body. What was your next action after the label creation POST?
  • David_MA Profile Picture
    12,515 Super User 2025 Season 2 on at
    FedEx Create Shipment Action
    https://community.powerplatform.com/profile/?userid=0e9adf9e-2849-ef11-a317-7c1e5219fbc7 there no longer appears to be a way to send a private message in the communities. Not sure how to reach out, but if they bring the feature back we could set up a Teams call and I can walk you through my workflow. I would just need to make sure you're not a competitor of ours and you would need to sign an NDA.
     
    David
  • LR-23071916-0 Profile Picture
    11 on at
    FedEx Create Shipment Action
    Didn't get notified of your response until just now - but that makes sense about the messaging feature. At this point I have gotten certified for production and have put some successful requests through. Now I'm at the stage of needing to parse out the URL, get the PDF content, and either email it or move it to a shared location.
  • David_MA Profile Picture
    12,515 Super User 2025 Season 2 on at
    FedEx Create Shipment Action
    LR-23071916-0  you are making good progress. Once you parse out the URL for the label, you would submit this HTTP request:
     
    The condition contains the Status Code from the HTTP response. 200 is success.
     
    And then the OneDrive actions for creating the PDF of the label are:
     
  • Verified answer
    LR-23071916-0 Profile Picture
    11 on at
    FedEx Create Shipment Action
    Yup, I actually did a different approach and went straight to PDF and circumvented OneDrive, then ran a base64() function on it to make the resulting contentBytes compatible with the 'Send an Email V2' action. Stick it in there as an attachment... or maybe Ill just drop them in a shared location. Looking good. You've been incredibly helpful, thank you so much. FedEx support was great as well - some of the best customer support I've ever received actually. Good to be able to go to the source.
     
     
     
     
     
     
     
     
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard