{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/airwallex/refs/heads/main/json-schema/airwallex-account-schema.json", "title": "Account", "description": "An Airwallex global multi-currency account.", "type": "object", "properties": { "id": { "type": "string", "description": "Unique account identifier.", "example": "acct_abc123def456" }, "account_name": { "type": "string", "description": "Business name of the account holder.", "example": "ACME Corp Ltd" }, "status": { "type": "string", "enum": ["PENDING", "ACTIVE", "SUSPENDED", "CLOSED"], "description": "Account status.", "example": "ACTIVE" }, "primary_currency": { "type": "string", "description": "Primary currency for the account.", "example": "USD" }, "balances": { "type": "array", "description": "Currency balances held in the account.", "items": { "type": "object", "properties": { "currency": {"type": "string"}, "available_amount": {"type": "number"}, "pending_amount": {"type": "number"} } } }, "country_code": { "type": "string", "description": "ISO 3166-1 alpha-2 country code of the account.", "example": "US" }, "created_at": { "type": "string", "format": "date-time", "description": "Account creation timestamp.", "example": "2026-01-15T08:00:00Z" } }, "required": ["id", "account_name", "status", "primary_currency"] }