Skip to Content
KingsPay Docs

Create Virtual Account

Create a new virtual account.

POST
/v1/virtual-accounts

Create a new virtual account.

Authorization

API Key
headerAuthorizationBearer <token>

Your API key for the API. You can find it in your integration settings. Starts with sk_

Header Parameters

Idempotency-Key?string

Unique key to safely retry this request. Repeating a key returns the original response instead of performing the operation again.

Request Body

application/json
  1. body
name*string
payment_method*string
number*string
min_amount*number
Formatdouble
Default10000
max_amount*number
Formatdouble
Default100000000
expires_at?|
Formatdate-time

Response Body

OK

application/json
  1. response
data*
status?string
Example Request
curl -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"}