Elly API
  1. Statements
Elly API
  • API Keys
    • Get current API key details
      GET
    • Get current API key usage statistics
      GET
    • List all API keys
      GET
    • Create a new API key
      POST
    • Revoke an API key
      DELETE
  • Transactions
    • List transactions
      GET
    • Create transaction
      POST
    • Get transaction details
      GET
    • Update transaction
      PATCH
    • Delete transaction
      DELETE
    • Bulk update transactions
      POST
  • Bank Accounts
    • List bank accounts
      GET
    • Create bank account
      POST
    • Get bank account details
      GET
    • Update bank account
      PATCH
    • Delete bank account
      DELETE
    • Get bank account transactions
      GET
  • Statements
    • List bank statements
      GET
    • Upload bank statement file
      POST
    • Get statement details
      GET
    • Get statement transactions
      GET
  • Categories
    • List categories
      GET
  • Reports
    • Cash flow report
      GET
    • Financial summary report
      GET
  • Companies
    • Get company details
  • Schemas
    • TransactionStatus
    • AccountingCategory
    • CashFlowCategory
    • AccountType
    • AccountStatus
    • StatementStatus
    • ApiScope
    • ApiKey
    • Transaction
    • TransactionListResponse
    • TransactionResponse
    • TransactionDetailResponse
    • CreateTransactionRequest
    • UpdateTransactionRequest
    • BulkUpdateRequest
    • BankAccount
    • BankAccountListResponse
    • CreateBankAccountRequest
    • UpdateBankAccountRequest
    • CreateStatementRequest
    • CreateStatementUpload
    • Pagination
    • Error
  1. Statements

Upload bank statement file

POST
/api-v1/statements
Statements
Upload a bank statement file for processing.
The file is automatically stored in Supabase Storage and AI processing
is triggered to extract transactions.
Supported file formats: PDF, CSV, OFX, QFX, XLSX
Example using curl:

Request

Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
or
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params multipart/form-dataRequired

Responses

🟢201
application/json
Statement created
Body

🟠400BadRequest
🟠404
🟠415
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gvazyknvkqdeuzmrnuwu.supabase.co/functions/v1/api-v1/statements' \
--header 'X-API-Key: <api-key>' \
--form 'bank_account_id=""' \
--form 'file=@""' \
--form 'period_start=""' \
--form 'period_end=""' \
--form 'statement_date=""' \
--form 'opening_balance=""' \
--form 'closing_balance=""'
Response Response Example
201 - Success
{
    "success": true,
    "data": {
        "id": "880h1722-h52e-74g7-d049-779988773333",
        "file_name": "estado_cuenta_febrero_2025.pdf",
        "file_url": "https://gvazyknvkqdeuzmrnuwu.supabase.co/storage/v1/object/public/ellybucket/bank-statements/company-id/account-id/2025-02.pdf",
        "storage_path": "bank-statements/company-id/account-id/2025-02.pdf",
        "file_type": "pdf",
        "file_size_bytes": 524288,
        "period_start": "2025-02-01",
        "period_end": "2025-02-28",
        "statement_date": "2025-02-28",
        "opening_balance": 125000.5,
        "closing_balance": 145000,
        "status": "uploaded",
        "transaction_count": 0,
        "total_credits": 0,
        "total_debits": 0,
        "created_at": "2025-03-01T10:00:00Z",
        "bank_account": {
            "id": "550e8400-e29b-41d4-a716-446655440000",
            "account_name": "BBVA Business Checking",
            "institution_name": "BBVA"
        }
    }
}
Modified at 2025-12-30 00:32:01
Previous
List bank statements
Next
Get statement details
Built with