curl --request POST \
--url https://api.onepay.la/v1/balances/cashout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-idempotency: <x-idempotency>' \
--data '
{
"amount": 123,
"account_id": "<string>"
}
'{
"id": "9e5d2f3a-8c1b-4e6f-9d0a-bc789def1234",
"amount": 500000,
"amount_label": "$500.000",
"status": "pending",
"type": "ACH",
"account": {
"id": "9d0ac58c-2226-4f1c-b305-15e6dc3b47f6",
"subtype": "SAVINGS",
"bank": {
"id": "9957817c-f17e-472b-b531-e3d1490bf757",
"name": "Bancolombia",
"logo": "https://example.com/logo.png"
}
},
"created_at": "2025-02-08T10:30:00.000000Z",
"processed_at": null,
"is_test": false
}
Endpoint para solicitar la dispersión del tu balance de la cuenta de OnePay.
curl --request POST \
--url https://api.onepay.la/v1/balances/cashout \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-idempotency: <x-idempotency>' \
--data '
{
"amount": 123,
"account_id": "<string>"
}
'{
"id": "9e5d2f3a-8c1b-4e6f-9d0a-bc789def1234",
"amount": 500000,
"amount_label": "$500.000",
"status": "pending",
"type": "ACH",
"account": {
"id": "9d0ac58c-2226-4f1c-b305-15e6dc3b47f6",
"subtype": "SAVINGS",
"bank": {
"id": "9957817c-f17e-472b-b531-e3d1490bf757",
"name": "Bancolombia",
"logo": "https://example.com/logo.png"
}
},
"created_at": "2025-02-08T10:30:00.000000Z",
"processed_at": null,
"is_test": false
}
{
"id": "9e5d2f3a-8c1b-4e6f-9d0a-bc789def1234",
"amount": 500000,
"amount_label": "$500.000",
"status": "pending",
"type": "ACH",
"account": {
"id": "9d0ac58c-2226-4f1c-b305-15e6dc3b47f6",
"subtype": "SAVINGS",
"bank": {
"id": "9957817c-f17e-472b-b531-e3d1490bf757",
"name": "Bancolombia",
"logo": "https://example.com/logo.png"
}
},
"created_at": "2025-02-08T10:30:00.000000Z",
"processed_at": null,
"is_test": false
}
Was this page helpful?