🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms EasyPost Premium Add-on Setup Guide

Updated 6 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Get your EasyPost API key
  4. The settings page
  5. Add a feed to a form
  6. Fetch rates, or buy a label
  7. Merge tags and the parcel
  8. Conditions
  9. What your visitors see
  10. On the entry
  11. Retries are safe
  12. Privacy and security
  13. Troubleshooting

Video walkthrough

Gravity Forms EasyPost Add-On Setup Guide: Shipping Rates & Labels (WordPress Side)
Video setup guide: Gravity Forms EasyPost Watch on YouTube

The Gravity Forms EasyPost Premium Add-on turns every form submission into a real shipment: it builds the sender and recipient address and the parcel from your form fields, fetches live shipping rates across your carriers, and optionally buys a postage label. This guide walks through connecting your EasyPost account, adding a feed to a form, and understanding exactly what the add-on sends and stores.

What you need

You need Gravity Forms 2.9 or newer, a WordPress site running PHP 7.4 or newer, and an EasyPost account. EasyPost gives you a Test key and a Production key in your account settings; Test keys never create real shipments, so you can build and try everything safely before going live. The add-on only ever contacts the EasyPost REST API at api.easypost.com; it never talks to any other service.

Get your EasyPost API key

In EasyPost, open Account Settings, then API Keys, and copy a key. A Test key begins with EZTK and a Production key begins with EZAK. This key belongs to your account, so treat it like a password. You paste it into the add-on settings once, and from then on it is stored encrypted on your own site.

The settings page

In WordPress go to Forms → Settings → EasyPost, activate your GravityExtra license key, then paste your EasyPost API key into the key field and save. The field is a password field, the key is encrypted before it reaches the database, and it is never shown again in clear. Use the Test connection button to confirm the key works: it asks EasyPost to list your API keys and reports success, without creating any shipment or buying any label.

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

If your site cannot encrypt secrets (the PHP openssl extension is missing), the add-on tells you, and you can instead define the key with the GFEP_API_KEY constant in wp-config.php. When that constant is set, the key field is replaced with a short note and nothing is stored in the database.

Add a feed to a form

Open a form, go to Settings → EasyPost, and add a feed. The first choice is what to do: Fetch rates only creates a shipment and stores the rates, or Buy a label creates the shipment and then buys postage. Give the feed a name so you can recognise it later.

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.

Set the From address to your warehouse or office — usually fixed values. Map the To address from the submission: the recipient name, street, city, state or province, postal code and the two-letter country code. Every address field accepts merge tags, so you can pull the recipient straight from the form, for example {Name (First):1.3} {Name (Last):1.6} for the name. Then set the Parcel: the weight in ounces is required, and the length, width and height in inches are optional. A weight of {Weight:4} drops the weight field straight into the shipment.

Fetch rates, or buy a label

In Fetch rates only mode the add-on creates the shipment and stores the rates that come back, with the cheapest rate kept on the entry. This is ideal when you want to quote a price, review options, or buy a label later. In Buy a label mode the add-on also buys postage: either at the cheapest rate, or at a carrier and service you choose, for example USPS Priority or UPS Ground. When you name a carrier without a service, the cheapest service of that carrier is used; if no matching rate is available, the add-on falls back to the overall cheapest so a label is still bought.

Merge tags and the parcel

Every address and parcel field in the feed accepts Gravity Forms merge tags, so you can mix static text with values from the submission. A recipient street of {Ship to (Street Address):3.1} is filled from an address field, and a weight of {Weight:4} from a number field. Weight is in ounces and dimensions are in inches — the units EasyPost expects. The country must be a two-letter ISO code such as US or GB; set it as a fixed value or map a field that holds the code. Leave a dimension empty and it is simply omitted from the parcel.

Conditions

A conditional-logic rule at the bottom of the feed lets you create the shipment only when a rule is met, for example only when a delivery option is set to “Ship it”, so one form can serve pickup and shipping through separate feeds. You can also run several feeds on one form — for instance a rate-only feed for quotes and a buy-a-label feed once payment is confirmed.

What your visitors see

Nothing changes for the person filling in the form. They submit as usual and see your normal confirmation. The shipment is created quietly in the background, and if the EasyPost call ever fails the submission is still saved, so you never lose an order.

A front-end Gravity Form whose submission creates an EasyPost shipment
A normal form: the visitor never sees anything about EasyPost.

On the entry

Every entry records a note saying 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 you can e-mail the tracking code to the customer and the label link to your team.

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

Retries are safe

The add-on creates a shipment once per entry and never buys a label twice. If you resend a feed, or Gravity Forms retries it, a “done” marker on the entry means nothing is done a second time, and a short per-entry lock stops two simultaneous runs from both buying a label. If a call fails, you can safely resend once the problem is fixed and it will create the shipment exactly once.

Privacy and security

Your EasyPost API key is encrypted at rest with AES-256-GCM and is never shown again, never written to an entry, and never written to a log. The key travels only in the HTTP Basic Authorization header of the request, 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.

Troubleshooting

If Test connection fails, re-copy the key from EasyPost and make sure you pasted a full Test or Production key. If a submission leaves an error note, the note includes the HTTP status from EasyPost (for example a 401 for an invalid key, a 422 when an address or the parcel weight is incomplete, or a 429 if you are rate limited). Fix the cause, then resend the feed from the entry. If a label cannot be bought because no matching rate was returned, widen your carrier choice or check the address. If you use the constant, remember that it overrides the stored key.

Still need help?

Our support team answers tickets every day, usually within a few hours.

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