Saltar al contenido principal
PUT
/
customers
/
{id}
Atualizar customer
curl --request PUT \
  --url https://api.sandbox.z2pay.com/customers/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "email": "jsmith@example.com",
  "document": "<string>",
  "documentType": "cpf",
  "phone": "<string>"
}
'

Autorizaciones

x-api-key
string
header
requerido

API Key da Credential (gerada no Backoffice)

Parámetros de ruta

id
string
requerido

ID do customer

Cuerpo

application/json
name
string
Minimum string length: 2
email
string<email>
type
enum<string>
Opciones disponibles:
individual,
company
document
string
Minimum string length: 6
documentType
enum<string>
predeterminado:cpf
Opciones disponibles:
cpf,
cnpj,
passport
phone
string
Minimum string length: 1
address
object

Respuesta

Customer atualizado