Grain · Schema

Customer

FintechPaymentsCurrencyEmbedded

Properties

Name Type Description
id object The id of the customer within the Grain platform.
companyName string The legal name of the customer's company
companyAddress string The address of the company
companyCity string The city of the company
companyState string The state the company is in (US based)
companyCountry object
contactEmail object The email for the company's primary contact
contactFullName string The name of the company's primary contact
contactPhoneNumber string The phone number of the company's primary contact
companyTaxId string The tax identification or registration number of the company
externalCustomerId string The id used to identify the customer within your platform
status object
extraFields object Additional fields that provide further details about the customer. These fields should be specified as a valid JSON object.
View JSON Schema on GitHub

JSON Schema

grainfinance-co-customer-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grainfinance-co/json-schema/grainfinance-co-customer-schema.json",
  "title": "Customer",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grainfinance-co-customers-api-openapi.yml#/components/schemas/Customer",
  "properties": {
    "id": {
      "$ref": "#/$defs/UUID",
      "description": "The id of the customer within the Grain platform."
    },
    "companyName": {
      "type": "string",
      "description": "The legal name of the customer's company"
    },
    "companyAddress": {
      "type": "string",
      "description": "The address of the company"
    },
    "companyCity": {
      "type": "string",
      "description": "The city of the company"
    },
    "companyState": {
      "type": "string",
      "description": "The state the company is in (US based)"
    },
    "companyCountry": {
      "$ref": "#/$defs/CountryCode"
    },
    "contactEmail": {
      "$ref": "#/$defs/ContactEmail",
      "description": "The email for the company's primary contact"
    },
    "contactFullName": {
      "type": "string",
      "description": "The name of the company's primary contact"
    },
    "contactPhoneNumber": {
      "type": "string",
      "description": "The phone number of the company's primary contact"
    },
    "companyTaxId": {
      "type": "string",
      "description": "The tax identification or registration number of the company"
    },
    "externalCustomerId": {
      "type": "string",
      "description": "The id used to identify the customer within your platform"
    },
    "status": {
      "$ref": "#/$defs/CustomerStatus"
    },
    "extraFields": {
      "$ref": "#/$defs/CustomersExtraFieldsParam",
      "description": "Additional fields that provide further details about the customer.\nThese fields should be specified as a valid JSON object."
    }
  },
  "required": [
    "id",
    "companyName",
    "companyCountry",
    "externalCustomerId",
    "status"
  ],
  "type": "object",
  "additionalProperties": false,
  "$defs": {
    "ContactEmail": {
      "type": "string",
      "description": "The email address of the company's primary contact"
    },
    "CountryCode": {
      "type": "string",
      "description": "The alpha-2 ISO 3166 country code of the entity's country.",
      "pattern": "^[A-Za-z]{2}$"
    },
    "CustomerStatus": {
      "description": "The eligibility of the customer to receive quotes",
      "enum": [
        "Pending",
        "Approved",
        "Rejected"
      ],
      "type": "string"
    },
    "CustomersExtraFieldsParam": {
      "properties": {},
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number",
            "format": "double"
          },
          {
            "type": "boolean"
          }
        ]
      },
      "type": "object",
      "description": "Additional fields that provide further details about the company.\nThese fields should be specified as a valid JSON object."
    },
    "UUID": {
      "type": "string",
      "format": "uuid",
      "pattern": "[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}"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/grainfinance-co-customer"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.