1. Merchant
Virtual Account Services
  • Introduction
  • Terminologies
  • Webhooks
  • Authentication
  • Account
    • Create Account
      POST
    • Balance Inquiry
      GET
    • Rename Account
      POST
    • Create Bulk Accounts
      POST
    • List Accounts
      GET
  • Transaction
    • Credit Account
      POST
    • Debit Account
      POST
    • Credit Account [Agency Banking]
      POST
    • Debit Account [Agency Banking]
      POST
    • Transaction Query
      GET
    • Transaction Details
      GET
    • Transaction History
      GET
  • Transfer
    • Interbank Transfer
    • Transfer Enquiry
    • Get Institutions
    • Virtual Account Intrabank Transfer
    • Intrabank Transfer Query
    • Collection Accounts Intrabank Transfer
    • Name Inquiry
    • Core Banking Intrabank Transfer
    • Transfer Query
    • Interbank Transfer [Sync]
  • Invoice
    • Create Invoice
    • Get Invoice Detail
    • Get Invoice Status
    • List Merchant Invoices
  • Refunds
    • Get Refunds
    • Initiate Refund
    • Get Refund Status
  • Notifications
    • Notification
    • Send Notification
  • Group Code
    • Create Group Code
  • Overdraft
    • Draw Overdraft
  • Merchant
    • Account
      • Get Account
      • Activate Sub Ledger For Merchant
      • Get SubLedger Callback Urls
      • Set SubLedger Callback Urls
      • Get Collection Accounts
    • Transfer
      • Get Transfer Details
      • Name Inquiry
      • Get Transfer History
      • Get Subledger transfers
    • Refund
      • Refund Details
    • Create Merchant Account
      POST
    • Activate Sub Ledger For Merchant
      POST
    • Get KYC Information
      POST
    • Get Group Code Collection Account
      GET
    • Get Collection Accounts
      GET
    • Set Collection Account
      POST
    • Get Transfer Details
      GET
    • Name Inquiry
      POST
  • Admin
    • Accounting
      • Get Classification Codes
      • Get GL Accounts
    • Dashboard
      • Dashboard Summary
      • Dashboard Transaction Details
      • Dashboard Transactions
    • Group Codes
      • Create Group Code
      • Set Collection Account
      • Get Group Codes
    • Reporting
      • Get Report Parameters
      • Get Reports
      • Create Report
      • Get Reports Details
      • Get Reports
    • Get Reports
    • Get Report Parameters
  • Schemas
    • VACreateGroupCodeRequest
    • SubLedgerGroup
    • InvalidParameterError
    • TransactionPointError
    • UnauthorizedError
    • SpringDefaultError
  1. Merchant

Set Collection Account

POST
/merchant/account/{clientId}/collection-accounts

Set Collection Account#

Sets the collection account of a group code. The collection account must be an account that belongs to the same group code.
POST /merchant/account/{clientId}/collection-accounts

Path Parameter#

Field NameTypeRequiredDescription
clientIdLongTRUEIdentifier of the merchant

Request Body#

Field NameTypeRequiredDescription
groupCodeStringTRUEGroup code to update
collectionAccountStringTRUE10 digit account id (NUBAN) of an account inside the group code

Response#

Field NameTypeDescription
clientIdLongMerchant identifier
typeStringGroup code type: Normal, Invoice or Utility
subLedgerTypeStringSame as type
groupCodeStringGroup code
accountIdStringParent account id of the group code
balanceNumberBalance of the group code
descriptionStringGroup code description
enforceExternalIdStringtrue when customer NUBANs are enforced
lastTransDateStringDate of the last transaction
collectionAccountStringThe collection account now set
createdOnStringCreation date

Request

Authorization
OAuth 2.0
Client Credentials
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Token URL: {{tpGatewayHostUrl}}/security/authenticate
or
Path Params

Body Params application/json

Example
{
  "groupCode": "ER3GZR04KR",
  "collectionAccount": "4000000257"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/merchant/account//collection-accounts' \
--header 'Content-Type: application/json' \
--data '{
  "groupCode": "ER3GZR04KR",
  "collectionAccount": "4000000257"
}'

Responses

🟢200Success
application/json
Success
Bodyapplication/json

Example
{
  "clientId": 11,
  "type": "Normal",
  "subLedgerType": "Normal",
  "groupCode": "ER3GZR04KR",
  "accountId": "9900000100",
  "balance": 0,
  "description": "Main collections",
  "enforceExternalId": "false",
  "lastTransDate": "2025-01-15T10:15:30",
  "collectionAccount": "4000000257",
  "createdOn": "2025-01-01T09:00:00"
}
🟠400| Source | Error | When |
🟠401| Source | Error | When |
🟠403| Source | Error | When |
🟠404| Source | Error | When |
🔴500| Source | Error | When |
Modified at 2026-11-02 12:41:40
Previous
Get Collection Accounts
Next
Get Transfer Details
Built with