Criar Comprador
Cria um buyer e retorna o seu identificador (UUID) junto aos dados fornecidos
Authorizations
Body
namestring · max: 255RequiredExample:
Testeremailstring · email · max: 150RequiredExample:
[email protected]countryCodestring · max: 4OptionalExample:
+55phonestring · max: 11RequiredExample:
34999991111Pattern: ^\d{10,11}$alternativeEmailstring · email · max: 150OptionalExample:
[email protected]Responses
201
buyer cadastrado com sucesso.
application/json
400
Requisição inválida
application/json
401
Não autorizado
application/json
403
Acesso proibido
application/json
500
Erro interno do servidor
application/json
post
/v2/buyersPOST /v2/buyers HTTP/1.1
Host: api.barte.com
X-Token-Api: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 400
{
"document": {
"documentNumber": "36880261019",
"documentType": "cpf",
"documentNation": "BR"
},
"name": "Tester",
"email": "[email protected]",
"countryCode": "+55",
"phone": "34999991111",
"alternativeEmail": "[email protected]",
"address": {
"street": "Rua Orleans",
"number": "100",
"complement": "Bloco A",
"district": "Jardim Europa",
"city": "Uberlândia",
"state": "Minas Gerais",
"country": "BR",
"zipCode": "38414552"
}
}{
"uuid": "1ee849a4-6bb3-47f0-b32a-293a8f0e811c",
"document": "05212972140",
"name": "Erick Augusto",
"countryCode": "+55",
"phone": "34999991111",
"email": "[email protected]",
"alternativeEmail": "[email protected]"
}Last updated
Was this helpful?

