---
title: "Get Address Form"
method: GET
path: "/generic-form"
tags: ["Address Validation"]
---

# Get Address Form

`GET /generic-form`

## Request

- Base URL: `https://queries.test.envia.com`
- URL: `https://queries.test.envia.com/generic-form`
- Auth: HTTP bearer

**Review this information carefully** if you are planning to integrate Envia in multiple countries. Address structure may vary depending on the country the package is being shipped from. It can be by zipcode or city/locality. Use this to get the required fields and validation rules for address forms.

## Query parameters

- `country_code` 'US' | 'MX' | 'CA' | 'CO' | 'IN' | 'CL' | 'GT' | 'BR' | 'AR' | 'PE', required
- `form` 'address_info' | 'billing_info', required

## Response `200`

Successful response

- object[]: Address form structure
  - `fieldId` string: Field identifier
  - `fieldName` string: Field name
  - `fieldLabel` string: Field label
  - `fieldLabelLang` string: Localized field label
  - `fieldType` 'text' | 'select' | 'number' | 'email': Field type
  - `fieldPlaceholder` string: Field placeholder
  - `fieldPlaceholderLang` string: Localized field placeholder
  - `fieldIcon` string: Field icon class
  - `dataType` string: Data type
  - `visible` boolean: Whether the field is visible
  - `size` 'S' | 'M' | 'L' | 'XL': Field size
  - `rules` object: Validation rules
    - `required` boolean: Whether the field is required
    - `min` string: Minimum value/length
    - `max` string: Maximum value/length
    - `validationType` 'street' | 'value' | 'select' | 'email' | 'phone': Validation type
  - `geocodes` boolean: Whether the field supports geocoding
  - `on_change` object[]: On change actions
    - `condition` string: Condition for the action
    - `action` 'request' | 'set_temporal_context' | 'set_fields' | 'set_options': Action type
    - `url` string: URL for request action
    - `name` string: Action name

---

[API](https://skmtc.dev/envia/apis/envia-queries-api.md) - [All operations](https://skmtc.dev/envia/apis/envia-queries-api/llms.txt) - [OpenAPI document](https://skmtc.dev/envia/apis/envia-queries-api/revisions/56f601a52f3f?raw)
