Creates a new customer. If a customer with the same external ID already exists, the record is updated automatically.
Documentation Index
Fetch the complete documentation index at: https://docs.grainfinance.co/llms.txt
Use this file to discover all available pages before exploring further.
Basic authentication using the partner API keys from https://console.grainfinance.co/api-keys
The payload required in order to create a customer
The payload required in order to create a customer
The legal name of the customer's company
"Ollivander's Wand Shop"
The alpha-2 ISO 3166 country code of the entity's country.
^[A-Za-z]{2}$"GB"
The id used to identify the customer within your platform
"630231b3ae0d7e9e5097ad35"
The email for the company's primary contact
"customer@company.com"
The name of the company's primary contact
"Garrick Ollivander"
The phone number of the company's primary contact
"+12125551234"
The address of the company
"12 Diagon Alley"
The city of the company
"London"
The state the company is in (US based)
"London"
The tax identification or registration number of the company
"123-45-6789"
Additional fields that provide further details about the customer. These fields should be specified as a valid JSON object.
{
"field_a": "value_a",
"field_b": "value_b"
}Customer Updated
A response containing the ID of the created object.
The id of the created object.
[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}"1b0ada1e-fa1b-4cfe-a553-01b340c5650e"