Create Pay-In
curl --request POST \
--url https://test-api-kore.kravata.co/api/v1/admin/fiats/{user_id}/payin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 100000,
"currency": "COP",
"bank": "{{pse_bank_code}}",
"redirectUrl": "https://app.kravata.co/"
}
'import requests
url = "https://test-api-kore.kravata.co/api/v1/admin/fiats/{user_id}/payin"
payload = {
"amount": 100000,
"currency": "COP",
"bank": "{{pse_bank_code}}",
"redirectUrl": "https://app.kravata.co/"
}
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: 100000,
currency: 'COP',
bank: '{{pse_bank_code}}',
redirectUrl: 'https://app.kravata.co/'
})
};
fetch('https://test-api-kore.kravata.co/api/v1/admin/fiats/{user_id}/payin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "2a6777d2-a9d6-426d-b4e5-edd5124b613e",
"status": "CASHININIT",
"currency": "COP",
"amount": 100000,
"paymentMethod": "PSE",
"pseLink": "https://registro.desarrollo.pse.com.co/PSENF/index.html?enc=lndJwmelhJEXv02LyLwiExk%2fJuRztgJmSlsbEKi04Ug%3d"
}Payments
Create Pay-In
Creates a pay-in to collect fiat from one of your users. For PSE, the response includes the pseLink the user must open to pay.
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 |
|---|---|---|---|
| amount | number | Yes | Amount to collect. |
| currency | string | Yes | Fiat currency (COP). |
| paymentMethod | string | No | Rail used to collect (e.g. PSE, NEQUI, DAVIPLATA). |
| bank | string | No | Bank code from GET /admin/banks. Required for PSE. |
| redirectUrl | string | No | Where the user returns after paying. |
| phone | string | No | Phone number, for NEQUI / DAVIPLATA. |
| externalReference | string | No | Your own reference for reconciliation. |
| expirationDate | string | No | Expiration of the payment request. |
Response
| Field | Description |
|---|---|
| id | Identifier of the pay-in. |
| status | Initial status (PENDING). |
| currency / amount | Amount to collect. |
| paymentMethod | Rail used. |
| pseLink | Payment link for PSE. |
| externalReference | Your reference, if sent. |
POST
/
api
/
v1
/
admin
/
fiats
/
{user_id}
/
payin
Create Pay-In
curl --request POST \
--url https://test-api-kore.kravata.co/api/v1/admin/fiats/{user_id}/payin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 100000,
"currency": "COP",
"bank": "{{pse_bank_code}}",
"redirectUrl": "https://app.kravata.co/"
}
'import requests
url = "https://test-api-kore.kravata.co/api/v1/admin/fiats/{user_id}/payin"
payload = {
"amount": 100000,
"currency": "COP",
"bank": "{{pse_bank_code}}",
"redirectUrl": "https://app.kravata.co/"
}
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: 100000,
currency: 'COP',
bank: '{{pse_bank_code}}',
redirectUrl: 'https://app.kravata.co/'
})
};
fetch('https://test-api-kore.kravata.co/api/v1/admin/fiats/{user_id}/payin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "2a6777d2-a9d6-426d-b4e5-edd5124b613e",
"status": "CASHININIT",
"currency": "COP",
"amount": 100000,
"paymentMethod": "PSE",
"pseLink": "https://registro.desarrollo.pse.com.co/PSENF/index.html?enc=lndJwmelhJEXv02LyLwiExk%2fJuRztgJmSlsbEKi04Ug%3d"
}Authorizations
Access token from POST /api/v1/client/token.

