Create Virtual Account
Create a new virtual account.
POST
Create a new virtual account.
API Keyheader
AuthorizationBearer <token>Your API key for the API. You can find it in your integration settings. Starts with sk_
Idempotency-Key?stringUnique key to safely retry this request. Repeating a key returns the original response instead of performing the operation again.
application/json- body
name*stringpayment_method*stringnumber*stringmin_amount*numberFormat
doubleDefault
10000max_amount*numberFormat
doubleDefault
100000000expires_at?|Format
date-timeOK
application/json- response
data*status?stringcurl -X POST 'https://api.kingsplatform.net/api/v1/virtual-accounts' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "payment_method": "string", "number": "string", "min_amount": 10000, "max_amount": 100000000}'Example Response
{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65", "payment_method": "string", "number": "string", "name": "string", "type": "string", "amount": null, "min_amount": null, "max_amount": null, "expires_at": null, "paid_at": null }, "status": "string"}List Payouts GET
List payouts, both withdrawals and disbursements, newest first by default. See the Listing, Filtering & Sorting guide for the filter and sort syntax.
List Virtual Accounts GET
List the account's virtual accounts that haven't expired, newest first by default. See the Listing, Filtering & Sorting guide for the filter and sort syntax.