Pular para o conteúdo principal
POST
/
customers
Criar customer
curl --request POST \
  --url https://api.sandbox.z2pay.com/customers \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "email": "jsmith@example.com",
  "document": "<string>",
  "phone": "<string>",
  "documentType": "cpf"
}
'

Autorizações

x-api-key
string
header
obrigatório

API Key da Credential (gerada no Backoffice)

Cabeçalhos

Idempotency-Key
string

Chave única para garantir idempotência da requisição

Corpo

application/json
name
string
obrigatório
Minimum string length: 2
email
string<email>
obrigatório
type
enum<string>
obrigatório
Opções disponíveis:
individual,
company
document
string
obrigatório
Minimum string length: 6
phone
string
obrigatório
Minimum string length: 1
documentType
enum<string>
padrão:cpf
Opções disponíveis:
cpf,
cnpj,
passport
address
object

Resposta

Customer criado