{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/methodfi/main/json-schema/methodfi-account-attribute-response-schema.json", "title": "AccountAttributeResponse", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/methodfi-account-attributes-api-openapi.yml#/components/schemas/AccountAttributeResponse", "allOf": [ { "$ref": "#/$defs/SuccessEnvelope" }, { "type": "object", "properties": { "data": { "$ref": "#/$defs/AccountAttribute" } } } ], "$defs": { "AccountAttribute": { "type": "object", "description": "An attribute record for an account containing financial data attributes.", "required": [ "id", "account_id", "status", "attributes", "created_at", "updated_at" ], "properties": { "id": { "type": "string", "description": "Unique identifier for the account attribute.", "pattern": "^acc_attr_\\w+$" }, "account_id": { "type": "string", "description": "The account this attribute belongs to.", "pattern": "^acc_\\w+$" }, "status": { "type": "string", "description": "Current status of the attribute request.", "enum": [ "completed", "pending", "failed" ] }, "attributes": { "type": "object", "description": "Financial data attributes for the account.", "additionalProperties": true }, "error": { "$ref": "#/$defs/ResourceError" }, "created_at": { "type": "string", "format": "date-time", "description": "Timestamp when the attribute was created." }, "updated_at": { "type": "string", "format": "date-time", "description": "Timestamp when the attribute was last updated." } } }, "ResourceError": { "type": [ "object", "null" ], "required": [ "type", "code", "message" ], "properties": { "type": { "type": "string" }, "code": { "type": "integer" }, "sub_type": { "type": [ "string", "null" ] }, "message": { "type": "string" } } }, "SuccessEnvelope": { "type": "object", "description": "Standard envelope for successful responses that return a single payload.", "required": [ "success", "data", "message" ], "properties": { "success": { "type": "boolean", "description": "Always `true` for successful responses." }, "data": { "description": "Operation-specific response payload." }, "message": { "type": [ "string", "null" ] } } } } }