Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Criar Comprador

O comprador pode ser criado com documento brasileiro (CPF/CNPJ) ou internacional. Veja as combinações de país e tipo aceitas em Documentos Aceitos.

Cria um buyer

post
/v2/buyers

Cria um buyer e retorna o seu identificador (UUID) junto aos dados fornecidos

Authorizations
X-Token-ApistringRequired
Body
namestring · max: 255Required
emailstring · email · max: 150Required
countryCodestring · max: 4Optional
phonestring · max: 11RequiredPattern: ^\d{10,11}$
alternativeEmailstring · email · max: 150Optional
Responses
201

Buyer cadastrado com sucesso

application/json
uuidstringOptional
documentstringOptional
namestringOptional
countryCodestringOptional
phonestringOptional
emailstringOptional
alternativeEmailstringOptional
post/v2/buyers
POST /v2/buyers HTTP/1.1
Host: api.barte.com
X-Token-Api: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 356

{
  "document": {
    "documentNumber": "48637879012",
    "documentType": "cpf",
    "documentNation": "BR"
  },
  "name": "John Doe",
  "email": "johndoe@barte.com",
  "countryCode": "+55",
  "phone": "34999991111",
  "address": {
    "street": "Rua Orleans",
    "number": "100",
    "complement": "Bloco A",
    "district": "Jardim Europa",
    "city": "Uberlândia",
    "state": "Minas Gerais",
    "country": "BR",
    "zipCode": "38414552"
  }
}
{
  "uuid": "text",
  "document": "text",
  "name": "text",
  "countryCode": "text",
  "phone": "text",
  "email": "text",
  "alternativeEmail": "text"
}

Last updated

Was this helpful?