Lightspark · Schema
CustomerUpdateRequestOneOf
CompanyPaymentsCross-Border PaymentsStablecoinsBitcoinLightning NetworkEmbedded FinanceAgentic PaymentsCardsKYCFinancial ServicesForeign Exchange
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/lightspark/main/json-schema/lightspark-customer-update-request-one-of-schema.json",
"title": "CustomerUpdateRequestOneOf",
"x-generated": "2026-10-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/lightspark-customers-api-openapi.yml#/components/schemas/CustomerUpdateRequestOneOf",
"oneOf": [
{
"$ref": "#/$defs/IndividualCustomerUpdateRequest"
},
{
"$ref": "#/$defs/BusinessCustomerUpdateRequest"
}
],
"$defs": {
"Address": {
"type": "object",
"required": [
"line1",
"postalCode",
"country"
],
"properties": {
"line1": {
"type": "string",
"description": "Street address line 1"
},
"line2": {
"type": "string",
"description": "Street address line 2"
},
"city": {
"type": "string",
"description": "City"
},
"state": {
"type": "string",
"description": "State/Province/Region"
},
"postalCode": {
"type": "string",
"description": "Postal/ZIP code"
},
"country": {
"type": "string",
"description": "Country code (ISO 3166-1 alpha-2)"
}
}
},
"BusinessCustomerFields": {
"type": "object",
"required": [
"customerType"
],
"properties": {
"customerType": {
"type": "string",
"enum": [
"BUSINESS"
]
},
"kybStatus": {
"$ref": "#/$defs/KybStatus"
},
"address": {
"$ref": "#/$defs/Address"
},
"businessInfo": {
"$ref": "#/$defs/BusinessInfoUpdate"
}
}
},
"BusinessCustomerUpdateRequest": {
"title": "Business Customer Update Request",
"allOf": [
{
"$ref": "#/$defs/CustomerUpdateRequest"
},
{
"$ref": "#/$defs/BusinessCustomerFields"
}
]
},
"BusinessInfoUpdate": {
"type": "object",
"description": "Additional information for business entities",
"properties": {
"legalName": {
"type": "string",
"description": "Legal name of the business"
},
"doingBusinessAs": {
"type": "string",
"description": "Trade name or DBA name of the business, if different from the legal name"
},
"country": {
"type": "string",
"description": "Country of incorporation or registration (ISO 3166-1 alpha-2)"
},
"registrationNumber": {
"type": "string",
"description": "Business registration number"
},
"incorporatedOn": {
"type": "string",
"format": "date",
"description": "Date of incorporation in ISO 8601 format (YYYY-MM-DD)"
},
"entityType": {
"$ref": "#/$defs/EntityType"
},
"taxId": {
"type": "string",
"description": "Tax identification number"
},
"countriesOfOperation": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of countries where the business operates (ISO 3166-1 alpha-2)"
},
"businessType": {
"$ref": "#/$defs/BusinessType"
},
"purposeOfAccount": {
"$ref": "#/$defs/PurposeOfAccount"
},
"sourceOfFunds": {
"type": "string",
"description": "The primary source of funds for the business"
},
"expectedMonthlyTransactionCount": {
"type": "string",
"enum": [
"COUNT_UNDER_10",
"COUNT_10_TO_100",
"COUNT_100_TO_500",
"COUNT_500_TO_1000",
"COUNT_OVER_1000"
],
"description": "Expected number of transactions per month"
},
"expectedMonthlyTransactionVolume": {
"type": "string",
"enum": [
"VOLUME_UNDER_10K",
"VOLUME_10K_TO_100K",
"VOLUME_100K_TO_1M",
"VOLUME_1M_TO_10M",
"VOLUME_OVER_10M"
],
"description": "Expected total transaction volume per month in USD equivalent"
},
"expectedRecipientJurisdictions": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of countries where the business expects to send payments (ISO 3166-1 alpha-2)"
},
"naicsCode": {
"type": "string",
"pattern": "^\\d{2,6}$",
"description": "NAICS code describing the nature of the business (2-6 digits)"
},
"sourceOfFundsCategories": {
"type": "array",
"items": {
"$ref": "#/$defs/SourceOfFundsCategory"
},
"description": "Structured source-of-funds categories for the business"
},
"sourceOfFundsOtherDescription": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "Description of the source of funds when OTHER is selected"
},
"purposeOfAccountOtherDescription": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "Description of the account purpose when OTHER is selected"
},
"expectedCounterpartyCountries": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of countries of the business's expected transaction counterparties (ISO 3166-1 alpha-2)"
}
}
},
"BusinessType": {
"type": "string",
"description": "The high-level industry category of the business",
"enum": [
"AGRICULTURE_FORESTRY_FISHING_AND_HUNTING",
"MINING_QUARRYING_AND_OIL_AND_GAS_EXTRACTION",
"UTILITIES",
"CONSTRUCTION",
"MANUFACTURING",
"WHOLESALE_TRADE",
"RETAIL_TRADE",
"TRANSPORTATION_AND_WAREHOUSING",
"INFORMATION",
"FINANCE_AND_INSURANCE",
"REAL_ESTATE_AND_RENTAL_AND_LEASING",
"PROFESSIONAL_SCIENTIFIC_AND_TECHNICAL_SERVICES",
"MANAGEMENT_OF_COMPANIES_AND_ENTERPRISES",
"ADMINISTRATIVE_AND_SUPPORT_AND_WASTE_MANAGEMENT_AND_REMEDIATION_SERVICES",
"EDUCATIONAL_SERVICES",
"HEALTH_CARE_AND_SOCIAL_ASSISTANCE",
"ARTS_ENTERTAINMENT_AND_RECREATION",
"ACCOMMODATION_AND_FOOD_SERVICES",
"OTHER_SERVICES",
"PUBLIC_ADMINISTRATION"
]
},
"CustomerType": {
"type": "string",
"enum": [
"INDIVIDUAL",
"BUSINESS"
],
"description": "Whether the customer is an individual or a business entity"
},
"CustomerUpdateRequest": {
"title": "Customer Update Request",
"description": "Request body for `PATCH /customers/{customerId}`. When `email` changes for a customer with tied Embedded Wallet internal accounts, Grid updates the customer email and every tied `EMAIL_OTP` credential through the endpoint's signed-retry flow. When `phoneNumber` changes for a customer with tied Embedded Wallet internal accounts, Grid updates the customer phone number and every tied `SMS_OTP` credential through the same signed-retry flow. Update `email` and `phoneNumber` in separate PATCH calls.",
"type": "object",
"required": [
"customerType"
],
"properties": {
"customerType": {
"$ref": "#/$defs/CustomerType"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "Updated list of currency codes the customer will use (ISO 4217 for fiat, e.g. \"USD\", \"EUR\"; tickers for crypto, e.g. \"BTC\", \"USDC\"). Replaces the existing list. Some currency combinations may require separate customers — if so, the request will be rejected with details."
},
"email": {
"type": "string",
"format": "email",
"description": "Email address for the customer. For customers with tied Embedded Wallet internal accounts, changing this value also updates every tied `EMAIL_OTP` credential across all tied Embedded Wallets."
},
"phoneNumber": {
"type": "string",
"pattern": "^\\+[1-9]\\d{1,14}$",
"description": "Phone number for the customer in strict E.164 format. For customers with tied Embedded Wallet internal accounts, changing this value also updates every tied `SMS_OTP` credential across all tied Embedded Wallets. Send phone number and email updates as separate PATCH calls."
},
"umaAddress": {
"type": "string",
"description": "Optional UMA address identifier. If provided, the customer's UMA address will be updated. This is an optional identifier to route payments to the customer."
}
}
},
"EntityType": {
"type": "string",
"enum": [
"SOLE_PROPRIETORSHIP",
"PARTNERSHIP",
"LLC",
"CORPORATION",
"S_CORPORATION",
"NON_PROFIT",
"OTHER"
],
"description": "Legal entity type of the business"
},
"IndividualCustomerFields": {
"type": "object",
"required": [
"customerType"
],
"properties": {
"customerType": {
"type": "string",
"enum": [
"INDIVIDUAL"
]
},
"kycStatus": {
"$ref": "#/$defs/KycStatus"
},
"fullName": {
"type": "string",
"description": "Individual's full name"
},
"birthDate": {
"type": "string",
"format": "date",
"description": "Date of birth in ISO 8601 format (YYYY-MM-DD)"
},
"nationality": {
"type": "string",
"description": "Country code (ISO 3166-1 alpha-2)"
},
"address": {
"$ref": "#/$defs/Address"
}
}
},
"IndividualCustomerUpdateRequest": {
"title": "Individual Customer Update Request",
"allOf": [
{
"$ref": "#/$defs/CustomerUpdateRequest"
},
{
"$ref": "#/$defs/IndividualCustomerFields"
}
]
},
"KybStatus": {
"type": "string",
"enum": [
"UNVERIFIED",
"PENDING",
"APPROVED",
"REJECTED",
"HOLD"
],
"description": "The current KYB status of a business customer. `HOLD` means the customer is placed on hold and may be required to update or provide more information."
},
"KycStatus": {
"type": "string",
"enum": [
"UNVERIFIED",
"PENDING",
"APPROVED",
"REJECTED",
"HOLD"
],
"description": "The current KYC status of a customer. `HOLD` means the customer is placed on hold and may be required to update or provide more information."
},
"PurposeOfAccount": {
"type": "string",
"enum": [
"CONTRACTOR_PAYOUTS",
"CREATOR_PAYOUTS",
"EMPLOYEE_PAYOUTS",
"MARKETPLACE_SELLER_PAYOUTS",
"SUPPLIER_PAYMENTS",
"CROSS_BORDER_B2B",
"AR_AUTOMATION",
"AP_AUTOMATION",
"EMBEDDED_PAYMENTS",
"PLATFORM_FEE_COLLECTION",
"P2P_TRANSFERS",
"CHARITABLE_DONATIONS",
"OTHER"
],
"description": "The intended purpose for using the Grid account"
},
"SourceOfFundsCategory": {
"type": "string",
"enum": [
"OPERATING_REVENUE",
"INVESTMENT_INCOME",
"LOANS",
"VENTURE_CAPITAL",
"PERSONAL_SAVINGS",
"DONATIONS",
"OTHER"
],
"description": "A structured source-of-funds category for the business"
}
}
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/lightspark-customer-update-request-one-of"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.