Create Deposit
curl --request POST \
--url https://test-api-kore.kravata.co/api/v1/admin/operation/{user_id}/deposit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 500000,
"symbolOrigin": "USD",
"accountId": "{{wallet_id}}",
"paymentMethod": "BREB",
"redirectUrl": "https://app.kravata.co/",
"bankCode": "1022"
}
'import requests
url = "https://test-api-kore.kravata.co/api/v1/admin/operation/{user_id}/deposit"
payload = {
"amount": 500000,
"symbolOrigin": "USD",
"accountId": "{{wallet_id}}",
"paymentMethod": "BREB",
"redirectUrl": "https://app.kravata.co/",
"bankCode": "1022"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 500000,
symbolOrigin: 'USD',
accountId: '{{wallet_id}}',
paymentMethod: 'BREB',
redirectUrl: 'https://app.kravata.co/',
bankCode: '1022'
})
};
fetch('https://test-api-kore.kravata.co/api/v1/admin/operation/{user_id}/deposit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Liquidity Ramps
Create Deposit
Creates a deposit: the user pays in fiat and the funds are credited, converted to the corresponding digital asset, to one of the user’s custody wallets.
Request
| Field | Type | Required | Description |
|---|---|---|---|
| Authorization | Header | Yes | Bearer <access_token> obtained from POST /api/v1/client/token. |
| user_id | Path | Yes | User who makes the deposit. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| amount | number | Yes | Amount to deposit. |
| accountId | uuid | No | Destination custody wallet of the user. |
| symbolOrigin | string | No | Fiat paid (e.g. COP, USD). |
| symbolDestination | string | No | Asset credited (e.g. COPM, USDC). |
| paymentMethod | string | No | PSE (default), BREB, NEQUI, DAVIPLATA, ACH, WIRE or SWIFT. |
| bankCode | string | No | Bank code from GET /admin/banks. Required for PSE. |
| redirectUrl | string | No | Where the user returns after paying (PSE). |
| phone | string | No | Phone number, for NEQUI / DAVIPLATA. |
| quoteId | uuid | No | Quote to lock the rate. |
| executionMode | string | No | NORMAL (default) or INVERSE. |
Response
The response is an envelope with three keys:
| Field | Description |
|---|---|
| operation | The created operation: id, userId, numberCode, originId, destinationId, symbolOrigin, symbolDestination, amountOrigin, amountDestination, rate, paymentMethod, status, direction, registerDate, depositInstructions, treasuryItems (cost breakdown) and events. |
| tierEscalation | null when the operation fits the user’s current compliance tier. Otherwise it describes the action the user must complete to raise their limits (actionType: FORM_URL, QR_APP, VIDEO_KYC, DOC_UPLOAD, NOTIFY_ONLY or BLOCK, plus actionPayload, message and expiresAt). |
| depositInfo | Present when the user has to send funds: paymentMethod, the applied quote and the depositInstructions. null otherwise. |
Errors
| Status | When |
|---|---|
| 400 | Insufficient funds in the origin. |
| 403 | The user does not exist or is not APPROVED. |
| 422 | Invalid body, amount ≤ 0, asset pair not enabled for your account, destination not registered/approved/owned by the user, or the operation exceeds the user’s compliance tier limits. |
POST
/
api
/
v1
/
admin
/
operation
/
{user_id}
/
deposit
Create Deposit
curl --request POST \
--url https://test-api-kore.kravata.co/api/v1/admin/operation/{user_id}/deposit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 500000,
"symbolOrigin": "USD",
"accountId": "{{wallet_id}}",
"paymentMethod": "BREB",
"redirectUrl": "https://app.kravata.co/",
"bankCode": "1022"
}
'import requests
url = "https://test-api-kore.kravata.co/api/v1/admin/operation/{user_id}/deposit"
payload = {
"amount": 500000,
"symbolOrigin": "USD",
"accountId": "{{wallet_id}}",
"paymentMethod": "BREB",
"redirectUrl": "https://app.kravata.co/",
"bankCode": "1022"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 500000,
symbolOrigin: 'USD',
accountId: '{{wallet_id}}',
paymentMethod: 'BREB',
redirectUrl: 'https://app.kravata.co/',
bankCode: '1022'
})
};
fetch('https://test-api-kore.kravata.co/api/v1/admin/operation/{user_id}/deposit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
