Home
POST/v2/beneficiary/add-virtual-account/{beneficiaryID}

Add Virtual Account

Adds a virtual account to an existing beneficiary. Use Get Required Fields (Add Virtual Account) for the field list.

Path variables

FieldTypeRequiredPossible valuesDescription
beneficiaryIDstringRequired{beneficiaryID}Unique beneficiary ID returned from Create Beneficiary or List Beneficiaries.

Headers

FieldTypeRequiredPossible valuesDescription
AuthorizationstringRequiredBearer {SessionToken}Session token from Get Session Token, sent as `Authorization: Bearer {SessionToken}`. Replace with the value from the `x-refresh-token` response header when present (typically within 2 minutes of expiry). Secured calls must use the same IP as the auth request.

Request body

FieldTypeRequiredPossible valuesDescription
fieldsobjectRequired[{ "field": "FieldName", "value": "..." }]Use Get Required Fields (Add Virtual Account) (POST /v2/beneficiary/get-required-fields-for-virtual-account) endpoint to get the field values. Structure differs for individual vs business beneficiaries (see examples in Postman).

Example request

[
  {
    "field": "Beneficiary_Type",
    "value": "business"
  },
  {
    "field": "Beneficiary_Document",
    "value": [
      {
        "field": "Document_Type",
        "value": "Cretificate_Of_Incorporation"
      },
  …

Example above is for a business beneficiary. For individual beneficiaries, include Beneficiary_DOB and use ID_Type, ID_Number, ID_Expiration_Date, Front_Document, and Back_Document inside Beneficiary_Document (upload files first via POST /v2/files/upload to obtain FileId values).

Response

FieldTypePossible valuesDescription
ResponseCodeinteger200 | 201 | 204 | 400 | 401 | 403 | 404 | 410 | 422 | 500 | 301 | 503 | 422API result code in the response envelope. Indicates success or the error category (e.g. 200 success, 400 bad request, 401 unauthorized).
ResponseMessagestringSuccess | Created | NoContent | BadRequest | Unauthorized | Forbidden | NotFound | Gone | UnprocessableContent | ServerError | ResourceMoved | ServiceUnAvailable | UnProcessableEntityHuman-readable label paired with ResponseCode (e.g. Success, BadRequest, Unauthorized). Use with ResponseCode to interpret the outcome.
ResponseDataobjectPlease refer to below example for response bodyConfirmation message when the virtual account is added successfully.

Example response

{
  "ResponseCode": 200,
  "ResponseMessage": "Success",
  "ResponseData": "Beneficiary successfully updated"
}

Requires `Authorization: Bearer {SessionToken}` from Get Session Token. Refresh via `x-refresh-token` when supplied; use the same client IP as authentication.

Search guide books, endpoints, paths, or parameters

↑↓navigateopenEscclose