Skip to content

Shippo - Validate Address

This module validates and normalizes a shipping address using the Shippo validation service. It receives the individual address fields (name, company, street, city, state, zip code, country, phone, email) and a validation flag. It makes a POST request to the /addresses/ endpoint and returns the created address with its ID, validation results (valid or not), and validation messages with details.

ParameterTypeRequiredDescription
credentials_idcredentialsYesShippo credential (provider: shippo)
nametextYesRecipient name
companytextNoCompany name
street1textYesMain street and number
street2textNoAddress line 2
citytextYesCity
statetextYesISO state code (e.g.: CA, NY)
ziptextYesZip code
countrytextYesISO 3166-1 alpha-2 code (default: US)
phonetextNoPhone number
emailtextNoEmail address
validatebooleanNoEnable address validation (default: true)

A shippo type credential is required with the following fields:

  • api_token: Shippo API Token
{
"success": true,
"address": {
"object_id": "addr_abc123",
"name": "John Smith",
"street1": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US"
},
"address_id": "addr_abc123",
"is_valid": true,
"validation_messages": [],
"message": "Direccion validada exitosamente"
}
{
"credentials_id": "mi_credencial_shippo",
"name": "Juan Garcia",
"street1": "123 Main Street",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "US",
"validate": true
}
  • Validation is enabled by default (validate: true)
  • If validation fails, the address is still created but is_valid will be false
  • Validation messages provide details about the issues found
  • The returned address_id can be used as a reference in other Shippo nodes
  • Optional fields (company, street2, phone, email) are only included if they have a value