Skip to main content
PATCH
/
v1
/
customers
/
{customerId}
Update a customer
curl --request PATCH \
  --url https://api.yuvexpay.com/v1/customers/{customerId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "jsmith@example.com",
  "document": "<string>",
  "documentType": "CPF",
  "phone": "<string>",
  "isActive": true,
  "metadata": {}
}
'
{
  "customer": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "email": "<string>",
    "document": "<string>",
    "phone": "<string>",
    "externalId": "<string>",
    "isActive": true,
    "createdAt": "2023-11-07T05:31:56Z"
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API access token obtained from POST /oauth/token. Include as Authorization: Bearer {token}.

Path Parameters

customerId
string<uuid>
required

The customer ID.

Body

application/json
name
string
Required string length: 1 - 200
email
string<email>
Maximum string length: 255
document
string
Maximum string length: 20
documentType
enum<string>
Available options:
CPF,
CNPJ
phone
string
Maximum string length: 20
isActive
boolean
metadata
object

Response

Customer updated.

customer
object
message
string