> For the complete documentation index, see [llms.txt](https://docs.finpay.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.finpay.id/api-reference/finpay-pg-rest-api/virtual-account.md).

# Virtual Account

Virtual account management APIs

## Register Virtual Account

> Create a new virtual account for payment

```json
{"openapi":"3.0.3","info":{"title":"Finpay Payment Gateway API","version":"1.0.0"},"tags":[{"name":"Virtual Account","description":"Virtual account management APIs"}],"servers":[{"url":"https://devo.finnet.co.id","description":"Development Server"},{"url":"https://live.finnet.co.id","description":"Production Server"}],"security":[{"BasicAuth":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Basic authentication using Merchant ID and Merchant Key"}},"schemas":{"VARegisterRequest":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/CustomerInfo"},"sourceOfFunds":{"$ref":"#/components/schemas/SourceOfFunds"}}},"CustomerInfo":{"type":"object","properties":{"id":{"type":"string","description":"Customer ID"},"email":{"type":"string","format":"email","description":"Customer email"},"firstName":{"type":"string","description":"Customer first name"},"lastName":{"type":"string","description":"Customer last name"},"mobilePhone":{"type":"string","description":"Customer mobile phone"}}},"SourceOfFunds":{"type":"object","properties":{"type":{"type":"string","description":"Payment method type"},"paymentCode":{"type":"string","description":"Payment code for VA operations"}}},"VARegisterResponse":{"allOf":[{"$ref":"#/components/schemas/StandardResponse"},{"type":"object","properties":{"paymentCode":{"type":"string","description":"Generated payment code"}}}]},"StandardResponse":{"type":"object","properties":{"responseCode":{"type":"string","description":"Response code"},"responseMessage":{"type":"string","description":"Response message"},"processingTime":{"type":"number","description":"Processing time in seconds"}}}}},"paths":{"/pg/payment/card/openpayment/register":{"post":{"tags":["Virtual Account"],"summary":"Register Virtual Account","description":"Create a new virtual account for payment","operationId":"registerVA","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VARegisterRequest"}}}},"responses":{"200":{"description":"Virtual account registered successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VARegisterResponse"}}}}}}}}}
```

## Update Virtual Account

> Update existing virtual account details

```json
{"openapi":"3.0.3","info":{"title":"Finpay Payment Gateway API","version":"1.0.0"},"tags":[{"name":"Virtual Account","description":"Virtual account management APIs"}],"servers":[{"url":"https://devo.finnet.co.id","description":"Development Server"},{"url":"https://live.finnet.co.id","description":"Production Server"}],"security":[{"BasicAuth":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Basic authentication using Merchant ID and Merchant Key"}},"schemas":{"VAUpdateRequest":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/CustomerInfo"},"sourceOfFunds":{"$ref":"#/components/schemas/SourceOfFunds"}}},"CustomerInfo":{"type":"object","properties":{"id":{"type":"string","description":"Customer ID"},"email":{"type":"string","format":"email","description":"Customer email"},"firstName":{"type":"string","description":"Customer first name"},"lastName":{"type":"string","description":"Customer last name"},"mobilePhone":{"type":"string","description":"Customer mobile phone"}}},"SourceOfFunds":{"type":"object","properties":{"type":{"type":"string","description":"Payment method type"},"paymentCode":{"type":"string","description":"Payment code for VA operations"}}},"VAUpdateResponse":{"allOf":[{"$ref":"#/components/schemas/StandardResponse"},{"type":"object","properties":{"paymentCode":{"type":"string","description":"Updated payment code"}}}]},"StandardResponse":{"type":"object","properties":{"responseCode":{"type":"string","description":"Response code"},"responseMessage":{"type":"string","description":"Response message"},"processingTime":{"type":"number","description":"Processing time in seconds"}}}}},"paths":{"/pg/payment/card/openpayment/update":{"post":{"tags":["Virtual Account"],"summary":"Update Virtual Account","description":"Update existing virtual account details","operationId":"updateVA","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VAUpdateRequest"}}}},"responses":{"200":{"description":"Virtual account updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VAUpdateResponse"}}}}}}}}}
```

## Check Virtual Account Status

> Check the status of a virtual account

```json
{"openapi":"3.0.3","info":{"title":"Finpay Payment Gateway API","version":"1.0.0"},"tags":[{"name":"Virtual Account","description":"Virtual account management APIs"}],"servers":[{"url":"https://devo.finnet.co.id","description":"Development Server"},{"url":"https://live.finnet.co.id","description":"Production Server"}],"security":[{"BasicAuth":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Basic authentication using Merchant ID and Merchant Key"}},"schemas":{"VACheckResponse":{"allOf":[{"$ref":"#/components/schemas/StandardResponse"},{"type":"object","properties":{"data":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/CustomerInfo"},"sourceOfFunds":{"$ref":"#/components/schemas/SourceOfFunds"}}}}}]},"StandardResponse":{"type":"object","properties":{"responseCode":{"type":"string","description":"Response code"},"responseMessage":{"type":"string","description":"Response message"},"processingTime":{"type":"number","description":"Processing time in seconds"}}},"CustomerInfo":{"type":"object","properties":{"id":{"type":"string","description":"Customer ID"},"email":{"type":"string","format":"email","description":"Customer email"},"firstName":{"type":"string","description":"Customer first name"},"lastName":{"type":"string","description":"Customer last name"},"mobilePhone":{"type":"string","description":"Customer mobile phone"}}},"SourceOfFunds":{"type":"object","properties":{"type":{"type":"string","description":"Payment method type"},"paymentCode":{"type":"string","description":"Payment code for VA operations"}}}}},"paths":{"/pg/payment/card/openpayment/check/{sofId}/{paymentCode}":{"get":{"tags":["Virtual Account"],"summary":"Check Virtual Account Status","description":"Check the status of a virtual account","operationId":"checkVA","parameters":[{"name":"sofId","in":"path","required":true,"schema":{"type":"string"},"description":"Source of funds ID (e.g., vabca, vamandiri)"},{"name":"paymentCode","in":"path","required":true,"schema":{"type":"string"},"description":"Payment code to check"}],"responses":{"200":{"description":"Virtual account status retrieved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VACheckResponse"}}}}}}}}}
```

## Delete Virtual Account

> Delete a virtual account

```json
{"openapi":"3.0.3","info":{"title":"Finpay Payment Gateway API","version":"1.0.0"},"tags":[{"name":"Virtual Account","description":"Virtual account management APIs"}],"servers":[{"url":"https://devo.finnet.co.id","description":"Development Server"},{"url":"https://live.finnet.co.id","description":"Production Server"}],"security":[{"BasicAuth":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Basic authentication using Merchant ID and Merchant Key"}},"schemas":{"VADeleteResponse":{"allOf":[{"$ref":"#/components/schemas/StandardResponse"}]},"StandardResponse":{"type":"object","properties":{"responseCode":{"type":"string","description":"Response code"},"responseMessage":{"type":"string","description":"Response message"},"processingTime":{"type":"number","description":"Processing time in seconds"}}}}},"paths":{"/pg/payment/card/openpayment/delete/{sofId}/{paymentCode}":{"get":{"tags":["Virtual Account"],"summary":"Delete Virtual Account","description":"Delete a virtual account","operationId":"deleteVA","parameters":[{"name":"sofId","in":"path","required":true,"schema":{"type":"string"},"description":"Source of funds ID (e.g., vabca, vamandiri)"},{"name":"paymentCode","in":"path","required":true,"schema":{"type":"string"},"description":"Payment code to delete"}],"responses":{"200":{"description":"Virtual account deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VADeleteResponse"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.finpay.id/api-reference/finpay-pg-rest-api/virtual-account.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
