Create VA Group Code#
Creates a sub-ledger group code for a client (merchant). Virtual accounts are later issued under a group code.
Request Body#
| Field | Type | Required | Description |
|---|
clientId | long | Yes | TransactionPoint client ID that will own the group code |
type | string | Yes | Group code type: Normal, Invoice, Utility or Savings. The gateway only checks that it isn't blank; core banking validates the value. |
description | string | Yes | Readable description of the group code. Must not be blank. |
productId | long | Yes | Savings product ID used for the sub-ledger accounts |
customNUBAN | boolean | No (default false) | true means virtual accounts under this group code use NUBANs supplied by the caller. |
Sample Request#
{
"clientId": 18,
"type": "Normal",
"description": "School fees collection",
"productId": 3,
"customNUBAN": false
}
Success Response — 200 OK#
| Field | Type | Description |
|---|
clientId | long | Client that owns the group code |
productId | long | Always 0 in this response (see Notes) |
accountId | string | Collection savings account ID created for the group |
groupCode | string | The generated group code |
{
"clientId": 18,
"productId": 0,
"accountId": "73",
"groupCode": "GC0000018"
}
Request
Add the parameter Authorization
to Headers Example:Authorization: ********************
or
Body Params application/json
{
"clientId": 18,
"type": "Normal",
"description": "School fees collection",
"productId": 3,
"customNUBAN": false
}
Request Code Samples
curl --location '/va/groupcodes' \
--header 'X-Forwarded-For: 102.89.34.10' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"clientId": 18,
"type": "Normal",
"description": "School fees collection",
"productId": 3,
"customNUBAN": false
}'
Responses
{
"clientId": 18,
"productId": 0,
"accountId": "73",
"groupCode": "GC0000018"
}
Modified at 2026-11-02 12:41:29