Skip to main content
PATCH
/
suppliers
/
{id}
Update a supplier
curl --request PATCH \
  --url https://api.example.com/suppliers/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Fornecedor A",
  "corporateName": "Fornecedor A LTDA",
  "document": "12345678000199",
  "email": "contato@fornecedor.com",
  "phone": "11999999999",
  "active": true
}
'
{
  "id": "e4b6d4e8-8e6d-41da-abdb-8fc358a9e7f1",
  "name": "Tech Update Corp",
  "active": false,
  "updatedAt": "2024-02-15T15:00:00.000Z"
}

Path

id
string
required
UUID do Fornecedor

Body

(Qualquer campo opcional)
name
string
Novo nome fantasia
active
boolean
Mudar o status habilitado p/ listas
email
string
Novo e-mail

Response

{
  "id": "e4b6d4e8-8e6d-41da-abdb-8fc358a9e7f1",
  "name": "Tech Update Corp",
  "active": false,
  "updatedAt": "2024-02-15T15:00:00.000Z"
}

Path Parameters

id
string
required

Body

application/json
name
string

Commercial Name

Example:

"Fornecedor A"

corporateName
string

Corporate Name (Razão Social)

Example:

"Fornecedor A LTDA"

document
string

Document (CNPJ/CPF)

Example:

"12345678000199"

email
string

Email

Example:

"contato@fornecedor.com"

phone
string

Phone

Example:

"11999999999"

active
boolean
default:true

Active Status

Response

200 - undefined