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

SituationRecommended endpoint
Show the merchant a dropdown of countries of birth or nationalityGET /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 addressGET /domains/zipcode/{postal_code}
Pre-fill address fields automatically from the entered zip codeGET /domains/zipcode/{postal_code}
information icon
Business example: A channel onboarding a self-employed doctor first queries GET /domains/acquirer-merchant-categories?natural_person to obtain the list of natural person categories, presents it to the merchant, and then uses the code of the selected category in the registration payload. Likewise, the channel queries the office's zip code via GET /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

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}

Dependencies

DependencyDescription
POST /tokenMust 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}'
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" }
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}'
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" } ]
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}'
What to expect in return (success — HTTP 200):
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 street and district fields. In these cases, request this data manually from the merchant.
  • The number (property number) and suite (complement) fields are never returned by this endpoint — they must be collected from the merchant and added to the address before submitting in PUT /merchants/{merchant_id}.
  • The number field is required when the property has a number. The suite field is required when the property does not have a number.

Economic activity categories (GET /domains/acquirer-merchant-categories)

  • The natural_person parameter is a valueless flag — it must be sent only as ?natural_person in 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_code field 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_birth and nationality fields must necessarily exist in the list returned by this endpoint.

7. Error Handling

HTTP CodeMeaningWhat to do
200Success — data returned successfullyProceed with the flow normally
401Token missing, invalid, or expiredObtain a new token via POST /token and try again
403Valid token, but without permission to access this resourceVerify the credential's permissions with the Getnet team
404Zip 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
500Internal error in the Getnet serverWait 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" }
information icon
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 in PUT /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

TermDefinition
Domain tableList of valid values accepted by the platform for a given registration field. Works as a "dictionary" of allowed options.
CEPBrazilian Postal Address Code (zip code), composed of 8 numeric digits, used to identify street addresses.
Municipal scopeZip 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.
MerchantCommercial establishment (natural person or legal entity) being registered on the Getnet platform to accept payments.
Merchant PFMerchant of the Natural Person type — self-employed professional, MEI, or similar.
Merchant PJMerchant of the Legal Entity type — a formally constituted company.
acquirer_merchant_category_codeMerchant registration field that identifies the establishment's economic activity category (subramo). Must be a valid code returned by the categories endpoint.
country_of_birthField of the merchant PF registration that indicates the holder's country of birth.
nationalityField of the merchant PF registration that indicates the holder's nationality.
ISO 3166-1 alpha-2International standard of country codes with two uppercase letters (e.g.: BR for Brazil, US for United States).
SubramoGetnet's internal name for a merchant's economic activity category.
numberProperty number in the merchant's address. Required when the property has a number.
suiteAddress complement (apartment, room, block, etc.). Required when the property does not have a number.
TokenTemporary access credential obtained via POST /token, required to authenticate all calls to the API.
QualificationGetnet's internal process of validating and approving the merchant registration after the data is submitted.