Update a customer
Changes only the fields you send. Needs the `receive` capability.
Authorization
KeyID Timestamp Nonce Signature X-Gyvar-Key<token>
Your key id, gyv_k_live_... or gyv_k_sandbox_....
In: header
X-Gyvar-Timestamp<token>
Unix seconds. Must be within 5 minutes of our clock.
In: header
X-Gyvar-Nonce<token>
A unique value per request. Replays are rejected.
In: header
X-Gyvar-Signature<token>
Ed25519 signature over the canonical string. See the Signing guide.
In: header
Path Parameters
id*string
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
type?string
Default
"individual"Value in
- "individual"
- "business"
first_name?string
Required for an individual. Optional contact for a business.
Length
length <= 60last_name?string
Required for an individual. Optional contact for a business.
Length
length <= 60business_name?string
Required for a business. Not allowed for an individual.
Length
length <= 120email?string
Format
emailphone?string
country?string
ISO 3166-1 alpha-2.
reference?string
Length
length <= 128Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{ "data": { "id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "reference": "customer_8842", "type": "individual", "first_name": "Ama", "last_name": "Owusu", "email": "ama.owusu@example.com", "phone": "+233244000000", "country": "GH", "tags": [ "wholesale" ], "archived": false, "created_at": "2026-08-14T08:30:00Z" }}