Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Customers Create a customer

Create a customer

Creates an individual or business customer. A business is created with its associated persons in the same call, and each person becomes its own customer of type `ubo`.

POSThttps://api.gravv.xyz/v1/customersTry it
Api-Key

Creates an individual or business customer. A business is created with its associated persons in the same call, and each person becomes its own customer of type ubo.

Each new customer gets basic and intermediate KYC records with status not_started, and a customer.created webhook. A duplicate email or external_id is a 400, not a 409.

Headers

NameDescription
Idempotency-Key:stringRequired
Required for POST requests. 1 to 255 printable ASCII characters. A retry with the same key and body within 24 hours returns the first response.

Body parameters

Individual customerBusiness customer
NameDescription
first_name:stringRequired
Letters, spaces, apostrophes and hyphens only.
middle_name:string
Optional. At most 40 characters. Letters, with single spaces, hyphens or apostrophes between them. A period or a digit is refused. Write the name without accents, as for first_name. Gravv saves the value without leading or trailing spaces.
last_name:stringRequired
Letters, spaces, apostrophes and hyphens only.
email:stringRequired
phone:stringRequired
A valid phone number in international format with a leading +, such as +2348031234567. Fictional ranges such as +1 555-01xx are rejected.
date_of_birth:stringRequired
Date of birth as YYYY-MM-DD
gender:stringRequired
Possible values: male, female, other
type:stringRequired

Lower case only.

Possible values: individual

external_id:string
Your own reference for the customer. It must be unique in your tenant.
address:objectRequired
Show 6 child attributesobject

Response

Returns 200 OK. Customer created

NameDescription
data:object
A customer. Empty fields are left out, so a business has no first_name and an individual has no business_name.
Show 21 child attributesobject
error:null

Errors

StatusMeaning
200Customer created
400Invalid request, or a duplicate email or external_id
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request POST \
--url 'https://api.gravv.xyz/v1/customers' \
--header 'Api-Key: <api-key>' \
--header 'Idempotency-Key: create-customer-ada-obi-1' \
--header 'Content-Type: application/json' \
--data '{
"first_name": "Ada",
"last_name": "Obi",
"email": "ada.obi@example.com",
"phone": "+2348031234567",
"type": "individual",
"gender": "female",
"date_of_birth": "1990-04-16",
"external_id": "individual_12345",
"address": {
"address_line1": "12 Admiralty Way",
"city": "Lagos",
"postal_code": "106104",
"state": "NG-LA",
"country": "NG"
}
}'
Responseapplication/json
200400OK
{
"data": {
"id": "e59daa17-20ed-4727-833c-e1c633782cc8",
"first_name": "Ada",
"last_name": "Obi",
"type": "individual",
"email": "ada.obi@example.com",
"phone": "+2348031234567",
"date_of_birth": "1990-04-16",
"gender": "female",
"address": {
"address_line1": "12 Admiralty Way",
"city": "Lagos",
"postal_code": "106104",
"state": "NG-LA",
"country": "NG"
},
"status": "active",
"date_added": "2026-10-13T09:12:44Z",
"external_id": "individual_12345"
},
"error": null
}