Create Payment
curl --request POST \
--url https://test-api-kore.kravata.co/api/v1/admin/fiats/{user_id}/payment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"asset": "COP",
"amount": 400000,
"paymentMethod": "PSE",
"bank": "{{pse_bank_code}}",
"destinationId": "{{destination_account_id}}",
"transactionPurpose": "Cuota mensual"
}
'import requests
url = "https://test-api-kore.kravata.co/api/v1/admin/fiats/{user_id}/payment"
payload = {
"asset": "COP",
"amount": 400000,
"paymentMethod": "PSE",
"bank": "{{pse_bank_code}}",
"destinationId": "{{destination_account_id}}",
"transactionPurpose": "Cuota mensual"
}
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({
asset: 'COP',
amount: 400000,
paymentMethod: 'PSE',
bank: '{{pse_bank_code}}',
destinationId: '{{destination_account_id}}',
transactionPurpose: 'Cuota mensual'
})
};
fetch('https://test-api-kore.kravata.co/api/v1/admin/fiats/{user_id}/payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "39cd20e4-a52a-48b1-9463-667b14cc9e5e",
"status": "CASHININIT",
"paymentMethod": "PSE",
"asset": "COP",
"amount": 400000,
"pseLink": "https://registro.desarrollo.pse.com.co/PSENF/index.html?enc=cl6nXJFR92YL6Sj62YhibLe0COmiYV0boEbmUEwR%2bfI%3d"
}Payments
Create Payment
Creates a payment that, in a single request, collects the funds from the user (pay-in) and sends them to a destination account (payout).
Request
| Field | Type | Required | Description |
|---|---|---|---|
| Authorization | Header | Yes | Bearer <access_token> obtained from POST /api/v1/client/token. |
| user_id | Path | Yes | User who pays. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| asset | string | Yes | Fiat currency (e.g. COP). |
| amount | number | Yes | Amount of the payment. |
| paymentMethod | string | Yes | Rail used to collect the funds (e.g. PSE, BREB). |
| bank | string | No | Bank code from GET /admin/banks. Required for PSE. |
| destinationId | uuid | No | Registered, APPROVED destination account. Send this or accountExternalId. |
| accountExternalId | string | No | External identifier of the destination account. |
| transactionPurpose | string | No | Description of the payment. |
| redirectUrl | string | No | Where the user returns after paying. |
Response
| Field | Description |
|---|---|
| id | Identifier of the payment. |
| status | Initial status (PENDING). |
| asset / amount | Amount of the payment. |
| paymentMethod | Rail used. |
| pseLink | Payment link for PSE. |
| brebKey / ownerName | Bre-B key and account holder to pay, for BREB. |
POST
/
api
/
v1
/
admin
/
fiats
/
{user_id}
/
payment
Create Payment
curl --request POST \
--url https://test-api-kore.kravata.co/api/v1/admin/fiats/{user_id}/payment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"asset": "COP",
"amount": 400000,
"paymentMethod": "PSE",
"bank": "{{pse_bank_code}}",
"destinationId": "{{destination_account_id}}",
"transactionPurpose": "Cuota mensual"
}
'import requests
url = "https://test-api-kore.kravata.co/api/v1/admin/fiats/{user_id}/payment"
payload = {
"asset": "COP",
"amount": 400000,
"paymentMethod": "PSE",
"bank": "{{pse_bank_code}}",
"destinationId": "{{destination_account_id}}",
"transactionPurpose": "Cuota mensual"
}
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({
asset: 'COP',
amount: 400000,
paymentMethod: 'PSE',
bank: '{{pse_bank_code}}',
destinationId: '{{destination_account_id}}',
transactionPurpose: 'Cuota mensual'
})
};
fetch('https://test-api-kore.kravata.co/api/v1/admin/fiats/{user_id}/payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "39cd20e4-a52a-48b1-9463-667b14cc9e5e",
"status": "CASHININIT",
"paymentMethod": "PSE",
"asset": "COP",
"amount": 400000,
"pseLink": "https://registro.desarrollo.pse.com.co/PSENF/index.html?enc=cl6nXJFR92YL6Sj62YhibLe0COmiYV0boEbmUEwR%2bfI%3d"
}Authorizations
Access token from POST /api/v1/client/token.
Path Parameters
Body
application/json

