ROKIConnect
Connectors Start API SDKs Migrate MCP Portal ES
DocumentationObligations (Collections and Education)

Obligations (Collections and Education)

Find what a customer owes in the merchant's Collections invoices and Education installments, then charge one item through Connect.

Verified 2026-10-28 on a merchant with no obligations: lookup without an identifier, lookup with no match, unknown obligation, pay without a key, pay with a bad mode, and confirm of an unknown checkout. Paying a real obligation was not run.

30.1 Look up

GET /api/connect/v1/obligations?national_id=0801199000123

At least one of national_id, rtn, student_code or customer_code (CUST-{id}); none answers 422 identifier_invalid. No match is 200 with empty obligations and meta.count: 0, not a 404.

Obligation ids: col_inv_{id} (Collections invoice, payable), edu_inst_{id} (Education installment - payable: false when an earlier one is unpaid), fis_inv_{id} (fiscal invoice, informative only - pay the linked Collections invoice instead).

GET /obligations/{id} reads one. An unknown obligation answers 422 obligation_invalid, not 404.

30.2 Pay

POST /api/connect/v1/obligations/col_inv_1001/pay
Idempotency-Key: obl-pay-1001-a1

{ "mode": "embed", "external_reference": "kiosk-ticket-77" }

After approval ROKI marks the obligation paid and sends payment.approved.