Domain Tables — Support API
1. Overview
The Domain Tables service provides lists of values accepted by the Getnet platform for merchant registration fields. In other words, it works as a dictionary of valid values: before submitting a merchant's data, you check here which codes and categories the platform recognizes.
Without this service, an integrator could send a country code, an economic activity category, or a zip code that the platform does not recognize — and the registration would be reproved. The service solves this problem by providing, in advance, the exact sets of accepted values.
2. Context and Use Cases
Querying the domain tables is not mandatory, but the values submitted in the merchant registration must necessarily exist in these tables. Therefore, it is recommended to query them at the beginning of the integration journey to build selection lists in the interfaces (dropdowns).
Real-world use cases
| Situation | Recommended endpoint |
|---|---|
| Show the merchant a dropdown of countries of birth or nationality | GET /domains/countries |
| Show the merchant a list of economic activity categories (subramo) | GET /domains/acquirer-merchant-categories |
| Validate whether a zip code exists in the base before submitting the address | GET /domains/zipcode/{postal_code} |
| Pre-fill address fields automatically from the entered zip code | GET /domains/zipcode/{postal_code} |
Business example: A channel onboarding a self-employed doctor first queriesGET /domains/acquirer-merchant-categories?natural_personto obtain the list of natural person categories, presents it to the merchant, and then uses thecodeof the selected category in the registration payload. Likewise, the channel queries the office's zip code viaGET /domains/zipcode/{postal_code}to pre-fill the address form and ensure the zip code exists in the Getnet base.
3. Main Flow
The diagram below illustrates how the domain tables fit into a merchant's registration journey:
text
┌─────────────────────────────────────────────────────────────────┐
│ ONBOARDING JOURNEY │
└─────────────────────────────────────────────────────────────────┘
START
│
├─► [Optional] 600;">GET /domains/countries
│ 600;">Get list of valid countries
│ └─► Build country of birth / nationality dropdown
│
├─► [Optional] 600;">GET /domains/acquirer-merchant-categories?natural_person
│ 600;">Get natural person economic activity categories
│ └─► Build merchant category dropdown
│
├─► [Recommended] 600;">GET /domains/zipcode/{postal_code}
│ Validate zip code and 600;">get address data
│ │
│ ├─► Zip code found (200)
│ │ └─► Pre-fill address fields
│ │ Ask the merchant for: number and complement
│ │
│ └─► Zip code not found (404)
│ └─► Inform the merchant that the zip code is invalid
│ Do NOT proceed with this zip code
│
└─► 600;">PUT /merchants/{merchant_id}
Submit complete registration with validated values
└─► Merchant successfully qualified
text
┌─────────────────────────────────────────────────────────────────┐
│ ONBOARDING JOURNEY │
└─────────────────────────────────────────────────────────────────┘
START
│
├─► [Optional] 600;">GET /domains/countries
│ 600;">Get list of valid countries
│ └─► Build country of birth / nationality dropdown
│
├─► [Optional] 600;">GET /domains/acquirer-merchant-categories?natural_person
│ 600;">Get natural person economic activity categories
│ └─► Build merchant category dropdown
│
├─► [Recommended] 600;">GET /domains/zipcode/{postal_code}
│ Validate zip code and 600;">get address data
│ │
│ ├─► Zip code found (200)
│ │ └─► Pre-fill address fields
│ │ Ask the merchant for: number and complement
│ │
│ └─► Zip code not found (404)
│ └─► Inform the merchant that the zip code is invalid
│ Do NOT proceed with this zip code
│
└─► 600;">PUT /merchants/{merchant_id}
Submit complete registration with validated values
└─► Merchant successfully qualified
Relationship between the endpoints
The three endpoints are independent of each other — they can be called in any order and as the flow requires. The convergence point is
PUT /merchants/{merchant_id}, which will consume the values obtained here.4. Prerequisites
Authentication
All endpoints require a valid access token, previously obtained through the
POST /token endpoint.The token must be sent directly in the
Authorization header, without the Bearer prefix:text
Authorization: {token}
text
Authorization: {token}
Dependencies
| Dependency | Description |
|---|---|
POST /token | Must be called before any endpoint of this API to obtain the access token |
PUT /merchants/{merchant_id} | Endpoint that consumes the values returned by the domain tables |
Permissions
You must have a profile with access permission to the Getnet platform's onboarding API. Consult the Getnet integration team to verify the permissions of your credential.
5. Quick Integration Guide
Scenario: Validate a zip code before registering the address
What to send:
bash
curl -X GET \
'https://api-homologacao.getnet.com.br/v1/domains/zipcode/92410670' \
-H 'accept: application/json' \
-H 'Authorization: {your_token}'bash
curl -X GET \
'https://api-homologacao.getnet.com.br/v1/domains/zipcode/92410670' \
-H 'accept: application/json' \
-H 'Authorization: {your_token}'What to expect in return (success — HTTP 200):
json
{
"street": "RUA PARANAPANEMA",
"district": "IGARA",
"city_code": "7533",
"city": "CANOAS",
"state": "RS",
"country": "BR",
"postal_code": "92410670"
}json
{
"street": "RUA PARANAPANEMA",
"district": "IGARA",
"city_code": "7533",
"city": "CANOAS",
"state": "RS",
"country": "BR",
"postal_code": "92410670"
}Use the returned fields to pre-fill the address form. Ask the merchant only for the number and the complement (if any), as these fields are not returned by the API.
Scenario: Get economic activity categories for Natural Person
What to send:
bash
curl -X GET \
'https://api-homologacao.getnet.com.br/v1/domains/acquirer-merchant-categories?natural_person' \
-H 'accept: application/json' \
-H 'Authorization: {your_token}'bash
curl -X GET \
'https://api-homologacao.getnet.com.br/v1/domains/acquirer-merchant-categories?natural_person' \
-H 'accept: application/json' \
-H 'Authorization: {your_token}'What to expect in return (success — HTTP 200):
json
[
{ "code": "2119", "description": "PROFISSIONAL AUTONOMO", "visible": false, "domain_name": "subramo" },
{ "code": "4001", "description": "ACADEMIA DE GINASTICA - ARTES MARCIAIS - PERSONAL", "visible": false, "domain_name": "subramo" },
{ "code": "9032", "description": "Advogado", "visible": false, "domain_name": "subramo" }
]json
[
{ "code": "2119", "description": "PROFISSIONAL AUTONOMO", "visible": false, "domain_name": "subramo" },
{ "code": "4001", "description": "ACADEMIA DE GINASTICA - ARTES MARCIAIS - PERSONAL", "visible": false, "domain_name": "subramo" },
{ "code": "9032", "description": "Advogado", "visible": false, "domain_name": "subramo" }
]Use the
description field as the visible label in the dropdown and send the code field in the merchant registration payload.Scenario: Get list of countries
What to send:
bash
curl -X GET \
'https://api-homologacao.getnet.com.br/v1/domains/countries' \
-H 'accept: application/json' \
-H 'Authorization: {your_token}'bash
curl -X GET \
'https://api-homologacao.getnet.com.br/v1/domains/countries' \
-H 'accept: application/json' \
-H 'Authorization: {your_token}'What to expect in return (success — HTTP 200):
json
[
{ "code": "BR", "description": "BRASIL" },
{ "code": "US", "description": "ESTADOS UNIDOS" },
{ "code": "PT", "description": "PORTUGAL" }
]json
[
{ "code": "BR", "description": "BRASIL" },
{ "code": "US", "description": "ESTADOS UNIDOS" },
{ "code": "PT", "description": "PORTUGAL" }
]Use the
description field as the visible label and send the code in the country_of_birth and/or nationality fields of the registration.6. Business Rules
Zip code lookup (GET /domains/zipcode/{postal_code})
- The zip code must be provided with digits only, without a hyphen, with exactly 8 characters (e.g.:
92410670). - A zip code that returns 404 (not found) cannot be used in the address registration — the merchant will be reproved in qualification if an invalid zip code is submitted.
- Zip codes of municipal scope (small cities) are returned without the
streetanddistrictfields. In these cases, request this data manually from the merchant. - The
number(property number) andsuite(complement) fields are never returned by this endpoint — they must be collected from the merchant and added to the address before submitting inPUT /merchants/{merchant_id}. - The
numberfield is required when the property has a number. Thesuitefield is required when the property does not have a number.
Economic activity categories (GET /domains/acquirer-merchant-categories)
- The
natural_personparameter is a valueless flag — it must be sent only as?natural_personin the query string to filter categories applicable to Natural Person. - The code
"2119"(PROFISSIONAL AUTONOMO) is the default value for natural person when the merchant's specific category is not known. - The value submitted in the registration's
acquirer_merchant_category_codefield must necessarily exist in the list returned by this endpoint. Codes outside the table result in a validation error.
Country list (GET /domains/countries)
- The codes follow the ISO 3166-1 alpha-2 standard (two uppercase letters, e.g.:
BR,US,PT). - The values submitted in the registration's
country_of_birthandnationalityfields must necessarily exist in the list returned by this endpoint.
7. Error Handling
| HTTP Code | Meaning | What to do |
|---|---|---|
200 | Success — data returned successfully | Proceed with the flow normally |
401 | Token missing, invalid, or expired | Obtain a new token via POST /token and try again |
403 | Valid token, but without permission to access this resource | Verify the credential's permissions with the Getnet team |
404 | Zip code not found in the Getnet base (exclusive to the zip code endpoint) | Inform the merchant that the provided zip code is not accepted by the platform and request a valid zip code |
500 | Internal error in the Getnet server | Wait a few moments and try again; if it persists, contact Getnet support |
Standard error body
All errors return the following format:
json
{
"status_code": 401,
"message": "Unauthorized"
}json
{
"status_code": 401,
"message": "Unauthorized"
}Attention to the 404 error on the zip code: This is the only error with a direct impact on the merchant registration. A zip code that returns 404 cannot be used inPUT /merchants/{merchant_id}— the merchant will be reproved in qualification. Handle this case by displaying a clear message to the user so they correct the zip code before proceeding.
8. Glossary
| Term | Definition |
|---|---|
| Domain table | List of valid values accepted by the platform for a given registration field. Works as a "dictionary" of allowed options. |
| CEP | Brazilian Postal Address Code (zip code), composed of 8 numeric digits, used to identify street addresses. |
| Municipal scope | Zip code that covers an entire municipality (typical of small cities), with no link to a specific street address. In these cases, the street and district fields are not returned. |
| Merchant | Commercial establishment (natural person or legal entity) being registered on the Getnet platform to accept payments. |
| Merchant PF | Merchant of the Natural Person type — self-employed professional, MEI, or similar. |
| Merchant PJ | Merchant of the Legal Entity type — a formally constituted company. |
| acquirer_merchant_category_code | Merchant registration field that identifies the establishment's economic activity category (subramo). Must be a valid code returned by the categories endpoint. |
| country_of_birth | Field of the merchant PF registration that indicates the holder's country of birth. |
| nationality | Field of the merchant PF registration that indicates the holder's nationality. |
| ISO 3166-1 alpha-2 | International standard of country codes with two uppercase letters (e.g.: BR for Brazil, US for United States). |
| Subramo | Getnet's internal name for a merchant's economic activity category. |
| number | Property number in the merchant's address. Required when the property has a number. |
| suite | Address complement (apartment, room, block, etc.). Required when the property does not have a number. |
| Token | Temporary access credential obtained via POST /token, required to authenticate all calls to the API. |
| Qualification | Getnet's internal process of validating and approving the merchant registration after the data is submitted. |
On this page
Domain Tables — Support API