EasyPost - Create/Validate Address
Description
Section titled “Description”This module creates an address in EasyPost and optionally validates it. It receives the individual address fields (name, company, street, city, state, zip code, country, phone, email) and a verification flag. It makes a POST request to the /addresses endpoint with the option to verify delivery. It returns the created address with its ID, verification results, and a message indicating whether the verification was successful or if there were warnings.
Configuration
Section titled “Configuration”| Parameter | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | EasyPost credential (provider: easypost) |
| name | text | Yes | Recipient name |
| company | text | No | Company name |
| street1 | text | Yes | Address line 1 |
| street2 | text | No | Address line 2 |
| city | text | Yes | City |
| state | text | Yes | State or province |
| zip | text | Yes | Zip code |
| country | text | Yes | Country code (default: US) |
| phone | text | No | Phone number |
| text | No | Email address | |
| verify | boolean | No | Verify address (default: true) |
Credentials
Section titled “Credentials”A easypost type credential is required with the following fields:
- api_key: EasyPost API Key
Credentials are obtained from the EasyPost dashboard (https://www.easypost.com/account/api-keys).
Output
Section titled “Output”{ "success": true, "address": { "id": "adr_abc123", "street1": "123 Main St", "city": "San Francisco", "state": "CA", "zip": "94105", "country": "US" }, "address_id": "adr_abc123", "verifications": { "delivery": { "success": true, "errors": [] } }, "message": "Direccion verificada exitosamente"}Usage Example
Section titled “Usage Example”Basic case
Section titled “Basic case”{ "credentials_id": "mi_credencial_easypost", "name": "Juan Garcia", "street1": "123 Main Street", "city": "San Francisco", "state": "CA", "zip": "94105", "country": "US", "verify": true}API Used
Section titled “API Used”- Endpoint: POST
/addresses - Base: EasyPost API (via helper
_easypostHelper) - Documentation: https://www.easypost.com/docs/api
- Verification is performed with the “delivery” type by default
- If verification is disabled (verify: false), the address is created without validation
- The returned address_id can be used in other EasyPost nodes
- Optional fields (company, street2, phone, email) are only included if they have a value