Skip to main content

Integration Guide — CRM Current Account

Concepts

Customer (entityKeyId)

Text identifier of the customer (up to 25 characters). Both endpoints use this value as keyId in the route.

Balance by overdue periods

balance-aging response: total open balance split by overdue periods (entity form: Total, Not due, Up to 30 days, 31 to 60 days, etc.), plus loyalty points:

FieldDescription
balanceTotal (net open balance)
notDueNot due
overdue0To30Up to 30 days
overdue31To6031 to 60 days
overdue61To9061 to 90 days
overdueOver90More than 90 days
pointsLoyalty points

Customer balance

MethodURLDescription
GET/gateway/entity/{keyId}/balance-agingReturns balance by overdue periods and points without rebuilding movements
POST/gateway/entity/{keyId}/balance-aging/recalculateRebuilds checking account and returns recalculated balance

Route parameter: keyId — customer entityKeyId (URL-encode special characters if needed).

Use GET for a quick read of the already calculated balance. Use POST recalculate when recent movements may not be reflected (for example, after settlements or checking-account entries).

Response (200 OK)

{
"balance": 1250.5,
"notDue": 800,
"overdue0To30": 200.5,
"overdue31To60": 150,
"overdue61To90": 100,
"overdueOver90": 0,
"points": 42.5
}

Examples

Query balance

GET /gateway/entity/CLI001/balance-aging

See Returns customer balance by overdue buckets.

Recalculate balance

POST /gateway/entity/CLI001/balance-aging/recalculate

See Rebuilds checking account and returns recalculated balance aging.


  1. Identify the customer — obtain entityKeyId.
  2. Query positionGET /gateway/entity/{keyId}/balance-aging.
  3. Refresh balancePOST /gateway/entity/{keyId}/balance-aging/recalculate when recent movements need to be reflected.

Common errors

HTTP codeSituationSuggested action
401Missing or invalid tokenAuthenticate on the gateway
404Unknown keyIdVerify customer entityKeyId

Errors follow the API Problem Details format.


Conclusion

CRM current account exposes balance query and recalculation by overdue periods at /gateway/entity/{keyId}/balance-aging. Use GET to read and POST to recalculate when the customer's financial position needs updating.


Last updated: June 2, 2026