🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 28, 2026

How to Create EasyPost Shipments from Gravity Forms

GravityExtra
How to Create EasyPost Shipments from Gravity Forms

If you take orders, returns, bookings or pickup requests through a Gravity Form, there is a gap between the moment someone hits submit and the moment a parcel is actually on its way. Someone has to copy the address into a shipping tool, weigh the box, compare carriers and print a label. The Gravity Forms EasyPost Premium Add-on closes that gap: every submission becomes an EasyPost shipment, with the address and parcel mapped from your fields, live rates fetched across your carriers, and — if you want — a postage label bought automatically.

Why create shipments from your forms

EasyPost is a shipping API that talks to dozens of carriers through one interface, so you can compare USPS, UPS, FedEx and more without a separate account integration for each. The hard part is connecting it to where your orders actually arrive. For a huge number of small shops, makers and service businesses, that is a Gravity Form: a product order, a repair intake, a sample request, a charity dispatch. This add-on wires the two together, so the shipment is built the instant the form is submitted — no re-typing, no copy-paste, no missed packages.

Fetch rates, or buy a label

Each feed does one of two things. In Fetch rates only mode it creates the shipment and stores the live rates, keeping the cheapest on the entry — perfect for quoting a shipping price, reviewing options, or buying a label later by hand. In Buy a label mode it goes further and buys postage automatically: at the cheapest rate across all carriers, or at a carrier and service you choose, such as USPS Priority. The tracking code and the label URL are then stored on the entry, ready to send to the customer. Because mode is set per feed, one form can quote on one feed and buy on another once payment clears.

What you need before you start

You need Gravity Forms 2.9 or newer, a WordPress site on PHP 7.4 or newer, and an EasyPost account. EasyPost provides a Test key and a Production key in your account settings; Test keys never create real shipments, so you can build and rehearse the whole flow safely. The add-on only ever contacts the EasyPost REST API at api.easypost.com and nothing else.

Step 1: get your EasyPost API key

In EasyPost open Account Settings, then API Keys, and copy a key. A Test key starts with EZTK and a Production key starts with EZAK. Treat it like a password: you paste it into the add-on once, and it is stored encrypted on your own site from then on.

Step 2: connect the add-on

In WordPress go to Forms → Settings → EasyPost, activate your GravityExtra license key, paste the EasyPost key into the key field and save. The field is a password field, the key is encrypted with AES-256-GCM before it reaches the database, and it is never shown again in clear. The Test connection button confirms the key works without creating a shipment or buying a label.

The EasyPost settings page in Gravity Forms: license key, EasyPost API key and a Test connection button
Paste your EasyPost API key and confirm it with Test connection.

If your server cannot encrypt secrets, the add-on tells you and lets you define the key with the GFEP_API_KEY constant in wp-config.php instead; the key field is then replaced with a short note and nothing is stored in the database.

Step 3: add a feed to a form

Open a form, go to Settings → EasyPost, and add a feed. Choose Fetch rates only or Buy a label, and if you are buying, pick the cheapest rate or name a carrier and service. Then build the shipment: set your warehouse as the From address, map the To address from the submission, and set the Parcel weight (in ounces) and, optionally, the dimensions (in inches).

The EasyPost feed in Gravity Forms: fetch rates or buy a label, the from and to address and the parcel
A feed maps the from and to address and the parcel, and chooses rate-only or buy-a-label.

Mapping fields and choosing rates

Every address and parcel field accepts Gravity Forms merge tags, so you build the shipment straight from the submission. Map the recipient name from a name field with {Name (First):1.3} {Name (Last):1.6}, the street from an address field with {Ship to (Street Address):3.1}, and the weight from a number field with {Weight:4}. Country must be a two-letter ISO code such as US. When you buy a label by a chosen carrier but name no service, the carrier’s cheapest service is used; if nothing matches, the add-on falls back to the overall cheapest rate so a label is still bought rather than the submission failing.

Step 4: test and watch the entries

Send a test submission with your Test key. Each entry records a note of what happened and keeps the shipment id, the selected rate, and — when a label is bought — the tracking code and the label URL. Four merge tags, {easypost_tracking}, {easypost_label_url}, {easypost_rate} and {easypost_shipment}, are available in your Gravity Forms notifications, so your confirmation e-mail can give the customer their tracking number and your team the label link automatically.

A Gravity Forms entry screen showing the EasyPost note with the tracking code
The entry note keeps the tracking code and selected rate for your records.

Safe creation and clear errors

Shipping is one place where doing something twice is expensive, so the add-on is careful. It creates a shipment once per entry and never buys a second label: a “done” marker on the entry and a short per-entry lock stop a resend or a retry from charging you again. If an EasyPost call fails, the form submission is still saved — you never lose an order — and the entry note carries the HTTP status so you know whether it was an invalid key (401), an incomplete address or parcel (422), or rate limiting (429). Fix the cause and resend the feed, and the shipment is created exactly once.

Where it fits: real-world examples

Because every field is mapped from the form, the add-on bends to how you actually work. A small online shop that takes orders through a Gravity Form can put its warehouse in the From address, map the customer’s details into the To address, read the parcel weight from a hidden field set by the product choice, and buy a label at the cheapest rate the moment the order is placed — the customer gets a tracking number in the confirmation e-mail, and the label link lands in the team inbox. A repair business can use a rate-only feed to quote return postage on an intake form, then a second buy-a-label feed once the customer approves the quote. A subscription box can run one feed per shipping tier, using conditional logic so the express tier buys a faster service while the standard tier buys the cheapest. A charity dispatching welcome packs can map the recipient from a sign-up form and print labels in bulk from the entries. In each case the shipment is built from the data you already collect, so there is nothing to re-enter and nothing to forget.

Carrier choice stays in EasyPost, where it belongs. Whichever carriers you have connected to your EasyPost account — USPS, UPS, FedEx, DHL and more — are compared when the shipment is created, and the add-on simply buys the rate you asked for. That means you can change carriers, add a new negotiated rate, or switch services inside EasyPost without touching your forms. The feed only ever says “cheapest” or names a carrier and service; EasyPost does the pricing.

Privacy and security

Your EasyPost API key is encrypted at rest and never shown again, never written to an entry, and never written to a log. It travels only in the HTTP Basic Authorization header, never in the URL or the request body. The add-on fixes the host to api.easypost.com over https with certificate verification on, and never follows a redirect, so the key cannot be sent anywhere else. Error messages have the key stripped out before they are shown or stored. Nothing about the shipment is sent to any third party: the only outbound request the add-on ever makes is to EasyPost, and if that request fails your form submission is still saved so no order is lost.

Put it to work

From a product order to a return label, the Gravity Forms EasyPost add-on takes the shipping work off your plate: build the shipment from the form, compare carriers, and buy the label the moment it is needed. See the full setup guide for every field and option, then get the Gravity Forms EasyPost Premium Add-on and turn your next submission into a shipment.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr