Deposit funds
Account Management
Deposit funds
Credit a user’s ledger account after an external payment has settled.
POST
Deposit funds
Requires
X-Api-Key, X-Api-Secret, and Authorization: Bearer <user-jwt> headers. The JWT identifies whose account receives the credit.Payment provider webhooks (Cobre, IrisBank, Stripe) are handled by Qash’s backend — your integration never receives them. If you want users to pay via a checkout link, contact Qash to discuss the hosted checkout flow.
Request
Body
| Field | Type | Required | Description |
|---|---|---|---|
toAccountId | number | Yes | Account ID to credit — use the id from Create account |
amount | number | Yes | Amount in smallest unit — e.g. 100000 = USD 1,000.00 |
currency | string | Yes | Currency code matching the account’s asset — e.g. "MXN", "USD", "COP" |
provider | string | Yes | Payment provider that settled the deposit — e.g. "irisbank", "cobre", "stripe" |
description | string | Yes | Description of the deposit — e.g. "Top-up via Cobre" |
metadata.payer.documentType | string | No | Payer document type — e.g. "CC", "PASSPORT", "RFC" |
metadata.payer.documentNumber | string | No | Payer document number |
Response
200 OK| Field | Type | Description |
|---|---|---|
id | number | Transaction ID |
status | string | "COMPLETED" — balance updated immediately |
amount | number | Amount credited in smallest unit |
description | string | Description of the operation |
Amounts are always integers in the smallest unit of the currency — cents for USD, centavos for COP. Never use decimals.