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" }
mode: "embed"(default) returns a checkoutid. Confirm it withPOST /embed/checkouts/{id}/confirmsendingpayment_token(tok_*) andpublishable_key- notPOST /embed/confirm, which charges whatever amount you send and leaves the obligation unpaid.mode: "hosted"returns acheckout_urlwith the payer's contact details locked.amountis optional and, if sent, must equal the obligation's total.Idempotency-Keyis mandatory - but a missing key answersidempotency_key_invalidhere, not theidempotency_key_requiredevery other route uses. The same key for another obligation answers409 idempotency_conflict.- An invalid
modeanswers422 mode_invalid.
After approval ROKI marks the obligation paid and sends payment.approved.
