Criar Comprador

Cria um buyer

post
/v2/buyers

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

Authorizations
Body
namestring · max: 255RequiredExample: Tester
emailstring · email · max: 150RequiredExample: [email protected]
countryCodestring · max: 4OptionalExample: +55
phonestring · max: 11RequiredExample: 34999991111Pattern: ^\d{10,11}$
alternativeEmailstring · email · max: 150OptionalExample: [email protected]
Responses
201

buyer cadastrado com sucesso.

application/json
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: 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?