Skip to main content
PUT
Update a supplier
Only organization admins can update a supplier. Send only the fields you want to change: the ones you omit keep their current value, and in address too, so you can change the city alone. A CNPJ with letters is stored in upper case, like on creation, and a pixKey always comes with its pixKeyType. The supplier’s status can’t be changed here: use the activate and deactivate routes. Answers the supplier as it is after the change.

Path Parameters

realmId
string<uuid>
required

ID of your realm.

Format: UUID

organizationId
string<uuid>
required

ID of the organization the supplier belongs to.

Format: UUID

supplierId
string<uuid>
required

ID of the supplier (id in the supplier list).

Format: UUID

Body

application/json
name
string

New name, up to 100 characters. Omit it to keep the current one.

Required string length: 1 - 100
Example:

"Transportadora Boa Viagem Ltda"

tradingName
string

New trade name, up to 100 characters. Omit it to keep the current one.

Maximum string length: 100
Example:

"Boa Viagem Transportes"

document
string

New CPF or CNPJ: letters and digits only, with no dots, slashes or hyphens (a CNPJ can contain letters). It must be valid and agree with documentType. Omit it to keep the current one.

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

"11222333000181"

documentType
enum<string>

CPF when the supplier is a person, CNPJ when it is a company. When you also send document, it must match it. Omit it to keep the current one.

Available options:
CPF,
CNPJ
Example:

"CNPJ"

email
string<email>

New e-mail address. Omit it to keep the current one.

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

New phone number in international format: +55, the area code and the number, with no spaces or punctuation. Omit it to keep the current one.

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

"+5534984325252"

address
object

The address fields to change. Send only the ones that change: the others keep their current value.

pixKey
string

New PIX key: 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"