{"openapi":"3.1.0","info":{"title":"Points API","version":"1.0.0","description":"Wallet ledger with Stripe Checkout EUR top-ups. Test keys select a separate test ledger and never credit or debit live balances. Stripe Connect uses Accounts v2 recipient accounts with Express access and JSON requests. Stripe hosted onboarding collects identity and payout details directly; Points does not submit identity updates. Existing account IDs remain stable. POST /stripe/connect with {} returns an onboarding URL; POST /stripe/dashboard with {} returns an Express Dashboard login URL. POST /stripe/withdrawals reserves EUR principal plus sender fee and transfers principal minus recipient fee to the authenticated user payout account. For new withdrawals, an administrator must configure stripeWithdrawalFeeBasisPoints (integer 0–10000) and stripeWithdrawalFixedFeeUnits (EUR cents as an integer string) from the account Stripe contract. No default Stripe tariff is assumed. The configured fee, rounded up on creditUnits plus the fixed charge, is subtracted from creditUnits to produce payoutUnits; debitUnits never increases for Stripe fees. The tariff snapshot and stripeFeeUnits remain fixed on retry. Stripe tariff deductions are retained for provider costs, separate from platform fee income. GET /quotes?operation=stripe/withdrawal&amp;currencyId=EUR&amp;amount=100 returns this breakdown. Additional instant payout options selected in Express may have separate fees. Historical withdrawals retain their stored terms. Only bank accounts and eligible debit cards are supported; credit cards are unsupported. Status transferred means funds reached Stripe, not the external bank. Stripe balance_insufficient queues the reserved withdrawal with waiting_for_funds and returns HTTP 202. An every-15-minute scheduled handler retries existing reservations without debiting again. A fresh transfer key is used only after a definite Stripe balance_insufficient rejection; ambiguous failures keep the original key and require review after 23 hours. Stripe manages payout schedules, failures, and additional payout fees in Express. Retry processing withdrawals using POST /stripe/withdrawals/{id}/retry with {}. Ambiguous failures retain reserved funds; retries use the same Stripe transfer key. After 23 hours unresolved transfers require support reconciliation and must never be recreated or manually refunded without checking Stripe. Administrators cannot manually settle Stripe withdrawals. POST /topups returns {data: {id, url}}; redirect to url to pay. Minimum principal is 1 EUR; total must be below 1,000,000 EUR. The payer pays principal plus the configured sender fee, the wallet receives principal minus the configured recipient fee minus actual Stripe processing fees in EUR, retrieved from the charge balance transaction. Settlement retries until the actual fee is available. Server-verified paid sessions credit exactly once via the signed /api/v1/stripe/webhook endpoint or authenticated /stripe/return. New credits, transfers and withdrawals charge the configured fee (default 0.1%) to each side, rounded up independently to the smallest asset unit. The nominal amount excludes both fees: at the default rate, 100 EUR debits 100.10 EUR and credits 99.90 EUR. fees fields record principalUnits, senderFeeUnits, recipientFeeUnits, debitUnits, creditUnits, totalFeeUnits, feeRecipientEmail and feeRateBasisPoints. feeStatus distinguishes quoted, reserved, collected and refunded fees; fee ledger entries themselves are never charged again. All fees go to dorian@dorianmarie.com in the same asset. Administrators configure feeRateBasisPoints with PATCH /admin/settings, an integer from 0 to 10000; 10 means 0.1%. Request creation is free; settlement charges once at the stored quote rate. Existing top-ups and withdrawals retain their quoted terms. Withdrawal fees are reserved on creation and collected on payment; rejection refunds the full debit. Legacy pending withdrawals retain their original terms. GET /quotes requires currencyId and amount query parameters. Transfers permanently credit verified recipient emails. Currency balances stay separate. Money inputs are positive decimal strings. Balance outputs are integer strings in smallest units. Obtain a Points-scoped key at account.dorianmarie.com. Mutations require the Origin and Idempotency-Key headers. Wallet and administrator route identifiers are URL-encoded emails."},"servers":[{"url":"https://points.dorianmarie.com/api/v1"}],"security":[{"bearer":[]},{"session":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"},"session":{"type":"apiKey","in":"cookie","name":"__Host-dm-session"}}},"paths":{"/stripe/connect":{"post":{"summary":"POST /stripe/connect","parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/stripe/dashboard":{"post":{"summary":"POST /stripe/dashboard","parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/stripe/withdrawals":{"post":{"summary":"POST /stripe/withdrawals","parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currencyId":{"type":"string"},"amount":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/stripe/withdrawals/{id}/retry":{"post":{"summary":"POST /stripe/withdrawals/{id}/retry","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/topups":{"post":{"summary":"POST /topups","parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currencyId":{"type":"string"},"amount":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/quotes":{"get":{"summary":"fee quote for amount and currencyId; each side pays the configured rate, rounded up. At the default 0.1%, 100 EUR means debit 100.10 EUR, credit 99.90 EUR, total fees 0.20 EUR. outputs are smallest-unit integer strings.","parameters":[{"name":"currencyId","in":"query","required":true,"schema":{"type":"string"}},{"name":"amount","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$"}},{"name":"operation","in":"query","schema":{"type":"string","enum":["stripe/withdrawal"]}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/requests":{"get":{"summary":"own payment and funding requests","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}},"post":{"summary":"POST /requests","parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string"},"email":{"type":"string"},"currencyId":{"type":"string"},"amount":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/requests/{id}/pay":{"post":{"summary":"POST /requests/{id}/pay","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/settings":{"get":{"summary":"application settings, including defaultCurrencyId and feeRateBasisPoints (integer 0–10000; default 10 = 0.1% per side)","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/settings":{"get":{"summary":"application settings","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}},"patch":{"summary":"PATCH /admin/settings","parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"defaultCurrencyId":{"type":"string"},"feeRateBasisPoints":{"type":"integer","minimum":0,"maximum":10000},"stripeWithdrawalFeeBasisPoints":{"type":"integer","minimum":0,"maximum":10000},"stripeWithdrawalFixedFeeUnits":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/me":{"get":{"summary":"Current identity and permissions","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/currencies":{"get":{"summary":"Search currencies","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/currencies/{id}":{"get":{"summary":"Currency details","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/balances":{"get":{"summary":"Own available balances in smallest-unit integer strings","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/transactions":{"get":{"summary":"Own transaction history","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/transactions/{id}":{"get":{"summary":"Own transaction details","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/transfers":{"post":{"summary":"POST /transfers","parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"currencyId":{"type":"string"},"amount":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/withdrawals":{"get":{"summary":"Own withdrawals","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}},"post":{"summary":"POST /withdrawals","parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currencyId":{"type":"string"},"amount":{"type":"string"},"instructions":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/withdrawals/{id}":{"get":{"summary":"Own withdrawal details","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/currencies":{"post":{"summary":"POST /admin/currencies","parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"precision":{"type":"integer","minimum":0,"maximum":255},"network":{"type":"string"},"tokenIdentifier":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/currencies/{id}":{"patch":{"summary":"PATCH /admin/currencies/{id}","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/credits":{"post":{"summary":"POST /admin/credits","parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"currencyId":{"type":"string"},"amount":{"type":"string"},"reference":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/wallets":{"get":{"summary":"All wallet balances","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/wallets/{email}":{"get":{"summary":"Wallet details by email","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/wallets/{email}/transactions":{"get":{"summary":"Wallet history","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/withdrawals":{"get":{"summary":"Withdrawal queue","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/withdrawals/{id}":{"get":{"summary":"Withdrawal details","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/withdrawals/{id}/pay":{"post":{"summary":"POST /admin/withdrawals/{id}/pay","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reference":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/withdrawals/{id}/reject":{"post":{"summary":"POST /admin/withdrawals/{id}/reject","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/admins":{"get":{"summary":"Administrators","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}},"post":{"summary":"POST /admin/admins","parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/admins/{email}":{"delete":{"summary":"DELETE /admin/admins/{email}","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string"}},{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://points.dorianmarie.com"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}},"/admin/audit":{"get":{"summary":"Administrative audit history","parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response: {data, nextCursor?}"},"201":{"description":"Mutation committed: {data}"},"202":{"description":"Withdrawal queued, funds reserved: {data}"},"400":{"description":"Invalid request: {error: {code, message}}"},"401":{"description":"Authentication required"},"403":{"description":"Permission denied or origin mismatch"},"404":{"description":"Not found"},"409":{"description":"Conflict; retry with the same idempotency key"},"413":{"description":"Body exceeds 16384 bytes"},"503":{"description":"Account service or database unavailable"}}}}}}