Skip to main content
POST
Create a supplier
Only organization admins can register suppliers. The supplier is always created ACTIVE. A CNPJ with letters is stored in upper case, whatever case you send, and each organization can register a document only once. documentType must match the document, and a pixKey always comes with its pixKeyType. Answers the supplier that was created, with its new id.

Path Parameters

realmId
string<uuid>
required

ID of your realm.

Format: UUID

organizationId
string<uuid>
required

ID of the organization the supplier is registered in.

Format: UUID

Body

application/json
name
string
required

Name of the supplier, up to 100 characters.

Required string length: 1 - 100
Example:

"Transportadora Boa Viagem Ltda"

document
string
required

CPF or CNPJ of the supplier: letters and digits only, with no dots, slashes or hyphens (a CNPJ can contain letters). It must be valid and agree with documentType. A supplier's document is unique in the organization.

Minimum string length: 1
Pattern: ^[A-Za-z0-9]+$
Example:

"11222333000181"

documentType
enum<string>
required

CPF when the supplier is a person, CNPJ when it is a company. It must match document.

Available options:
CPF,
CNPJ
Example:

"CNPJ"

email
string<email>
required

E-mail address of the supplier.

Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
Example:

"financeiro@boaviagem.example.com"

phoneNumber
string
required

Phone number of the supplier in international format: +55, the area code and the number, with no spaces or punctuation.

Pattern: ^\+55[0-9]{10,11}$
Example:

"+5534984325252"

address
object
required

Address of the supplier.

tradingName
string

Trade name of the supplier, up to 100 characters.

Maximum string length: 100
Example:

"Boa Viagem Transportes"

pixKey
string

PIX key to pay the supplier: an e-mail address, 11 digits (a CPF or a phone number), a CNPJ, a random key of 32 letters and digits, or 8 digits. Send pixKeyType with it.

Pattern: ^[0-9a-zA-Z._-]+@[0-9a-zA-Z._-]+$|^[0-9]{11}$|^[A-Za-z0-9]{12}[0-9]{2}$|^[a-zA-Z0-9]{32}$|^[0-9]{8}$
Example:

"financeiro@boaviagem.example.com"

pixKeyType
enum<string>

Type of pixKey: PHONE, EMAIL, CPF, CNPJ or EVP (a random key). Required when you send pixKey, and not allowed without it.

Available options:
PHONE,
EMAIL,
CPF,
CNPJ,
EVP
Example:

"EMAIL"

Response

Successful response

A supplier of the organization: someone you pay.

id
string
required

ID of the supplier.

Example:

"5f0c7d2a-91b4-4e6f-8a13-c2d4e6f80b17"

realm
string<uuid>
required

ID of the realm the supplier belongs to.

Example:

"f495ff0c-ab54-4f99-8e92-ca8682e4de9b"

organization
string<uuid>
required

ID of the organization the supplier belongs to.

Example:

"c4bd3f21-dfbd-44e8-8055-68ba15bed410"

name
string
required

Name of the supplier.

Example:

"Transportadora Boa Viagem Ltda"

document
string
required

CPF or CNPJ of the supplier, with no punctuation. A CNPJ with letters is returned in upper case.

Example:

"11222333000181"

documentType
enum<string>
required

CPF when the supplier is a person, CNPJ when it is a company.

Available options:
CPF,
CNPJ
Example:

"CNPJ"

email
string
required

E-mail address of the supplier.

Example:

"financeiro@boaviagem.example.com"

phoneNumber
string
required

Phone number of the supplier in international format.

Example:

"+5534984325252"

status
enum<string>
required

ACTIVE, or DEACTIVATED once the supplier was deactivated.

Available options:
ACTIVE,
DEACTIVATED
Example:

"ACTIVE"

tradingName
string

Trade name of the supplier. Absent when none was given.

Example:

"Boa Viagem Transportes"

address
object

Address of the supplier.

pixKey
string

PIX key to pay the supplier. Absent when none was given.

Example:

"financeiro@boaviagem.example.com"

pixKeyType
enum<string>

Type of pixKey: PHONE, EMAIL, CPF, CNPJ or EVP (a random key). Absent when there is no PIX key.

Available options:
PHONE,
EMAIL,
CPF,
CNPJ,
EVP
Example:

"EMAIL"

createdBy
string<uuid>

ID of the user who registered the supplier.

Example:

"e3553bc1-5e20-4e17-b22a-a796fda0aa99"

createdAt
string<date-time>

When the supplier was registered.

Example:

"2026-10-02T14:03:11.000Z"

updatedAt
string<date-time>

When the supplier was last changed.

Example:

"2026-10-05T09:30:00.000Z"