Atualizar Comprador
Atualiza os dados de um buyer específico com base no UUID fornecido.
Authorizations
X-Token-ApistringRequired
Path parameters
uuidstringRequired
UUID do buyer
Body
namestring · max: 255Optional
emailstring · email · max: 150Optional
countryCodestring · max: 4Optional
phonestring · max: 11OptionalPattern:
^\d{10,11}$alternativeEmailstring · email · max: 150Optional
Responses
200
Buyer atualizado com sucesso
application/json
uuidstringOptional
documentstringOptional
namestringOptional
countryCodestringOptional
phonestringOptional
emailstringOptional
alternativeEmailstringOptional
400
Requisição inválida
application/json
401
Não autorizado
application/json
403
Acesso proibido
application/json
404
Buyer não encontrado
application/json
500
Erro interno do servidor
application/json
put/v2/buyers/{uuid}
PUT /v2/buyers/{uuid} HTTP/1.1
Host: api.barte.com
X-Token-Api: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 257
{
"name": "text",
"email": "name@gmail.com",
"countryCode": "text",
"phone": "text",
"alternativeEmail": "name@gmail.com",
"address": {
"street": "text",
"number": "text",
"complement": "text",
"district": "text",
"city": "text",
"state": "text",
"country": "text",
"zipCode": "text"
}
}{
"uuid": "text",
"document": "text",
"name": "text",
"countryCode": "text",
"phone": "text",
"email": "text",
"alternativeEmail": "text"
}Last updated
Was this helpful?

