API Integration
Integration flow
1
Cashout creation
curl -L \
--request POST \
--url 'https://api-stg.onekeypayments.com/v3/cashout' \
--header 'Content-Type: application/json' \
--header 'Payload-Signature: text' \
--data '{
"login": "your_cashout_login",
"pass": "your_cashout_pass",
"external_id": "30000000001",
"country": "MX",
"currency": "MXN",
"amount": 100,
"document_id": "848392783",
"bank_account": "021790064060296642",
"beneficiary_name": "Luis",
"beneficiary_lastname": "Miguel",
"notification_url": "https://merchant.site/webhooks/onekeypayments",
"type": "json"
}'2
3
Retrieve the cashout status
curl -L \
--request POST \
--url 'https://api-stg.onekeypayments.com/v3/cashout/status' \
--header 'Content-Type: application/json' \
--header 'Payload-Signature: text' \
--data '{
"login": "your_cashout_login",
"pass": "your_cashout_pass",
"cashout_id": 8405147
}'{
"cashout_status": 1,
"cashout_status_description": "Completed"
}Last updated
Was this helpful?

