SchemeTotalBalance
GET
https://test.api.neotek.sa/b2b-unified/va/v1/schemes/{schemeId}/balance/totalSandbox URL · in Production call https://api.neotek.sa
The aggregate totals for a scheme, without the per-VA breakdown. Same parameters as SchemeBalance.
Path parameters:
| Parameter | Required | Description |
|---|---|---|
schemeId | Required | the scheme id |
Query parameters:
| Parameter | Required | Description |
|---|---|---|
bankCode | Required | always RJHISARI |
Headers:
| Parameter | Required | Description |
|---|---|---|
authorization | Required | Bearer <ACCESS_TOKEN> |
x-app-id | Required | your application id |
cURL
curl -G 'https://test.api.neotek.sa/b2b-unified/va/v1/schemes/{schemeId}/balance/total' \ --header 'authorization: Bearer <ACCESS_TOKEN>' \ --header 'x-app-id: <APP_ID>' \ -d 'bankCode=RJHISARI'Response
JSON
{ "success": true, "code": "SUCCESS", "message": "Scheme total balance retrieved successfully", "schemeId": "SCHEME001", "vaCount": 3, "totalAvailableBalance": "120000.00", "totalClearingBalance": "120000.00", "currency": "SAR", "msgReference": "STOT001"}Errors — every B2B failure carries a category that determines the HTTP status; see Statements → Errors.