Mock FIAT Deposits
To simulate fiat deposits in the Caliza sandbox environment, use the sandbox transaction endpoints. PIX and SPEI endpoints require a pre-created transaction ID, while USD deposit endpoints do not.
POST /v1/transactions/sandbox/pix
/v1/transactions/sandbox/pixCreates a fake PIX deposit (Brazil). Requires a pre-created transaction ID.
curl -X POST "https://api.sandbox.caliza.com/core-api/v1/transactions/sandbox/pix" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {{ACCESS_TOKEN}}" \
-d '{
"transactionId": "{{TRANSACTION_ID}}",
"documentId": "{{DOCUMENT_ID}}"
}'Request body:
| Field | Type | Required | Description |
|---|---|---|---|
transactionId | string | Yes | The transaction ID to mock the deposit for |
documentId | string | No | Document ID (CPF/CNPJ) |
POST /v1/transactions/sandbox/spei
/v1/transactions/sandbox/speiCreates a fake SPEI deposit (Mexico). Requires a pre-created transaction ID.
curl -X POST "https://api.sandbox.caliza.com/core-api/v1/transactions/sandbox/spei" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {{ACCESS_TOKEN}}" \
-d '{
"transactionId": "{{TRANSACTION_ID}}"
}'Request body:
| Field | Type | Required | Description |
|---|---|---|---|
transactionId | string | Yes | The transaction ID to mock the deposit for |
documentId | string | No | Document ID (not used for SPEI) |
POST /v1/transactions/sandbox/usd-deposit
/v1/transactions/sandbox/usd-depositCreates a fake USD deposit via WIRE, ACH, or SWIFT. Does not require a pre-created transaction ID.
curl -X POST "https://api.sandbox.caliza.com/core-api/v1/transactions/sandbox/usd-deposit" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {{ACCESS_TOKEN}}" \
-d '{
"beneficiaryId": "{{BENEFICIARY_ID}}",
"amount": 100.0,
"accountNumber": "{{ACCOUNT_NUMBER}}",
"paymentRail": "WIRE"
}'Request body:
| Field | Type | Required | Description |
|---|---|---|---|
beneficiaryId | string | Yes | The beneficiary ID to credit the deposit to |
amount | number | Yes | The deposit amount in USD |
accountNumber | string | Yes | The virtual account number (retrieved from GET /v1/beneficiaries/{beneficiaryId}/virtualAccounts) |
paymentRail | string | Yes | Payment rail type: WIRE, ACH, or SWIFT |
All fiat deposit mock endpoints return void (HTTP 200 with no body on success). These are sandbox-only endpoints used to simulate incoming deposits for testing purposes. The completion notification arrives via webhook as PAYMENT_IN_COMPLETED.
Crypto deposits (sandbox)
For crypto deposits, you don't need to call specific endpoints to mock the behavior. You can call PUT /v1/transactions/{transactionId}/depositTransactionHash and it'll mock everything:
curl -X PUT "https://api.sandbox.caliza.com/core-api/v1/transactions/{{TRANSACTION_ID}}/depositTransactionHash" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {{ACCESS_TOKEN}}" \
-d '{
"transactionHash": "{{TRANSACTION_HASH}}"
}'Updated 9 days ago
