Flow
API flows (step-by-step)
1) Fetch agreements
Endpoint:
Response:
GET /agreementsResponse:
agreements[] (text + links), accepted, acceptedAt.2) Show agreements to the user
Render each agreement’s
text, and open the links[].url in a new tab.
The user must accept all agreements.3) Submit acceptance
Endpoint:
Body:
POST /agreementsBody:
If KYC is not approved, these endpoints return
409 with invalid_state.What this unlocks
After acceptance, the user can create cards, create deposits, and request withdrawals. Those endpoints return409 until agreements are accepted.