logoAccess

Update customer

PATCH
/api/v1/customers/{id}

Update a customer's details. Only provided fields are changed.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Path Parameters

id*string

Unique customer ID

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Request Body

  1. body
name?string

Updated full name of the customer

Length1 <= length
email?string

Updated email address

Formatemail
phone_number?string

Updated phone number in E.164 format

Response Body

Response for status 200

application/json
  1. response
id*string
name*string
email*string
created_at*string
updated_at*string
phone_number*string
curl -X PATCH 'https://api.tryaccess.xyz/api/v1/customers/cus_01J9Z8K2P3Q4R5S6T7U8V9W0X1' \  -H 'x-api-key: string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "id": "string",  "name": "string",  "email": "string",  "created_at": "string",  "updated_at": "string",  "phone_number": "string"}

How is this guide?