Skip to main content

Create your first customer

Before you create a hedge, you need to create its customer. Create your first customer using the create customer API:

curl --request POST \
--url https://api.grainfinance.co/v1/customers \
--header "Content-Type: application/json" \
--header 'Authorization: Basic CLIENT_ID:CLIENT_SECRET' \
--data '{
"contactEmail": "{contactEmail}",
"contactFullName": "{contactFullName}",
"contactPhoneNumber": "{contactPhoneNumber}",
"companyName": "{companyName}",
"companyAddress": "{companyAddress}",
"externalCustomerId": "{externalCustomerId}",
"companyCity": "{companyCity}"
}'

In the response, you will receive the id of the created customer.

{
"id": "{customerId}"
}