{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/moneygraph-ai/json-schema/moneygraph-ai-post-api-v1-customers-request-schema.json",
  "title": "PostApiV1CustomersRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/moneygraph-ai-openapi-generated.yml#/components/schemas/PostApiV1CustomersRequest",
  "type": "object",
  "properties": {
    "platform_account_id": {
      "type": "string",
      "description": "Your own ID for this customer. It must be unique across all your customers, in test and live mode together; a duplicate fails with account_already_exists."
    },
    "account_type": {
      "type": "string",
      "description": "The kind of customer. The country must support it; see Countries."
    },
    "first_name": {
      "type": "string",
      "description": "First name. For business customers, the name of the person acting for the business. Must not be a URL."
    },
    "last_name": {
      "type": "string",
      "description": "Last name. Must not be a URL."
    },
    "business_details.business_name": {
      "type": "string",
      "description": "Registered business name, sent as business_details: {\"business_name\": \"...\"}. Must not be a URL."
    },
    "email": {
      "type": "string",
      "description": "Email address. Stored in lower case."
    },
    "phone_iso2": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 code of the country the phone number belongs to."
    },
    "phone": {
      "type": "string",
      "description": "Phone number, valid for phone_iso2. Stored in E.164 format."
    },
    "country": {
      "type": "string",
      "description": "Country of residence or registration, as an iso2 from Countries. Case-insensitive."
    },
    "birthday": {
      "type": "string",
      "description": "Date of birth. Must be before today."
    },
    "gender": {
      "type": "string",
      "description": "male or female. Case-insensitive."
    },
    "street": {
      "type": "string",
      "description": "Street address."
    },
    "city": {
      "type": "string",
      "description": "City."
    },
    "state": {
      "type": "string",
      "description": "State, province or region."
    },
    "postal_code": {
      "type": "string",
      "description": "Postal or ZIP code."
    },
    "source_of_fund_id": {
      "type": "string",
      "description": "An id from Sources of funds."
    },
    "ip_address": {
      "type": "string",
      "description": "The customer's IP address at sign-up."
    },
    "webhook_id": {
      "type": "string",
      "description": "ID of one of your webhooks in the same mode. Events about this customer are sent to it."
    }
  },
  "required": [
    "platform_account_id",
    "account_type",
    "first_name",
    "last_name",
    "email",
    "phone_iso2",
    "phone",
    "country",
    "birthday",
    "gender",
    "street",
    "city",
    "state",
    "postal_code",
    "source_of_fund_id"
  ]
}