> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidoc-v1.maniscloud.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidoc-v1.maniscloud.com/_mcp/server.

# Create new VA

POST https://api/v1/virtual-accounts
Content-Type: application/json

This API creates a new virtual account for a specified customer via a selected Payment Service Provider (PSP). It returns the details of the virtual account including the account number and related metadata.

**Request Body:**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `pspId` | string | Yes | Identifier for the Payment Service Provider (e.g., `"finmo"`). |
| `customerId` | string | Required for Finmo only. It's optional for others | Unique identifier of the customer for whom the virtual account is created. |
| `currency` | string | Yes | ISO 4217 currency code for the virtual account (e.g., `"SGD"`). |
| `country` | string | Yes | ISO 3166-1 alpha-2 country code (e.g., `"SG"` for Singapore). |

Reference: https://apidoc-v1.maniscloud.com/manis-unified-api-v-1-0/virtual-account/create-new-va

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/v1/virtual-accounts:
    post:
      operationId: create-new-va
      summary: Create new VA
      description: >-
        This API creates a new virtual account for a specified customer via a
        selected Payment Service Provider (PSP). It returns the details of the
        virtual account including the account number and related metadata.


        **Request Body:**


        | Field | Type | Required | Description |

        | --- | --- | --- | --- |

        | `pspId` | string | Yes | Identifier for the Payment Service Provider
        (e.g., `"finmo"`). |

        | `customerId` | string | Required for Finmo only. It's optional for
        others | Unique identifier of the customer for whom the virtual account
        is created. |

        | `currency` | string | Yes | ISO 4217 currency code for the virtual
        account (e.g., `"SGD"`). |

        | `country` | string | Yes | ISO 3166-1 alpha-2 country code (e.g.,
        `"SG"` for Singapore). |
      tags:
        - subpackage_virtualAccount
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Virtual Account_Create new
                  VA_Response_200
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                pspId:
                  type: string
                country:
                  type: string
                currency:
                  type: string
                customerId:
                  type: string
                  format: uuid
              required:
                - pspId
                - country
                - currency
                - customerId
servers:
  - url: https:/
    description: https://{url}
components:
  schemas:
    Virtual Account_Create new VA_Response_200:
      type: object
      properties:
        id:
          type: string
        pspId:
          type: string
        country:
          type: string
        currency:
          type: string
        methodId:
          type: string
        createdAt:
          type: string
          format: date-time
        createdBy:
          type: string
        updatedAt:
          type: string
          format: date-time
        updatedBy:
          type: string
        customerId:
          type: string
        pspVirtualAccountId:
          type: string
      required:
        - id
        - pspId
        - country
        - currency
        - methodId
        - createdAt
        - createdBy
        - updatedAt
        - updatedBy
        - customerId
        - pspVirtualAccountId
      title: Virtual Account_Create new VA_Response_200

```

## Examples

### Nium: create new VA



**Request**

```json
undefined
```

**Response**

```json
{
  "id": "virtac-01k2hd04qjsvbe15ks96fbbpez",
  "pspId": "nium",
  "country": "SG",
  "currency": "SGD",
  "methodId": "psppin-07VV0N5N00ABCDEFGHJKMN0012",
  "createdAt": "2025-08-13T09:43:22.098Z",
  "createdBy": "merch-01k0rc69p8a5m6k5c9h1d3rf90",
  "updatedAt": "2025-08-13T09:43:22.098Z",
  "updatedBy": "merch-01k0rc69p8a5m6k5c9h1d3rf90",
  "customerId": "cus-01k0s6n7ad06fcqpwb7qrgxn02",
  "pspVirtualAccountId": "8bc26e5d-da7d-4da3-b18e-688befba33f7"
}
```

**SDK Code**

```python Nium: create new VA
import requests

url = "https://https/api/v1/virtual-accounts"

headers = {"Content-Type": "application/json"}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Nium: create new VA
const url = 'https://https/api/v1/virtual-accounts';
const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Nium: create new VA
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://https/api/v1/virtual-accounts"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Nium: create new VA
require 'uri'
require 'net/http'

