Skip to main content
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"
}
'

Authorizations

x-api-key
string
header
required

API Key da Credential (gerada no Backoffice)

Headers

Idempotency-Key
string

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

Body

application/json
name
string
required
Minimum string length: 2
email
string<email>
required
type
enum<string>
required
Available options:
individual,
company
document
string
required
Minimum string length: 6
phone
string
required
Minimum string length: 1
documentType
enum<string>
default:cpf
Available options:
cpf,
cnpj,
passport
address
object

Response

Customer criado