---
title: "Register Virtual Account"
method: POST
path: "/pg/payment/card/openpayment/register"
tags: ["Virtual Account"]
---

# Register Virtual Account

`POST /pg/payment/card/openpayment/register`

## Request

- Base URL: `https://snapstag.finnet.co.id`
- URL: `https://snapstag.finnet.co.id/pg/payment/card/openpayment/register`
- Auth: none required
- TypeScript: <https://skmtc.dev/finpay/apis/snap/docs/pg/payment/card/openpayment/register/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new virtual account for payment

## Request body

- VARegisterRequest
  - `customer` CustomerInfo
    - `id` string: Customer ID
    - `email` string, email: Customer email
    - `firstName` string: Customer first name
    - `lastName` string: Customer last name
    - `mobilePhone` string: Customer mobile phone
  - `sourceOfFunds` SourceOfFunds
    - `type` string: Payment method type
    - `paymentCode` string: Payment code for VA operations

## Response `200`

Virtual account registered successfully

- VARegisterResponse
  - `responseCode` string: Response code
  - `responseMessage` string: Response message
  - `processingTime` number: Processing time in seconds
  - `paymentCode` string: Generated payment code

---

[API](https://skmtc.dev/finpay/apis/snap.md) - [All operations](https://skmtc.dev/finpay/apis/snap/llms.txt) - [OpenAPI document](https://skmtc.dev/finpay/apis/snap/revisions/c03252461d4f?raw)
