Skip to main content

NPS Management API

Overview​

The NPS Management API provides commands for querying and managing NPS (NIBSS Payment System) ISO 20022 data — mandates, inward direct debit requests, account report requests (CAMT), and Request-to-Pay approvals. It also exposes lifecycle actions (cancel, amend) for outward mandates.

All commands are sent via POST /api/bpm/cmd with a JSON body containing cmd (command name) and data (payload).

NPS vs NIBSS Pay Gateway

These commands operate on the NPS ISO 20022 data (MandateSetup, InwardDebitTransferRequest, NpsAccountReportRequest, NpsRequestToPayApproval tables in the Nibss database). They are distinct from the legacy NIBSS Pay Gateway commands (CreateNibssMandateCommand, etc.) which use a separate mandate table.

Available Commands​

#CommandDescriptionType
1GetNpsMandatesQueryPaginated list of NPS ISO 20022 mandatesQuery
2GetNpsMandateByIdQueryFull detail of a single NPS mandate with linked debit requestsQuery
3CancelNpsMandateCommandCancel an active outward NPS mandate (pain.011)Command
4AmendNpsMandateCommandAmend an existing outward NPS mandate (pain.010)Command
5GetNpsInwardDebitRequestsQueryPaginated list of NPS inward direct debit requestsQuery
6GetNpsInwardDebitRequestByIdQueryFull detail of a single inward debit requestQuery
7GetNpsAccountReportRequestsQueryPaginated list of CAMT account report requestsQuery
8GetNpsAccountReportRequestByIdQuerySingle account report request with linked CAMT recordsQuery
9GetNpsRequestToPayApprovalsQueryPaginated list of Request-to-Pay inbound approvalsQuery
10GetNpsRequestToPayApprovalByIdQueryFull detail of a single Request-to-Pay approvalQuery

NPS Credit Transfers​

Outward and inward NPS credit transfers are handled by the existing transfer commands. Pass sourceProvider: "nps" to filter for NPS records:

  • RetrieveOutwardTransactionsListQuery — outbound NPS credit transfers
  • RetrieveInwardTransactionsListQuery — inbound NPS credit transfers

Mandate Directions​

The MandateSetup table stores both mandates we originate and mandates received from other banks. The direction is determined by DestinationInstitutionCode:

DestinationInstitutionCodeDirectionCanCancelCanAmend
Equals our bank codeInward (we are the debtor bank)NoNo
Different bank codeOutward (we initiated the mandate)Yes (if Active/Pending)Yes (if Active)