---
updatedAt: 2025-12-17T19:51:51.000Z
agentTools:
  projectIndex: https://docs.caliza.com/llms.txt
---

# Simulate transaction or payment

Creates a simulation to preview and calculate all costs associated with a transaction before executing it. The simulation returns estimated total costs, itemized fees, exchange rates (if currency conversion is involved), expected settlement time, and any compliance requirements. Simulations are typically valid for 24 hours, after which exchange rates may change and a new simulation should be created. Always create a simulation before executing a transaction to show users accurate costs and get a simulation ID required for transaction creation. For more detailed breakdowns, consider using the v2 simulation endpoint.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Caliza API documentation reference",
    "description": "The Caliza API enables seamless integration of financial services including payments, payouts, currency conversions, and compliance workflows. \n\n## Key Features\n- **Transaction Management**: Create, simulate, and track financial transactions across multiple currencies and payment rails\n- **Beneficiary Management**: Onboard and manage individuals and businesses with built-in KYC/KYB verification\n- **Multi-Currency Support**: Handle USD, BRL, MXN, EUR, and cryptocurrencies (USDT, USDC) with real-time exchange rates\n- **Payment Rails**: Support for ACH, Wire, PIX, SPEI, SWIFT, and blockchain networks (Ethereum, Polygon, Tron, Stellar, Base, Solana)\n- **Compliance**: Automated KYX workflows, document verification, and regulatory compliance features\n- **Webhooks**: Real-time event notifications for transaction status updates and system events\n\n## Getting Started\n1. Obtain your API credentials from the Caliza dashboard\n2. Authenticate using Bearer token (JWT)\n3. Create a simulation to preview transaction costs\n4. Execute transactions using the simulation ID\n5. Track status via webhooks or polling\n\n## Base URLs\n- **Sandbox**: `https://api.sandbox.caliza.com` - For testing and integration development\n- **Production**: `https://api.caliza.com` - For live transactions\n\n## Rate Limits\nAPI requests are rate-limited to ensure system stability. Contact support for rate limit increases.\n\n## Support\nFor technical support, integration questions, or API issues, contact our developer support team.\n",
    "version": "v1",
    "contact": {
      "name": "Caliza API Support",
      "email": "api-support@caliza.com",
      "url": "https://docs.caliza.com"
    },
    "termsOfService": "https://caliza.com/terms"
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.sandbox.com",
      "description": "Sandbox Environment"
    },
    {
      "url": "https://api.caliza.com",
      "description": "Production Environment"
    },
    {
      "url": "https://api.sandbox.caliza.com",
      "description": "Sandbox Environment (backoffice)"
    }
  ],
  "tags": [
    {
      "name": "Transaction V1",
      "description": "Create, simulate, inspect and manage financial transactions. Includes endpoints to create transactions and simulations, retrieve transaction details, update metadata (e.g. blockchain hashes), export results, and run batch or sweep payouts. Use these for the full transaction lifecycle: preview costs, execute, and track status."
    }
  ],
  "paths": {
    "/v1/simulations": {
      "post": {
        "tags": [
          "Transaction V1"
        ],
        "summary": "Simulate transaction or payment",
        "description": "Creates a simulation to preview and calculate all costs associated with a transaction before executing it. The simulation returns estimated total costs, itemized fees, exchange rates (if currency conversion is involved), expected settlement time, and any compliance requirements. Simulations are typically valid for 24 hours, after which exchange rates may change and a new simulation should be created. Always create a simulation before executing a transaction to show users accurate costs and get a simulation ID required for transaction creation. For more detailed breakdowns, consider using the v2 simulation endpoint.",
        "operationId": "createSimulation_1",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AmountDto": {
        "type": "object",
        "description": "Represents a monetary amount with currency code and value.",
        "required": [
          "currencyCode",
          "value"
        ],
        "properties": {
          "currencyCode": {
            "type": "string",
            "description": "ISO 4217 currency code or cryptocurrency ticker symbol.",
            "example": "USD",
            "enum": [
              "USDT",
              "USDC",
              "USD",
              "BRL",
              "MXN",
              "COP",
              "EUR",
              "EURT",
              "HKD",
              "SGD",
              "CNY",
              "CNH",
              "ARS",
              "ANY"
            ]
          },
          "value": {
            "type": "number",
            "description": "The monetary amount in the specified currency. Precision depends on the currency (typically 2 decimal places for fiat, up to 8 for crypto).",
            "example": 100.5,
            "minimum": 0
          }
        }
      },
      "AmountFourDecimalPlacesResponse": {
        "type": "object",
        "description": "Monetary amount with up to four decimal places precision, typically used for fee calculations and exchange rate conversions.",
        "properties": {
          "currencyCode": {
            "type": "string",
            "description": "ISO 4217 currency code or cryptocurrency ticker symbol.",
            "example": "USD",
            "enum": [
              "USDT",
              "USDC",
              "USD",
              "BRL",
              "MXN",
              "COP",
              "EUR",
              "EURT",
              "HKD",
              "SGD",
              "CNY",
              "CNH",
              "ARS",
              "ANY"
            ]
          },
          "value": {
            "type": "number",
            "description": "The monetary amount with up to 4 decimal places of precision.",
            "example": 1234.5678,
            "minimum": 0
          }
        }
      },
      "ConversionDetails": {
        "type": "object",
        "description": "Detailed breakdown of currency conversion including exchange rates and amounts for multi-currency transactions.",
        "properties": {
          "effectiveTransactionValue": {
            "type": "number",
            "description": "The final value of the transaction after all conversions and fees.",
            "example": 95.25
          },
          "marketExchangeRate": {
            "type": "number",
            "description": "The current market exchange rate between the source and destination currencies.",
            "example": 5.42
          },
          "clientRate": {
            "type": "number",
            "description": "The exchange rate offered to the client (may include markup).",
            "example": 5.35
          },
          "calizaRate": {
            "type": "number",
            "description": "The exchange rate component retained by Caliza.",
            "example": 5.4
          },
          "integratorRate": {
            "type": "number",
            "description": "The exchange rate component allocated to the integrator.",
            "example": 5.38
          },
          "amountToBeConverted": {
            "$ref": "#/components/schemas/AmountFourDecimalPlacesResponse"
          }
        }
      },
      "ExpectedSettlementTimeDetails": {
        "type": "object",
        "description": "Information about expected settlement time for a transaction.",
        "properties": {
          "expectedTime": {
            "type": "string",
            "description": "Standardized settlement time category.",
            "enum": [
              "INSTANT_MARKET_HOURS",
              "INSTANT",
              "WITHIN_5_MINUTES",
              "WITHIN_15_MINUTES",
              "SAME_DAY_BEFORE_CUTOFF",
              "ONE_TO_TWO_DAYS",
              "ONE_TO_THREE_DAYS",
              "UNKNOWN"
            ]
          },
          "displayText": {
            "type": "string",
            "description": "Human-readable settlement time description to display to end users.",
            "example": "Instant (during market hours)"
          },
          "additionalInfo": {
            "type": "string",
            "description": "Additional context or conditions affecting settlement time.",
            "example": "Settlements outside business hours will be processed on the next business day."
          },
          "cutoffTime": {
            "type": "string",
            "description": "Cutoff time for same-day settlement in ISO 8601 format.",
            "example": "2025-12-05T17:00:00Z",
            "format": "date-time"
          }
        }
      },
      "FeeDetails": {
        "type": "object",
        "description": "Comprehensive breakdown of all fees applied to a transaction:\n- taxes: Tax amount charged on the transaction (e.g., IOF in Brazil, VAT, etc.)\n- integratorFee: Fee amount allocated to the integrator\n- fixedFees: List of fixed fees charged regardless of transaction amount\n- percentageFees: List of fees calculated as a percentage of the transaction amount\n- spreadFees: List of fees derived from exchange rate spreads in currency conversions\n- oldFees: Legacy fee structure (deprecated)\n- totalFees: Sum of all fees charged on this transaction\n- vet: VET (Valor Efetivo Total) - Brazilian total effective value including all costs\n",
        "properties": {
          "taxes": {
            "$ref": "#/components/schemas/AmountFourDecimalPlacesResponse"
          },
          "integratorFee": {
            "$ref": "#/components/schemas/AmountFourDecimalPlacesResponse"
          },
          "fixedFees": {
            "type": "array",
            "description": "List of fixed fees charged regardless of transaction amount.",
            "items": {
              "$ref": "#/components/schemas/FixedFeeItemResponse"
            }
          },
          "percentageFees": {
            "type": "array",
            "description": "List of fees calculated as a percentage of the transaction amount.",
            "items": {
              "$ref": "#/components/schemas/PercentageFeeItemResponse"
            }
          },
          "spreadFees": {
            "type": "array",
            "description": "List of fees derived from exchange rate spreads in currency conversions.",
            "items": {
              "$ref": "#/components/schemas/SpreadFeeItemResponse"
            }
          },
          "oldFees": {
            "type": "array",
            "description": "Legacy fee structure (deprecated).",
            "items": {
              "$ref": "#/components/schemas/OldFeeItemResponse"
            }
          },
          "totalFees": {
            "$ref": "#/components/schemas/AmountFourDecimalPlacesResponse"
          },
          "vet": {
            "type": "number",
            "description": "VET (Valor Efetivo Total) - Brazilian total effective value including all costs.",
            "example": 105.5
          }
        }
      },
      "FixedFeeItemResponse": {
        "type": "object",
        "description": "Details of a fixed fee charged on a transaction, independent of transaction amount.",
        "properties": {
          "block": {
            "type": "string",
            "description": "Fee category or grouping identifier.",
            "example": "NETWORK_FEE"
          },
          "type": {
            "type": "string",
            "description": "Type of fee being charged.",
            "example": "FIXED"
          },
          "value": {
            "type": "number",
            "description": "Fixed fee amount.",
            "example": 2.5
          },
          "currencyCode": {
            "type": "string",
            "description": "Currency in which the fee is charged.",
            "example": "USD"
          },
          "concept": {
            "type": "string",
            "description": "Human-readable description of what the fee covers.",
            "example": "Wire transfer processing fee"
          },
          "paymentRail": {
            "type": "string",
            "description": "Payment method this fee applies to.",
            "example": "WIRE"
          },
          "chargeMode": {
            "type": "string",
            "description": "How the fee is applied (DEDUCT = deducted from amount, ADD = added to total).",
            "example": "ADD",
            "enum": [
              "DEDUCT",
              "ADD"
            ]
          }
        }
      },
      "OldFeeItemResponse": {
        "type": "object",
        "description": "Legacy fee structure format (deprecated). Use FixedFeeItemResponse, PercentageFeeItemResponse, or SpreadFeeItemResponse for new integrations.",
        "deprecated": true,
        "properties": {
          "block": {
            "type": "string",
            "description": "Fee category identifier."
          },
          "type": {
            "type": "string",
            "description": "Type of fee."
          },
          "fromCurrency": {
            "type": "string",
            "description": "Source currency (for conversion fees)."
          },
          "toCurrency": {
            "type": "string",
            "description": "Target currency (for conversion fees)."
          },
          "feeValue": {
            "type": "number",
            "description": "Fee amount or percentage value."
          },
          "feeCurrency": {
            "type": "string",
            "description": "Currency in which the fee is charged."
          },
          "marketRate": {
            "type": "number",
            "description": "Market exchange rate (for FX fees)."
          },
          "effectiveRate": {
            "type": "number",
            "description": "Effective rate after spread (for FX fees)."
          },
          "calizaRate": {
            "type": "number",
            "description": "Caliza's rate component."
          },
          "baseCurrency": {
            "type": "string",
            "description": "Base currency for calculations."
          },
          "baseAmount": {
            "type": "number",
            "description": "Base amount for percentage calculations."
          },
          "concept": {
            "type": "string",
            "description": "Fee description."
          },
          "chargeMode": {
            "type": "string",
            "description": "How the fee is applied."
          }
        }
      },
      "PercentageFeeItemResponse": {
        "type": "object",
        "description": "Details of a percentage-based fee calculated as a portion of the transaction amount.",
        "properties": {
          "block": {
            "type": "string",
            "description": "Fee category or grouping identifier.",
            "example": "SERVICE_FEE"
          },
          "type": {
            "type": "string",
            "description": "Type of fee being charged.",
            "example": "PERCENTAGE"
          },
          "percentageRate": {
            "type": "number",
            "description": "Fee percentage rate in decimal form (e.g., 0.025 = 2.5%).",
            "example": 0.025
          },
          "baseAmount": {
            "type": "number",
            "description": "Transaction amount used as the base for percentage calculation.",
            "example": 1000
          },
          "baseCurrency": {
            "type": "string",
            "description": "Currency of the base amount.",
            "example": "USD"
          },
          "calculatedFee": {
            "type": "number",
            "description": "Calculated fee amount based on the percentage and base amount.",
            "example": 25
          },
          "feeCurrency": {
            "type": "string",
            "description": "Currency in which the fee is charged.",
            "example": "USD"
          },
          "concept": {
            "type": "string",
            "description": "Human-readable description of what the fee covers.",
            "example": "Transaction processing fee"
          },
          "paymentRail": {
            "type": "string"
          },
          "chargeMode": {
            "type": "string"
          }
        }
      },
      "SpreadFeeItemResponse": {
        "type": "object",
        "description": "Details of fees derived from exchange rate spread in currency conversion transactions.",
        "properties": {
          "block": {
            "type": "string",
            "description": "Fee category or grouping identifier.",
            "example": "FX_SPREAD"
          },
          "type": {
            "type": "string",
            "description": "Type of fee being charged.",
            "example": "SPREAD"
          },
          "fromCurrency": {
            "type": "string",
            "description": "Source currency being converted from.",
            "example": "USD"
          },
          "toCurrency": {
            "type": "string",
            "description": "Target currency being converted to.",
            "example": "BRL"
          },
          "marketRate": {
            "type": "number",
            "description": "Current market exchange rate between the two currencies.",
            "example": 5.42
          },
          "spreadBasisPoint": {
            "type": "number",
            "description": "Spread markup in basis points (1 bp = 0.01%).",
            "example": 150
          },
          "effectiveRate": {
            "type": "number",
            "description": "Final exchange rate applied after spread.",
            "example": 5.35
          },
          "calizaRate": {
            "type": "number",
            "description": "Exchange rate component retained by Caliza.",
            "example": 5.4
          },
          "baseCurrency": {
            "type": "string",
            "description": "Base currency for fee calculation.",
            "example": "USD"
          },
          "baseAmount": {
            "type": "number",
            "description": "Amount in base currency used for fee calculation.",
            "example": 100
          },
          "calculatedFee": {
            "type": "number",
            "description": "Calculated spread fee amount.",
            "example": 0.7
          },
          "feeCurrency": {
            "type": "string",
            "description": "Currency in which the spread fee is expressed.",
            "example": "USD"
          },
          "concept": {
            "type": "string",
            "description": "Human-readable description of the spread fee.",
            "example": "Currency conversion spread"
          },
          "chargeMode": {
            "type": "string",
            "description": "How the fee is applied to the transaction.",
            "example": "EMBEDDED",
            "enum": [
              "EMBEDDED",
              "DEDUCT",
              "ADD"
            ]
          }
        }
      },
      "TransactionDetailsResponse": {
        "type": "object",
        "description": "Detailed information about a transaction including conversion details, fees, and settlement expectations.",
        "properties": {
          "conversionDetails": {
            "$ref": "#/components/schemas/ConversionDetails"
          },
          "feeDetails": {
            "$ref": "#/components/schemas/FeeDetails"
          },
          "transferPurpose": {
            "type": "string",
            "description": "Purpose or reason for the transfer.",
            "example": "Payment for services"
          },
          "paymentReference": {
            "type": "string",
            "description": "Reference number or code for the payment.",
            "example": "INV-2025-001"
          },
          "memo": {
            "type": "string",
            "description": "Additional notes or memo for the transaction.",
            "example": "Monthly subscription payment"
          },
          "expectedSettlementTimeDetails": {
            "$ref": "#/components/schemas/ExpectedSettlementTimeDetails"
          }
        }
      },
      "SimulationResponse": {
        "type": "object",
        "description": "Response with simulated payment details including exchange rates, fees breakdown, and final amounts for both funding and payout.",
        "properties": {
          "id": {
            "type": "string"
          },
          "integratorId": {
            "type": "string"
          },
          "beneficiaryId": {
            "type": "string"
          },
          "from": {
            "$ref": "#/components/schemas/AmountDto"
          },
          "to": {
            "$ref": "#/components/schemas/AmountDto"
          },
          "flowOfFundsId": {
            "type": "string"
          },
          "transactionDetails": {
            "$ref": "#/components/schemas/TransactionDetailsResponse"
          },
          "amountValidation": {
            "type": "string",
            "description": "Validation status of the transaction amount.",
            "example": "VALID"
          },
          "executed": {
            "type": "boolean",
            "description": "Indicates whether the transaction has been executed.",
            "example": true
          },
          "guaranteedRate": {
            "type": "boolean",
            "description": "Indicates if the exchange rate is locked/guaranteed for this transaction.",
            "example": true
          },
          "rateValidityInMinutes": {
            "type": "integer",
            "format": "int32",
            "description": "Number of minutes the quoted exchange rate remains valid.",
            "example": 30
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "lastModifiedDate": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "achSameDay": {
            "type": "boolean",
            "description": "Indicates whether same-day ACH settlement was requested for this simulation."
          },
          "payorId": {
            "type": "string",
            "description": "The sponsor beneficiary that funds the payment when this is a Payment On Behalf Of (POBO) simulation — your integrator's main beneficiary. Null for a standard payment."
          }
        }
      },
      "SimulationRequest": {
        "required": [
          "beneficiaryId",
          "from"
        ],
        "type": "object",
        "properties": {
          "beneficiaryId": {
            "type": "string"
          },
          "from": {
            "$ref": "#/components/schemas/AmountDto"
          },
          "toCurrencyCode": {
            "type": "string",
            "enum": [
              "USDT",
              "USDC",
              "USD",
              "BRL",
              "MXN",
              "COP",
              "EUR",
              "EURT",
              "HKD",
              "SGD",
              "CNY",
              "CNH",
              "ARS",
              "ANY"
            ]
          },
          "to": {
            "$ref": "#/components/schemas/AmountDto"
          },
          "destination": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "FIAT",
              "CRYPTO"
            ]
          },
          "dashboardExperience": {
            "type": "boolean"
          },
          "paymentRail": {
            "type": "string",
            "enum": [
              "PIX",
              "SPEI",
              "WIRE",
              "RTP",
              "COP",
              "CVU",
              "LOCAL_EXCHANGE",
              "CRYPTO_INTERNAL_TRANSFER",
              "POLYGON",
              "ETH",
              "TRON",
              "STELLAR",
              "UNKNOWN",
              "ACH",
              "SWIFT",
              "BASE",
              "SOLANA",
              "CALIZA_WALLET",
              "MAIN_CALIZA_WALLET",
              "ANY"
            ]
          },
          "alias": {
            "type": "string"
          },
          "fundingMethod": {
            "type": "string",
            "enum": [
              "PIX",
              "SPEI",
              "WIRE",
              "RTP",
              "COP",
              "CVU",
              "LOCAL_EXCHANGE",
              "CRYPTO_INTERNAL_TRANSFER",
              "POLYGON",
              "ETH",
              "TRON",
              "STELLAR",
              "UNKNOWN",
              "ACH",
              "SWIFT",
              "BASE",
              "SOLANA",
              "CALIZA_WALLET",
              "MAIN_CALIZA_WALLET",
              "ANY"
            ]
          },
          "achSameDay": {
            "type": "boolean",
            "description": "When true, requests same-day ACH settlement instead of the default 1–2 business day settlement. Only applicable when the payment rail is ACH. When set on the simulation, this value automatically carries over to the transaction without needing to re-specify it in the TransactionRequest."
          },
          "customFees": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "payorId": {
            "type": "string",
            "description": "The ID of the sponsor beneficiary funding the payment — your integrator's main beneficiary. Provide it to process the payment as Payment On Behalf Of (POBO): Caliza funds the payment from your main beneficiary while it runs through the account named in `beneficiaryId`. Must differ from `beneficiaryId`. Omit it for a standard payment."
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "description": "JWT Bearer token authentication. Include your access token in the Authorization header:\n\n`Authorization: Bearer YOUR_ACCESS_TOKEN`\n\nTokens are obtained through the Caliza authentication flow and typically expire after 24 hours.\nRefresh your token before expiration to maintain uninterrupted access.\n",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}
```