Ttushe / docs
nsk_test_Operational

Preview a profit declaration

Computes the whole distribution — reserve, PSR split, per-account allocation, eligible account count — and posts NOTHING. Returns a short-lived previewToken that binds those exact figures for a subsequent commit.

POSThttps://api.trytushe.com/v1/config/savings/products/{productId}/profit-distributions/preview
POST/v1/config/savings/products/{productId}/profit-distributions/preview

Authorization

api-key
x-api-key<token>

In: header

Path Parameters

productId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

{  "status": true,  "statusCode": 200,  "message": "Request processed successfully",  "timestamp": "2026-10-03T16:30:00.000Z",  "path": "/v1/accounts",  "data": {    "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",    "version": 2,    "period": "2026-09",    "currency": "NGN",    "profitPool": "12000000",    "profitSharingRatio": {      "depositor": 70,      "mudarib": 30    },    "depositorShare": "8400000",    "mudaribShare": "3600000",    "perReserved": "0",    "distributable": "8400000",    "posting": "8400000",    "eligibleAccounts": 412,    "largestCredit": "94200",    "smallestCredit": "12",    "alreadyDeclared": null,    "declaredPool": "string",    "previewToken": "string",    "expiresInMs": 900000  }}