url = URI("https://https/api/v1/virtual-accounts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'

response = http.request(request)
puts response.read_body
```

```java Nium: create new VA
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/api/v1/virtual-accounts")
  .header("Content-Type", "application/json")
  .asString();
```

```php Nium: create new VA
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/api/v1/virtual-accounts', [
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Nium: create new VA
using RestSharp;

var client = new RestClient("https://https/api/v1/virtual-accounts");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift Nium: create new VA
import Foundation

let headers = ["Content-Type": "application/json"]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/api/v1/virtual-accounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Finmo: Create new VA



**Request**

```json
undefined
```

**Response**

```json
{
  "id": "virtac-01k2hd2sp9yx3ms1grbb2zc0gm",
  "pspId": "finmo",
  "country": "SG",
  "currency": "SGD",
  "methodId": "psppin-07VV0N5N00ABCDEFGHJKMN0011",
  "createdAt": "2025-08-13T09:44:49.097Z",
  "createdBy": "merch-01k0rc69p8a5m6k5c9h1d3rf90",
  "updatedAt": "2025-08-13T09:44:49.097Z",
  "updatedBy": "merch-01k0rc69p8a5m6k5c9h1d3rf90",
  "customerId": "cus-01k0vdamg284q4ght115zt285p",
  "pspVirtualAccountId": "va_bb07ab9b4f00487597741efffe2aab67"
}
```

**SDK Code**

```python Finmo: Create new VA
import requests

url = "https://https/api/v1/virtual-accounts"

headers = {"Content-Type": "application/json"}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Finmo: Create new VA
const url = 'https://https/api/v1/virtual-accounts';
const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Finmo: Create new VA
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://https/api/v1/virtual-accounts"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Finmo: Create new VA
require 'uri'
require 'net/http'

url = URI("https://https/api/v1/virtual-accounts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'

response = http.request(request)
puts response.read_body
```

```java Finmo: Create new VA
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/api/v1/virtual-accounts")
  .header("Content-Type", "application/json")
  .asString();
```

```php Finmo: Create new VA
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/api/v1/virtual-accounts', [
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Finmo: Create new VA
using RestSharp;

var client = new RestClient("https://https/api/v1/virtual-accounts");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift Finmo: Create new VA
import Foundation

let headers = ["Content-Type": "application/json"]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/api/v1/virtual-accounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Virtual Account_Create new VA_example



**Request**

```json
{
  "pspId": "nium",
  "country": "SG",
  "currency": "SGD",
  "customerId": "087f42ee-7d28-4f45-aa28-41dddf4d672c"
}
```

**Response**

```json
{
  "id": "virtac-01k2hd04qjsvbe15ks96fbbpez",
  "pspId": "nium",
  "country": "SG",
  "currency": "SGD",
  "methodId": "psppin-07VV0N5N00ABCDEFGHJKMN0012",
  "createdAt": "2025-08-13T09:43:22.098Z",
  "createdBy": "merch-01k0rc69p8a5m6k5c9h1d3rf90",
  "updatedAt": "2025-08-13T09:43:22.098Z",
  "updatedBy": "merch-01k0rc69p8a5m6k5c9h1d3rf90",
  "customerId": "cus-01k0s6n7ad06fcqpwb7qrgxn02",
  "pspVirtualAccountId": "8bc26e5d-da7d-4da3-b18e-688befba33f7"
}
```

**SDK Code**

```python Virtual Account_Create new VA_example
import requests

url = "https://https/api/v1/virtual-accounts"

payload = {
    "pspId": "nium",
    "country": "SG",
    "currency": "SGD",
    "customerId": "087f42ee-7d28-4f45-aa28-41dddf4d672c"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Virtual Account_Create new VA_example
const url = 'https://https/api/v1/virtual-accounts';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"pspId":"nium","country":"SG","currency":"SGD","customerId":"087f42ee-7d28-4f45-aa28-41dddf4d672c"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Virtual Account_Create new VA_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://https/api/v1/virtual-accounts"

	payload := strings.NewReader("{\n  \"pspId\": \"nium\",\n  \"country\": \"SG\",\n  \"currency\": \"SGD\",\n  \"customerId\": \"087f42ee-7d28-4f45-aa28-41dddf4d672c\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Virtual Account_Create new VA_example
require 'uri'
require 'net/http'

url = URI("https://https/api/v1/virtual-accounts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"pspId\": \"nium\",\n  \"country\": \"SG\",\n  \"currency\": \"SGD\",\n  \"customerId\": \"087f42ee-7d28-4f45-aa28-41dddf4d672c\"\n}"

response = http.request(request)
puts response.read_body
```

```java Virtual Account_Create new VA_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://https/api/v1/virtual-accounts")
  .header("Content-Type", "application/json")
  .body("{\n  \"pspId\": \"nium\",\n  \"country\": \"SG\",\n  \"currency\": \"SGD\",\n  \"customerId\": \"087f42ee-7d28-4f45-aa28-41dddf4d672c\"\n}")
  .asString();
```

```php Virtual Account_Create new VA_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://https/api/v1/virtual-accounts', [
  'body' => '{
  "pspId": "nium",
  "country": "SG",
  "currency": "SGD",
  "customerId": "087f42ee-7d28-4f45-aa28-41dddf4d672c"
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Virtual Account_Create new VA_example
using RestSharp;

var client = new RestClient("https://https/api/v1/virtual-accounts");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"pspId\": \"nium\",\n  \"country\": \"SG\",\n  \"currency\": \"SGD\",\n  \"customerId\": \"087f42ee-7d28-4f45-aa28-41dddf4d672c\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Virtual Account_Create new VA_example
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [
  "pspId": "nium",
  "country": "SG",
  "currency": "SGD",
  "customerId": "087f42ee-7d28-4f45-aa28-41dddf4d672c"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://https/api/v1/virtual-accounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```