For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.11 (unreleased)

EasyPost connector

Create addresses, parcels, and shipments, and buy and track shipments with EasyPost from your BPMN process.

About this connector​

The EasyPost connector is an outbound connector that integrates your process with the EasyPost shipping service. Use it to create and verify addresses, create parcels and shipments, buy a shipment, and retrieve the status of a tracker.

The connector is built on top of the REST connector, so the response is handled as described for the REST connector.

Prerequisites​

To use the EasyPost connector, you need:

note

Use secrets to avoid exposing your EasyPost API key as plain text. Refer to manage secrets to learn more.

Use this connector​

New to using an outbound connector? Learn how to add and use this type of connector, apply element templates, use connector secrets, handle results and errors, and more.

Configuration​

Authentication​

Choose a reusable Authentication credential, or enter an API key in the task.

PropertyTypeRequiredDescription
Authentication credentialConfigurationNoA reusable EasyPost credential. If you select a credential, you don't need to enter an API key in the task. See using credentials.
API keyStringYes, if no Authentication credential is selectedYour EasyPost API key. Find it in the API key dashboard. Use a secret.

Operation​

PropertyTypeRequiredDescription
Operation typeDropdownYesThe operation to run: Create an address, Create a parcel, Create a shipment, Buy a shipment, Verify a created address, or Retrieve a tracker by ID. The other inputs depend on it.

Advanced​

PropertyTypeRequiredDescriptionExample
Connection timeoutStringNoTimeout in seconds for the connection to EasyPost. Accepts a number of seconds or a FEEL expression. The default is 20 seconds.20

Operations​

Create an address​

Creates and saves an address, and returns an address ID to use in follow-up operations. For details about the address object and example responses, refer to the EasyPost address documentation.

Input parameters​

PropertyTypeRequiredDescription
NameStringNoName of the person at the address.
CompanyStringNoCompany name.
PhoneStringNoPhone number.
Address line 1StringNoFirst line of the street address.
Address line 2StringNoSecond line of the street address.
CityStringNoCity.
State or provinceStringNoState or province.
EmailStringNoEmail address.
ZIP or postal codeStringNoZIP or postal code.
CountryStringNoCountry.
Federal tax IDStringNoFederal tax ID of the address.
State tax IDStringNoState tax ID of the address.

Output​

The pre-filled Result expression returns the ID of the created address:

={addressId: response.body.id}

Create a parcel​

Creates and saves a parcel, and returns a parcel ID to use in follow-up operations. For details about the parcel object and example responses, refer to the EasyPost parcel documentation.

Input parameters​

PropertyTypeRequiredDescription
WeightStringYesWeight of the parcel in ounces.
LengthStringConditionalLength of the parcel in inches. Required if you set the width or height.
WidthStringConditionalWidth of the parcel in inches. Required if you set the length or height.
HeightStringConditionalHeight of the parcel in inches. Required if you set the length or width.
Predefined packageStringNoPredefined package type. Refer to the EasyPost service levels and parcels page, which lists the valid values.

Output​

The pre-filled Result expression returns the ID of the created parcel:

={parcelId: response.body.id}

Create a shipment​

Creates and saves a shipment from existing addresses and a parcel, and returns a shipment ID to use in follow-up operations. For details about the shipment object and example responses, refer to the EasyPost shipment documentation.

Input parameters​

PropertyTypeRequiredDescription
To addressStringYesID of the destination address.
From addressStringYesID of the origin address.
ParcelStringYesID of the parcel.

Output​

The pre-filled Result expression returns the ID of the created shipment:

={shipmentId: response.body.id}

To also get the ID of a rate for the shipment, which you need to buy it, replace the Result expression. For example, the following expression selects the rate of the Priority service. The available service names depend on the carrier. If no rate matches, priorityRate[1] returns null:

={priorityRate: response.body.rates[item.service = "Priority"], shipmentId: priorityRate[1].shipment_id, rateId: priorityRate[1].id}

Buy a shipment​

Buys a shipment. For details about buying a shipment and example responses, refer to the EasyPost shipment documentation.

Input parameters​

PropertyTypeRequiredDescription
Shipment IDStringYesID of the shipment to buy.
Rate IDStringYesID of the rate to buy.

Output​

The pre-filled Result expression returns the ID of the tracker, the tracking code, and the status of the shipment:

={trackerId: response.body.tracker.id, trackingCode: response.body.tracking_code, shipmentstatus: response.body.status}

Verify a created address​

Verifies an address by its ID.

Input parameters​

PropertyTypeRequiredDescription
Address IDStringYesID of the address to verify.

Output​

This operation has no pre-filled Result expression. Set a Result variable to store the response, or enter a Result expression to map the data you need from response.body. For details about the response, refer to the EasyPost address documentation.

Retrieve a tracker by ID​

Retrieves a tracker by its ID and returns the status of the tracker. For details about the tracker object and example responses, refer to the EasyPost tracker documentation.

Input parameters​

PropertyTypeRequiredDescription
Tracker IDStringYesID of the tracker, which you receive after buying a shipment.

Output​

The pre-filled Result expression returns the status of the tracker:

={trackerStatus: response.body.status}

Troubleshooting​

To learn about general error handling in Camunda, see BPMN errors and failing jobs.