Create a customer
Returns 201 for a new customer, and 200 if this `reference` already names one with the same details. Different details return 409 `reference_conflict`; use Update a customer to change them. Needs the `receive` capability.
Authorization
KeyID Timestamp Nonce Signature Your key id, gyv_k_live_... or gyv_k_sandbox_....
In: header
Unix seconds. Must be within 5 minutes of our clock.
In: header
A unique value per request. Replays are rejected.
In: header
Ed25519 signature over the canonical string. See the Signing guide.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
"individual"Value in
- "individual"
- "business"
Required for an individual. Optional contact for a business.
length <= 60Required for an individual. Optional contact for a business.
length <= 60Required for a business. Not allowed for an individual.
length <= 120emailISO 3166-1 alpha-2.
Your id for this customer, and the idempotency key.
length <= 128Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/customers" \ -H "Content-Type: application/json" \ -d '{ "reference": "user_8812", "first_name": "Ama", "last_name": "Mensah", "email": "ama@example.com", "country": "GH" }'{ "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" }}