Parcourir la référence
Toutes les ressources
Comptes
14 endpoints · Les descriptions des points de terminaison sont en anglais.
List accounts in this household
GET
/households/{householdId}/accountsread:accounts
Paramètres
| Nom | Emplacement | Requis |
|---|---|---|
| status | query | Optionnel |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X GET https://api.vokse.ai/households/current/accountsRéponse200 · Success
Create a financial account
POST
/households/{householdId}/accountswrite:accounts
Corps de la requête
json
{ "name": "Everyday checking", "type": "checking", "currency": "EUR", "balanceCents": "125000"}Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -X POST https://api.vokse.ai/households/current/accounts \ -d '{"name":"Everyday checking","type":"checking","currency":"EUR","balanceCents":"125000"}'Réponse201 · Success
Get a single account with its computed balance
GET
/households/{householdId}/accounts/{accountId}read:accounts
Paramètres
| Nom | Emplacement | Requis |
|---|---|---|
| accountId | path | Requis |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X GET https://api.vokse.ai/households/current/accounts/{accountId}Réponse200 · Success
Update an account
PATCH
/households/{householdId}/accounts/{accountId}write:accounts
Paramètres
| Nom | Emplacement | Requis |
|---|---|---|
| accountId | path | Requis |
Corps de la requête
json
{ "name": "Joint checking"}Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -X PATCH https://api.vokse.ai/households/current/accounts/{accountId} \ -d '{"name":"Joint checking"}'Réponse200 · Success
Soft-delete an account (rejects non-zero balance unless force)
DELETE
/households/{householdId}/accounts/{accountId}write:accounts
Paramètres
| Nom | Emplacement | Requis |
|---|---|---|
| accountId | path | Requis |
| force | query | Optionnel |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X DELETE https://api.vokse.ai/households/current/accounts/{accountId}Réponse204 · No content
Daily running balance for an account
GET
/households/{householdId}/accounts/{accountId}/balance-historyread:accounts
Paramètres
| Nom | Emplacement | Requis | Description |
|---|---|---|---|
| accountId | path | Requis | - |
| fromDate | query | Optionnel | YYYY-MM-DD |
| toDate | query | Optionnel | YYYY-MM-DD |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X GET https://api.vokse.ai/households/current/accounts/{accountId}/balance-historyRéponse200 · Success
Close an account; any remaining balance is booked as a balance adjustment dated on the caller's local day
POST
/households/{householdId}/accounts/{accountId}/closewrite:accounts
Paramètres
| Nom | Emplacement | Requis |
|---|---|---|
| accountId | path | Requis |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Idempotency-Key: $(uuidgen)" \ -X POST https://api.vokse.ai/households/current/accounts/{accountId}/closeRéponse200 · Success
Convert an account to another type (safe moves only: same group, cash<->credit, loan<->tracking; crossing the budget boundary is refused with guidance)
POST
/households/{householdId}/accounts/{accountId}/convertwrite:accounts
Paramètres
| Nom | Emplacement | Requis |
|---|---|---|
| accountId | path | Requis |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Idempotency-Key: $(uuidgen)" \ -X POST https://api.vokse.ai/households/current/accounts/{accountId}/convertRéponse200 · Success
Loan payoff planner: amortization with the current terms, optional extra monthly principal, and this month’s ledger split
GET
/households/{householdId}/accounts/{accountId}/loan-projectionread:accounts
Paramètres
| Nom | Emplacement | Requis | Description |
|---|---|---|---|
| accountId | path | Requis | - |
| extraMonthlyCents | query | Optionnel | Extra principal paid every month, integer cents |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X GET https://api.vokse.ai/households/current/accounts/{accountId}/loan-projectionRéponse200 · Success
Loan payoff simulator: what-if projection for an alternative payment, recurring/one-off extras, or a target payoff month (solved to the required payment)
GET
/households/{householdId}/accounts/{accountId}/loan-simulationread:accounts
Paramètres
| Nom | Emplacement | Requis | Description |
|---|---|---|---|
| accountId | path | Requis | - |
| targetPayoffYearMonth | query | Optionnel | Solve the minimal payment that pays off by this YYYY-MM |
| oneTimeExtraCents | query | Optionnel | One-off extra principal this month, integer cents |
| extraMonthlyCents | query | Optionnel | Extra principal every month, integer cents |
| paymentCents | query | Optionnel | Alternative full monthly payment, integer cents |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X GET https://api.vokse.ai/households/current/accounts/{accountId}/loan-simulationRéponse200 · Success
Dated changes of a loan’s rate, payment and escrow (newest first)
GET
/households/{householdId}/accounts/{accountId}/loan-terms-historyread:accounts
Paramètres
| Nom | Emplacement | Requis |
|---|---|---|
| accountId | path | Requis |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -X GET https://api.vokse.ai/households/current/accounts/{accountId}/loan-terms-historyRéponse200 · Success
Reconcile account against the real bank balance: books an adjustment for any gap, then locks cleared transactions as reconciled
POST
/households/{householdId}/accounts/{accountId}/reconcilewrite:accounts
Paramètres
| Nom | Emplacement | Requis |
|---|---|---|
| accountId | path | Requis |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Idempotency-Key: $(uuidgen)" \ -X POST https://api.vokse.ai/households/current/accounts/{accountId}/reconcileRéponse200 · Success
Reopen a previously closed account
POST
/households/{householdId}/accounts/{accountId}/reopenwrite:accounts
Paramètres
| Nom | Emplacement | Requis |
|---|---|---|
| accountId | path | Requis |
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Idempotency-Key: $(uuidgen)" \ -X POST https://api.vokse.ai/households/current/accounts/{accountId}/reopenRéponse200 · Success
Atomically set the manual position of accounts within their groups
POST
/households/{householdId}/accounts/reorderwrite:accounts
Exemple de requête
bash
curl -H "Authorization: Bearer vokse_sk_…" \ -H "Idempotency-Key: $(uuidgen)" \ -X POST https://api.vokse.ai/households/current/accounts/reorderRéponse204 · No content