Skip to main content

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.

Before you create a hedge, you need to create its customer. Create your first customer using the create customer API:
curl -X POST https://api.grainfinance.co/v1/customers \
  -u "{clientId}:{secret}" \
  -H "Content-Type: application/json" \
  -d '{
    "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}"
}