Skip to content

Add a customer

POSThttps://api.gravv.xyz/v1/customers

Create a new customer record.

Body Params

  • first_namestringrequired
  • middle_namestring
  • last_namestringrequired
  • emailstringrequired
  • phonestringrequired
  • date_of_birthstringrequired
  • genderstringrequiredAllowed:malefemaleother
  • typestringrequiredAllowed:individual
  • external_idstring

    Optional custom identifier for the customer provided by the business

  • addressobjectrequired

Headers

  • Idempotency-Keystring

    A unique key to prevent duplicate requests.

Responses

Language
curl --request POST \
--url 'https://api.gravv.xyz/v1/customers' \
--header 'Api-Key: <Api Key>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"first_name": "john",
"middle_name": "william",
"last_name": "doe",
"email": "john.doe@example.com",
"phone": "+15555550101",
"type": "individual",
"gender": "male",
"date_of_birth": "1990-04-16",
"external_id": "individual_12345",
"address": {
"address_line1": "1800 N Pole St",
"address_line2": "Suite 202",
"city": "Orlando",
"postal_code": "32801",
"state": "US-FL",
"country": "US"
}
}'
{
"data": {
"id": "e59daa17-20ed-4727-833c-e1c633782cc8",
"first_name": "Jane",
"last_name": "Doe",
"middle_name": "A.",
"type": "individual",
"email": "jane@example.com",
"phone": "+15555550101",
"address": {
"address_line1": "1800 N Pole St",
"address_line2": "Suite 202",
"city": "Orlando",
"postal_code": "32801",
"state": "US-FL",
"country": "US"
},
"status": "active",
"kyc": [],
"associated_persons": [],
"date_added": "2024-01-15T10:30:00Z",
"external_id": "individual_12345",
"industry_code": ""
},
"error": null
}