{"openapi":"3.1.0","info":{"title":"DaoCard API","description":"API for DaoCard application","version":"cb-475d3a7"},"paths":{"/api/v1/health/live":{"get":{"tags":["health"],"summary":"Liveness Check","description":"Answer whether this process is running, and nothing else.\n\nSeparate from ``/health`` because Cloud Run's liveness probe RESTARTS the\ncontainer on ``failure_threshold`` consecutive failures. A probe that reads\nthe database therefore turns a database blip into a restart of every\ncontainer serving traffic -- which drops in-flight requests and reconnects\nthe whole fleet at once, making the incident worse rather than visible.\n\nLiveness asks \"is this process alive\"; readiness asks \"can it serve\". Cloud\nRun offers no readiness probe, so the startup probe carries the readiness\nquestion against ``/health`` and this endpoint carries liveness alone.\n\nTakes no session dependency at all -- not a session it declines to use --\nso it cannot fail on connection acquisition either.","operationId":"liveness_check_api_v1_health_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LivenessResponse"}}}}}}},"/api/v1/health":{"get":{"tags":["health"],"summary":"Health Check","description":"Report whether this instance can serve, database included.\n\n🔴 **An unreachable database answers 503, not 200.** This endpoint used to\ncatch the failure, set ``status: \"unhealthy\"`` and return 200 anyway -- so\nevery consumer reading a status code rather than a body saw a healthy\ninstance. The revision-health wait in each deploy workflow is exactly such\na consumer: it could not fail, in any environment, which is part of why\nmigrations running after it went unnoticed.\n\nThe body keeps its shape and its ``status`` field, so anything already\nparsing it is unaffected. What changes is that the status code agrees with\nthe body.\n\nCloud Run's startup probe reads this endpoint and its liveness probe reads\n``/health/live`` instead. That split is what keeps a 503 from restarting\ncontainers that are merely waiting on a database -- see the probe block in\n``modules/cloudrun``.","operationId":"health_check_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__shared__api__health__HealthResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__shared__api__health__HealthResponse"}}}}}}},"/api/v1/auth/register":{"post":{"tags":["auth","Authentication"],"summary":"Register","description":"Register a new user with the authentication provider.\n\nArgs:\n    request: Registration request with email, password, and optional display name\n    auth_service: Authentication service (injected)\n\nReturns:\n    Registration response with user UID and email\n\nRaises:\n    HTTPException: If registration fails (e.g., email already exists)","operationId":"register_api_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify":{"post":{"tags":["auth","Authentication"],"summary":"Verify Token","description":"Verify an authentication token.\n\nArgs:\n    request: Verification request with token\n    auth_service: Authentication service (injected)\n\nReturns:\n    Verification response with validity status and user info","operationId":"verify_token_api_v1_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/password-reset":{"post":{"tags":["auth","Authentication"],"summary":"Request Password Reset","description":"Mail a password-reset link to the address, if an account holds it (#3298).\n\nAnswers ``202 {\"status\": \"accepted\"}`` for every well-formed address, before anything is\nlooked up: whether an account exists, whether the address is over its own budget and whether\nthe mail went are all decided after the response, so neither the answer nor its timing says\nwhich (``@RID-SECURITY-AND-DATA-PROTECTION-RESETREQ-001``). The caller's own budget is the\none refusal that is visible — a 429, which says nothing about any account.","operationId":"request_password_reset_api_v1_auth_password_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetAccepted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/email-verification":{"post":{"tags":["auth","Authentication"],"summary":"Send Email Verification","description":"Mail the signed-in holder a link confirming their own address (#3298).\n\nTakes no body: the address is the one on the verified token, so a caller can only ever ask\nfor a link to their own address. The link goes to the address the platform records for\nthem, never the token's: ``409`` when the two differ (an address changed at the provider,\nwhich a browser can do for itself), ``403`` for a sign-in the platform has no user for — so\nneither can make the platform mail an address of the caller's choosing; ``503`` when nothing\nwas sent.","operationId":"send_email_verification_api_v1_auth_email_verification_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailVerificationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["auth","Authentication"],"summary":"Get Me","description":"Get current authenticated user information.\n\nThis is a protected endpoint that requires a valid authentication token.\n\nArgs:\n    current_user: Current user from token (injected by dependency)\n\nReturns:\n    User information from token claims","operationId":"get_me_api_v1_auth_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__shared__api__auth__UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard":{"get":{"tags":["dashboard","dashboard"],"summary":"Get Dashboard","description":"Get dashboard data for the current authenticated user.\n\nAggregates data from accounts, cards, transactions, statements,\nand credit profiles into a single BFF response. Individual query\nfailures are logged and return null for that section.","operationId":"get_dashboard_api_v1_dashboard_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/occurrences/{occurrence_id}/dismiss":{"post":{"tags":["dashboard","dashboard"],"summary":"Dismiss Occurrence","description":"Dismiss an occurrence so it no longer appears for this account.\n\nThe account is resolved via the shared `get_current_account` dependency,\nwhich uses `select_primary_account` — the same selector the GET handler\nuses — so the dismissal is recorded against the same account that will\nbe read on the next dashboard fetch.","operationId":"dismiss_occurrence_api_v1_dashboard_occurrences__occurrence_id__dismiss_post","parameters":[{"name":"occurrence_id","in":"path","required":true,"schema":{"type":"string","title":"Occurrence Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Dismiss Occurrence Api V1 Dashboard Occurrences  Occurrence Id  Dismiss Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/transactions":{"get":{"tags":["transactions","transactions"],"summary":"List Transactions","description":"Get paginated transaction list for the current user's account.\n\nQueries real data via LedgerApplicationService, applying filters,\nsorting, and pagination.","operationId":"list_transactions_api_v1_transactions_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Page Size"},"description":"Items per page"},{"name":"sort","in":"query","required":false,"schema":{"enum":["transaction_date","amount_cents","amount","merchant_name"],"type":"string","description":"Sort field","default":"transaction_date","title":"Sort"},"description":"Sort field"},{"name":"order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","description":"Sort order","default":"desc","title":"Order"},"description":"Sort order"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by category","title":"Category"},"description":"Filter by category"},{"name":"card_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by card_id","title":"Card Id"},"description":"Filter by card_id"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date (YYYY-MM-DD)","title":"Date From"},"description":"Start date (YYYY-MM-DD)"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date (YYYY-MM-DD)","title":"Date To"},"description":"End date (YYYY-MM-DD)"},{"name":"range","in":"query","required":false,"schema":{"anyOf":[{"enum":["7d","30d","90d","year","all"],"type":"string"},{"type":"null"}],"description":"A preset window counted back from today in the card processor's calendar: 7d, 30d, 90d, year, or all for the whole history. Not with date_from or date_to.","title":"Range"},"description":"A preset window counted back from today in the card processor's calendar: 7d, 30d, 90d, year, or all for the whole history. Not with date_from or date_to."},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search merchant_name (case-insensitive)","title":"Search"},"description":"Search merchant_name (case-insensitive)"},{"name":"disputable","in":"query","required":false,"schema":{"type":"boolean","description":"Only transactions the cardholder may file a dispute against: disputable and not from a closed billing cycle","default":false,"title":"Disputable"},"description":"Only transactions the cardholder may file a dispute against: disputable and not from a closed billing cycle"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TransactionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/transactions/{tx_id}":{"get":{"tags":["transactions","transactions"],"summary":"Get Transaction","description":"Get a single transaction by ID.\n\nVerifies the transaction belongs to the authenticated user's account.\nReturns 404 if not found, not owned by the user, or in a status the\ncardholder is not shown (a void, #3357), with the same detail each time.","operationId":"get_transaction_api_v1_transactions__tx_id__get","parameters":[{"name":"tx_id","in":"path","required":true,"schema":{"type":"string","title":"Tx Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users":{"post":{"tags":["users"],"summary":"Create User","description":"Create a new user profile.\n\nUsers can only create their own profile (firebase_uid must match token).\n\nArgs:\n    request: User creation data\n    current_user: Authenticated user from token\n    user_service: User application service (injected)\n\nReturns:\n    Created user profile\n\nRaises:\n    HTTPException: 403 if creating profile for another user, or under an\n        electronic-mail address other than the one the verified token carries\n    HTTPException: 400 if profile already exists\n    HTTPException: 422 if validation fails, including any attempt to seed a\n        postal address identity verification has not established","operationId":"create_user_api_v1_users_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__user__api__routes__UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/me":{"get":{"tags":["users"],"summary":"Get Current User Profile","description":"Get current user's profile.\n\nArgs:\n    current_user: Authenticated user from token\n    user_service: User application service (injected)\n\nReturns:\n    Current user's profile\n\nRaises:\n    HTTPException: 404 if profile not found","operationId":"get_current_user_profile_api_v1_users_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__user__api__routes__UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["users"],"summary":"Update Current User Profile","description":"Update current user's profile.\n\nArgs:\n    request: Fields to update\n    current_user: Authenticated user from token\n    user_service: User application service (injected)\n\nReturns:\n    Updated user profile\n\nRaises:\n    HTTPException: 404 if profile not found\n    HTTPException: 422 if validation fails, including any attempt to change\n        the postal address identity verification established, to change a\n        name in more than its capitalisation, or to set the onboarding\n        progress","operationId":"update_current_user_profile_api_v1_users_me_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__user__api__routes__UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Delete Current User Profile","description":"Withdraw the current user's profile and disable their sign-in (#2425).\n\nArgs:\n    current_user: Authenticated user from token\n    user_service: User application service (injected)\n    sign_in: The identity provider, whose account for this person is disabled\n\nRaises:\n    HTTPException: 404 if profile not found","operationId":"delete_current_user_profile_api_v1_users_me_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/accounts/me":{"get":{"tags":["accounts"],"summary":"Get current user's accounts","description":"Get all accounts for the currently authenticated user.","operationId":"get_my_accounts_api_v1_accounts_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccountResponse"},"title":"Response Get My Accounts Api V1 Accounts Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/accounts/{account_id}/freeze":{"post":{"tags":["accounts"],"summary":"Freeze an account","description":"Temporarily freeze an account. Frozen accounts cannot transact.","operationId":"freeze_account_api_v1_accounts__account_id__freeze_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreezeAccountRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/accounts/{account_id}/unfreeze":{"post":{"tags":["accounts"],"summary":"Unfreeze an account","description":"Unfreeze a previously frozen account, restoring it to active status.","operationId":"unfreeze_account_api_v1_accounts__account_id__unfreeze_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/accounts/{account_id}/close":{"post":{"tags":["accounts"],"summary":"Close an account","description":"Permanently close an account. Closed accounts cannot be reopened.","operationId":"close_account_api_v1_accounts__account_id__close_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseAccountRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/credit-journey":{"get":{"tags":["credit-journey"],"summary":"Get Credit Journey","description":"Get credit journey data for the current user.\n\nQueries the credit_profiles read model by account ID. With no profile — every\ncardholder today, since nothing in the product writes one — every score figure is\n``None``. The credit line and the activation recommendation come from the account\nitself, which the product does hold.","operationId":"get_credit_journey_api_v1_credit_journey_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditJourneyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/me/business":{"get":{"tags":["settings"],"summary":"Get Business Info","description":"Get business information for the current user.\n\nThe recorded business profile when there is one; otherwise the business on\nthe user's approved application; otherwise an empty profile. The rule is\n``IBusinessDetailsReader``'s, shared with the statement heading and the admin\ncardholder search (#3378).","operationId":"get_business_info_api_v1_users_me_business_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["settings"],"summary":"Update Business Info","description":"Refuse a change to the business, whatever the body (#2880).\n\nThe business information is read-only to the cardholder: the name and the\npostal address are corrected by an operator with a reason and a supporting\ndocument, and the tax identifier is never edited (#3822). The route stays so\na caller is told where the correction goes instead of being answered 405,\nexactly as ``PATCH /users/me`` answers a self-submitted postal address.\nNothing is read or written. Authentication is still required, so the\nrefusal is only ever given to a signed-in person.","operationId":"update_business_info_api_v1_users_me_business_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"422":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/cards/request":{"post":{"tags":["cards","cards"],"summary":"Request Card","description":"Request a new card.\n\n- ``virtual``: issued to the authenticated user; any account member may request.\n- ``employee``: issued to a target account member; primary holder only.\n- ``physical``: not yet available (returns 501).\n\n🆕 2026-10-05: ``virtual`` and ``employee`` are issued only where the account's\ncard issuer issues them itself (the local-dev and mock stand-ins). On an account\nthe card processor serves they return 501: issuing an additional card at the\nprocessor is not built, and this route used to record one anyway, with a ``0000``\nlast four and a made-up expiry, and no card behind it (#2637).\n\nIdempotency: the wizard disables the submit button while a request is in\nflight, preventing double-submit without requiring an Idempotency-Key header.","operationId":"request_card_api_v1_cards_request_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RequestVirtualCardBody"},{"$ref":"#/components/schemas/RequestEmployeeCardBody"},{"$ref":"#/components/schemas/RequestPhysicalCardBody"}],"discriminator":{"propertyName":"card_type","mapping":{"virtual":"#/components/schemas/RequestVirtualCardBody","employee":"#/components/schemas/RequestEmployeeCardBody","physical":"#/components/schemas/RequestPhysicalCardBody"}},"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cards":{"get":{"tags":["cards","cards"],"summary":"List Cards","description":"List all cards for the current authenticated user's account.","operationId":"list_cards_api_v1_cards_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cards/{card_id}":{"get":{"tags":["cards","cards"],"summary":"Get Card","description":"Get card detail by ID for the current authenticated user.\n\nAccess is asked before the order state is refreshed, as the list does (#3926).","operationId":"get_card_api_v1_cards__card_id__get","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cards/{card_id}/sensitive":{"get":{"tags":["cards","cards"],"summary":"Get Card Sensitive","description":"Card metadata for the reveal flow.\n\nM5 contract change: this endpoint no longer returns PAN / CVV / PIN.\nHighnote owns those values now and our backend never sees them.\n\n* **Highnote-routed cards** — the frontend calls\n  ``POST /cards/{id}/reveal-token`` (M5.03) to obtain a client token\n  and hands it to the ``@highnoteplatform/card-viewer`` SDK for\n  iframe-hosted reveal.\n* **Local-dev / mock cards** — the same ``/reveal-token`` endpoint\n  returns a ``provider=\"local\"`` sentinel; the frontend branches and\n  falls back to the legacy dev path (wired in M5.04).\n\n**M5.06 (D1): PIN read is permanently gone for Highnote-routed users.**\nThe ``pin`` field stays ``None`` regardless of routing — Highnote has\nno ``READ_PIN`` permission, and the local-dev path's null is\ntransitional only. M7 removes the field globally.\n\nOwnership + 404 semantics still apply — calling this endpoint for a\ncard not on the caller's account returns 404, and one the caller may not\nact on is refused, via :func:`card_for_caller`.","operationId":"get_card_sensitive_api_v1_cards__card_id__sensitive_get","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardSensitiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cards/{card_id}/reveal-token":{"post":{"tags":["cards","cards"],"summary":"Request Reveal Token","description":"Mint a short-lived client token for PAN/CVV/expiry reveal (M5.03).\n\nFrontend branches on ``provider``: Highnote-routed cards get an SDK\ntoken consumed by ``@highnoteplatform/card-viewer``; local-dev /\nmock cards get a sentinel and fall back to the legacy path.\n\n**Security**: ownership verification is *load-bearing*, not\ndefense-in-depth. The spike confirmed\n``generatePaymentCardClientToken`` mints tokens for any string —\nwithout the ownership check, any authenticated user could mint\nreveal tokens for any cardId they can guess. We verify before\ncalling the adapter, through :func:`card_for_caller` — the card must be on\nthe caller's account (404 otherwise) and the caller must hold an active\nmembership that may act on it (403 otherwise, #3926).\n\n**Rate limit**: 10 requests per 60 seconds per user. Independent\nfrom ``/pin-set-token`` (exhausting one leaves the other available).\n\nPOST despite being read-effect — token minting is a security-\nsensitive side effect we may want to audit-log; POST also keeps\ncallers from accidentally caching the response.\n\n**A card whose processor identity we do not hold is answered, not\nraised** — see :func:`_token_refusal_is_answered`.","operationId":"request_reveal_token_api_v1_cards__card_id__reveal_token_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevealClientTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cards/{card_id}/pin-set-token":{"post":{"tags":["cards","cards"],"summary":"Request Pin Set Token","description":"Mint a short-lived client token for PIN set / change (M5.03).\n\nSame auth + ownership semantics as ``request_reveal_token``. The FE\nhands the returned token to ``@highnoteplatform/secure-inputs``;\nHighnote captures the PIN inside an iframe and posts it directly —\nour backend never sees the value.\n\n**Rate limit**: 10 requests per 60 seconds per user. Independent\nfrom ``/reveal-token``.\n\n**A card whose processor identity we do not hold is answered, not\nraised** — see :func:`_token_refusal_is_answered`.","operationId":"request_pin_set_token_api_v1_cards__card_id__pin_set_token_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevealClientTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cards/{card_id}/lock":{"post":{"tags":["cards","cards"],"summary":"Lock Card","description":"Lock a card. Persists through the Account repository.","operationId":"lock_card_api_v1_cards__card_id__lock_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LockCardRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cards/{card_id}/unlock":{"post":{"tags":["cards","cards"],"summary":"Unlock Card","description":"Unlock a card. Persists through the Account repository.\n\n**A lock the account's standing applied is refused here**, with\n``400 {\"error\": \"card_lock_not_cardholder_liftable\"}`` and a sentence the\ncardholder may be shown as it stands — see\n``CardLockNotCardholderLiftableError``. It is the error handler that renders\nit, not this route; what the route contributes is that the refusal arrives\nbefore the processor is touched, so the card is unchanged. Surfaces should\nread ``cardholder_can_unlock`` off the card and not offer the control at all\n(#2257).","operationId":"unlock_card_api_v1_cards__card_id__unlock_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cards/{card_id}/cancel":{"post":{"tags":["cards","cards"],"summary":"Cancel Card","description":"Cancel a card. Persists through the Account repository.\n\n**The account holder's own card is refused here**, with\n``400 {\"error\": \"primary_card_not_cardholder_cancellable\"}`` and a sentence the\ncardholder may be shown as it stands — see\n``PrimaryCardNotCardholderCancellableError``. Cancelling is permanent and\nnothing in the product recovers from it, so the customer's right to cancel that\ncard is exercised by written notice, not by this route (#1558,\n`@RID-CARDS-LIFECYCLE-005`). The refusal arrives before the processor is touched,\nso the card is unchanged. Surfaces should not offer the control on a card whose\n``card_type`` is ``primary``. A card awaiting activation, or one already stopped,\nis still refused for its status instead.\n\n**So is the welcome virtual card** (#3379), with\n``400 {\"error\": \"welcome_card_not_cardholder_cancellable\"}`` — see\n``WelcomeCardNotCardholderCancellableError``; surfaces withhold the control on a\ncard carrying ``is_welcome_card``.","operationId":"cancel_card_api_v1_cards__card_id__cancel_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cards/{card_id}/report-lost":{"post":{"tags":["cards","cards"],"summary":"Report Lost","description":"Report a card as lost or stolen: block it here, close it at the processor.\n\n**This is not Lock and it is not Cancel.** A lock is reversible and tells the\nprocessor only to suspend; a cancel is the cardholder retiring a card they\nstill hold. This says the card may be in somebody else's hands, so it is\npermanent (:meth:`Card.block` has no inverse) and the instruction carried\nupstream is ``closePaymentCard`` — see\n``AccountApplicationService.report_card_lost_stolen`` for why a suspension\nthe cardholder could later lift would be the wrong thing to leave behind.\n\n**Verified end to end against the Highnote sandbox on 2026-09-15** (#2263),\nwhich until then nothing had ever done — the route had no caller at all. What\n``closePaymentCard`` does, by the card's state at the processor:\n\n* ``ACTIVE`` → accepted, card becomes ``CLOSED``.\n* ``SUSPENDED`` → accepted. This is the state an account review leaves a card\n  in, so a cardholder under review can still report their card lost\n  (`@RID-CARDS-STANDING-007`); that is not the restraint they are forbidden to\n  lift (`@RID-CARDS-STANDING-006`), it goes the other way.\n* ``ACTIVATION_REQUIRED`` → accepted, so a card posted and never received can\n  be reported (`@RID-CARDS-BLOCK-003`).\n* ``CLOSED`` → **refused**, ``\"Unable to transition from current card state to\n  new card state\"``. Nothing is committed and the route answers 502 via\n  :func:`_refusal_is_not_success`. A second report is therefore a poor\n  experience rather than a wrong outcome, and surfaces should withhold the\n  control from a card already stopped rather than let it be taken twice.\n\nAuthorization is the card's owner or the account holder, the same rule lock,\nunlock and cancel apply (`@RID-CARDS-AUTH-001`).","operationId":"report_lost_api_v1_cards__card_id__report_lost_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cards/{card_id}/activation/verify-identity":{"post":{"tags":["card-activation","card-activation"],"summary":"Verify Identity","description":"Verify cardholder identity against the SSN last four and expiry held for the card.","operationId":"verify_identity_api_v1_cards__card_id__activation_verify_identity_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyIdentityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyIdentityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cards/{card_id}/activation/set-pin":{"post":{"tags":["card-activation","card-activation"],"summary":"Set Pin","description":"Set PIN via card issuer port. Never stored in our DB.","operationId":"set_pin_api_v1_cards__card_id__activation_set_pin_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPinRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cards/{card_id}/activation/activate":{"post":{"tags":["card-activation","card-activation"],"summary":"Activate Card","description":"Activate a card: our record first, then the issuer, committed only when it agrees.\n\n🔑 **The issuer call is the change.** This once did one thing — a local\n``UPDATE cards SET status='active'`` — and returned a hardcoded ``\"active\"``. No\nissuer was ever told, so a cardholder who completed the wizard held a card that\nread active in the portal and was inactive at the processor, which declines every\nauthorization regardless of credit limit.\n\n🆕 #2637 — **through the account, not a row update.** Activation is the account's\nrule (:meth:`Account.activate_issued_card`): activating the plastic reissued from\nthe welcome virtual card closes that virtual card, as the processor does on its\nside, so the two are applied together and the virtual card is never shown as the\none in use after the plastic is. The service applies that change first, then tells\nthe issuer, and commits only when the issuer reports the card active — so nothing\nis recorded live that the processor has not made live. A refusal answers 502 with\nthe card unchanged.","operationId":"activate_card_api_v1_cards__card_id__activation_activate_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateCardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/disputes":{"get":{"tags":["disputes","disputes"],"summary":"List Disputes","description":"List disputes for the current user with optional status filter.\n\nQueries real data via DisputeApplicationService. Supports filtering\nby status, including the composite 'open' filter which maps to\nmultiple domain statuses.\n\nArgs:\n    account: Resolved account for the authenticated user.\n    dispute_service: Dispute application service.\n    ledger_service: Ledger service for transaction lookups.\n    page: Page number (1-based).\n    page_size: Number of items per page.\n    status_filter: Optional status to filter by ('open', or a domain status).\n\nReturns:\n    Paginated list of disputes.","operationId":"list_disputes_api_v1_disputes_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_DisputeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["disputes","disputes"],"summary":"File Dispute","description":"File a new dispute against a transaction.\n\nValidates the transaction via the application service and creates a\nnew dispute case.\n\nArgs:\n    body: Dispute filing request.\n    account: Resolved account for the authenticated user.\n    dispute_service: Dispute application service.\n    ledger_service: Ledger service for transaction lookups.\n    session: DB session -- committed explicitly below on success.\n        The service/repository layer only flushes; without this\n        commit the write never survives past the request.\n\nReturns:\n    Newly created dispute.\n\nRaises:\n    HTTPException: 400/403/404 on validation failures.","operationId":"file_dispute_api_v1_disputes_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDisputeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/disputes/{dispute_id}":{"get":{"tags":["disputes","disputes"],"summary":"Get Dispute","description":"Get a single dispute by ID.\n\nVerifies the dispute belongs to the authenticated user's account.\n\nArgs:\n    dispute_id: The dispute ID.\n    account: Resolved account for the authenticated user.\n    dispute_service: Dispute application service.\n    ledger_service: Ledger service for transaction lookups.\n\nReturns:\n    Dispute detail.\n\nRaises:\n    HTTPException: 404 if dispute not found or not owned by user.","operationId":"get_dispute_api_v1_disputes__dispute_id__get","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","title":"Dispute Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/disputes/{dispute_id}/documents/{document_id}/content":{"get":{"tags":["disputes","disputes"],"summary":"Get Dispute Document Content","description":"Open one item of evidence the cardholder attached to their dispute (#3326).\n\nThe document's stored location (a ``gs://`` path) is not an address a browser can\nopen, so the bytes come through here, behind the cardholder's own authentication.\n\nAnswers 404, identically, for a malformed id, no such dispute, a dispute that is\nnot theirs, no such item on it, and bytes that are not there: one cardholder must\nnot be able to learn even that another's evidence exists.","operationId":"get_dispute_document_content_api_v1_disputes__dispute_id__documents__document_id__content_get","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","title":"Dispute Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"The evidence item, as it was uploaded","content":{"image/jpeg":{},"image/png":{},"application/pdf":{}}},"404":{"description":"Document not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/disputes/{dispute_id}/withdraw":{"post":{"tags":["disputes","disputes"],"summary":"Withdraw Dispute","description":"Withdraw an existing dispute.\n\nOnly disputes with status 'submitted' or 'under_review' can be withdrawn.\n\nArgs:\n    dispute_id: The dispute ID to withdraw.\n    account: Resolved account for the authenticated user.\n    dispute_service: Dispute application service.\n    ledger_service: Ledger service for transaction lookups.\n    session: DB session -- committed explicitly below on success.\n        The service/repository layer only flushes; without this\n        commit the write never survives past the request.\n\nReturns:\n    Updated dispute with status 'withdrawn'.\n\nRaises:\n    HTTPException: 404 if not found, 400 if not withdrawable.","operationId":"withdraw_dispute_api_v1_disputes__dispute_id__withdraw_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","title":"Dispute Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/disputes/{dispute_id}/documents":{"post":{"tags":["disputes","disputes"],"summary":"Upload Dispute Document","description":"Upload a supporting evidence document to an open dispute.\n\nAccepts a ``multipart/form-data`` body with a ``file`` part and an\noptional ``document_type`` field, which defaults to ``other``: the\ncardholder's application does not ask what kind of evidence an item is,\nand guessing it from the file's type recorded every image as a photograph\nand every PDF as correspondence (#2389). The bytes are streamed to the configured\nstorage adapter (GCS in prod, local stub in dev), the resulting\n``gs://`` URL is stored on the dispute via the existing\n``add_document`` path, and the newly-created document is returned.\n\nArgs:\n    dispute_id: The dispute to attach the document to.\n    account: Resolved account for the authenticated user.\n    dispute_service: Dispute application service.\n    session: DB session -- committed explicitly on success.\n    file: Uploaded file (multipart).\n    document_type: Domain ``DocumentType`` value; ``other`` when omitted.\n\nReturns:\n    The newly-added document.\n\nRaises:\n    HTTPException: 404 if the dispute is missing/not owned, 422 on an\n        unsupported content type or oversize/empty file, 400 if the\n        dispute no longer takes evidence, already holds the most it may,\n        or the document type is invalid.","operationId":"upload_dispute_document_api_v1_disputes__dispute_id__documents_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","title":"Dispute Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_dispute_document_api_v1_disputes__dispute_id__documents_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices":{"get":{"tags":["payments","payments"],"summary":"List Invoices","description":"List invoices for the current user with optional status filter.","operationId":"list_invoices_api_v1_invoices_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Page Size"},"description":"Items per page"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_InvoiceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/latest":{"get":{"tags":["payments","payments"],"summary":"Get Latest Invoice","description":"Get the latest/current invoice for the user.","operationId":"get_latest_invoice_api_v1_invoices_latest_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvoiceResponse"},{"type":"null"}],"title":"Response Get Latest Invoice Api V1 Invoices Latest Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/{invoice_id}":{"get":{"tags":["payments","payments"],"summary":"Get Invoice","description":"Get a specific invoice by ID.","operationId":"get_invoice_api_v1_invoices__invoice_id__get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/{invoice_id}/transactions":{"get":{"tags":["payments","payments"],"summary":"List Invoice Transactions","description":"List the movements one statement's billing cycle accounts for, oldest first.\n\n404 for an unparseable id, a statement that does not exist and another\naccount's statement alike — the same single answer `/invoices/{id}` and the\ndocument route give, so none of them can be told apart\n(`RID-BILLING-STATEMENT-READ-004`).\n\n409 where the statement has no recorded cycle interval. It is not an empty\ncycle and must not read as one: an empty list here would render as a\nstatement with no movements on it, which is a claim, and a false one for any\nstatement whose totals are not zero. The client shows its failure state, an\noperator sees the reason, and `just statement-reproject` is the fix.","operationId":"list_invoice_transactions_api_v1_invoices__invoice_id__transactions_get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":50,"title":"Page Size"},"description":"Items per page"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TransactionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/{invoice_id}/document":{"get":{"tags":["payments","payments"],"summary":"Get Invoice Document","description":"Download the statement document, as it was issued.","operationId":"get_invoice_document_api_v1_invoices__invoice_id__document_get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"The statement document","content":{"application/pdf":{}}},"404":{"description":"Statement not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ach-authorizations/{authorization_id}/document":{"get":{"tags":["payments","payments"],"summary":"Get Ach Authorization Document","description":"Download the kept copy of an ACH debit authorization the caller accepted (#2748).\n\nThe Commercial ACH Debit and Credit Authorization accepted when a bank account\nwas linked, as it was accepted, issued once and the same bytes ever after. 404\nalike for an unknown id and an authorization somebody else accepted.","operationId":"get_ach_authorization_document_api_v1_ach_authorizations__authorization_id__document_get","parameters":[{"name":"authorization_id","in":"path","required":true,"schema":{"type":"string","title":"Authorization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"The authorization's copy","content":{"application/pdf":{}}},"404":{"description":"Authorization not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/one-time-ach-authorization":{"get":{"tags":["payments","payments"],"summary":"Get One Time Ach Authorization","description":"Form 2, the One Time ACH Authorization shown before each manual payment (#2489).\n\nThe three screens from the one template the server holds, with screen 2\nrendered for ``amount_cents`` when it is given. ``debit_date`` is the day a\npayment made now is applied as of (:func:`debit_date_for`): today's Eastern\naccount day up to 11:00 P.M. Eastern on a business day, and otherwise the\nnext business day. The client names it back in ``POST /payments``; a payment\nsubmitted once that date has moved on, at the 11:00 P.M. cutoff or at\nmidnight, is refused as stale and the client fetches this again.\n\n``payment_source_id`` names the bank account the payment is made from. A personal\naccount's payment is shown the consumer form (#3713); any other, and a request that\nnames none, the commercial one. A source that is not the caller's is answered as none.","operationId":"get_one_time_ach_authorization_api_v1_payments_one_time_ach_authorization_get","parameters":[{"name":"amount_cents","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}],"title":"Amount Cents"}},{"name":"payment_source_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Source Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OneTimeAchAuthorizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments":{"post":{"tags":["payments","payments"],"summary":"Make Payment","description":"Make a payment.\n\n- A closed account that owes nothing -> 403 ``account_closed_nothing_owed``. A\n  closed account that still owes is paid like an open one (#2657), and so is a\n  frozen account: its cards stop, its payments do not (#1553)\n- A closed account whose financial account at the processor is not open to a\n  repayment -> 403 ``processor_account_not_open``, before anything is recorded: the\n  processor would not credit the money (#2657)\n- Processor-rejected payments (e.g. amount ending in 99 cents under\n  Mock) -> 400 Bad Request\n- A payment already in flight on this funding source for the same\n  amount -> 201 with *that* payment, and nothing new is initiated; a\n  different amount while one is in flight -> 400 naming it (#2486)\n- No ``authorization`` in the body -> 422; a template or version the\n  platform does not hold -> 400 ``authorization_unknown``; a debit date\n  other than the one a payment made now is applied as of (the account\n  day, or the next business day after 11:00 P.M. Eastern, on a weekend\n  or on a Federal Reserve holiday) -> 400 ``authorization_stale``; a\n  token that names no sign-in (no ``auth_time``) -> 401, before the\n  handler runs. None of these records anything (#2489)\n- Otherwise -> payment created in PROCESSING with the issuer's\n  ``external_repayment_id`` recorded; terminal status arrives later\n  via webhook. The payment records form 2 as the server rendered it for\n  this amount and date, with how the payer was signed in (address, user\n  agent, session, sign-in event), and the response carries its\n  confirmation screen and none of those four\n\nNo request-level idempotency key is in play: there is no generic\nrequest-idempotency layer (the ``X-Idempotency-Key`` middleware was\nremoved under #2698). The in-flight rule in ``initiate_payment`` is what\nmakes a double-click one payment.","operationId":"make_payment_api_v1_payments_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakePaymentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["payments","payments"],"summary":"List Payments","description":"List payment history for the current user.","operationId":"list_payments_api_v1_payments_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Page Size"},"description":"Items per page"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_PaymentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-sources":{"get":{"tags":["payments","payments"],"summary":"List Payment Sources","description":"List payment sources for the current user.","operationId":"list_payment_sources_api_v1_payment_sources_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSourceResponse"},"title":"Response List Payment Sources Api V1 Payment Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["payments","payments"],"summary":"Add Payment Source","description":"Add a new payment source — a manually entered bank account.\n\n**The unverified way to add a bank account.** A verified one is linked\nthrough ``POST /payment-sources/bank-link`` below (#1253), which replaced\nthe vendor-linked route that went with Plaid (#2104, ruling D74).\n\n**``bank_account`` is the only type this route accepts.** Any other value is\nrefused by request validation with a 422 naming the supported type, before\nanything is constructed — see :data:`PaymentSourceTypeRequest`. This route\nused to send ``type: \"debit_card\"`` down ``BillingApplicationService``'s\ndeprecated ``add_payment_source`` wrapper, which built a debit-card\n``PaymentSource``. Debit-card payment is not a product requirement\n(``@RID-BILLING-DEBIT-001``, deleted from the requirements corpus on\n2026-09-15 — no workbook row asks for it), and the source it built could\nnever be charged: nothing in this product collects a card number, expiry or\nsecurity code, and nothing records an expiry. The absent client caller was\nnever the point — the route was reachable by anything holding a cardholder's\ntoken.","operationId":"add_payment_source_api_v1_payment_sources_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPaymentSourceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-sources/bank-link/business-name":{"get":{"tags":["payments","payments"],"summary":"Get Bank Link Business Name","description":"The business name a dashboard link signs the ACH authorization under (#2881).\n\nRead through the same service and port the completion renders with, so the\nname the sheet shows is the name recorded. ``null`` when no one legal name\nresolves: no approved application, a blank name, or approved applications\nnaming different businesses. It does not say which, so it reveals nothing\nabout any other application. ``business_profiles`` is never read.\n\nOff wherever the dashboard link is: the service this resolves is built over\nthe declared ``BILLING_BANK_LINK_PROVIDER``, which answers 503 where it is\n``none``.","operationId":"get_bank_link_business_name_api_v1_payment_sources_bank_link_business_name_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankLinkBusinessNameResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-sources/bank-link/session":{"post":{"tags":["payments","payments"],"summary":"Open Bank Link Session","description":"Open a hosted bank-link session for the current user.\n\nRefused with a 403 while the caller's address is unconfirmed (#2994), before the\nprovider is asked: the setup order puts verify email ahead of the bank link.","operationId":"open_bank_link_session_api_v1_payment_sources_bank_link_session_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__shared__api__payments_models__BankLinkSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-sources/bank-link/accounts":{"post":{"tags":["payments","payments"],"summary":"List Bank Link Accounts","description":"The checking and savings accounts on the session, for the cardholder to choose from.\n\nA POST because the reference is a bearer credential and does not belong in\na URL. It spends nothing.\n\nA provider that could not be reached answers 502, the same as opening the\nsession does: an empty list here means the bank carries no checking or\nsavings account, and nothing else.","operationId":"list_bank_link_accounts_api_v1_payment_sources_bank_link_accounts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__shared__api__payments_models__BankLinkAccountsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__shared__api__payments_models__BankLinkAccountsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-sources/bank-link":{"post":{"tags":["payments","payments"],"summary":"Complete Bank Link","description":"Complete the link for the chosen account and record the authorisation accepted.\n\nThe bank's name recorded is the one the provider resolved for the account's\ninstitution. A name in the body is accepted, so a client that still sends\none is not refused, and is not recorded.\n\nA cardholder with no one legal business name to sign under is refused with\na 409 ``business_name_unavailable`` before the provider is asked anything.\n\nThe User-Agent header is cut to its column rather than refused, since it is\nthe client's and a long one must never cost the cardholder the link. A token\nthat names no sign-in is refused (401) before anything is asked of the\nprovider, so no acceptance is recorded against a session nobody can name.\n\nA customer who holds a bank account already is refused with a 409\n``bank_account_already_linked`` (#3801), before the provider is asked: they replace it\nthrough \"Change account\".\n\n``holder_type`` is the customer's answer to business or personal (#3710-#3712); absent,\nthe account is linked unanswered (#3734).\n\nCommits through the service (see the section note above).","operationId":"complete_bank_link_api_v1_payment_sources_bank_link_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteBankLinkRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-sources/bank-link/connect-failure":{"post":{"tags":["payments","payments"],"summary":"Report Bank Link Connect Failure","description":"Record what Connect told the browser when it failed in its own window (#2940).\n\nAgainst the cardholder's own link or repair session, live or not, so a\nMastercard support case can name the customer, the institution and the\nerror. It answers 204 whether or not a session of the cardholder's took\nit, so the answer says nothing about a reference that is not theirs. The\nreport is the browser's word: it spends, announces and decides nothing.\nIt carries no per-person budget: ``@RID-SECURITY-AND-DATA-PROTECTION-RATELIMIT-001``\nnames the actions that do, and this is not one of them.\n\nCommits through the session store, on its own session, as every write to a\nbank-link session does.","operationId":"report_bank_link_connect_failure_api_v1_payment_sources_bank_link_connect_failure_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardConnectFailureRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-sources/{source_id}/relink-session":{"post":{"tags":["payments","payments"],"summary":"Open Bank Link Repair Session","description":"Open a repair session against a source's existing stored connection (#1253).\n\nEvery refusal names its code in ``error`` (see :func:`_repair_refusal`): a\n404 ``payment_source_not_found``, identical byte for byte for a malformed\nid, a source that does not exist and one belonging to another cardholder;\na 409 ``link_new_bank`` for a source with no stored connection; a 409\n``not_repairable`` for one not currently flagged as needing repair; and a\n409 ``consent_lapsed`` for one whose provider consent has lapsed at the\nmoment the request is handled, refused before the provider is asked\n(#2503). A provider that cannot open the session is a 502 with curated\ntext.\n\nOff wherever the dashboard link is: the service this resolves is built over\nthe declared ``BILLING_BANK_LINK_PROVIDER``, which answers 503 where it is\n``none``, as production declares it.","operationId":"open_bank_link_repair_session_api_v1_payment_sources__source_id__relink_session_post","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelinkSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-sources/{source_id}/confirm-relink":{"post":{"tags":["payments","payments"],"summary":"Confirm Bank Link Repair","description":"Confirm a completed repair by re-probing the stored connection (#1253).\n\nBodyless: the cardholder has already completed the provider's own repair\nflow in their browser, and confirmation reads only what is already\nstored; nothing the client supplies is consulted. Every refusal names its\ncode in ``error`` (see :func:`_repair_refusal`): a 404\n``payment_source_not_found``, identical byte for byte for a malformed id,\na source that does not exist and one belonging to another cardholder; a\n409 ``link_new_bank`` for a source with no stored connection or whose\naccount the provider now reports gone; a 409 ``not_repairable`` for one\nnot currently flagged as needing repair; a 409 ``consent_lapsed`` for one\nwhose provider consent has lapsed at the moment the request is handled,\nrefused before the probe because a repaired login does not renew a consent\n(#2503); and a 409 ``repair_did_not_take`` when the probe still reports the\nconnection as needing re-authentication.\nA provider that cannot answer the probe is a 502 with curated text, as it\nis for the session, and so is one whose answer reads TRANSIENT: it cannot\nyet say whether the repair took, so the cardholder is told to try again\nrather than that the repair failed. A refused confirmation leaves the source exactly as it\nwas, and its message never claims success.\n\nOff wherever the dashboard link is, for the reason the session route gives.","operationId":"confirm_bank_link_repair_api_v1_payment_sources__source_id__confirm_relink_post","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-sources/{source_id}/change":{"get":{"tags":["payments","payments"],"summary":"Get Account Change Warning","description":"The warning \"Change account\" shows before anything changes (#3801). Writes nothing.\n\nOne of four, by whether automatic payments are on and whether a payment from the account is\ninside the processing window (sent to the bank, not cleared), with that payment's amount\nand date. A 404 ``payment_source_not_found``, the same for a malformed id, an unknown one\nand another customer's.","operationId":"get_account_change_warning_api_v1_payment_sources__source_id__change_get","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountChangeWarningResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["payments","payments"],"summary":"Change Payment Source","description":"Confirm \"Change account\": automatic payments off, the account removed, recorded (#3801).\n\n``warning`` is the one the customer confirmed. One that no longer applies is refused with\na 409 ``account_change_stale`` and nothing changes, so the client shows the one that does.\nOtherwise every automatic payment of the customer's is turned off, then the account is\nremoved as a disconnect removes it, neither refused for automatic payments nor for a\npayment in flight, which finishes from this account, and the change is recorded, all in one\ntransaction. The client then starts the new link.\n\nA 404 ``payment_source_not_found`` as the warning's; a 409 ``payment_source_removed`` for\nan account already removed.","operationId":"change_payment_source_api_v1_payment_sources__source_id__change_post","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeAccountRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountChangedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-sources/{source_id}/change/cancel":{"post":{"tags":["payments","payments"],"summary":"Cancel Account Change","description":"Record that the customer cancelled a \"Change account\" warning (#3801). Changes nothing.\n\n``warning`` is the one shown and ``choice`` the button that cancelled it, or ``dismissed``\nfor the sheet closed without one. A choice that does not cancel that warning is a 422\n``account_change_choice_unknown``. A 404 ``payment_source_not_found`` as the warning's.","operationId":"cancel_account_change_api_v1_payment_sources__source_id__change_cancel_post","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelAccountChangeRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-sources/{source_id}/holder-type":{"post":{"tags":["payments","payments"],"summary":"Answer Holder Type","description":"Answer business or personal for a linked bank account that has no answer (#3734, #3736).\n\nThe answer is the customer's own, final, and recorded in the account's link history\nwith it (``type_answered``, #3716). An account already answered is refused; a\ndifferent answer is a relink.\n\n``personal`` for the account an active automatic payment debits is accepted: the\narrangement is then paused until the customer accepts the consumer autopay form (#3713),\nsince the commercial clause it was accepted on never covers a personal account\n(``AutopayAcceptance.covers``), and the next run is refused and the customer asked.","operationId":"answer_holder_type_api_v1_payment_sources__source_id__holder_type_post","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerHolderTypeRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-sources/{source_id}/default":{"put":{"tags":["payments","payments"],"summary":"Set Default Source","description":"Set a payment source as the default.\n\nThis never verifies the source. One that has not been verified is refused with a\n400 ``payment_source_not_usable`` and nothing is written (#2429).","operationId":"set_default_source_api_v1_payment_sources__source_id__default_put","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/autopay/authorization":{"get":{"tags":["payments","payments"],"summary":"Get Autopay Authorization","description":"What enrolling in an automatic payment shows for one amount rule and bank account.\n\n**A business or unanswered account:** form 1's recurring-payments clause from the\ncurrent Commercial ACH Authorization, word for word, and nothing else\n(``render_autopay_acceptance_text``); the text is the same for every rule and account.\n\n**A personal account** (#3713): the consumer autopay form, its blanks filled by the\nserver from the account, the rule, the schedule (``days_before_due``, else the\narrangement's own, else 3, as ``POST /autopay`` defaults it), the first payment date and\nthe email on file; ``consumer`` is true, and the client shows the personal certification\nbox above the button and sends it back (#3772).\n\nThe client shows ``text`` as given and names ``template_id`` and ``version`` back in\n``POST /autopay``. The bank account is the customer's default payment account, the only\none an automatic payment debits (#3715), resolved exactly as ``POST /autopay`` resolves\nit, so a review step the save would refuse is refused here first.\n\n- A type the product does not offer, or an amount that does not fit it -> 400\n- No default payment account -> 409 ``no_default_payment_source``; a\n  ``payment_source_id`` that is not the default -> 409 ``not_default_payment_source``\n- A personal account when the sign-in carries no email for the form's copy -> 409\n  ``consumer_autopay_unavailable``; the current balance from a personal account -> 409\n  ``consumer_autopay_rule_unavailable``","operationId":"get_autopay_authorization_api_v1_autopay_authorization_get","parameters":[{"name":"type","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Type"}},{"name":"fixed_amount_cents","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}],"title":"Fixed Amount Cents"}},{"name":"payment_source_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Source Id"}},{"name":"days_before_due","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Days Before Due"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutopayAuthorizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/autopay":{"get":{"tags":["payments","payments"],"summary":"Get Autopay","description":"Get the autopay configuration for the current user.","operationId":"get_autopay_api_v1_autopay_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutopayConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["payments","payments"],"summary":"Configure Autopay","description":"Configure autopay -- create or update.\n\nIt debits the customer's default payment account and no other (#3715): there is no\naccount to choose, and none to fall back to.\n\nEnabling autopay, and changing its amount rule, takes the\ncardholder's acceptance of form 1's recurring-payments clause for the rule in\nthe body (``authorization``): the server renders the text and stamps the\nmoment, the address, the user agent and the sign-in, and the arrangement and\nthe acceptance commit together. Changing ``days_before_due`` alone takes none.\n\n- No ``authorization`` where one is needed -> 400 ``autopay_acceptance_required``\n- A template or version the platform does not hold -> 400 ``authorization_unknown``;\n  an older wording -> 400 ``authorization_stale``\n- No default payment account -> 409 ``no_default_payment_source``; a\n  ``payment_source_id`` that is not the default -> 409 ``not_default_payment_source``\n- A default with no ACH debit authorization in force from the cardholder\n  -> 400 ``ach_authorization_not_in_force``\n- A token that names no sign-in -> 401, before the handler runs\n\n- Enabling or changing it on a closed account that owes nothing -> 403\n  ``account_closed_nothing_owed``. A closed account that still owes keeps the\n  recurring ACH debit the agreement names (§7.4), so it may set one up or change\n  it (#2657); turning it off is never refused.\n\nNone of these records anything.","operationId":"configure_autopay_api_v1_autopay_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigureAutopayRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutopayConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["payments","payments"],"summary":"Update Autopay","description":"Update autopay configuration (frontend uses PUT for updates).","operationId":"update_autopay_api_v1_autopay_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigureAutopayRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutopayConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/secured-deposit":{"get":{"tags":["secured-deposit","secured-deposit"],"summary":"Get Secured Deposit","description":"The card waiting on its setup: a secured card's deposit, or an unsecured card's bank.\n\n404 once the user holds an account: a card issued is not waiting for anything.","operationId":"get_secured_deposit_api_v1_secured_deposit_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecuredDepositStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["secured-deposit","secured-deposit"],"summary":"Request Secured Deposit","description":"Pull the security deposit under the form 2 the cardholder accepted for it.\n\nFrom the customer's default payment account, resolved here and never chosen by the\nclient (#3715): 409 ``no_default_payment_source`` with none, and 409\n``not_default_payment_source`` for a ``payment_source_id`` that is not it.\n\nThe acceptance is rendered and stamped here, as ``POST /payments`` does (a\nstale or unknown form is refused 400 before anything is recorded), and\nrecorded with the charge. Its outcome arrives by webhook.","operationId":"request_secured_deposit_api_v1_secured_deposit_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestDepositBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositAttemptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/secured-deposit/authorization":{"get":{"tags":["secured-deposit","secured-deposit"],"summary":"Get Deposit Authorization","description":"Form 2, the One Time ACH Authorization, for a deposit of ``amount_cents``.\n\nForm 2 worded for a security deposit (``one-time-ach-secured-deposit``), dated by\nthe rule ``GET /payments/one-time-ach-authorization`` uses before a manual payment,\nfor a cardholder who has no account yet. The client names its template, version\nand ``debit_date`` back with the deposit.","operationId":"get_deposit_authorization_api_v1_secured_deposit_authorization_get","parameters":[{"name":"amount_cents","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Amount Cents"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OneTimeAchAuthorizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/secured-deposit/issue":{"post":{"tags":["secured-deposit","secured-deposit"],"summary":"Issue Secured Card","description":"Issue the deferred card once its setup is done and the address is confirmed.\n\nA secured card issues at a limit equal to the paid deposit; an unsecured one\nonce a business bank account is linked (``issue_deferred_card``).","operationId":"issue_secured_card_api_v1_secured_deposit_issue_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueCardBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueCardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/landing":{"post":{"tags":["signup"],"summary":"Record Referral Landing","description":"Record an arrival, rule on its attribution, and rule on its entry.\n\nTwo independent answers against the issued ``referral_channels`` set.\n**Attribution** is the presented token: resolved and matching the claimed\nslug, or anonymous. **Entry** is the reserved anonymous row: live means\nanyone may proceed, revoked means only a proven partner link gets in.\n\n**Bare ``/signup`` reaches here too** as of 2026-09-13, claiming the\nreserved slug and presenting no token at all — so there is one capture path\nand no special case, and the server resolves the anonymous row from its own\nconstant rather than trusting a token the browser was shipped.\n\n⚠️ A link that proves nothing is still admitted while public signup is open;\nwhat it loses is the attribution. Refusal happens only when public signup is\nclosed **and** the link proved no partner.\n\nRate-limited like ``create_signup``: it is the same kind of thing, an\nunauthenticated public entry point that writes a row.","operationId":"record_referral_landing_api_v1_signup_landing_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralLandingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralLandingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/esign-consent":{"post":{"tags":["signup"],"summary":"Record Esign Consent","description":"Record the e-sign consent, the funnel's first consent, against the arrival.\n\n🆕 2026-10-01. The sponsor bank's compliance reviewer (2026-08-18) requires\nprior affirmative consent to electronic delivery, on a screen that links the\ne-sign consent document and has the applicant state that they opened, read\nand agree to it; the product owner (2026-09-30) asks for it before any\napplicant consent. That puts it after the ownership gate and before the\ntelephone number, so no application exists yet.\n\n**Why its own route, keyed on the landing rather than an application.**\nEvery other consent route names an application, and at this point there is\nnone to name. The narrowest thing that can be recorded against is the\narrival the funnel already holds. The service confirms the landing exists,\nand the acceptance names that arrival as its subject, no application, and no\nsigner: who the arrival was is resolved through the application that later\nnames the same landing.\n\nOtherwise this follows ``/credit-authorization``. The body names the\nversions shown. The document recorded is the server's registry entry for\nthat version, an unknown one is refused, and the moment, the address and the\nuser agent are stamped here.\n\nCarries the sensitive budget: it writes a record every electronic disclosure\nafter it rests on.","operationId":"record_esign_consent_api_v1_signup_esign_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordEsignConsentRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordEsignConsentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/terms-consent":{"post":{"tags":["signup"],"summary":"Record Terms Consent","description":"Record the welcome step's Privacy Policy and Terms of Service consent, against the arrival.\n\n🆕 2026-11-10 (#3951). The welcome step tells the applicant they agree to the\nPrivacy Policy and the Terms of Service; the agreement is a checkbox there, and\nthis records it before the funnel moves on (``@RID-SIGNUP-CONSENT-001``). Like\n``/esign-consent``, no application exists yet, so the subject is the arrival the\nservice confirms, with no signer and no application.\n\nOne tick is two records, one per document (``TERMS_CONSENT_DOCUMENTS``), written\ntogether. The body names the version of each document linked; the document\nrecorded is the registry's entry for that version, an unknown one is refused, the\nsentence recorded is the server's current one, and the moment, the address and\nthe user agent are stamped here. ``presentation_context`` names the step.\n\nCarries the sensitive budget, as the e-sign consent does.","operationId":"record_terms_consent_api_v1_signup_terms_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordTermsConsentRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordTermsConsentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/":{"post":{"tags":["signup"],"summary":"Create Signup","description":"Create a new signup application.\n\n🔑 **Refuses with 403 when public signup is closed** (2026-09-14). The\nservice re-asks the question ``/landing`` answered rather than trusting the\n``admitted`` it handed the browser — the row can be revoked between the two\ncalls, and a caller that never made the first one is exactly what this is\nfor. A landing attributed to a partner is admitted either way.\n\n#1085: ``create_application`` answers a phone number that already has an\napplication with a ``ResumeChallengeDTO`` instead of the full\n``ApplicationDTO``. That branch narrows to\n``SignupResumeChallengeResponse`` — the anonymous challenge wire shape —\nrather than the dossier-carrying ``SignupApplicationResponse``, because a\nphone number is not proof of identity. The dossier and the\n``application_id`` are handed over only by\n``POST /resume/verify-phone``, once the caller proves possession of the\nline. A closed funnel is closed to that resume too: the refusal above runs\nfirst, before this method looks for an application at all.","operationId":"create_signup_api_v1_signup__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSignupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SignupApplicationResponse"},{"$ref":"#/components/schemas/SignupResumeChallengeResponse"}],"title":"Response Create Signup Api V1 Signup  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/resume":{"post":{"tags":["signup"],"summary":"Look Up Application To Resume","description":"The returning entry: resume this number's application, or say there is none.\n\n🆕 #3041 / #3121. ``/signup/continue`` — the address the approval email links to,\nand the review screen's button — asks for the telephone number and the last four\nbefore the ownership gate and the e-sign consent, because a returning applicant\ngave both on their first visit. So this route is ``POST /`` without the create: a\nresumable application gets the same anonymous challenge (and the same code)\n``POST /`` would give it, and any other number gets ``resuming: false`` with\nnothing created, nothing sent to the phone and nothing about any application in\nthe answer. That applicant then goes through the gate and the consent, and\n``POST /`` creates their application.\n\nBudgeted like ``POST /``: it is the same kind of call, an unauthenticated public\nentry point that can dispatch a code. A closed funnel refuses it with 403, as it\nrefuses ``POST /``.","operationId":"look_up_application_to_resume_api_v1_signup_resume_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SignupResumeChallengeResponse"},{"$ref":"#/components/schemas/ResumeNotFoundResponse"}],"title":"Response Look Up Application To Resume Api V1 Signup Resume Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/resume/verify-phone":{"post":{"tags":["signup"],"summary":"Verify Phone Resume","description":"Prove possession of a line whose application already resumed (#1085).\n\nRegistered ahead of ``POST /{application_id}/verify-phone`` — both are\ntwo-segment paths under this router, and Starlette matches routes in\nregistration order, so a request to ``/resume/verify-phone`` would\notherwise be swallowed by the parameterized route with\n``application_id=\"resume\"``.\n\nSession-keyed rather than id-keyed: the pre-OTP resume wire never learns\n``application_id``, only the opaque ``phone_verification_session_id`` the\nresume challenge carried.\n\nTwo answers, and the difference is whether possession has been proven.\n``reverify_phone`` returns a ``ResumeChallengeDTO`` when the call merely\ndispatched a challenge — a request with no code does that, and anyone can\nmake one — so that case stays on the anonymous challenge wire. Only a\nproven ``ApplicationDTO`` widens out to the full\n``SignupApplicationResponse`` (dossier + ``application_id``). The\n``isinstance`` narrowing below is the whole of that rule; mypy is the\nbackstop that keeps the two from being confused.\n\nThe proven answer is the caller's own application, which is not always the\none challenged (#2408): ``ssn_last4`` confirms the telephone match, and a\ncaller whose last four differ from the challenged application's is handed\ntheir own — or, with none, a new one anchored to ``landing_id``.","operationId":"verify_phone_resume_api_v1_signup_resume_verify_phone_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeVerifyPhoneRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SignupApplicationResponse"},{"$ref":"#/components/schemas/SignupResumeChallengeResponse"}],"title":"Response Verify Phone Resume Api V1 Signup Resume Verify Phone Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/verify-phone":{"post":{"tags":["signup"],"summary":"Verify Phone","description":"Verify phone via OTP, and on the proof issue the applicant's session.\n\nThree answers share this route: a challenge sent (``phone_verification_status``\n``challenge_sent``, status unchanged), a failed check that used the session up\nand was answered with a new one (``phone_verification_error`` set, status still\n``created``, #3399), and the line proven (``created`` moved on to\n``phone_verified``). Only the last issues a session.","operationId":"verify_phone_api_v1_signup__application_id__verify_phone_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyPhoneRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/identity/prefill":{"get":{"tags":["signup"],"summary":"Get Identity Prefill","description":"Get Prove-sourced identity prefill for the verified phone number.","operationId":"get_identity_prefill_api_v1_signup__application_id__identity_prefill_get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityPrefillResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/identity":{"post":{"tags":["signup"],"summary":"Submit Identity","description":"Submit identity information.","operationId":"submit_identity_api_v1_signup__application_id__identity_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitIdentityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/address":{"post":{"tags":["signup"],"summary":"Submit Address","description":"Submit personal address and household income.","operationId":"submit_address_api_v1_signup__application_id__address_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitAddressRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/business-info":{"post":{"tags":["signup"],"summary":"Submit Business Info","description":"Submit business information, and record the beneficial-ownership certification.\n\nThe service refuses, before storing anything, a submission without the\nownership gate's standing statement, with the certification unticked, or for a\ncompany incorporated in Delaware or New Jersey: until then only the screens did.\n🆕 2026-10-10: and one without the applicant's ownership percentage and title\nfrom the gate, which the processor is now told instead of 100% and \"owner\".\n\n🆕 **The certification is recorded as an acceptance** (``@RID-AGREEMENTS-ATTEST-001``,\n``@RID-VERIFICATION-OWNER-002``), following ``/credit-authorization``: the body\nnames the version shown, the text recorded is the server's own and an unknown\nor replaced version is refused before anything is stored, the signer is the\napplication's confirmed identity in the beneficial-owner capacity, and the\nmoment, the address and the user agent are stamped here.\n\n🆕 2026-10-11 — **in the business step's own commit.** This route captures what\nthe request observed and the service records it on the step's session, so the\ncertification and the information it certifies are stored together or not at\nall. A failed record rolls the submission back. A resubmission or a retry\nrecords nothing when the application already holds a certification of this\nversion, so records never stack.","operationId":"submit_business_info_api_v1_signup__application_id__business_info_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitBusinessInfoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/prequal":{"post":{"tags":["signup"],"summary":"Perform Prequal","description":"Trigger prequal decision.","operationId":"perform_prequal_api_v1_signup__application_id__prequal_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/offer":{"get":{"tags":["signup"],"summary":"Get Offer","description":"Get the prequal decision result for offer display.\n\nAn open secured offer also carries its principal reasons, worded as the notice words them, so\nthe offer screen can say why the unsecured card is not offered before the applicant answers\n(``@RID-SIGNUP-COUNTEROFFER-001``; Mona's ruling of 2026-10-29 on #2124). The application and\nits reasons come from one load. A decision record that cannot be read fails the read rather\nthan answering an offer with no explanation, which the requirement forbids; the funnel offers\na retry.","operationId":"get_offer_api_v1_signup__application_id__offer_get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/accept-offer":{"post":{"tags":["signup"],"summary":"Accept Offer","description":"Accept the prequal offer, or, with ``{\"final_offer\": true}``, continue past it (#4167).\n\nNo body is the acceptance it always was, and #3951's agreement check applies. With\n``final_offer`` the applicant only continues: the application moves on the same way, no\nagreement is asked, and every approval after the hard pull waits on them as ``final_offer``.","operationId":"accept_offer_api_v1_signup__application_id__accept_offer_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AcceptOfferRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/accept-final-offer":{"post":{"tags":["signup"],"summary":"Accept Final Offer","description":"Accept a reviewer's offer after the hard pull, on either card (#3843, #4000).\n\nThe offered card's agreement is accepted first, through ``/agreement-acceptance`` with that\n``product``; this reads the moment of the latest acceptance of each card's agreement from\nthe agreements context, and the service refuses one recorded before the offer. Carries the\nsensitive budget, as accepting the offer does.","operationId":"accept_final_offer_api_v1_signup__application_id__accept_final_offer_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/decline-final-offer":{"post":{"tags":["signup"],"summary":"Decline Final Offer","description":"Decline a reviewer's offer after the hard pull: \"Decline Offer\" (#3843, #4167).\n\nNo offer stands behind a final offer (product owner, 2026-11-16), so declining it closes the\napplication, by the path \"No thanks\" on the secured offer takes (``OfferRefusalService``):\nit ends ``declined``, moved by the applicant, and no adverse action notice follows (product\nowner, 2026-11-11). A second decline is answered as done. Carries the sensitive budget, as\naccepting does.","operationId":"decline_final_offer_api_v1_signup__application_id__decline_final_offer_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/final-offer-shown":{"post":{"tags":["signup"],"summary":"Final Offer Shown","description":"Record that the final offer waiting on the applicant was shown (#4167). No body.\n\nThe web calls it when screen 1 or 2 renders. The first call records the showing beside the\noffer's own record (``final_offer_showings``, kept seven years); a repeat writes nothing and\nanswers the first showing's moment. Answerable while an offer waits, whatever the reviewer\nreroute's switch says then (#4278); with none waiting it is refused 400\n``no_final_offer_waiting``, and an application that does not exist is 404. Carries the\nsensitive budget, as answering the offer does. Answers with no applicant data, so it records\nno personal-data read.","operationId":"final_offer_shown_api_v1_signup__application_id__final_offer_shown_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalOfferShownResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/refuse-offer":{"post":{"tags":["signup"],"summary":"Refuse Offer","description":"Refuse the offer at prequal: \"No thanks\", secured (#2081, #3052) or unsecured (#4009).\n\nWhich offer, and whether it may be refused, is the aggregate's decision\n(``Application.refuse_offer``). The application ends ``declined``, moved by the applicant.\nThe refusal sends no adverse action notice of its own: for a secured offer, the general\ndecline notice, stating the reasons of the decision the offer rests on, is sent three days\nafter the offer was made, whatever the applicant answers (#3639, #4127;\n``@RID-SIGNUP-COUNTEROFFER-002``), and the unsecured offer was a pre-qualification, owed none\n(``@RID-SIGNUP-OFFER-008``). A second refusal is answered as done. An application holding no\nopen offer is refused (400). An unsecured withdrawal's history row names the signup session\nthe request presented (its row's id, ``signup_session_id``), so the record says what was\npressed, when and from which session. The answer carries the status and repeats back none of\nthe applicant's data. After a secured refusal the funnel shows the \"application closed\" screen,\nwhich states no reasons (#4010); after an unsecured one it leaves for the Dao website (#4009).","operationId":"refuse_offer_api_v1_signup__application_id__refuse_offer_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefuseOfferResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/ecoa-notice":{"get":{"tags":["signup"],"summary":"Get Ecoa Notice","description":"The ECOA paragraph the adverse action notice prints, for the decline screen (#4012).\n\nThe screen renders this text as served, so it states the notice's own words rather than a copy\nof them. Public and unthrottled: it reads a constant, and names no application.","operationId":"get_ecoa_notice_api_v1_signup_ecoa_notice_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EcoaNoticeResponse"}}}}}}},"/api/v1/signup/ach-authorization/current":{"get":{"tags":["signup"],"summary":"Get Current Ach Authorization","description":"The ACH authorization a new acceptance is taken under, unrendered (#1253).\n\n🔑 **Unrendered, so one route serves every surface.** The funnel reads it\nfor an application and the dashboard link for a cardholder, and the\nbusiness each names comes from a different record; this route needs\nneither. The text carries a literal ``{business_name}`` wherever the form\nnames the customer, and the client substitutes the name it displays at\nevery one. The server makes the same plain\nsubstitution over the same name when the text is recorded (the\napplication's ``business_name`` in the funnel), so what is shown is what\nis recorded. The version names what was shown; the text recorded is never\nthe client's.\n\nPublic and unthrottled: it reads a constant, and names no application.","operationId":"get_current_ach_authorization_api_v1_signup_ach_authorization_current_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AchAuthorizationTemplateResponse"}}}}}}},"/api/v1/signup/{application_id}/ach-authorization":{"post":{"tags":["signup"],"summary":"Accept Ach Authorization","description":"Accept the ACH authorization on the step before the bank link (#1253).\n\nThe body names the version shown; the moment, the address and the\nUser-Agent are the server's, stamped here, the header cut to its column so\nthe record finalize writes from it is never refused for its width (#1250).\nThe sign-in event is the Prove session that last passed verification, hashed,\nread by the aggregate from the application's own record, and no session id is\ntaken: the funnel has none.\nStatus-neutral, from the statuses the funnel links from. The acceptance is\nbound to the account when the link completes, and finalize records it\nagainst the funding source; a skipped link leaves it unbound and nothing\nrecords it. The funnel's link needs an acceptance given for the account it\nlinks (``@RID-SIGNUP-FUND-013``): a relink to a different account is\nrefused until the applicant accepts again, and that acceptance is then\nbound to the new account; a relink of the same account keeps the one it\nhas.\n\n``holder_type`` is the applicant's answer on the step before that the account is a\nbusiness's (#3712), parked with the acceptance and carried to the account finalize\nrecords; absent, the account is linked unanswered as before (#3734). With it comes the\nbusiness certification checked on the same screen (#3772), refused with a 422\n``certification_text_invalid`` unless it is the approved text word for word, and parked to\nbe recorded at finalize. A personal account takes no commercial authorization: it is\ncertified on ``/funding-account-certification``.\n\nCarries the sensitive budget: it writes a record a debit later rests on.","operationId":"accept_ach_authorization_api_v1_signup__application_id__ach_authorization_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptAchAuthorizationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptAchAuthorizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/funding-account-certification":{"post":{"tags":["signup"],"summary":"Certify Funding Account","description":"Certify that the account the applicant links next is personal (#3712, #3772).\n\nA personal account links on its certification alone, as the dashboard's does (#3736):\nit takes no commercial authorization, and each debit from it is taken under a consumer\nform (#3713), the security deposit's included. Status-neutral, from the statuses the ACH\nstep is; it clears any acceptance on record, and the funnel's link that follows rests on\nit. Finalize records it in ``account_type_certifications`` against the account.\n\nRefused with a 422 ``certification_text_invalid`` unless the text is the approved one word\nfor word. The moment, the address and the agent are the server's, stamped here.\n\nCarries the sensitive budget: it writes a record a debit later rests on.","operationId":"certify_funding_account_api_v1_signup__application_id__funding_account_certification_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertifyFundingAccountRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/agreement-acceptance":{"post":{"tags":["signup"],"summary":"Record Agreement Acceptance","description":"Record the offered product's cardholder agreement, accepted on the offer screen.\n\n🆕 2026-10-01. The product owner: accepting the offer captures \"something like\n'by clicking the check box below you agree to'\", after the consents, terms and\nagreements were presented. The body names the product and the versions shown.\nThe document recorded is the registry entry for that product's agreement at\nthat version, an unknown one is refused, the sentence recorded is the server's\nown, the signer is the application's confirmed identity, and the moment, the\naddress and the user agent are stamped here. The service refuses an agreement\nfor a product the decision did not offer.\n\nCarries the sensitive budget: it writes the record the account is opened on.\n\n🆕 2026-10-05: under legal's sentence the one tick is three records, written\ntogether (``acceptances_for``): the agreement as authorized signer, the agreement\nas guarantor, and the current E-Sign Consent as authorized signer for the Company.\nEach carries the sentence as rendered with the application's business name. Only\nthe current sentence is taken; the answer names the agreement's record.\n\n🆕 2026-11-16 (#4167): the secured final offer shows the sentence naming the secured\nagreement, under its own version. A replaced sentence is refused before the\napplication is read; once the signer says which screen this is, only that screen's\nsentences are taken, and the one recorded is the one sent, so the text recorded is the\ntext that screen rendered. An owed secured final offer takes the secured sentence alone;\none not owed also takes legal's 2026-10-05 sentence, which dev's final offer screen shows,\nuntil #3828's screen ships (``agreement_acknowledgement_for_offer``).\n\n🆕 2026-11-18 (#4308): the secured offer at prequal names the secured agreement it links,\nso it takes the secured sentence; like a final offer not owed, it also takes legal's\n2026-10-05 sentence, which a page loaded before the release shows, until #3828's screen\nships.","operationId":"record_agreement_acceptance_api_v1_signup__application_id__agreement_acceptance_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordAgreementAcceptanceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordCreditAuthorizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/credit-authorization":{"post":{"tags":["signup"],"summary":"Record Credit Authorization","description":"Record the credit-report authorization given before a credit pull.\n\nThe product owner's E2E workbook, row 19 and its 2026-09-30 comment: the\nauthorization is given on its own screen before the soft pull and again\nbefore the hard pull, and the applicant's information and the moment are\ncaptured. The body names the stage and the version shown. The moment, the\naddress and the user agent are the server's, stamped here; the signer is\nthe application's confirmed identity; the text recorded is the server's\nown, and an unknown version is refused.\n\n🆕 2026-10-11: recorded by the service in one commit with, at the soft pull,\nthe links from the applicant and the business to their parties. After it the\nidentity and business steps are refused.\n\nCarries the sensitive budget: it writes a record a credit pull rests on.","operationId":"record_credit_authorization_api_v1_signup__application_id__credit_authorization_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordCreditAuthorizationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordCreditAuthorizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/bank-link/session":{"post":{"tags":["signup"],"summary":"Open Bank Link Session","description":"Open a bank-link session for the applicant's funding account (#1253).\n\nThe first of three calls: session, then accounts, then one completion.\nCompletion spends the session, so a failed link starts here again.\nRefused before the provider is called unless the application has accepted\nits offer (``@RID-SIGNUP-FUND-006``), this deployment links a bank at all,\nand an ACH authorization is on record (``@RID-SIGNUP-FUND-013``).","operationId":"open_bank_link_session_api_v1_signup__application_id__bank_link_session_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__signup__models__bank_link__BankLinkSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/bank-link/accounts":{"post":{"tags":["signup"],"summary":"List Bank Link Accounts","description":"The checking and savings accounts the completed hosted flow offers.\n\nSpends nothing: the applicant chooses one and completes with it. Every\nchecking and savings account is listed, one with no mask included. An empty\nlist means nothing that can be linked: the bank holds no checking or savings\naccount, or the reference names no live session of this application's. A\nprovider that could not serve the listing answers 502 with the port's curated\ntext, as the dashboard's listing does.","operationId":"list_bank_link_accounts_api_v1_signup__application_id__bank_link_accounts_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__signup__models__bank_link__BankLinkAccountsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__signup__models__bank_link__BankLinkAccountsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/bank-link/connect-failure":{"post":{"tags":["signup"],"summary":"Report Bank Link Connect Failure","description":"Record what Connect told the browser when it failed in its own window (#2940).\n\nAgainst the application's own link session, live or not, so a Mastercard\nsupport case can name the customer, the institution and the error. It\nanswers 204 whether or not a session of the application's took it, so the\nanswer says nothing about a reference that is not this application's. The\nreport is the browser's word: it spends, announces and decides nothing,\nand it commits through the session store, on its own session.","operationId":"report_bank_link_connect_failure_api_v1_signup__application_id__bank_link_connect_failure_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectFailureRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/bank-link":{"post":{"tags":["signup"],"summary":"Link Bank Account","description":"Complete the link for the account the applicant chose.\n\n🔑 **Status-neutral** (``@RID-SIGNUP-FUND-012``). The application stays\nwhere it was, so the hard pull and finalize still run from the status they\nexpect; the account and its consent receipt are parked for finalize. The\naccount recorded is the one the provider verified, never the claim\n(``@RID-SIGNUP-FUND-007``).","operationId":"link_bank_account_api_v1_signup__application_id__bank_link_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/hard-pull":{"post":{"tags":["signup"],"summary":"Submit Hard Pull","description":"Submit the hard pull and answer with the decision id.\n\n🔑 **Returns as soon as the vendor accepts it.** Unlike `/prequal`, which\nholds the request open while a server-side waiter watches for the decision,\nthis one cannot: the flow it starts can park on a case webhook or on\ndocument capture, where the applicant is texted a capture link and the\ndecision resumes whenever they finish. There is no ceiling an HTTP request\ncould sensibly hold for. The funnel polls `/decisions/hard-pull`.","operationId":"submit_hard_pull_api_v1_signup__application_id__hard_pull_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HardPullSubmitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/decisions/hard-pull":{"get":{"tags":["signup"],"summary":"Get Hard Pull Decision","description":"The hard pull's state, in the assessment's vocabulary.\n\n⚠️ **Not `/offer` with a parameter.** Every field the offer answers comes\noff application columns the prequal wrote, and its `decision` is derived\nfrom the application's lifecycle status rather than from any assessment --\nso there is nothing in it a `decision_type` could select against. This reads\nthe hard pull's own assessment row.","operationId":"get_hard_pull_decision_api_v1_signup__application_id__decisions_hard_pull_get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HardPullDecisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/shipping-address":{"post":{"tags":["signup"],"summary":"Submit Shipping Address","description":"Submit shipping address for card delivery.\n\nNote: In the current flow, shipping address is informational only.\nThe application's status does not change.","operationId":"submit_shipping_address_api_v1_signup__application_id__shipping_address_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitShippingAddressRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/signup/{application_id}/finalize":{"post":{"tags":["signup"],"summary":"Finalize","description":"Finalize signup (create password + approve).\n\nRefuses with ``email_has_account`` (400) when the application's email already\nbelongs to a Dao login or user (#2766); the screen then offers sign-in or a\ndifferent address, which arrives here as ``email``.\n\nThe attempt is recorded and committed first (#3265): the staff alert on an approval never\nfinished measures from the applicant's latest attempt, so a finalize that is refused or\nhangs was still one.","operationId":"finalize_api_v1_signup__application_id__finalize_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalizeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","description":"Get paginated notifications for the current user, newest first.","operationId":"list_notifications_api_v1_notifications_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Page Size"},"description":"Items per page"},{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","description":"Return only unread notifications","default":false,"title":"Unread Only"},"description":"Return only unread notifications"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_NotificationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Get Unread Count","description":"Get the unread notification count for the current user.","operationId":"get_unread_count_api_v1_notifications_unread_count_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnreadCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/{notification_id}/read":{"patch":{"tags":["notifications"],"summary":"Mark Notification Read","description":"Mark a single notification as read.","operationId":"mark_notification_read_api_v1_notifications__notification_id__read_patch","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/mark-all-read":{"post":{"tags":["notifications"],"summary":"Mark All Notifications Read","description":"Mark all unread notifications as read for the current user.","operationId":"mark_all_notifications_read_api_v1_notifications_mark_all_read_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkAllReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/notifications/purge":{"post":{"tags":["admin","admin"],"summary":"Purge Old Notifications","description":"Delete notifications older than the retention period.\n\nAn operator action, run by hand from the admin console by someone holding\n``PURGE_NOTIFICATIONS``. Deletes in batches to avoid long-running\ntransactions, and records who ran it: a bulk delete across every\ncardholder's record is exactly the kind of action whose record must name a\nperson rather than a shared credential.\n\nConfiguration via environment variables:\n- NOTIFICATION_RETENTION_DAYS (default: 90)\n- NOTIFICATION_PURGE_BATCH_SIZE (default: 1000)","operationId":"purge_old_notifications_api_v1_admin_notifications_purge_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurgeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/comms":{"get":{"tags":["admin","admin"],"summary":"List Sendable Comms","description":"The comms an operator may send a cardholder (requires ``MANAGE_COMMS``).\n\nRead-only and session-free: the catalogue is code, so this endpoint opens no\ndatabase connection and cannot disagree with what the send path will accept.\nThat is the whole difference from ``GET /admin/comm-templates?sendable=true``,\nwhich it replaces — that route read a table whose rows an operator could edit\ninto or out of the sendable set, and the picker and the send guard each\nevaluated the condition separately.\n\nGated on ``MANAGE_COMMS`` rather than on ``VIEW_ACCOUNT``: the list is only\nuseful to somebody who can send, and the send is gated there.","operationId":"list_sendable_comms_api_v1_admin_comms_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SendableCommResponse"},"title":"Response List Sendable Comms Api V1 Admin Comms Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/comms/{reference}/preview":{"post":{"tags":["admin","admin"],"summary":"Preview Comm","description":"Compose one comm from a context and return both bodies (``MANAGE_COMMS``).\n\nThe replacement for ``POST /admin/comm-templates/{id}/render``, and it is kept\nrather than dropped with the editor because it belongs to the *send* rather\nthan to authoring: an operator about to put a message in front of a cardholder\nhas to be able to read it first, and the modal's own promise is that the copy\ncomes from the registry and nothing is free-typed.\n\nUnlike that route it refuses an incomplete context (400) rather than rendering\na visible ``[field]``, because that is what the send will do — a preview that\nsucceeded where the send fails is a preview of a different thing.\n\n⚠️ **``ctx.require`` is not redundant against ``CommContext.__getitem__``,\nand it took a mutation to establish that it looked it.** Deleting the\n``require`` call left every test green, because every comm registered today\nreads all its declared keys unconditionally, so the lazy read raises the same\nerror. Two things differ and both matter: ``require`` reports **every**\nmissing key at once where ``__getitem__`` reports the first one it reaches,\nand a comm that reads a required key on a *branch* would give a 200 preview\nand a 400 send — the exact divergence this route exists to rule out. The\nall-keys difference is what\n``test_it_names_every_missing_value_not_just_the_first`` now pins.\n\nNothing is sent and nothing is recorded. ``MarkdownCommRenderer`` is\nconstructed per request: it is stateless and reads its two link targets from\nsettings, so it holds nothing worth keeping.","operationId":"preview_comm_api_v1_admin_comms__reference__preview_post","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/comms":{"post":{"tags":["admin","admin"],"summary":"Send Account Comm","description":"Send a prepared comm to an account's owner (requires ``MANAGE_COMMS``).\n\nResolves the account → owning user (404 if unknown), then emits a\n``Notification`` through the existing pipeline so closed-account and\ncease-and-desist suppression apply — an operator can't bypass a C&D flag. A\nsuppressed send returns ``status=\"suppressed\"`` and creates nothing; a\nchannel preference is not one of its causes (#1568). A repeat of a send\nalready made returns ``status=\"duplicate\"`` and sends nothing (#1894 t5).\n\nTwo 404s reach an operator here and they are different: an unknown\n``account_id``, raised below, and an unknown ``reference``, raised by the\nservice. Both name what was not found.","operationId":"send_account_comm_api_v1_admin_accounts__account_id__comms_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendCommRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendCommResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/comms-log":{"get":{"tags":["admin","admin"],"summary":"List Account Comms Log","description":"One client's Comms log, newest-first, paginated (requires ``VIEW_ACCOUNT``).\n\nReads the ``notification_sent_log`` projection scoped to ``account_id``: the\nin-app row per notification plus the admin-send email/SMS outcome rows.","operationId":"list_account_comms_log_api_v1_admin_accounts__account_id__comms_log_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommsLogListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/{application_id}/adverse-action-notices":{"get":{"tags":["admin","admin"],"summary":"List Adverse Action Notices","description":"Every adverse action notice the application owes or owed, newest first.","operationId":"list_adverse_action_notices_api_v1_admin_applications__application_id__adverse_action_notices_get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","admin"],"summary":"Send Adverse Action Notice","description":"Send an adverse action notice stating the operator's reasons; the notice as it now stands.\n\nThe one operator send path. The send is the notice listener's: it claims the notice's record,\nsends through ``dispatch_comm`` and settles the record in sessions of its own, naming the\noperator.","operationId":"send_adverse_action_notice_api_v1_admin_applications__application_id__adverse_action_notices_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendNoticeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/{application_id}/adverse-action-notices/preview":{"post":{"tags":["admin","admin"],"summary":"Preview Adverse Action Notice","description":"The notice a send with this body would send. Sends and records nothing.","operationId":"preview_adverse_action_notice_api_v1_admin_applications__application_id__adverse_action_notices_preview_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendNoticeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/{application_id}/adverse-action-notices/sent-by-hand":{"post":{"tags":["admin","admin"],"summary":"Record Adverse Action Notice Sent By Hand","description":"Record a notice an operator sent outside the platform, by what it was for. Sends nothing.\n\nWhat gives the deadline measure a floor of zero for a notice somebody sent by hand (#1861):\nit fulfils the open notice for that, or records a new one where none is on record.","operationId":"record_adverse_action_notice_sent_by_hand_api_v1_admin_applications__application_id__adverse_action_notices_sent_by_hand_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SentByHandRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/{application_id}/adverse-action-notices/{notice_id}/sent-by-hand":{"post":{"tags":["admin","admin"],"summary":"Record This Adverse Action Notice Sent By Hand","description":"Record that this notice was sent outside the platform. The same recording as the\ncollection form, naming the notice rather than what it was for.","operationId":"record_this_adverse_action_notice_sent_by_hand_api_v1_admin_applications__application_id__adverse_action_notices__notice_id__sent_by_hand_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeSentByHandRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/adverse-action/reason-codes":{"get":{"tags":["admin","admin"],"summary":"List Adverse Action Reason Codes","description":"The reason-code catalogue: what a notice can state, and which an operator may choose.","operationId":"list_adverse_action_reason_codes_api_v1_admin_adverse_action_reason_codes_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonCodeCatalogueResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/disputes/{dispute_id}":{"get":{"tags":["admin","admin"],"summary":"Get Admin Dispute","description":"Get a dispute by id, cross-account, including network-side ids (null since #3331).\n\nArgs:\n    dispute_id: The dispute id.\n    session: DB session (direct query -- lean read, no domain reconstruction\n        needed for a display-only admin view).\n    ledger_service: For the disputed transaction's merchant/amount.\n\nReturns:\n    Admin dispute detail.\n\nRaises:\n    HTTPException: 404 if not found.","operationId":"get_admin_dispute_api_v1_admin_disputes__dispute_id__get","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","title":"Dispute Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDisputeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/lookup":{"post":{"tags":["admin","admin"],"summary":"Lookup Admin Account By Email","description":"Look up an account (and its Highnote-side ids) by the owning user's email.\n\nArgs:\n    body: The lookup input -- the user's email.\n    session: DB session -- lean direct read, no domain reconstruction needed.\n\nReturns:\n    Admin account detail.\n\nRaises:\n    HTTPException: 404 if no user with that email, or no account for that user.","operationId":"lookup_admin_account_by_email_api_v1_admin_accounts_lookup_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAccountLookupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/cardholders/search":{"get":{"tags":["admin","admin"],"summary":"Search Cardholders","description":"Unified account search by holder name/email, business name, account id, or card last4.\n\nRequires ``VIEW_ACCOUNT``. Every hit resolves to the owning account(s); rows are\ndeduped by ``account_id`` with ``matched_on`` unioning each provenance that hit.\nAn optional ``status`` filters the assembled rows to that account status, so search\nand the status filter combine (search ``alice`` *and* filter to ``active``).","operationId":"search_cardholders_api_v1_admin_cardholders_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardholderSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/360":{"get":{"tags":["admin","admin"],"summary":"Get Account 360","description":"Profile-sidebar summary only — tabs lazy-load their own endpoints.\n\nRequires ``VIEW_ACCOUNT``. Unknown account → 404 (``NotFoundError`` from the\naccount detail read). An account whose user has no linked application still\nrenders — business/owner/credit onboarding fields come back ``null``.","operationId":"get_account_360_api_v1_admin_accounts__account_id__360_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account360SummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/profile-corrections":{"get":{"tags":["admin","admin"],"summary":"List Profile Corrections","description":"The holder's name and business as they stand, and every correction, newest first.","operationId":"list_profile_corrections_api_v1_admin_accounts__account_id__profile_corrections_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileCorrectionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/profile-corrections/name":{"post":{"tags":["admin","admin"],"summary":"Correct Holder Name","description":"Correct the holder's given or family name, with a reason and a document (422 if invalid).","operationId":"correct_holder_name_api_v1_admin_accounts__account_id__profile_corrections_name_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameCorrectionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileCorrectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/profile-corrections/business":{"post":{"tags":["admin","admin"],"summary":"Correct Holder Business","description":"Correct the holder's business name or address, with a reason and a document.","operationId":"correct_holder_business_api_v1_admin_accounts__account_id__profile_corrections_business_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessCorrectionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileCorrectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/roles/me":{"get":{"tags":["admin","admin"],"summary":"Get My Permissions","description":"Return the current admin's id + role + permissions (any active role; 403 if none).","operationId":"get_my_permissions_api_v1_admin_roles_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyPermissionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/roles":{"get":{"tags":["admin","admin"],"summary":"List Admin Roles","description":"List all active admin role assignments (requires ``MANAGE_ROLES``).","operationId":"list_admin_roles_api_v1_admin_roles_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminRoleResponse"},"title":"Response List Admin Roles Api V1 Admin Roles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","admin"],"summary":"Grant Admin Role","description":"Grant a role to a user (requires ``MANAGE_ROLES``; target must be @daocards.com).","operationId":"grant_admin_role_api_v1_admin_roles_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantRoleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRoleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/roles/{user_id}":{"delete":{"tags":["admin","admin"],"summary":"Revoke Admin Role","description":"Revoke a user's active admin role (requires ``MANAGE_ROLES``).","operationId":"revoke_admin_role_api_v1_admin_roles__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/adjustments":{"post":{"tags":["admin","admin"],"summary":"Submit Adjustment","description":"Submit a balance adjustment (requires ``ADJUST_BALANCE``).","operationId":"submit_adjustment_api_v1_admin_adjustments_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitAdjustmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdjustmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin","admin"],"summary":"List Adjustments","description":"List adjustments (requires ``VIEW_ACCOUNT``).\n\nWith ``account_id`` → that account's full adjustment log (all statuses,\nnewest first), which the account-detail CRM view renders inline (#924).\nWithout it → the cross-account pending-approval queue.\n\nEach row is enriched with the cardholder name behind the account and the\ndisplay name of the submitting admin — both batch-resolved over the whole\npage (one directory read each), nullable when unresolved.","operationId":"list_adjustments_api_v1_admin_adjustments_get","parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"pending","title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdjustmentResponse"},"title":"Response List Adjustments Api V1 Admin Adjustments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/adjustments/fee-waiver":{"post":{"tags":["admin","admin"],"summary":"Waive Fee","description":"Waive an assessed fee/interest as a credit adjustment (requires ``ADJUST_BALANCE``).\n\nRoutes through the same two-person approval gate as any balance adjustment —\na large waiver above the submitter's limit lands in ``PENDING_APPROVAL``.","operationId":"waive_fee_api_v1_admin_adjustments_fee_waiver_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaiveFeeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdjustmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/adjustments/{adjustment_id}/approve":{"post":{"tags":["admin","admin"],"summary":"Approve Adjustment","description":"Approve a pending adjustment → posts it (requires ``APPROVE_ADJUSTMENT``).","operationId":"approve_adjustment_api_v1_admin_adjustments__adjustment_id__approve_post","parameters":[{"name":"adjustment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Adjustment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdjustmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/adjustments/{adjustment_id}/reject":{"post":{"tags":["admin","admin"],"summary":"Reject Adjustment","description":"Reject a pending adjustment (requires ``APPROVE_ADJUSTMENT``).","operationId":"reject_adjustment_api_v1_admin_adjustments__adjustment_id__reject_post","parameters":[{"name":"adjustment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Adjustment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectAdjustmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdjustmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/cases":{"post":{"tags":["admin","admin"],"summary":"Open Case","description":"Open a compliance case (requires ``SERVICE_ACCOUNT``, plus the type's intake permission).","operationId":"open_case_api_v1_admin_cases_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenCaseRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin","admin"],"summary":"List Cases","description":"List cases (requires ``VIEW_ACCOUNT``).\n\nWith ``account_id`` → that account's cases; otherwise the open-case queue,\noptionally filtered by ``type``.\n\nEach row is enriched with the cardholder name behind the case's account,\nbatch-resolved over the whole page (one directory read), nullable when\nunresolved.","operationId":"list_cases_api_v1_admin_cases_get","parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CaseType"},{"type":"null"}],"title":"Type"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CaseResponse"},"title":"Response List Cases Api V1 Admin Cases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/cases/{case_id}":{"get":{"tags":["admin","admin"],"summary":"Get Case","description":"Get a single case with its SLA + event log (requires ``VIEW_ACCOUNT``).","operationId":"get_case_api_v1_admin_cases__case_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/cases/{case_id}/transition":{"post":{"tags":["admin","admin"],"summary":"Transition Case","description":"Transition a case to a new state (requires ``SERVICE_ACCOUNT``).","operationId":"transition_case_api_v1_admin_cases__case_id__transition_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransitionCaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/cases/{case_id}/assign":{"post":{"tags":["admin","admin"],"summary":"Assign Case","description":"(Re)assign a case (requires ``SERVICE_ACCOUNT``).","operationId":"assign_case_api_v1_admin_cases__case_id__assign_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignCaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/cases/{case_id}/notes":{"post":{"tags":["admin","admin"],"summary":"Add Case Note","description":"Append a servicing note (requires ``SERVICE_ACCOUNT``).","operationId":"add_case_note_api_v1_admin_cases__case_id__notes_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCaseNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/complaints/vocabulary":{"get":{"tags":["admin","admin"],"summary":"Complaint Vocabulary","description":"Every complaint code list with its labels (requires ``VIEW_ACCOUNT``).","operationId":"complaint_vocabulary_api_v1_admin_complaints_vocabulary_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplaintVocabularyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/complaints":{"post":{"tags":["admin","admin"],"summary":"Receive Complaint","description":"Record a complaint, once per submission of the form (requires ``SERVICE_ACCOUNT``).","operationId":"receive_complaint_api_v1_admin_complaints_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiveComplaintRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/cases/{case_id}/complaint":{"put":{"tags":["admin","admin"],"summary":"Amend Complaint Intake","description":"Correct how a complaint reached us, from the fields sent (requires ``SERVICE_ACCOUNT``).","operationId":"amend_complaint_intake_api_v1_admin_cases__case_id__complaint_put","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmendComplaintIntakeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/cases/{case_id}/complaint/responses":{"post":{"tags":["admin","admin"],"summary":"Record Complaint Response","description":"Log a communication sent about a complaint (requires ``SERVICE_ACCOUNT``).","operationId":"record_complaint_response_api_v1_admin_cases__case_id__complaint_responses_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordComplaintResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/cases/{case_id}/complaint/conclusion":{"post":{"tags":["admin","admin"],"summary":"Conclude Complaint","description":"Record a complaint's resolution; resolve or close it (requires ``SERVICE_ACCOUNT``).","operationId":"conclude_complaint_api_v1_admin_cases__case_id__complaint_conclusion_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcludeComplaintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/advisors":{"get":{"tags":["admin","admin","admin"],"summary":"List Roster","description":"Return the team roster: active advisors + identity + client count (``VIEW_ACCOUNT``).","operationId":"list_roster_api_v1_admin_advisors_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdvisorRosterResponse"},"title":"Response List Roster Api V1 Admin Advisors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","admin","admin"],"summary":"Create Advisor","description":"Register a CRM advisor for an admin user (requires ``MANAGE_ADVISORS``).","operationId":"create_advisor_api_v1_admin_advisors_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdvisorRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/advisors/{advisor_id}/deactivate":{"post":{"tags":["admin","admin","admin"],"summary":"Deactivate Advisor","description":"Deactivate an advisor (requires ``MANAGE_ADVISORS``; idempotent).","operationId":"deactivate_advisor_api_v1_admin_advisors__advisor_id__deactivate_post","parameters":[{"name":"advisor_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Advisor Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/advisors/{advisor_id}":{"get":{"tags":["admin","admin","admin"],"summary":"Get Advisor Book","description":"Return an advisor's active client book (requires ``VIEW_ACCOUNT``; 404 if unknown).","operationId":"get_advisor_book_api_v1_admin_advisors__advisor_id__get","parameters":[{"name":"advisor_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Advisor Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorBookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/clients/{account_id}/advisor":{"put":{"tags":["admin","admin","admin"],"summary":"Assign Advisor","description":"Assign (or reassign) the account's client to an advisor (requires ``MANAGE_ADVISORS``).\n\nCapacity-guarded and reassignment-safe in the service: an at-capacity or\ninactive/unknown advisor surfaces as a ``DomainError`` (→ 400).","operationId":"assign_advisor_api_v1_admin_clients__account_id__advisor_put","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignAdvisorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorAssignmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","admin","admin"],"summary":"Unassign Advisor","description":"Unassign the account's client from its current advisor (requires ``MANAGE_ADVISORS``).","operationId":"unassign_advisor_api_v1_admin_clients__account_id__advisor_delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/clients":{"get":{"tags":["admin","admin"],"summary":"List Clients","description":"List funded clients (newest-first), paginated, with header KPIs (requires VIEW_ACCOUNT).\n\nPagination only — the projection is not filterable (see module docstring).","operationId":"list_clients_api_v1_admin_clients_get","parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientBookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/clients/{account_id}":{"get":{"tags":["admin","admin"],"summary":"Get Client","description":"Return one funded client's Client Book row (requires VIEW_ACCOUNT); 404 if not funded.","operationId":"get_client_api_v1_admin_clients__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tasks":{"post":{"tags":["admin","admin"],"summary":"Create Task","description":"Open a task (requires ``SERVICE_ACCOUNT``); an omitted assignee → shared queue.","operationId":"create_task_api_v1_admin_tasks_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaskRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin","admin"],"summary":"List Tasks","description":"List tasks by ``status`` + ``assignee_id``/``unassigned`` (priority-ordered; VIEW_ACCOUNT).\n\n``unassigned=true`` restricts to the shared queue and takes precedence over ``assignee_id``.\n\nEach row carries the referenced entity's display name (``ref_name``), batch-\nresolved over the page and dispatched on ``ref_type``; nullable when unresolved.","operationId":"list_tasks_api_v1_admin_tasks_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TaskStatus"},{"type":"null"}],"title":"Status"}},{"name":"assignee_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignee Id"}},{"name":"unassigned","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unassigned"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskResponse"},"title":"Response List Tasks Api V1 Admin Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tasks/stats":{"get":{"tags":["admin","admin"],"summary":"Task Stats","description":"Return the four per-status queue counts (requires ``VIEW_ACCOUNT``).","operationId":"task_stats_api_v1_admin_tasks_stats_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tasks/{task_id}":{"get":{"tags":["admin","admin"],"summary":"Get Task","description":"Read a single task (requires ``VIEW_ACCOUNT``; 404 if unknown).","operationId":"get_task_api_v1_admin_tasks__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tasks/{task_id}/assign":{"post":{"tags":["admin","admin"],"summary":"Assign Task","description":"(Re)assign a task; ``assignee_id=null`` → shared queue (requires ``SERVICE_ACCOUNT``).","operationId":"assign_task_api_v1_admin_tasks__task_id__assign_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignTaskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tasks/{task_id}/transition":{"post":{"tags":["admin","admin"],"summary":"Transition Task","description":"Transition a task to a new status (requires ``SERVICE_ACCOUNT``; illegal edge → 400).","operationId":"transition_task_api_v1_admin_tasks__task_id__transition_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransitionTaskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/activity":{"get":{"tags":["admin","admin"],"summary":"List Global Activity","description":"Global Activity feed, newest-first, paginated (requires ``VIEW_ACCOUNT``).\n\nDrops context-less rows (no account and no user). ``category`` and ``actor``\nare repeatable; ``date_from``/``date_to`` bound ``occurred_at`` (inclusive,\neither side optional). All filters combine (AND).","operationId":"list_global_activity_api_v1_admin_activity_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"actor","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Actor"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/activity":{"get":{"tags":["admin","admin"],"summary":"List Account Activity","description":"One client's Activity feed, newest-first, paginated (requires ``VIEW_ACCOUNT``).\n\nScoped to ``account_id``. ``category`` and ``actor`` are repeatable;\n``date_from``/``date_to`` bound ``occurred_at`` (inclusive, either side\noptional). All filters combine (AND).","operationId":"list_account_activity_api_v1_admin_accounts__account_id__activity_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"actor","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Actor"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/{application_id}/activity":{"get":{"tags":["admin","admin"],"summary":"List Application Activity","description":"One application's own Activity entries, newest-first, paginated (``VIEW_ACCOUNT``).\n\nScoped to ``application_id``: the entries its own events and the risk checks run\non it wrote, which carry no account. Filters as the other two feeds. A sensitive\nfield's change stays withheld, as everywhere.","operationId":"list_application_activity_api_v1_admin_applications__application_id__activity_get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"actor","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Actor"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dashboard/summary":{"get":{"tags":["admin","admin"],"summary":"Get Dashboard Summary","description":"Ops morning-check: attention queue + headline stats (requires ``VIEW_ACCOUNT``).\n\nOnly attention items with ``count > 0`` are included, priority-ordered.","operationId":"get_dashboard_summary_api_v1_admin_dashboard_summary_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDashboardSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/settings":{"get":{"tags":["admin","admin"],"summary":"Get Settings","description":"Return the acting admin's own settings (defaults if none stored; VIEW_ACCOUNT).","operationId":"get_settings_api_v1_admin_settings_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","admin"],"summary":"Update Settings","description":"Change the acting admin's own settings from the fields sent (unknown blob key → 400).","operationId":"update_settings_api_v1_admin_settings_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/alert-preferences":{"get":{"tags":["admin","admin"],"summary":"List Alert Preferences","description":"Return the acting admin's own alert preferences (defaults where unset).","operationId":"list_alert_preferences_api_v1_admin_alert_preferences_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AlertPreferenceResponse"},"title":"Response List Alert Preferences Api V1 Admin Alert Preferences Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/alert-preferences/{alert_type}":{"put":{"tags":["admin","admin"],"summary":"Update Alert Preference","description":"Set one of the acting admin's own alert toggles.\n\nA non-opt-outable (or unknown) alert type is a 400 — the delivery of a\nmandatory alert is an operational obligation, not a preference. Both raise\nbefore anything is written, so the commit below is never reached.\n\nThe ``session`` parameter is the same object ``get_alert_preference_service``\nwas handed (FastAPI caches a dependency per request), so committing it commits\nthe repository's flushed upsert — see the module docstring for why nothing\nelse in the chain will.","operationId":"update_alert_preference_api_v1_admin_alert_preferences__alert_type__put","parameters":[{"name":"alert_type","in":"path","required":true,"schema":{"type":"string","title":"Alert Type"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAlertPreferenceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertPreferenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/under-review":{"post":{"tags":["admin","admin"],"summary":"Mark Account Under Review","description":"Mark an account under review (requires MANAGE_COMPLIANCE_FLAGS); auto-notes the action.","operationId":"mark_account_under_review_api_v1_admin_accounts__account_id__under_review_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkUnderReviewRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","admin"],"summary":"Clear Account Under Review","description":"Clear an account's under-review status (requires MANAGE_COMPLIANCE_FLAGS); auto-notes.","operationId":"clear_account_under_review_api_v1_admin_accounts__account_id__under_review_delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/freeze":{"delete":{"tags":["admin","admin"],"summary":"Lift Account Freeze","description":"Lift an account's freeze (requires MANAGE_COMPLIANCE_FLAGS) (#1553).\n\nThe freeze a returned security deposit places records no person, so its holder\ncannot lift it; this is how staff do once the deposit is made good\n(`@RID-ACCOUNT-FREEZE-009`). The account returns to the standing beneath the\nfreeze and the cards the freeze stopped are restored at the processor. Answers\n400 for an account that is not frozen, a closed one included.","operationId":"lift_account_freeze_api_v1_admin_accounts__account_id__freeze_delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/cease-and-desist":{"post":{"tags":["admin","admin"],"summary":"Apply Cease And Desist","description":"Apply the cease-and-desist flag (needs MANAGE_COMPLIANCE_FLAGS); auto-notes. Idempotent.","operationId":"apply_cease_and_desist_api_v1_admin_accounts__account_id__cease_and_desist_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","admin"],"summary":"Remove Cease And Desist","description":"Remove the cease-and-desist flag (needs MANAGE_COMPLIANCE_FLAGS); auto-notes. Idempotent.","operationId":"remove_cease_and_desist_api_v1_admin_accounts__account_id__cease_and_desist_delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/flagged":{"get":{"tags":["admin","admin"],"summary":"List Flagged Accounts","description":"Enumerate accounts on a BSA/AML list (watch|blocked|high_risk) (requires VIEW_ACCOUNT).","operationId":"list_flagged_accounts_api_v1_admin_accounts_flagged_get","parameters":[{"name":"list","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ComplianceFlagList"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlaggedAccountsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/watch-list":{"post":{"tags":["admin","admin"],"summary":"Flag Watch List","description":"Add the account to the watch list (requires MANAGE_COMPLIANCE_FLAGS). Idempotent.","operationId":"flag_watch_list_api_v1_admin_accounts__account_id__watch_list_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlagRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","admin"],"summary":"Clear Watch List","description":"Remove the account from the watch list (requires MANAGE_COMPLIANCE_FLAGS). Idempotent.","operationId":"clear_watch_list_api_v1_admin_accounts__account_id__watch_list_delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/blocked":{"post":{"tags":["admin","admin"],"summary":"Flag Blocked","description":"Add the account to the blocked list (requires MANAGE_COMPLIANCE_FLAGS). Idempotent.","operationId":"flag_blocked_api_v1_admin_accounts__account_id__blocked_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlagRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","admin"],"summary":"Clear Blocked","description":"Remove the account from the blocked list (requires MANAGE_COMPLIANCE_FLAGS). Idempotent.","operationId":"clear_blocked_api_v1_admin_accounts__account_id__blocked_delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/high-risk":{"post":{"tags":["admin","admin"],"summary":"Flag High Risk","description":"Flag the account high-risk (requires MANAGE_COMPLIANCE_FLAGS). Idempotent.","operationId":"flag_high_risk_api_v1_admin_accounts__account_id__high_risk_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HighRiskFlagRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","admin"],"summary":"Clear High Risk","description":"Clear the account's high-risk flag (requires MANAGE_COMPLIANCE_FLAGS). Idempotent.","operationId":"clear_high_risk_api_v1_admin_accounts__account_id__high_risk_delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/fee-suspension":{"post":{"tags":["admin","admin"],"summary":"Suspend Fees","description":"Suspend fee assessment (requires APPROVE_ADJUSTMENT); auto-notes. Replaces any active.","operationId":"suspend_fees_api_v1_admin_accounts__account_id__fee_suspension_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuspendRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","admin"],"summary":"Resume Fees","description":"Resume fee assessment (requires APPROVE_ADJUSTMENT); auto-notes. No-op if none active.","operationId":"resume_fees_api_v1_admin_accounts__account_id__fee_suspension_delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin","admin"],"summary":"Get Fee Suspension","description":"Return the account's active fee suspension, or null (requires VIEW_ACCOUNT).","operationId":"get_fee_suspension_api_v1_admin_accounts__account_id__fee_suspension_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SuspensionResponse"},{"type":"null"}],"title":"Response Get Fee Suspension Api V1 Admin Accounts  Account Id  Fee Suspension Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/interest-suspension":{"post":{"tags":["admin","admin"],"summary":"Suspend Interest","description":"Suspend interest accrual (requires APPROVE_ADJUSTMENT); auto-notes. Replaces any active.","operationId":"suspend_interest_api_v1_admin_accounts__account_id__interest_suspension_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuspendRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","admin"],"summary":"Resume Interest","description":"Resume interest accrual (requires APPROVE_ADJUSTMENT); auto-notes. No-op if none active.","operationId":"resume_interest_api_v1_admin_accounts__account_id__interest_suspension_delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin","admin"],"summary":"Get Interest Suspension","description":"Return the account's active interest suspension, or null (requires VIEW_ACCOUNT).","operationId":"get_interest_suspension_api_v1_admin_accounts__account_id__interest_suspension_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SuspensionResponse"},{"type":"null"}],"title":"Response Get Interest Suspension Api V1 Admin Accounts  Account Id  Interest Suspension Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/status-history":{"get":{"tags":["admin","admin"],"summary":"List Account Status History","description":"List an account's status transitions, most recent first (requires VIEW_ACCOUNT).\n\nReads the immutable status-history read model directly — no domain logic.","operationId":"list_account_status_history_api_v1_admin_accounts__account_id__status_history_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StatusHistoryResponse"},"title":"Response List Account Status History Api V1 Admin Accounts  Account Id  Status History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/notes":{"get":{"tags":["admin","admin"],"summary":"List Account Notes","description":"One page of an account's audit notes, most recent first, with their total.\n\nPaged as the account list is (``offset``/``limit``, ``{items, total}``), so every\nnote is reachable and none drops off (#3012). Requires VIEW_ACCOUNT.","operationId":"list_account_notes_api_v1_admin_accounts__account_id__notes_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountNotesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","admin"],"summary":"Add Account Note","description":"Add a manual audit note to an account (requires SERVICE_ACCOUNT).","operationId":"add_account_note_api_v1_admin_accounts__account_id__notes_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddNoteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountNoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts":{"get":{"tags":["admin","admin"],"summary":"List Accounts","description":"List accounts across the platform, filterable (requires VIEW_ACCOUNT).","operationId":"list_accounts_api_v1_admin_accounts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To Date"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}":{"get":{"tags":["admin","admin"],"summary":"Get Account Detail","description":"Unified account detail: fields + suspensions + recent notes + status history.","operationId":"get_account_detail_api_v1_admin_accounts__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/cards/{card_id}/replacement":{"post":{"tags":["admin","admin"],"summary":"Issue Replacement Card","description":"Order a replacement for a stopped primary card (requires ISSUE_REPLACEMENT_CARD).\n\nThe launch shape of a card replacement (``CONFLICT-CARDS-012``): the cardholder has\nreported the card lost or stolen — which stopped it here and closed it at the\nprocessor — and contacted us; this is the operator ordering the new card. The\nprocessor issues a fresh card with a **new number** on the same financial\naccount, active at once as a virtual card, and ships the plastic to the account\nholder's address on file unless ``ship_plastic`` is false. The account records\nit as its live primary, the cardholder is told a card is on its way, and the\naccount's audit trail and the activity record name the operator.\n\nRefused (400) when the account is not active, the card is still live, is not\nthe account holder's own, the account already holds a live primary, or plastic\nis asked for and there is no complete address on file; 502 when the processor\nrefuses — in every case nothing is committed and no card is recorded.\n\nRepeating the request is safe (#2905). Two requests for one card run in turn, and\nthe second — like any repeat once the card is recorded — is refused (400, *already\nholds a live primary card*) and issues nothing. A repeat after a request that died\nbefore recording presents the same idempotency key, derived from the card replaced,\nand adopts the card that request issued. When the processor issued a card and it\ncould not be recorded — the plastic order failed, or the account changed under\nthe request (409) — the card is closed at the processor before the answer, and\nthe answer says whether that worked.","operationId":"issue_replacement_card_api_v1_admin_accounts__account_id__cards__card_id__replacement_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"card_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueReplacementCardRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplacementCardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/cards/{card_id}/plastic":{"post":{"tags":["admin","admin"],"summary":"Order Plastic For Card","description":"Order the physical card for the holder's digital card (requires ISSUE_REPLACEMENT_CARD).\n\nA card reported lost or stolen is replaced digital only, and that card is the\naccount's live primary, so the replacement route refuses to order another (#2493).\nThis orders its plastic: the processor reissues the digital card with the same\nnumber, inactive until the cardholder activates it, and ships it to the account\nholder's address on file. The digital card keeps working until the plastic is\nactivated, which closes it. The account's audit trail names the operator.\n\nRefused (400) when the card is not the holder's own live card, already has a\nplastic, the account is not active, or there is no complete address on file; 404\nfor a card the account does not hold; 502 when the processor refuses — in every\ncase nothing is recorded. Safe to repeat: a repeat is refused (*already has a\nphysical card*), and one after a request that died adopts the reissue it made.","operationId":"order_plastic_for_card_api_v1_admin_accounts__account_id__cards__card_id__plastic_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"card_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Card Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlasticOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/issuance/resume":{"post":{"tags":["admin","admin"],"summary":"Resume Held Issuance","description":"Continue an issuance held for a person (requires ISSUE_REPLACEMENT_CARD).\n\nAn issuance is held when the card processor's ledger has to be read by a person\nfirst: a card issued with no record of its limit being drawn, or a line already\npartly drawn and no card yet (``@RID-ACCOUNT-LIMIT-010``, ``-011``). Once that\nperson has dealt with the ledger, this continues the chain as a further delivery of\nthe processor's approval would, without waiting for one (``@RID-ACCOUNT-LIMIT-012``):\nthe ledger is read again, and a line still partly drawn is held again, nothing\ndrawn and no card issued. Safe to repeat, and safe beside a redelivered approval:\nboth run under the account's resume lock, and every recorded step short-circuits.\n\nThe same authority as a replacement card, because it issues a card. The operator is\nnamed on the resume's log records before the processor is asked anything.\n\nRefused (400) for a closed account, a blocked one (``card_issuance_refused``, no\nnotice, #2416), one with no approval from the processor on record, or one whose\nowner does not route to the processor; 404 for no such account; 409 when another\nresume of the account still holds its lock past the wait, nothing asked or recorded\n(#3265); 502 when the processor refuses a step. The resume commits each step itself,\non a session of its own.","operationId":"resume_held_issuance_api_v1_admin_accounts__account_id__issuance_resume_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuanceResumeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/transactions":{"get":{"tags":["admin","admin"],"summary":"List Account Transactions","description":"List one account's transactions for the admin 360, most-recent-first.\n\nRequires ``VIEW_ACCOUNT``. ``category`` filters on transaction type; ``status``,\n``from_date``, and ``to_date`` narrow the set further; the two dates are days\n(``YYYY-MM-DD``) in the processor's calendar, the days the rows are shown on,\nread the same way as the cardholder's own filter (#3012, P1-10).","operationId":"list_account_transactions_api_v1_admin_accounts__account_id__transactions_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To Date"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/transactions/by-reference/{reference}":{"get":{"tags":["admin","admin"],"summary":"Find Account Transaction By Reference","description":"Find one of this account's transactions by the reference the cardholder quoted.\n\nThe account is in the path, not in a query string, because the scope is not\noptional: a reference is unique within one account and nowhere wider, so a\nlookup without an account named is a question with no answer. Reading it that\nway also means an operator who may not view this account is refused by the\nsame ``VIEW_ACCOUNT`` gate as every other read here.\n\nCase, spacing, and the ``I``/``1``, ``L``/``1``, ``O``/``0`` confusions of a\ncode read down a phone line are folded away before the match. A reference this\naccount does not carry is a 404 — the same answer as a reference that belongs\nto somebody else's account, which is the point.","operationId":"find_account_transaction_by_reference_api_v1_admin_accounts__account_id__transactions_by_reference__reference__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"reference","in":"path","required":true,"schema":{"type":"string","title":"Reference"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxnAdminItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/billing":{"get":{"tags":["admin","admin"],"summary":"Get Account Billing","description":"Return an account's statements, payments, and autopay for the admin 360.\n\nRequires ``VIEW_ACCOUNT``. Statements/payments are most-recent-first; ``autopay``\nis ``null`` when the account has no configuration (never a 404 on that alone).","operationId":"get_account_billing_api_v1_admin_accounts__account_id__billing_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBillingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/billing/statements/{statement_id}/send":{"post":{"tags":["admin","admin"],"summary":"Send Statement Copy","description":"Send this account's cardholder a copy of one of their own statements.\n\nRequires ``MANAGE_COMMS``. The statement is re-rendered for this send and\nstored nowhere; the recipient is resolved from ``account_id`` and cannot be\nsupplied. A statement that is not this account's is a **404**, the same\nanswer as one that does not exist — otherwise the endpoint would answer\n\"which statements does that other account have\".","operationId":"send_statement_copy_api_v1_admin_accounts__account_id__billing_statements__statement_id__send_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Statement Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementCopyResponse"}}}},"403":{"description":"The operator does not hold MANAGE_COMMS."},"404":{"description":"No such statement on this account."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/held-payments":{"get":{"tags":["admin","admin"],"summary":"List Held Payments","description":"Every debit held for want of an answer, both rails, across all accounts, oldest first.","operationId":"list_held_payments_api_v1_admin_billing_held_payments_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HeldPaymentItem"},"title":"Response List Held Payments Api V1 Admin Billing Held Payments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/held-debits/{attempt_id}/rail-check":{"get":{"tags":["admin","admin"],"summary":"Check Held Debit","description":"Ask the payment rail for a charge under the debit's own reference. Changes nothing.","operationId":"check_held_debit_api_v1_admin_billing_held_debits__attempt_id__rail_check_get","parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Attempt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RailCheckResponse"}}}},"403":{"description":"The operator does not hold RELEASE_HELD_PAYMENT."},"404":{"description":"No such debit."},"409":{"description":"The debit is not waiting on an answer, or the rail's answer refuses it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldDebitRefusedResponse"}}}},"502":{"description":"The payment rail could not be asked, or a resend got no readable answer (``resend_unanswered``).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldDebitRefusedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/held-debits/{attempt_id}/attach":{"post":{"tags":["admin","admin"],"summary":"Attach Held Debit","description":"Bind the charge the rail holds under the debit's reference, when it agrees with it.\n\nThe service commits each change with its record as it makes it; the commit here ends the\nrequest's transaction, whatever is left of it.","operationId":"attach_held_debit_api_v1_admin_billing_held_debits__attempt_id__attach_post","parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Attempt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldDebitResponse"}}}},"403":{"description":"The operator does not hold RELEASE_HELD_PAYMENT."},"404":{"description":"No such debit."},"409":{"description":"The debit is not waiting on an answer, or the rail's answer refuses it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldDebitRefusedResponse"}}}},"502":{"description":"The payment rail could not be asked, or a resend got no readable answer (``resend_unanswered``).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldDebitRefusedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/held-debits/{attempt_id}/resend":{"post":{"tags":["admin","admin"],"summary":"Resend Held Debit","description":"Send the debit's own request again, under its own key, while the rail holds the key.\n\nThe service commits each change with its record as it makes it; the commit here ends the\nrequest's transaction, whatever is left of it.","operationId":"resend_held_debit_api_v1_admin_billing_held_debits__attempt_id__resend_post","parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Attempt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldDebitResponse"}}}},"403":{"description":"The operator does not hold RELEASE_HELD_PAYMENT."},"404":{"description":"No such debit."},"409":{"description":"The debit is not waiting on an answer, or the rail's answer refuses it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldDebitRefusedResponse"}}}},"502":{"description":"The payment rail could not be asked, or a resend got no readable answer (``resend_unanswered``).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldDebitRefusedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/held-debits/{attempt_id}/release":{"post":{"tags":["admin","admin"],"summary":"Release Held Debit","description":"Release the debit on the rail's final answer that it holds no charge for it.\n\nThe service commits the release and its record together; the commit after the call ends\nthe transaction an ``already_released`` answer read in, which staged nothing.","operationId":"release_held_debit_api_v1_admin_billing_held_debits__attempt_id__release_post","parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Attempt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldDebitResponse"}}}},"403":{"description":"The operator does not hold RELEASE_HELD_PAYMENT."},"404":{"description":"No such debit."},"409":{"description":"The debit is not waiting on an answer, or the rail's answer refuses it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldDebitRefusedResponse"}}}},"502":{"description":"The payment rail could not be asked, or a resend got no readable answer (``resend_unanswered``).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldDebitRefusedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/billing/held-payments":{"get":{"tags":["admin","admin"],"summary":"List Account Held Payments","description":"This account's held payments, both rails.","operationId":"list_account_held_payments_api_v1_admin_accounts__account_id__billing_held_payments_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HeldPaymentItem"},"title":"Response List Account Held Payments Api V1 Admin Accounts  Account Id  Billing Held Payments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/billing/payments/{payment_id}/processor-check":{"get":{"tags":["admin","admin"],"summary":"Check Held Payment","description":"Ask the processor whether it holds a transfer that may be this held payment.\n\nChanges nothing. The verdict is in the body whatever it is — a check that could\nnot be completed is an answer (``check_failed``), not an error.","operationId":"check_held_payment_api_v1_admin_accounts__account_id__billing_payments__payment_id__processor_check_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessorCheckResponse"}}}},"403":{"description":"The operator does not hold RELEASE_HELD_PAYMENT."},"404":{"description":"No such payment on this account."},"409":{"description":"The payment is not held, or the payment rail carries it."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/billing/payments/{payment_id}/release":{"post":{"tags":["admin","admin"],"summary":"Release Held Payment","description":"Release a held payment, freeing its funding source, if the processor holds nothing.\n\nThe request's commit is handed to the service to call, so the payment's\nchange and its audit note are one transaction made durable before the release is\nannounced. A refusal commits nothing — its note is written on its own session by\nthe audit adapter — and the request's rollback releases the row lock. The commit\nafter the call ends the transaction an ``already_released`` answer read under its\nlock, which staged nothing.","operationId":"release_held_payment_api_v1_admin_accounts__account_id__billing_payments__payment_id__release_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseResponse"}}}},"403":{"description":"The operator does not hold RELEASE_HELD_PAYMENT."},"404":{"description":"No such payment on this account."},"409":{"description":"The payment is not held, the payment rail carries it, or the processor holds a transfer that may be it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseRefusedResponse"}}}},"502":{"description":"The processor could not be asked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseRefusedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/billing/payments/{payment_id}/attach":{"post":{"tags":["admin","admin"],"summary":"Attach Held Payment Transfer","description":"Attach the transfer the operator confirmed, when it is the one that may be the payment.\n\nThe processor is asked again under the payment's lock; the payment records the transfer\nand moves to processing in the same transaction as the attach's note, and the processor's\nannouncements for the transfer settle it from there (#2652).","operationId":"attach_held_payment_transfer_api_v1_admin_accounts__account_id__billing_payments__payment_id__attach_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachTransferRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseResponse"}}}},"403":{"description":"The operator does not hold RELEASE_HELD_PAYMENT."},"404":{"description":"No such payment on this account."},"409":{"description":"The payment is not held, the payment rail carries it, or the named transfer is not the one transfer that may be it (``ambiguous``, ``not_a_candidate``, ``no_transfer``).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseRefusedResponse"}}}},"502":{"description":"The processor could not be asked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseRefusedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/authorization-holds":{"get":{"tags":["admin","admin"],"summary":"List Open Authorization Holds","description":"Every open hold on an ACH debit authorization, across all accounts.","operationId":"list_open_authorization_holds_api_v1_admin_billing_authorization_holds_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuthorizationHoldItem"},"title":"Response List Open Authorization Holds Api V1 Admin Billing Authorization Holds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/billing/authorization-holds":{"get":{"tags":["admin","admin"],"summary":"List Account Authorization Holds","description":"This account's holds, open and released.","operationId":"list_account_authorization_holds_api_v1_admin_accounts__account_id__billing_authorization_holds_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuthorizationHoldItem"},"title":"Response List Account Authorization Holds Api V1 Admin Accounts  Account Id  Billing Authorization Holds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/billing/authorization-holds/{hold_id}/release":{"post":{"tags":["admin","admin"],"summary":"Release Authorization Hold","description":"Release a hold, so debits under its authorization may be taken again.\n\nThe request's commit is handed to the service, so the hold's release and its note\ncommit together. The commit after the call ends the transaction an\n``already_released`` answer read under its lock, which staged nothing.","operationId":"release_authorization_hold_api_v1_admin_accounts__account_id__billing_authorization_holds__hold_id__release_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"hold_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Hold Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseAuthorizationHoldRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseAuthorizationHoldResponse"}}}},"403":{"description":"The operator does not hold RELEASE_HELD_PAYMENT."},"404":{"description":"No such hold on this account."},"422":{"description":"The reason is blank or too long."}}}},"/api/v1/admin/accounts/{account_id}/billing/bank-links":{"get":{"tags":["admin","admin"],"summary":"Get Account Bank Links","description":"Every bank account the account's cardholder linked, and every attempt that failed.","operationId":"get_account_bank_links_api_v1_admin_accounts__account_id__billing_bank_links_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankLinkHistoryResponse"}}}},"404":{"description":"No such account."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications":{"get":{"tags":["admin","admin"],"summary":"List Applications","description":"List applications across accounts (requires ``VIEW_ACCOUNT``).\n\n``status`` is one application status, or ``needs_review`` for every application waiting on\na reviewer; omitted, every status.","operationId":"list_applications_api_v1_admin_applications_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminApplicationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/stats":{"get":{"tags":["admin","admin"],"summary":"Get Application Stats","description":"Review-queue stats-bar counts (requires ``VIEW_ACCOUNT``).\n\nDeclared **before** ``GET /admin/applications/{application_id}`` so ``stats`` is not\ncaptured as a path param.","operationId":"get_application_stats_api_v1_admin_applications_stats_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/{application_id}":{"get":{"tags":["admin","admin"],"summary":"Get Application Detail","description":"Enriched application detail for the admin review UI (requires ``VIEW_ACCOUNT``).","operationId":"get_application_detail_api_v1_admin_applications__application_id__get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/{application_id}/approve":{"post":{"tags":["admin","admin"],"summary":"Approve Application","description":"Admin-approve a PREQUAL_REVIEW application (requires ``OVERRIDE_PREQUAL``).","operationId":"approve_application_api_v1_admin_applications__application_id__approve_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveApplicationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/{application_id}/decline":{"post":{"tags":["admin","admin"],"summary":"Decline Application","description":"Admin-decline a PREQUAL_REVIEW application (requires ``OVERRIDE_PREQUAL``).","operationId":"decline_application_api_v1_admin_applications__application_id__decline_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclineApplicationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/recycle-persona":{"post":{"tags":["admin","admin"],"summary":"Recycle Test Persona","description":"Free an allow-listed synthetic phone number (requires ``RECYCLE_TEST_PERSONA``).\n\nThe scheduled end-to-end suite's pre-flight. It knows its persona's number and not an\napplication id — a previous run killed at a container timeout leaves no record of what it\ncreated — so this resolves the number itself.\n\n🔑 **Three gates, and the permission is the weakest of them.** The permission decides who\nmay ask. The environment check decides where the endpoint exists at all. The allow-list\ndecides what may be touched, and without it this would be a\ncancel-any-application-by-phone-number surface with a narrower name.\n\n🆕 2026-09-28 — the allow-list now carries more weight than before, because this route can\nalso **retire an approved application** (``Application.retire_test_persona``). That is the\none path in the product out of ``APPROVED``, and these three gates are the whole of what\nconfines it to synthetic personas: the aggregate allows the transition from ``APPROVED``\nand cannot tell a persona from a customer.\n\n⚠️ **Not a sweep.** One caller-supplied number, resolved to at most one application. A\nbulk or age-based cancel would settle an abandonment policy that is still an open\ncompliance question and would terminalise applications owing an adverse action notice\nwith nothing in place to send one. Recycling a synthetic persona owes no notice because\nthere is no applicant; that reasoning does not extend one row further.\n\n🆕 2026-10-09 — **``scope=\"all\"`` is wider by exactly the collision, and no further.** Prequal\nnow declines a duplicate (``P02``) on a shared SSN or EIN, and every walkthrough enters the\none synthetic EIN, so a persona's next run is blocked by any application in flight or\napproved on its phone, its catalogued SSN, or that EIN. ``all`` closes those and nothing\nelse: still one allow-listed persona per call, the SSN read from the catalogue rather than\nthe request, the EIN a constant rather than a parameter, and still behind the same three\ngates, so it never exists in production. Opt-in; the default is the one-row recycle above.","operationId":"recycle_test_persona_api_v1_admin_applications_recycle_persona_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecyclePersonaRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecyclePersonaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/test/verify-persona-email":{"post":{"tags":["admin","admin"],"summary":"Verify Persona Email","description":"Mark an allow-listed persona's email verified (requires ``RECYCLE_TEST_PERSONA``, #2994).\n\nThe walkthrough's stand-in for the emailed verification link. The dashboard's setup waits on\na verified address before the bank link, and an unattended run cannot open a mailbox, so\nwithout this every walkthrough would stop at \"verify your email\".\n\n🔑 **The recycle route's gates, with one difference.** It does not exist in production (404) and\nit answers only a number in the shipped persona catalogue. The address is the request's rather\nthan the catalogue's, because each run signs up under its own (see the request model), so what\nconfines it is the domain: only an address at a domain RFC 2606 reserves is ever touched\n(:meth:`PersonaLoginRecycler.verify_email`), and no real person can hold one. A reserved persona\nis not refused: verifying an address changes nothing a person handed that login relies on,\nwhere a recycle would.","operationId":"verify_persona_email_api_v1_admin_test_verify_persona_email_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyPersonaEmailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyPersonaEmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/test/simulate-card-transaction":{"post":{"tags":["admin","admin"],"summary":"Simulate Test Transaction","description":"Authorize and clear a sandbox transaction on an allow-listed persona's card.\n\nThe scheduled end-to-end run's transaction leg. Nothing else in the system observes the\npath from a vendor authorization through the webhook and the ledger to what a cardholder\nsees on their dashboard, and that path is what this makes assertable.\n\n🔑 **The harness sends a DOMAIN card id, never a vendor one.** ``GET /accounts/me`` returns\n``cards[].id`` to the signed-in cardholder and deliberately exposes no Highnote-side\nidentifier; the resolution to an external card id happens here, as does the vendor call. So\nthe unattended runner needs neither the vendor credential nor a lookup route that would hand\nit processor ids — which is the same credential-containment the persona-recycle endpoint was\ndesigned for.\n\n🔑 **Three gates, and the permission is again the weakest.** The permission decides who may\nask. The production refusal decides where this exists. The allow-list — keyed on the *card\nowner's* phone, the same :attr:`Settings.e2e_persona_phones` the recycle route uses — decides\nwhat may be touched. Without the third this would be simulate-a-transaction-on-any-card,\nwhich on a real programme is spend against a real cardholder's credit line.","operationId":"simulate_test_transaction_api_v1_admin_test_simulate_card_transaction_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateTestTransactionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateTestTransactionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/{application_id}/decision":{"post":{"tags":["admin","admin"],"summary":"Decide Application","description":"Apply an operator's review decision (requires ``OVERRIDE_PREQUAL``).\n\nHandles approve / approve_lower / approve_secured / request_info / escalate /\ndecline over a PREQUAL_REVIEW application, and approve_as_offered / decline over\na HARD_PULL_REVIEW one (#3040). A decline the launch review gate is holding\ntakes decline only (#3042). ``proceed`` performs what the engine decided (#4399).\nBuilt with the lifespan event publisher so decline still reaches the Adverse Action\nNotice listener and the info/escalate events reach the notification pipeline.","operationId":"decide_application_api_v1_admin_applications__application_id__decision_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ApproveDecisionRequest"},{"$ref":"#/components/schemas/ApproveAsOfferedDecisionRequest"},{"$ref":"#/components/schemas/ProceedDecisionRequest"},{"$ref":"#/components/schemas/ApproveSecuredDecisionRequest"},{"$ref":"#/components/schemas/RerouteDecisionRequest"},{"$ref":"#/components/schemas/RequestInfoDecisionRequest"},{"$ref":"#/components/schemas/EscalateDecisionRequest"},{"$ref":"#/components/schemas/DeclineDecisionRequest"}],"discriminator":{"propertyName":"decision","mapping":{"approve":"#/components/schemas/ApproveDecisionRequest","approve_lower":"#/components/schemas/ApproveDecisionRequest","approve_as_offered":"#/components/schemas/ApproveAsOfferedDecisionRequest","proceed":"#/components/schemas/ProceedDecisionRequest","approve_secured":"#/components/schemas/ApproveSecuredDecisionRequest","reroute":"#/components/schemas/RerouteDecisionRequest","request_info":"#/components/schemas/RequestInfoDecisionRequest","escalate":"#/components/schemas/EscalateDecisionRequest","decline":"#/components/schemas/DeclineDecisionRequest"}},"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/{application_id}/reviewer-reroute":{"post":{"tags":["admin","admin"],"summary":"Switch Reviewer Reroute","description":"Turn Option A on or off for one application (requires ``SWITCH_REVIEWER_REROUTE``).\n\nOnly before the prequal decision: after it, on and off are refused alike (400\n``reviewer_reroute_already_decided``). A switch already in the state asked for is answered as\nit stands. The change is recorded on the application's activity trail with the reason.","operationId":"switch_reviewer_reroute_api_v1_admin_applications__application_id__reviewer_reroute_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewerRerouteSwitchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewerRerouteSwitchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/disputes":{"get":{"tags":["admin","admin","admin"],"summary":"List Disputes","description":"List disputes across accounts (requires VIEW_ACCOUNT).\n\nEach row is enriched with the cardholder name behind the account,\nbatch-resolved over the whole page (one directory read), nullable when\nunresolved.","operationId":"list_disputes_api_v1_admin_disputes_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/disputes/{dispute_id}/detail":{"get":{"tags":["admin","admin","admin"],"summary":"Get Dispute Detail","description":"RBAC-gated dispute detail for the admin UI (requires VIEW_ACCOUNT).\n\nDistinct from the shared-secret ``GET /admin/disputes/{id}`` (ops/E2E\nharness, includes Highnote ids) — the RBAC admin app authenticates with a\nFirebase bearer, not the admin-token shared secret.","operationId":"get_dispute_detail_api_v1_admin_disputes__dispute_id__detail_get","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dispute Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/disputes/{dispute_id}/resolve":{"post":{"tags":["admin","admin","admin"],"summary":"Resolve Dispute","description":"Admin-resolve a dispute (DAO override; requires MANAGE_DISPUTES).\n\nAn operator whose authority extends only to reading accounts is refused\nhere with a 403 before the body is looked at (#2646). The operator who\ndecides is the ``actor_id`` on the account note the service writes.\n\n``session`` is the same session the service was built on (FastAPI caches a\ndependency within a request), and it is committed explicitly here on\nsuccess: ``SqlAlchemyDisputeCaseRepository.update`` only flushes, and\n``DisputeApplicationService`` has no unit of work, so without this the\nrequest boundary discards the resolution after the 200 has been sent\n(#1438). Same convention as the cardholder routes in\n``app/shared/api/disputes.py``.","operationId":"resolve_dispute_api_v1_admin_disputes__dispute_id__resolve_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dispute Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveDisputeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/disputes/{dispute_id}/escalate":{"post":{"tags":["admin","admin","admin"],"summary":"Escalate Dispute","description":"Admin-escalate a dispute (requires MANAGE_DISPUTES, like ``resolve_dispute``).\n\nCommitted here for the same reason as ``resolve_dispute`` above: nothing\nbelow this line makes the escalation durable (#1438).","operationId":"escalate_dispute_api_v1_admin_disputes__dispute_id__escalate_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dispute Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalateDisputeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/disputes/{dispute_id}/documents/{document_id}/content":{"get":{"tags":["admin","admin","admin"],"summary":"Get Dispute Document Content","description":"Open one item of a dispute's evidence for the operator (requires VIEW_ACCOUNT, #3325).\n\nThe same permission as the detail that lists it: an operator who may read the case\nmay read what the cardholder sent with it. The read is recorded against the account in\nthe path, and a dispute that is not on that account answers 404, so the record can\nnever name somebody other than the person whose evidence was opened.","operationId":"get_dispute_document_content_api_v1_admin_accounts__account_id__disputes__dispute_id__documents__document_id__content_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dispute Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"The evidence item, as the cardholder uploaded it","content":{"image/jpeg":{},"image/png":{},"application/pdf":{}}},"404":{"description":"Document not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/fraud-findings":{"post":{"tags":["admin","admin"],"summary":"Record Fraud Finding","description":"Record a fraud finding, the signed-in operator as its actor (``MANAGE_DISPUTES``).","operationId":"record_fraud_finding_api_v1_admin_fraud_findings_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordFraudFindingRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FraudFindingSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/fraud-findings":{"get":{"tags":["admin","admin"],"summary":"List Account Fraud Findings","description":"Every finding on the account, newest determination first, and its cards (404 if none).","operationId":"list_account_fraud_findings_api_v1_admin_accounts__account_id__fraud_findings_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"dispute_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dispute Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountFraudFindingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/applications/{application_id}/fraud-findings":{"get":{"tags":["admin","admin"],"summary":"List Application Fraud Findings","description":"Every finding on the application, newest determination first (404 if none).","operationId":"list_application_fraud_findings_api_v1_admin_applications__application_id__fraud_findings_get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationFraudFindingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/provision":{"post":{"tags":["admin","admin"],"summary":"Provision Webhook Target","description":"Idempotently ensure this environment's Highnote webhook target exists.","operationId":"provision_webhook_target_api_v1_admin_webhooks_provision_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TargetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/activate":{"post":{"tags":["admin","admin"],"summary":"Activate Webhook Target","description":"Reactivate a deactivated target via ``activateNotificationTarget`` (probe fallback).","operationId":"activate_webhook_target_api_v1_admin_webhooks_activate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TargetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/rotate-key":{"post":{"tags":["admin","admin"],"summary":"Rotate Signing Key","description":"Rotate the target's signing key on-demand (24h overlap; verify uses all keys).","operationId":"rotate_signing_key_api_v1_admin_webhooks_rotate_key_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/reconcile":{"post":{"tags":["admin","admin"],"summary":"Reconcile Deliveries","description":"Reconcile Highnote's failed-delivery log against the audit table on-demand.","operationId":"reconcile_deliveries_api_v1_admin_webhooks_reconcile_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer"},"title":"Response Reconcile Deliveries Api V1 Admin Webhooks Reconcile Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/subscriptions/reconcile":{"post":{"tags":["admin","admin"],"summary":"Reconcile Subscriptions","description":"Converge this environment's target subscriptions to ``CANONICAL_SUBSCRIPTIONS`` (#2058).\n\nAlways re-reads the target's live subscriptions from Highnote first — never the\nlocally persisted copy — so this call cannot be fooled by a prior run's belief.\nIdempotent: a target already in sync makes no *mutation* calls and reports zero\nfor both counts. **Adds by default; pass ``?allow_remove=true`` to also remove a\nsubscription no consumer handles** — an unattended caller that never sets it can\nnever delete one (`skipped_removal` reports what was found but left alone). Does\nnot backfill — historically unrouted events stay invisible to the delivery-log\nquery; only a true-up sweep (#2061) sees them.\n\n``NotificationTargetModel`` is shared with the unattended scheduled job (which\ncalls the same service with no admin behind it at all), so nothing here is\nattributed on that row — a column that could read \"the scheduler\" would be lying\nthe day a person triggers it instead. What *is* attributable is that a person\nasked for this specific on-demand run, right now; that fact is logged with the\nacting admin's identity, the same identity ``admin.user_id`` every other admin\nroute in this codebase attributes a change to.","operationId":"reconcile_subscriptions_api_v1_admin_webhooks_subscriptions_reconcile_post","parameters":[{"name":"allow_remove","in":"query","required":false,"schema":{"type":"boolean","description":"Deliberate operator opt-in: also remove a subscription no consumer handles. Defaults to False — an unattended run only ever adds.","default":false,"title":"Allow Remove"},"description":"Deliberate operator opt-in: also remove a subscription no consumer handles. Defaults to False — an unattended run only ever adds."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionReconcileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/true-up":{"post":{"tags":["admin","admin"],"summary":"Run True Up","description":"Report on — or, explicitly, repair — the true-up's comparison against Highnote.\n\n**Real run vs. dry run, and why both exist on one route.** A *dry* run (the\ndefault, and the only thing a plain call or a bare ``dry_run=false`` can ever\ndo) is a reporting pass: it sweeps and diffs as the scheduled job does, and\nwrites nothing — no floor, no ledger row, no backfill — and issues zero\n``replay()`` calls (#2470, @RID-OBSERVABILITY-INGEST-011). It\nis sized like the scheduled job (the configured overlap, or an explicit\n``window_seconds`` for a wider preview) and is small enough to finish inside\nthis request, so it runs **inline** and this response carries its\n``TrueUpResult.as_dict()`` directly in ``result``.\n\nA **real** run — ``dry_run=false`` *and* ``confirm_repair=\"REPAIR\"``, both —\nnever runs inline. On Cloud Run the API process is only guaranteed CPU while\nserving the request that is open right now; a sweep that actually replays can\nrun long enough to be throttled, scaled to zero, or replaced by the next\nrevision mid-flight, and a miss ledger a dead process stopped updating\nhalf-way looks exactly like progress and is not. So a real run instead starts\na separate Cloud Run Job execution (``ICloudRunJobTrigger``, carrying\n``--real`` and, if given, ``--window-seconds`` as a one-off container-args\n*override* — the job's own Terraform-declared, args-free ``command`` is never\ntouched) and this response returns the moment that execution is **accepted**,\nwith ``triggered_job=True`` and ``execution_name`` set. It never waits for the\njob to finish; poll ``GET .../true-up/status`` for that.\n\nThe motivating case for a real run is a first production deploy: pulling in a\nbacklog immediately rather than waiting for the first scheduled tick. A cold\nstart (no floor yet) still forces a dry pass regardless of what is passed here\n— ``EventTrueUpService.run`` itself refuses to replay an entire two-month\nbacklog sight-unseen on the very first run; see its docstring.","operationId":"run_true_up_api_v1_admin_webhooks_true_up_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","description":"Report-only when true (the default). A plain call, or this alone set to false, never replays anything — see confirm_repair.","default":true,"title":"Dry Run"},"description":"Report-only when true (the default). A plain call, or this alone set to false, never replays anything — see confirm_repair."},{"name":"confirm_repair","in":"query","required":false,"schema":{"anyOf":[{"const":"REPAIR","type":"string"},{"type":"null"}],"description":"The only way to request a REAL run that replays missing events through the existing webhook consumers: pass exactly \"REPAIR\", together with dry_run=false. Neither alone does anything — flipping dry_run to false with no confirm_repair (or vice versa) still runs a dry, reporting-only pass. This is deliberate: a real run must be something nobody can trigger by one bare boolean.","title":"Confirm Repair"},"description":"The only way to request a REAL run that replays missing events through the existing webhook consumers: pass exactly \"REPAIR\", together with dry_run=false. Neither alone does anything — flipping dry_run to false with no confirm_repair (or vice versa) still runs a dry, reporting-only pass. This is deliberate: a real run must be something nobody can trigger by one bare boolean."},{"name":"window_seconds","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":5183999,"minimum":1},{"type":"null"}],"description":"Override true_up_overlap_seconds for this one call (seconds). Omit for the configured, routine overlap. Bounded by the processor's exact 60-day notification-event retention minus the configured de-jitter buffer — a wide first-deploy catch-up is one deliberate call, never the default. Ignored on a cold-start (bootstrap) run, which always sweeps the full retention window.","title":"Window Seconds"},"description":"Override true_up_overlap_seconds for this one call (seconds). Omit for the configured, routine overlap. Bounded by the processor's exact 60-day notification-event retention minus the configured de-jitter buffer — a wide first-deploy catch-up is one deliberate call, never the default. Ignored on a cold-start (bootstrap) run, which always sweeps the full retention window."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrueUpTriggerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/health":{"get":{"tags":["admin","admin"],"summary":"Webhook Health","description":"Target status, active-key expiries, subscription count, unhandled-event signal.","operationId":"webhook_health_api_v1_admin_webhooks_health_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__shared__api__admin__webhooks_routes__HealthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/true-up/status":{"get":{"tags":["admin","admin"],"summary":"True Up Status","description":"The true-up's last outcome, plus the identity of its most recently triggered run.\n\nThe floor, when it last ran, and whether that run was clean come from\n``ITrueUpStateStore`` — the same state ``EventTrueUpService`` itself reads and\nwrites, untouched by this route. ``outstanding`` is every miss not yet\nabandoned, with ``replay_attempts``/``last_replay_error`` so an operator can\ntell a miss that has never been retried from one the processor keeps refusing.\n\n``last_triggered_execution`` is a different thing: it is set the instant\n``POST .../true-up`` accepts a real run, independent of whether that execution\nhas run — or written anything above — yet. An operator who just triggered one\ncan follow *that* run rather than only asking how things look generally.","operationId":"true_up_status_api_v1_admin_webhooks_true_up_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrueUpStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/subscriptions":{"get":{"tags":["admin","admin"],"summary":"Subscriptions","description":"Live set vs ``CANONICAL_SUBSCRIPTIONS`` vs the diff — the convergence an\noperator would see *before* calling ``POST /subscriptions/reconcile`` (#2058).\n\n``to_remove`` here is informational only: this route makes no vendor mutation,\nand reconcile's own default leaves a surplus alone unless an operator\nexplicitly asks it to act.","operationId":"subscriptions_api_v1_admin_webhooks_subscriptions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/events/recent":{"get":{"tags":["admin","admin"],"summary":"Recent Events","description":"Per-``__typename`` last-seen + processed/failed counts.","operationId":"recent_events_api_v1_admin_webhooks_events_recent_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventTypeStat"},"title":"Response Recent Events Api V1 Admin Webhooks Events Recent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/deliveries":{"get":{"tags":["admin","admin"],"summary":"Deliveries","description":"Deliveries that did not land.\n\n``status=failed`` — recent audit rows carrying an ``error_message``, newest\nfirst. A row here may still be retried.\n\n``status=abandoned`` — rows whose replay budget is spent, which nothing will retry and\nnobody has ruled on, oldest first, because this list is worked rather than browsed. These\nare events Highnote delivered and this platform then dropped; the ledger, a dispute or a\nstatement may be missing something as a result (#2182). Clear them with\n``just highnote-webhook-redrive --abandoned`` once whatever made them fail is fixed, or\nrule on them (``POST /deliveries/rulings``) when they will never apply.\n\n``status=ruled`` — rows a person ruled will never apply (#2286), most recently ruled\nfirst, each with its ruling, reason, who and when.","operationId":"deliveries_api_v1_admin_webhooks_deliveries_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"failed","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FailedDelivery"},"title":"Response Deliveries Api V1 Admin Webhooks Deliveries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/deliveries/rulings":{"post":{"tags":["admin","admin"],"summary":"Rule On Deliveries","description":"Rule that the named deliveries will never be applied (#2286).\n\nThe terminal state a delivery has besides being applied, and only a person sets it:\n``not_ours`` (the resource it names is not this platform's) or ``no_effect`` (applying it\nwould change nothing). Recorded on each delivery with the reason, the acting admin and the\ntime. A ruled delivery is no longer abandoned (``/health``, the abandoned metric and the\nlisting stop counting it), is not retried, and is not re-driven until the ruling is\nwithdrawn.\n\n**A dry run unless ``dry_run`` is false**: it says what the ruling would reach and rules on\nnone. Only an unapplied, unruled delivery is ruled; every other named id says why not.","operationId":"rule_on_deliveries_api_v1_admin_webhooks_deliveries_rulings_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryRulingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryRulingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/webhooks/deliveries/{event_id}/ruling":{"delete":{"tags":["admin","admin"],"summary":"Withdraw Ruling","description":"Withdraw a ruling, putting the delivery back where it was (#2286).\n\nA ruling made on bad information has to be reversible. The delivery is abandoned (or\npending) again and can be re-driven. What was withdrawn, by whom and when, is logged.","operationId":"withdraw_ruling_api_v1_admin_webhooks_deliveries__event_id__ruling_delete","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryRulingWithdrawnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/finicity":{"post":{"tags":["webhooks"],"summary":"Receive Finicity Webhook","description":"Persist a Finicity connection-health delivery, ack, and maybe schedule a probe.\n\nNever raises on the delivery's own account: a body that is not JSON or\nnests too deeply to parse, one that names no customer, one carrying an\n``eventId``,\na customer id, a key or an event type the table cannot store as sent, and\none whose signature fails verification or is not even ASCII are all\npersisted and acknowledged. The only refusal here is a body too large to\nbuffer: one that declares a length past the cap is refused before\nanything is read, and one that declares none is refused as soon as what\nhas arrived passes it, with nothing recorded either way.\n\nEvery answer is ``200``, ``duplicate`` included: Mastercard retries any\nother status for 72 hours, and a Connect URL naming this webhook is not\ngenerated unless its ``ping`` gets one (see the module docstring's 🔴). A\n``ping`` is answered ``ping`` once its log line is written, and never\nreaches the session.\n\nWhile the dashboard declares no Finicity rail, every delivery is answered\n``200`` with ``ignored`` before anything is read, written, logged or\nscheduled.","operationId":"receive_finicity_webhook_webhooks_finicity_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Receive Finicity Webhook Webhooks Finicity Post"}}}}}}},"/webhooks/highnote":{"post":{"tags":["webhooks"],"summary":"Receive Highnote Webhook","description":"Receive and persist a Highnote webhook event, then ack 200.","operationId":"receive_highnote_webhook_webhooks_highnote_post","parameters":[{"name":"highnote-signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Highnote-Signature"}},{"name":"highnote-replay","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Highnote-Replay"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Receive Highnote Webhook Webhooks Highnote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/straddle":{"post":{"tags":["webhooks"],"summary":"Receive Straddle Webhook","description":"Verify, store once, apply. See the module docstring.","operationId":"receive_straddle_webhook_webhooks_straddle_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Receive Straddle Webhook Webhooks Straddle Post"}}}}}}},"/webhooks/taktile":{"post":{"tags":["webhooks"],"summary":"Receive Taktile Webhook","description":"Authenticate a notification, record it, hand off its collection, and ack.","operationId":"receive_taktile_webhook_webhooks_taktile_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Receive Taktile Webhook Webhooks Taktile Post"}}}}}}},"/webhooks/taktile/pubsub":{"post":{"tags":["webhooks"],"summary":"Receive Taktile Pubsub Push","description":"Collect one decision, driven by the push subscription.\n\n🔑 **This is where the durability lives.** The vendor-facing receiver commits\na row and publishes; this runs afterwards, with Pub/Sub's retry schedule\nbehind it and its dead-letter topic underneath. A failure here answers\n``5xx`` so the message is redelivered rather than acked away, and a message\nthat keeps failing ends up somewhere an operator can look at it — neither of\nwhich the in-process predecessor could do.\n\nA malformed message is acked, not retried: redelivering a body we cannot\nparse produces the same failure for ever and buries the dead-letter topic\nunder it.","operationId":"receive_taktile_pubsub_push_webhooks_taktile_pubsub_post","responses":{"204":{"description":"Successful Response"}}}},"/webhooks/taktile/case-disposition":{"post":{"tags":["webhooks"],"summary":"Receive Case Disposition","description":"Authenticate, read, and hand the action to the service. Authenticated and read is 200.","operationId":"receive_case_disposition_webhooks_taktile_case_disposition_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Receive Case Disposition Webhooks Taktile Case Disposition Post"}}}}}}},"/webhooks/postmark":{"post":{"tags":["webhooks"],"summary":"Receive Postmark Webhook","description":"Record a Postmark delivery receipt and ack 204.\n\nUnknown ``RecordType``s and receipts without a ``MessageID`` (e.g. Postmark's\nendpoint test ping) ack without a write. The status write is idempotent and\nnever regresses a terminal status.\n\nPostmark's test events (``receipt_mapping.TEST_MESSAGE_ID``) are logged and acked\nwith no write and no alert (#3312). Every other hard bounce or spam complaint\nalerts staff — for a message we sent, on a redelivery, and for an id no row\ncarries, which additionally logs ``postmark.receipt.unmatched`` at WARNING.","operationId":"receive_postmark_webhook_webhooks_postmark_post","responses":{"204":{"description":"Successful Response"}}}},"/":{"get":{"summary":"Root","description":"Root endpoint.","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Root  Get"}}}}}}}},"components":{"schemas":{"AcceptAchAuthorizationRequest":{"properties":{"template_id":{"type":"string","title":"Template Id"},"version":{"type":"string","title":"Version"},"holder_type":{"anyOf":[{"type":"string","const":"business"},{"type":"null"}],"title":"Holder Type"},"certification_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Certification Text"}},"additionalProperties":false,"type":"object","required":["template_id","version"],"title":"AcceptAchAuthorizationRequest","description":"``POST /{id}/ach-authorization``: which authorization the applicant accepted.\n\nThe names only. When and from where are the server's to stamp, and a body\nthat tries to say either is refused rather than ignored."},"AcceptAchAuthorizationResponse":{"properties":{"template_id":{"type":"string","title":"Template Id"},"version":{"type":"string","title":"Version"},"accepted_at":{"type":"string","format":"date-time","title":"Accepted At"}},"type":"object","required":["template_id","version","accepted_at"],"title":"AcceptAchAuthorizationResponse","description":"What ``POST /{id}/ach-authorization`` parked: the version and the server's moment."},"AcceptOfferRequest":{"properties":{"final_offer":{"type":"boolean","title":"Final Offer","default":false}},"additionalProperties":false,"type":"object","title":"AcceptOfferRequest","description":"The optional body of ``POST /signup/{id}/accept-offer``.\n\nNo body, or ``final_offer`` false, accepts the prequal offer as the route always has.\n``final_offer`` true only continues past it: the applicant accepts at the final offer after\nthe hard pull (Mona, 2026-11-16), so no agreement is asked here. ``extra=\"forbid\"``, so a\nclient asserting anything else is refused rather than ignored, and ``StrictBool``, so only a\nJSON ``true`` or ``false`` is taken: ``\"yes\"``, ``\"true\"`` or ``1`` is 422, never coerced\ninto skipping the agreement."},"Account360SummaryResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"header":{"$ref":"#/components/schemas/HeaderBlock"},"business":{"$ref":"#/components/schemas/BusinessBlock"},"owner":{"$ref":"#/components/schemas/OwnerBlock"},"credit":{"$ref":"#/components/schemas/CreditBlock"},"documents":{"$ref":"#/components/schemas/DocumentsBlock"},"acquisition":{"$ref":"#/components/schemas/AcquisitionBlock"}},"type":"object","required":["account_id","header","business","owner","credit","documents","acquisition"],"title":"Account360SummaryResponse","description":"Profile-sidebar summary for the admin cardholder-360 (header + 5 groups)."},"AccountBillingResponse":{"properties":{"payments":{"items":{"$ref":"#/components/schemas/PaymentItem"},"type":"array","title":"Payments"},"statements":{"items":{"$ref":"#/components/schemas/StatementItem"},"type":"array","title":"Statements"},"autopay":{"anyOf":[{"$ref":"#/components/schemas/AutopayInfo"},{"type":"null"}]}},"type":"object","required":["payments","statements","autopay"],"title":"AccountBillingResponse","description":"Composite billing snapshot for one account (360 Card tab)."},"AccountChangeWarningResponse":{"properties":{"warning":{"type":"string","enum":["autopay_payment_pending","autopay_on","payment_pending","nothing_pending"],"title":"Warning"},"pending_payment":{"anyOf":[{"$ref":"#/components/schemas/PendingPaymentResponse"},{"type":"null"}]}},"type":"object","required":["warning","pending_payment"],"title":"AccountChangeWarningResponse","description":"``GET /api/v1/payment-sources/{id}/change``: the warning to show before the change.\n\n``warning`` is the scenario of #3801 that applies now; ``pending_payment`` is the payment it\nnames, present exactly for ``autopay_payment_pending`` and ``payment_pending``."},"AccountChangedResponse":{"properties":{"id":{"type":"string","title":"Id"},"removed":{"type":"boolean","title":"Removed"},"autopay_turned_off":{"type":"boolean","title":"Autopay Turned Off"},"consent_revoked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consent Revoked"},"account_deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Account Deleted"}},"type":"object","required":["id","removed","autopay_turned_off","consent_revoked","account_deleted"],"title":"AccountChangedResponse","description":"What ``POST /api/v1/payment-sources/{id}/change`` did (#3801).\n\nThe account is removed whenever this is answered, and the client starts the new link.\n``autopay_turned_off`` says automatic payments were on and are now off, so the client shows\n\"Autopay has been turned off\" first. ``consent_revoked`` says what became of the consent\nbehind the account: ``True`` when the provider confirmed the revoke, ``False`` when it did\nnot (or no provider is configured) and the revoke is still owed and retried, and ``None``\nwhen nothing was revocable (a manually entered account, a consent another source still\nuses, or ties an automatic payment kept on the account holds). ``account_deleted`` says the\nsame of the account the provider held for it."},"AccountDetailResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"status":{"type":"string","title":"Status"},"credit_limit_cents":{"type":"integer","title":"Credit Limit Cents"},"balance_cents":{"type":"integer","title":"Balance Cents"},"available_credit_cents":{"type":"integer","title":"Available Credit Cents"},"product_type":{"type":"string","title":"Product Type"},"billing_cycle_day":{"type":"integer","title":"Billing Cycle Day"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"close_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Reason"},"freeze_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Freeze Reason"},"review_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Reason"},"cease_and_desist_active":{"type":"boolean","title":"Cease And Desist Active"},"fee_suspension":{"anyOf":[{"$ref":"#/components/schemas/SuspensionResponseModel"},{"type":"null"}]},"interest_suspension":{"anyOf":[{"$ref":"#/components/schemas/SuspensionResponseModel"},{"type":"null"}]},"watch_list_flag":{"anyOf":[{"$ref":"#/components/schemas/ComplianceFlagResponse"},{"type":"null"}]},"blocked_flag":{"anyOf":[{"$ref":"#/components/schemas/ComplianceFlagResponse"},{"type":"null"}]},"high_risk_flag":{"anyOf":[{"$ref":"#/components/schemas/ComplianceFlagResponse"},{"type":"null"}]},"recent_status_history":{"items":{"$ref":"#/components/schemas/StatusHistoryResponse"},"type":"array","title":"Recent Status History"},"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"},"holder_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Email"},"processor_suspended":{"type":"boolean","title":"Processor Suspended","default":false}},"type":"object","required":["account_id","user_id","status","credit_limit_cents","balance_cents","available_credit_cents","product_type","billing_cycle_day","created_at","updated_at","closed_at","close_reason","freeze_reason","review_reason","cease_and_desist_active","fee_suspension","interest_suspension","watch_list_flag","blocked_flag","high_risk_flag","recent_status_history"],"title":"AccountDetailResponse","description":"Unified admin account detail (task #846)."},"AccountFraudFindingsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FraudFindingResponse"},"type":"array","title":"Items"},"cards":{"items":{"$ref":"#/components/schemas/CardOnAccountResponse"},"type":"array","title":"Cards"}},"type":"object","required":["items","cards"],"title":"AccountFraudFindingsResponse"},"AccountListItemResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"status":{"type":"string","title":"Status"},"credit_limit_cents":{"type":"integer","title":"Credit Limit Cents"},"balance_cents":{"type":"integer","title":"Balance Cents"},"available_credit_cents":{"type":"integer","title":"Available Credit Cents"},"product_type":{"type":"string","title":"Product Type"},"cease_and_desist_active":{"type":"boolean","title":"Cease And Desist Active"},"fee_suspended":{"type":"boolean","title":"Fee Suspended"},"interest_suspended":{"type":"boolean","title":"Interest Suspended"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"watch_list_active":{"type":"boolean","title":"Watch List Active","default":false},"blocked_active":{"type":"boolean","title":"Blocked Active","default":false},"high_risk_active":{"type":"boolean","title":"High Risk Active","default":false},"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"},"holder_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Email"}},"type":"object","required":["account_id","user_id","status","credit_limit_cents","balance_cents","available_credit_cents","product_type","cease_and_desist_active","fee_suspended","interest_suspended","created_at"],"title":"AccountListItemResponse","description":"A compact account row for the admin list."},"AccountListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AccountListItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"AccountListResponse","description":"Paginated admin account list."},"AccountNoteResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"actor_id":{"type":"string","title":"Actor Id"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"action_type":{"type":"string","title":"Action Type"},"content":{"type":"string","title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","account_id","actor_id","actor_name","action_type","content","created_at"],"title":"AccountNoteResponse","description":"An account audit note as returned by the API."},"AccountNotesResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AccountNoteResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"AccountNotesResponse","description":"One page of an account's notes, and how many it has (#3012)."},"AccountResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"product_type":{"type":"string","title":"Product Type"},"status":{"type":"string","title":"Status"},"credit_limit_cents":{"type":"integer","title":"Credit Limit Cents"},"available_credit_cents":{"type":"integer","title":"Available Credit Cents"},"billing_cycle_day":{"type":"integer","title":"Billing Cycle Day"},"cards":{"items":{"$ref":"#/components/schemas/CardResponse"},"type":"array","title":"Cards"},"memberships":{"items":{"$ref":"#/components/schemas/MembershipResponse"},"type":"array","title":"Memberships"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"closed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closed At"},"close_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Reason"}},"type":"object","required":["id","user_id","product_type","status","credit_limit_cents","available_credit_cents","billing_cycle_day","cards","memberships","created_at","updated_at"],"title":"AccountResponse","description":"Response schema for account in API responses."},"AchAuthorizationTemplateResponse":{"properties":{"template_id":{"type":"string","title":"Template Id"},"version":{"type":"string","title":"Version"},"text":{"type":"string","title":"Text"},"processor_terms":{"anyOf":[{"$ref":"#/components/schemas/ProcessorTermsResponse"},{"type":"null"}]}},"type":"object","required":["template_id","version","text"],"title":"AchAuthorizationTemplateResponse","description":"``GET /ach-authorization/current``: the authorization a new acceptance is taken under.\n\n``text`` is unrendered: it holds a literal ``{business_name}`` wherever the\nform names the customer, and the client replaces every one with the\nbusiness name it displays (the application's ``business_name`` in the\nfunnel), as a plain substitution of the trimmed name. That is the\nsubstitution the server makes when it records the text, over the same name,\nso what is shown is what is recorded. The form's other bracketed blanks are\ntext, not placeholders: nothing fills them."},"AcquisitionBlock":{"properties":{"product_type":{"type":"string","title":"Product Type"},"applied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Applied At"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"}},"type":"object","required":["product_type","applied_at","approved_at"],"title":"AcquisitionBlock","description":"Acquisition AttrGroup — plan + application timestamps (no CRM lead fields)."},"ActivateCardResponse":{"properties":{"card_id":{"type":"string","title":"Card Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["card_id","status"],"title":"ActivateCardResponse"},"ActivityChangeResponse":{"properties":{"field":{"type":"string","title":"Field"},"value_type":{"type":"string","title":"Value Type"},"before":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"},"after":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},"type":"object","required":["field","value_type","before","after"],"title":"ActivityChangeResponse","description":"One field an Activity-feed row changed (#2384).\n\n``before`` and ``after`` are the values as text, read by ``value_type``\n(``text``, ``integer``, ``decimal``, ``boolean``, ``cents``, ``datetime`` in\nUTC, ``date``, ``uuid``); ``null`` means the field had, or has, no value. A\nsensitive field's change is ``withheld`` and carries neither."},"ActivityItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"category":{"type":"string","title":"Category"},"severity":{"type":"string","title":"Severity"},"icon":{"type":"string","title":"Icon"},"actor_kind":{"type":"string","title":"Actor Kind"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"title":{"type":"string","title":"Title"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"application_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Application Id"},"source_event_type":{"type":"string","title":"Source Event Type"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"changes":{"items":{"$ref":"#/components/schemas/ActivityChangeResponse"},"type":"array","title":"Changes"}},"type":"object","required":["id","category","severity","icon","actor_kind","actor_id","actor_name","title","detail","account_id","user_id","application_id","source_event_type","occurred_at","changes"],"title":"ActivityItemResponse","description":"One admin Activity-feed row as returned by the API.\n\n``actor_name`` is ``null`` when the row names no person (a ``system`` row, or a\nrow recorded before the actor was) or the person is unknown — the UI falls\nback to ``actor_kind``."},"ActivityListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ActivityItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"ActivityListResponse","description":"A paginated page of Activity items plus the full filtered total."},"AddCaseNoteRequest":{"properties":{"content":{"type":"string","maxLength":2000,"minLength":1,"title":"Content"}},"type":"object","required":["content"],"title":"AddCaseNoteRequest","description":"Append a servicing note."},"AddNoteRequest":{"properties":{"content":{"type":"string","maxLength":4000,"minLength":1,"title":"Content"}},"type":"object","required":["content"],"title":"AddNoteRequest","description":"Write a manual audit note on an account."},"AddPaymentSourceRequest":{"properties":{"type":{"type":"string","const":"bank_account","title":"Type"},"institution_name":{"type":"string","title":"Institution Name"},"account_number_last_four":{"type":"string","title":"Account Number Last Four"},"routing_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routing Number"}},"type":"object","required":["type","institution_name","account_number_last_four"],"title":"AddPaymentSourceRequest","description":"Request body for adding a payment source.\n\n``bank_account`` is the only accepted ``type`` — see\n:data:`PaymentSourceTypeRequest`."},"AddressBlock":{"properties":{"street1":{"type":"string","title":"Street1"},"street2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street2"},"city":{"type":"string","title":"City"},"state":{"type":"string","title":"State"},"zip_code":{"type":"string","title":"Zip Code"}},"type":"object","required":["street1","street2","city","state","zip_code"],"title":"AddressBlock","description":"A mailing address in the sidebar."},"AddressResponseModel":{"properties":{"street1":{"type":"string","title":"Street1"},"street2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street2"},"city":{"type":"string","title":"City"},"state":{"type":"string","title":"State"},"zip_code":{"type":"string","title":"Zip Code"}},"type":"object","required":["street1","street2","city","state","zip_code"],"title":"AddressResponseModel","description":"Applicant business address."},"AdjustmentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"adjustment_type":{"type":"string","title":"Adjustment Type"},"scope":{"type":"string","title":"Scope"},"reason":{"type":"string","title":"Reason"},"status":{"type":"string","title":"Status"},"submitted_by":{"type":"string","format":"uuid","title":"Submitted By"},"resolved_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resolved By"},"reject_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reject Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"submitted_day":{"type":"string","format":"date","title":"Submitted Day"},"decided_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Decided Day"},"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"},"submitter_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitter Name"}},"type":"object","required":["id","account_id","amount_cents","adjustment_type","scope","reason","status","submitted_by","resolved_by","reject_reason","created_at","resolved_at","submitted_day","decided_day"],"title":"AdjustmentResponse","description":"A balance adjustment as returned by the API."},"AdjustmentScope":{"type":"string","enum":["dao_only","highnote_only","both"],"title":"AdjustmentScope","description":"Reconciliation scope of an admin balance adjustment (task #841).\n\nDistinguishes where the adjustment takes effect — the internal DAO ledger,\nthe external Highnote balance, or both — isolating reconciliation intent\nfrom the transaction record type. ``BOTH`` is the default (and what a NULL\npersisted value maps to for rows written before this column existed)."},"AdjustmentType":{"type":"string","enum":["late_fee_waiver","interest_fee_waiver","debit_adjustment","credit_adjustment","payment","payment_reversal","write_off","security_deposit_application","write_off_settlement","dispute_credit","dispute_debit"],"title":"AdjustmentType","description":"A named admin balance-adjustment type with direction + ops-only gating."},"AdminAccountLookupRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"AdminAccountLookupRequest","description":"The lookup input: the owning user's email, carried in the body."},"AdminAccountResponse":{"properties":{"account_id":{"type":"string","title":"Account Id"},"user_id":{"type":"string","title":"User Id"},"status":{"type":"string","title":"Status"},"external_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Account Id"},"external_account_holder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Account Holder Id"},"external_application_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Application Id"},"external_financial_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Financial Account Id"},"external_primary_card_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Primary Card Id"}},"type":"object","required":["account_id","user_id","status","external_account_id","external_account_holder_id","external_application_id","external_financial_account_id","external_primary_card_id"],"title":"AdminAccountResponse","description":"Ops lookup of an account's Highnote-side ids, keyed by user email."},"AdminApplicationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminApplicationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"AdminApplicationListResponse","description":"Paginated admin application list."},"AdminApplicationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"},"credit_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Limit Cents"},"apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Apr"},"decline_reasons":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decline Reasons"},"product_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Type"},"required_deposit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Required Deposit Cents"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"referral_reasons":{"items":{"type":"string"},"type":"array","title":"Referral Reasons","default":[]}},"type":"object","required":["id","status","email","business_name","credit_limit_cents","apr","decline_reasons","created_at"],"title":"AdminApplicationResponse","description":"An application as returned by the admin list/override endpoints."},"AdminDashboardStats":{"properties":{"pending_review":{"type":"integer","title":"Pending Review"},"approved_today":{"type":"integer","title":"Approved Today"},"declined_today":{"type":"integer","title":"Declined Today"},"open_disputes":{"type":"integer","title":"Open Disputes"}},"type":"object","required":["pending_review","approved_today","declined_today","open_disputes"],"title":"AdminDashboardStats","description":"Headline stat tiles for the ops dashboard."},"AdminDashboardSummary":{"properties":{"attention":{"items":{"$ref":"#/components/schemas/AttentionItem"},"type":"array","title":"Attention"},"stats":{"$ref":"#/components/schemas/AdminDashboardStats"}},"type":"object","required":["attention","stats"],"title":"AdminDashboardSummary","description":"Complete ops dashboard summary: attention queue + stats."},"AdminDisputeResponse":{"properties":{"id":{"type":"string","title":"Id"},"case_number":{"type":"string","title":"Case Number"},"status":{"type":"string","title":"Status"},"reason":{"type":"string","title":"Reason"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"account_id":{"type":"string","title":"Account Id"},"user_id":{"type":"string","title":"User Id"},"transaction_id":{"type":"string","title":"Transaction Id"},"transaction_merchant":{"type":"string","title":"Transaction Merchant"},"transaction_amount_cents":{"type":"integer","title":"Transaction Amount Cents"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"provisional_credit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Provisional Credit Cents"},"resolution_in_customer_favor":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Resolution In Customer Favor"},"resolution_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Reason"},"resolution_final_credit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resolution Final Credit Cents"},"resolution_network_case_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Network Case Number"},"external_dispute_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Dispute Id"},"external_chargeback_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Chargeback Id"},"filed_at":{"type":"string","title":"Filed At"}},"type":"object","required":["id","case_number","status","reason","description","account_id","user_id","transaction_id","transaction_merchant","transaction_amount_cents","amount_cents","currency","provisional_credit_cents","resolution_in_customer_favor","resolution_reason","resolution_final_credit_cents","resolution_network_case_number","external_dispute_id","external_chargeback_id","filed_at"],"title":"AdminDisputeResponse","description":"Ops-investigation view of a dispute -- cross-account, includes network ids."},"AdminRole":{"type":"string","enum":["agent","ops","supervisor","harness"],"title":"AdminRole","description":"A tier of admin capability: a permission bundle plus an adjustment limit."},"AdminRoleResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"type":"string","title":"Role"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"granted_by":{"type":"string","format":"uuid","title":"Granted By"},"is_active":{"type":"boolean","title":"Is Active"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"granted_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted By Name"}},"type":"object","required":["user_id","role","permissions","granted_by","is_active"],"title":"AdminRoleResponse","description":"An admin role assignment as returned by the API.\n\n``name``/``email`` (the subject) and ``granted_by_name`` (the granter) are the\nresolved display identity for the roster; each is ``null`` when the id has no\nresolvable identity, and the UI falls back to the raw id."},"AdminSettingsResponse":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"admin_prefs":{"additionalProperties":true,"type":"object","title":"Admin Prefs"},"user_defaults":{"additionalProperties":true,"type":"object","title":"User Defaults"}},"type":"object","title":"AdminSettingsResponse","description":"The acting admin's settings (display name + two config blobs)."},"AdvisorAssignmentResponse":{"properties":{"assignment_id":{"type":"string","format":"uuid","title":"Assignment Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"advisor_id":{"type":"string","format":"uuid","title":"Advisor Id"},"assigned_by":{"type":"string","format":"uuid","title":"Assigned By"},"assigned_at":{"type":"string","format":"date-time","title":"Assigned At"},"is_active":{"type":"boolean","title":"Is Active"},"unassigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unassigned At"},"unassigned_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unassigned By"}},"type":"object","required":["assignment_id","account_id","advisor_id","assigned_by","assigned_at","is_active","unassigned_at","unassigned_by"],"title":"AdvisorAssignmentResponse","description":"A client↔advisor assignment as returned by the API."},"AdvisorBookResponse":{"properties":{"advisor_id":{"type":"string","format":"uuid","title":"Advisor Id"},"client_account_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Client Account Ids"}},"type":"object","required":["advisor_id","client_account_ids"],"title":"AdvisorBookResponse","description":"An advisor's book: the advisor id plus its active client account ids.\n\nThe service exposes the book via ``get_advisor_book`` (a list of active\nassignments); the response folds those to their ``account_id``s. There is no\nsingle-advisor DTO read on the service (EP6-3, out of scope here), so the\nadvisor is identified by ``advisor_id`` rather than an embedded advisor object."},"AdvisorResponse":{"properties":{"advisor_id":{"type":"string","format":"uuid","title":"Advisor Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"type":"string","title":"Role"},"capacity":{"type":"integer","title":"Capacity"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["advisor_id","user_id","role","capacity","is_active","created_at","updated_at"],"title":"AdvisorResponse","description":"A single advisor as returned by the API."},"AdvisorRole":{"type":"string","enum":["admin","rep"],"title":"AdvisorRole","description":"An advisor's CRM display role (not an RBAC role)."},"AdvisorRosterResponse":{"properties":{"advisor_id":{"type":"string","format":"uuid","title":"Advisor Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"type":"string","title":"Role"},"capacity":{"type":"integer","title":"Capacity"},"active_client_count":{"type":"integer","title":"Active Client Count"},"is_active":{"type":"boolean","title":"Is Active"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["advisor_id","user_id","role","capacity","active_client_count","is_active","name","email"],"title":"AdvisorRosterResponse","description":"A team-roster row: an advisor plus resolved identity + live client count."},"AlertPreferenceResponse":{"properties":{"alert_type":{"type":"string","title":"Alert Type"},"label":{"type":"string","title":"Label"},"email_enabled":{"type":"boolean","title":"Email Enabled"}},"type":"object","required":["alert_type","label","email_enabled"],"title":"AlertPreferenceResponse","description":"One opt-outable alert type and whether this admin receives it by email."},"AmendComplaintIntakeRequest":{"properties":{"channel":{"anyOf":[{"$ref":"#/components/schemas/ComplaintChannel"},{"type":"null"}]},"received_by":{"anyOf":[{"$ref":"#/components/schemas/ComplaintReceivedBy"},{"type":"null"}]},"intercom_conversation_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Intercom Conversation Id"}},"type":"object","title":"AmendComplaintIntakeRequest","description":"Correct how a complaint reached us, from the fields sent (#2880).\n\nA field not sent is left as recorded. The two codes are required, so either sent\nempty is refused (422); the Intercom conversation sent empty is cleared."},"AnswerHolderTypeRequest":{"properties":{"holder_type":{"type":"string","enum":["business","personal"],"title":"Holder Type"},"certification_text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Certification Text"}},"additionalProperties":false,"type":"object","required":["holder_type"],"title":"AnswerHolderTypeRequest","description":"``POST /api/v1/payment-sources/{id}/holder-type``: answer the question for a linked account.\n\nFor an account linked before the question existed, or linked without answering it\n(#3734, #3736). The answer is final: an account already answered is refused, and a\ndifferent answer is a relink."},"ApplicationDetailResponse":{"properties":{"application_id":{"type":"string","format":"uuid","title":"Application Id"},"status":{"type":"string","title":"Status"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"ssn_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssn Last4"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"},"business_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Type"},"ein_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein Masked"},"gross_annual_revenue":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gross Annual Revenue"},"annual_household_income_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Annual Household Income Cents"},"corporate_experience":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Corporate Experience"},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressResponseModel"},{"type":"null"}]},"credit_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Score"},"credit_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Limit Cents"},"apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Apr"},"risk_tier":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk Tier"},"composite_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Composite Score"},"taktile_decision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taktile Decision Id"},"decline_reasons":{"items":{"type":"string"},"type":"array","title":"Decline Reasons"},"review_hold":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Hold"},"approved_at_lower_line":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Approved At Lower Line"},"upgrade_offered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Upgrade Offered At"},"upgrade_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upgrade Note"},"upgrade_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Upgrade Accepted At"},"reroute_targets":{"items":{"type":"string"},"type":"array","title":"Reroute Targets"},"reviewer_reroute_switched_on":{"type":"boolean","title":"Reviewer Reroute Switched On","default":false},"reviewer_reroute_switchable":{"type":"boolean","title":"Reviewer Reroute Switchable","default":false},"reviewer_reroute_on":{"type":"boolean","title":"Reviewer Reroute On","default":false},"reroute_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reroute From"},"reroute_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reroute To"},"rerouted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Rerouted At"},"reroute_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reroute Note"},"required_deposit_max_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Required Deposit Max Cents"},"adverse_action_reasons":{"items":{"type":"string"},"type":"array","title":"Adverse Action Reasons","default":[]},"issuer_adverse_action_reasons":{"items":{"$ref":"#/components/schemas/IssuerAdverseActionReasonResponse"},"type":"array","title":"Issuer Adverse Action Reasons","default":[]},"product_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Type"},"required_deposit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Required Deposit Cents"},"limit_set_by_deposit":{"type":"boolean","title":"Limit Set By Deposit","default":false},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"consumer_credit":{"$ref":"#/components/schemas/ConsumerCreditResponse"},"business_credit":{"$ref":"#/components/schemas/BusinessCreditResponse"},"verification":{"$ref":"#/components/schemas/VerificationSignalsResponse"},"rationale":{"$ref":"#/components/schemas/ReviewRationaleResponse"},"referral_reasons":{"items":{"type":"string"},"type":"array","title":"Referral Reasons","default":[]},"engine_review_reasons":{"items":{"type":"string"},"type":"array","title":"Engine Review Reasons","default":[]},"held_referral":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Held Referral"},"engine_answer_unreadable":{"type":"boolean","title":"Engine Answer Unreadable","default":false},"engine_outcome":{"anyOf":[{"$ref":"#/components/schemas/EngineOutcomeResponse"},{"type":"null"}]},"secured_limit_set_by_deposit":{"type":"boolean","title":"Secured Limit Set By Deposit","default":false}},"type":"object","required":["application_id","status","phone_number","first_name","last_name","ssn_last4","email","business_name","business_type","ein_masked","gross_annual_revenue","annual_household_income_cents","corporate_experience","address","credit_score","credit_limit_cents","apr","risk_tier","composite_score","taktile_decision_id","decline_reasons","user_id","consumer_credit","business_credit","verification","rationale"],"title":"ApplicationDetailResponse","description":"Enriched admin application detail (Taktile fields + masked EIN) — tasks #847, #1010.\n\nThe ``consumer_credit`` / ``business_credit`` / ``verification`` / ``rationale``\ngroups (task #1010) present the review pane. Personal FICO and the rationale are\nREAL; every unbacked field carries ``availability == \"pending\"`` with ``null``\nvalues — never a fabricated bureau number."},"ApplicationFraudFindingsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FraudFindingResponse"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ApplicationFraudFindingsResponse"},"ApplicationStatsResponse":{"properties":{"pending_review":{"type":"integer","title":"Pending Review"},"sla_breached":{"type":"integer","title":"Sla Breached"},"approved_today":{"type":"integer","title":"Approved Today"},"declined_today":{"type":"integer","title":"Declined Today"}},"type":"object","required":["pending_review","sla_breached","approved_today","declined_today"],"title":"ApplicationStatsResponse","description":"Aggregated application counts for the review-queue stats bar."},"ApproveApplicationRequest":{"properties":{"credit_limit_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Credit Limit Cents","description":"Approved credit limit in cents"},"apr":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Apr","description":"Approved APR as a percentage. The application refuses one outside the disclosed 13.49–17.49 band (400 purchase_rate_not_disclosed)"}},"type":"object","required":["credit_limit_cents","apr"],"title":"ApproveApplicationRequest","description":"Admin override-approval terms."},"ApproveAsOfferedDecisionRequest":{"properties":{"decision":{"type":"string","const":"approve_as_offered","title":"Decision"}},"type":"object","required":["decision"],"title":"ApproveAsOfferedDecisionRequest","description":"Approve a hard pull held in review at the terms on the application (#3040)."},"ApproveDecisionRequest":{"properties":{"decision":{"type":"string","enum":["approve","approve_lower"],"title":"Decision"},"credit_limit_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Credit Limit Cents","description":"Approved credit limit in cents"},"apr":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Apr","description":"Approved APR as a percentage. The application refuses one outside the disclosed 13.49–17.49 band (400 purchase_rate_not_disclosed)"}},"type":"object","required":["decision","credit_limit_cents","apr"],"title":"ApproveDecisionRequest","description":"Approve at the requested limit, or a lower counter-offer limit."},"ApproveSecuredDecisionRequest":{"properties":{"decision":{"type":"string","const":"approve_secured","title":"Decision"},"credit_limit_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Credit Limit Cents","description":"Approved credit limit in cents"},"apr":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Apr","description":"Approved APR as a percentage. The application refuses one outside the disclosed 13.49–17.49 band (400 purchase_rate_not_disclosed)"},"required_deposit_cents":{"type":"integer","minimum":0.0,"title":"Required Deposit Cents","description":"Required security deposit in cents"}},"type":"object","required":["decision","credit_limit_cents","apr","required_deposit_cents"],"title":"ApproveSecuredDecisionRequest","description":"Approve as a secured card (downgrade) with a required deposit."},"AssignAdvisorRequest":{"properties":{"advisor_id":{"type":"string","format":"uuid","title":"Advisor Id"}},"type":"object","required":["advisor_id"],"title":"AssignAdvisorRequest","description":"Assign (or reassign) the account's client to an advisor."},"AssignCaseRequest":{"properties":{"assignee_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignee Id"}},"type":"object","title":"AssignCaseRequest","description":"(Re)assign a case; ``null`` returns it to the default queue."},"AssignTaskRequest":{"properties":{"assignee_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignee Id"}},"type":"object","title":"AssignTaskRequest","description":"(Re)assign a task; ``null`` returns it to the shared queue."},"AttachTransferRequest":{"properties":{"transfer_id":{"type":"string","title":"Transfer Id"}},"type":"object","required":["transfer_id"],"title":"AttachTransferRequest","description":"The transfer the operator confirmed is the held payment."},"AttentionItem":{"properties":{"bucket":{"type":"string","enum":["sla_breach","cease_desist_no_note","pending_approval"],"title":"Bucket"},"count":{"type":"integer","title":"Count"},"label":{"type":"string","title":"Label"},"link":{"type":"string","title":"Link"}},"type":"object","required":["bucket","count","label","link"],"title":"AttentionItem","description":"A single ops attention item: bucket type, count, human label, deep-link."},"AuthorizationHoldItem":{"properties":{"hold_id":{"type":"string","format":"uuid","title":"Hold Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"authorization_id":{"type":"string","format":"uuid","title":"Authorization Id"},"payment_id":{"type":"string","format":"uuid","title":"Payment Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"payment_source_id":{"type":"string","format":"uuid","title":"Payment Source Id"},"source_institution_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Institution Name"},"source_last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Last Four"},"return_code":{"type":"string","title":"Return Code"},"placed_at":{"type":"string","format":"date-time","title":"Placed At"},"is_open":{"type":"boolean","title":"Is Open"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"released_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Released By"},"release_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Reason"}},"type":"object","required":["hold_id","account_id","authorization_id","payment_id","amount_cents","payment_source_id","source_institution_name","source_last_four","return_code","placed_at","is_open","released_at","released_by","release_reason"],"title":"AuthorizationHoldItem","description":"One hold, with what an operator needs to judge it."},"AutopayAuthorizationRequest":{"properties":{"template_id":{"type":"string","maxLength":100,"minLength":1,"title":"Template Id"},"version":{"type":"string","maxLength":100,"minLength":1,"title":"Version"}},"additionalProperties":false,"type":"object","required":["template_id","version"],"title":"AutopayAuthorizationRequest","description":"Which recurring-payments clause the cardholder was shown before submitting.\n\nThe client names the template and the version; the text is never sent. The\nserver renders it from those names, records the amount rule in the request\nbeside it, and stamps the moment, the address, the user agent and the cardholder's sign-in\nitself, from the request and its verified token. ``extra=\"forbid\"`` refuses a\nbody that tries to supply any of that (422) rather than quietly dropping it."},"AutopayAuthorizationResponse":{"properties":{"template_id":{"type":"string","title":"Template Id"},"version":{"type":"string","title":"Version"},"text":{"type":"string","title":"Text"},"consumer":{"type":"boolean","title":"Consumer","default":false}},"type":"object","required":["template_id","version","text"],"title":"AutopayAuthorizationResponse","description":"``GET /api/v1/autopay/authorization``: what enrolling in an automatic payment shows.\n\nForm 1's recurring-payments clause, word for word as the current version of the\nCommercial ACH Authorization holds it, and nothing else: the text is the same for\nevery amount rule and bank account, and names neither. The rule asked about is\nrecorded beside the acceptance, not added to the text. ``text`` is shown exactly\nas given; the client names ``template_id`` and ``version`` back when it submits\nthe arrangement, never the text."},"AutopayConfigResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"fixed_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fixed Amount Cents"},"days_before_due":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Before Due"},"awaiting_acceptance":{"type":"boolean","title":"Awaiting Acceptance","default":false},"previous_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Type"},"previous_fixed_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Previous Fixed Amount Cents"}},"type":"object","required":["enabled","type","fixed_amount_cents","days_before_due"],"title":"AutopayConfigResponse","description":"Autopay configuration for an account."},"AutopayInfo":{"properties":{"config_id":{"type":"string","format":"uuid","title":"Config Id"},"autopay_type":{"type":"string","title":"Autopay Type"},"is_active":{"type":"boolean","title":"Is Active"},"days_before_due":{"type":"integer","title":"Days Before Due"},"fixed_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fixed Amount Cents"},"payment_source_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payment Source Id"}},"type":"object","required":["config_id","autopay_type","is_active","days_before_due","fixed_amount_cents","payment_source_id"],"title":"AutopayInfo","description":"The account's autopay configuration, if any."},"BankLinkBusinessNameResponse":{"properties":{"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"}},"type":"object","required":["business_name"],"title":"BankLinkBusinessNameResponse","description":"What ``GET /api/v1/payment-sources/bank-link/business-name`` answers (#2881).\n\n``business_name`` is the legal name on the cardholder's approved application,\nthe name a completion signs the ACH authorization under. ``None`` when none\nresolves, without saying why."},"BankLinkHistoryResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"linked_accounts":{"items":{"$ref":"#/components/schemas/LinkedBankAccountItem"},"type":"array","title":"Linked Accounts"},"failed_attempts":{"items":{"$ref":"#/components/schemas/FailedLinkAttemptItem"},"type":"array","title":"Failed Attempts"},"link_events":{"items":{"$ref":"#/components/schemas/LinkEventItem"},"type":"array","title":"Link Events"}},"type":"object","required":["account_id","user_id","linked_accounts","failed_attempts","link_events"],"title":"BankLinkHistoryResponse","description":"A cardholder's bank links, for the admin view of their account."},"BankLinkRequest":{"properties":{"link_reference":{"type":"string","title":"Link Reference"},"account_id":{"type":"string","minLength":1,"title":"Account Id"},"institution_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Institution Name"}},"type":"object","required":["link_reference","account_id"],"title":"BankLinkRequest","description":"``POST /{id}/bank-link``: complete the link for the account the applicant chose.\n\n``account_id`` is a claim, validated against the linked item by the\nprovider adapter. ``institution_name`` is the display name the client\nholds, recorded in preference to the provider's."},"BankLinkResponse":{"properties":{"linked":{"type":"boolean","title":"Linked"},"institution_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Institution Name"},"account_mask":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Mask"}},"type":"object","required":["linked"],"title":"BankLinkResponse","description":"What ``POST /{id}/bank-link`` answers once the account is recorded."},"Body_upload_dispute_document_api_v1_disputes__dispute_id__documents_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"document_type":{"type":"string","title":"Document Type","default":"other"}},"type":"object","required":["file"],"title":"Body_upload_dispute_document_api_v1_disputes__dispute_id__documents_post"},"BusinessBlock":{"properties":{"account_start":{"type":"string","format":"date-time","title":"Account Start"},"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"structure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Structure"},"ein_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein Masked"},"gross_annual_revenue":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gross Annual Revenue"}},"type":"object","required":["account_start","legal_name","structure","ein_masked","gross_annual_revenue"],"title":"BusinessBlock","description":"Business AttrGroup — from account start + onboarding business facts."},"BusinessCorrectionRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"document_reference":{"type":"string","maxLength":255,"minLength":1,"title":"Document Reference"},"business_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Business Name"},"address_street1":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Street1"},"address_street2":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Street2"},"address_city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Address City"},"address_state":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Address State"},"address_zip":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Address Zip"}},"additionalProperties":false,"type":"object","required":["reason","document_reference"],"title":"BusinessCorrectionRequest","description":"A corrected business name or address. A field not sent is left as it is."},"BusinessCreditResponse":{"properties":{"availability":{"type":"string","title":"Availability"},"bureau":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bureau"},"paydex":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paydex"},"tradelines":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tradelines"},"derogatories":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Derogatories"}},"type":"object","required":["availability","bureau","paydex","tradelines","derogatories"],"title":"BusinessCreditResponse","description":"Business-credit summary — PENDING until the business-credit feed (task #1010)."},"BusinessInfoResponse":{"properties":{"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"},"ein_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein Masked"},"address_street1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Street1"},"address_street2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Street2"},"address_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address City"},"address_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address State"},"address_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Zip"}},"type":"object","required":["business_name","ein_masked","address_street1","address_street2","address_city","address_state","address_zip"],"title":"BusinessInfoResponse","description":"Business information for a user."},"CancelAccountChangeRequest":{"properties":{"warning":{"type":"string","enum":["autopay_payment_pending","autopay_on","payment_pending","nothing_pending"],"title":"Warning"},"choice":{"type":"string","enum":["cancel_and_keep_bank","cancel_and_keep_autopay","cancel","dismissed"],"title":"Choice"}},"additionalProperties":false,"type":"object","required":["warning","choice"],"title":"CancelAccountChangeRequest","description":"``POST /api/v1/payment-sources/{id}/change/cancel``: a warning cancelled (#3801).\n\nRecorded as shown and cancelled; nothing else changes."},"CardDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"string","title":"Account Id"},"card_type":{"type":"string","title":"Card Type"},"holds_primary_slot":{"type":"boolean","title":"Holds Primary Slot","default":false},"is_welcome_card":{"type":"boolean","title":"Is Welcome Card","default":false},"last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Four"},"status":{"type":"string","title":"Status"},"cardholder_first_name":{"type":"string","title":"Cardholder First Name"},"cardholder_last_name":{"type":"string","title":"Cardholder Last Name"},"expiry_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expiry Month"},"expiry_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expiry Year"},"daily_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Limit Cents"},"monthly_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Limit Cents"},"per_transaction_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Transaction Limit Cents"},"created_at":{"type":"string","title":"Created At"},"activated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activated At"},"locked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locked At"},"lock_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lock Reason"},"cardholder_can_unlock":{"type":"boolean","title":"Cardholder Can Unlock","default":true},"cancelled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancelled At"},"issuance_state":{"type":"string","enum":["issued","awaiting_issuance"],"title":"Issuance State","default":"issued"},"physical_order_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Physical Order Status"},"holder_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder User Id"},"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"},"holder_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Email"}},"type":"object","required":["id","account_id","card_type","last_four","status","cardholder_first_name","cardholder_last_name","expiry_month","expiry_year","created_at"],"title":"CardDetailResponse","description":"Detail response for a single card."},"CardOnAccountResponse":{"properties":{"card_id":{"type":"string","format":"uuid","title":"Card Id"},"card_type":{"type":"string","title":"Card Type"},"status":{"type":"string","title":"Status"},"last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Four"}},"type":"object","required":["card_id","card_type","status","last_four"],"title":"CardOnAccountResponse","description":"A card a finding on the account may name."},"CardResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"card_type":{"type":"string","title":"Card Type"},"last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Four"},"status":{"type":"string","title":"Status"},"cardholder_first_name":{"type":"string","title":"Cardholder First Name"},"cardholder_last_name":{"type":"string","title":"Cardholder Last Name"},"expiry_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expiry Month"},"expiry_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expiry Year"},"created_at":{"type":"string","title":"Created At"},"daily_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Limit Cents"},"per_transaction_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Transaction Limit Cents"},"activated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activated At"},"locked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locked At"},"cancelled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancelled At"},"issuance_state":{"type":"string","title":"Issuance State","default":"issued"}},"type":"object","required":["id","card_type","last_four","status","cardholder_first_name","cardholder_last_name","expiry_month","expiry_year","created_at"],"title":"CardResponse","description":"Response schema for a card in API responses."},"CardSensitiveResponse":{"properties":{"card_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card Number"},"cvv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cvv"},"pin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pin"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds"}},"type":"object","required":["card_number","cvv","pin","expires_in_seconds"],"title":"CardSensitiveResponse","description":"Card metadata for the reveal flow.\n\nM5 contract change: PAN/CVV/PIN are no longer returned through this\nendpoint. Highnote owns those values now and our backend never sees\nthem. Frontend should call ``POST /cards/{id}/reveal-token`` (M5.03)\nto obtain a client token and hand it to the\n``@highnoteplatform/card-viewer`` SDK for iframe-hosted reveal.\n\nFor ``provider=\"local\"`` cards the frontend will fall back to the\nlegacy dev path (wired in M5.04). Until that frontend work lands the\nPAN / CVV / PIN string fields are ``None`` here, signalling the\nmigration to any caller still pointed at this endpoint.\n\n**M5.06 (D1, locked):** the ``pin`` field will stay ``None`` for\nHighnote-routed cards permanently — Highnote's\n``PaymentCardClientTokenPermission`` enum has no ``READ_PIN`` value\n(spike §4), so there is no codepath that could ever populate it.\nThe field stays on the response for backward-compatibility with the\nlocal-dev reveal path (the local-dev fallback wires in M5.04). M7\nremoves the field globally."},"CardholderSearchResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CardholderSearchRow"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"CardholderSearchResponse","description":"Deduped account rows plus a total count (a top-N lookup, not a paged list)."},"CardholderSearchRow":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"},"holder_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Email"},"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"},"status":{"type":"string","title":"Status"},"matched_on":{"items":{"type":"string"},"type":"array","title":"Matched On"}},"type":"object","required":["account_id","status","matched_on"],"title":"CardholderSearchRow","description":"An account row for the unified admin search, with match provenance."},"CardsListResponse":{"properties":{"cards":{"items":{"$ref":"#/components/schemas/CardDetailResponse"},"type":"array","title":"Cards"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["cards","total"],"title":"CardsListResponse","description":"List of cards for the current user."},"CaseCommType":{"type":"string","enum":["ACKNOWLEDGEMENT","SUBSTANTIVE_RESPONSE","FOLLOW_UP","RESOLUTION_NOTICE"],"title":"CaseCommType","description":"What kind of communication a ``comm_sent`` case event records (``case_events.comm_type``).\n\n``substantive`` is the bank's distinction: an acknowledgement or a follow-up is not a\nresponse to the complaint; an answer or a stated resolution is."},"CaseEventResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"detail":{"type":"string","title":"Detail"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"comm_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comm Type"}},"type":"object","required":["id","event_type","detail","actor_id","occurred_at"],"title":"CaseEventResponse","description":"A timeline entry; ``comm_type`` names the kind of a communication on a complaint."},"CaseResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"case_type":{"type":"string","title":"Case Type"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"assignee_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignee Id"},"state":{"type":"string","title":"State"},"sla_opened_at":{"type":"string","format":"date-time","title":"Sla Opened At"},"sla_due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sla Due At"},"sla_breached":{"type":"boolean","title":"Sla Breached"},"days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Remaining"},"document_refs":{"items":{"type":"string"},"type":"array","title":"Document Refs"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"},"events":{"items":{"$ref":"#/components/schemas/CaseEventResponse"},"type":"array","title":"Events"},"complaint":{"anyOf":[{"$ref":"#/components/schemas/ComplaintResponse"},{"type":"null"}]}},"type":"object","required":["id","case_type","account_id","assignee_id","state","sla_opened_at","sla_due_at","sla_breached","days_remaining","document_refs","created_at","events"],"title":"CaseResponse","description":"A compliance case as returned by the API."},"CaseState":{"type":"string","enum":["open","in_progress","resolved","closed"],"title":"CaseState","description":"State of a compliance ``Case`` in its lifecycle.\n\n``RESOLVED`` and ``CLOSED`` are terminal for SLA purposes (the clock stops);\n``RESOLVED`` may still be re-opened if new information arrives."},"CaseType":{"type":"string","enum":["scra","bankruptcy","deceased","complaint","dispute"],"title":"CaseType","description":"The five compliance case types that compose the shared ``Case``.\n\n``sla_days`` is the default due-date window from ``opened_at`` for this type,\nor ``None`` when the timeline is SOP-driven rather than a fixed clock.\n``intake_permission`` is what opening one requires beyond the baseline write."},"CertifyFundingAccountRequest":{"properties":{"holder_type":{"type":"string","const":"personal","title":"Holder Type"},"certification_text":{"type":"string","title":"Certification Text"}},"additionalProperties":false,"type":"object","required":["holder_type","certification_text"],"title":"CertifyFundingAccountRequest","description":"``POST /{id}/funding-account-certification``: the account linked next is personal (#3712).\n\nA personal account links on its certification alone, as the dashboard's does: it takes no\ncommercial authorization, and each debit from it is taken under a consumer form (#3713).\nThe moment, the address and the agent are the server's to stamp."},"ChangeAccountRequest":{"properties":{"warning":{"type":"string","enum":["autopay_payment_pending","autopay_on","payment_pending","nothing_pending"],"title":"Warning"}},"additionalProperties":false,"type":"object","required":["warning"],"title":"ChangeAccountRequest","description":"``POST /api/v1/payment-sources/{id}/change``: the warning the customer confirmed.\n\nRefused with a 409 ``account_change_stale`` when it is no longer the one that applies, so\nnothing changes on a warning the customer did not see."},"ClientBookKpisResponse":{"properties":{"total_clients":{"type":"integer","title":"Total Clients"},"needs_attention":{"type":"integer","title":"Needs Attention"},"total_exposure_cents":{"type":"integer","title":"Total Exposure Cents"}},"type":"object","required":["total_clients","needs_attention","total_exposure_cents"],"title":"ClientBookKpisResponse","description":"Header roll-up counts for the Client Book.\n\n``total_clients`` is the full-book funded count; ``needs_attention`` and\n``total_exposure_cents`` are page-scoped (computed over the page the list\nendpoint returns), matching the service's KPI contract."},"ClientBookResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ClientSummaryResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"kpis":{"$ref":"#/components/schemas/ClientBookKpisResponse"}},"type":"object","required":["items","total","kpis"],"title":"ClientBookResponse","description":"Paginated Client Book list plus header KPIs."},"ClientSummaryResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"},"holder_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Email"},"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"},"stage":{"type":"string","title":"Stage"},"gross_annual_revenue":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gross Annual Revenue"},"credit_limit_cents":{"type":"integer","title":"Credit Limit Cents"},"balance_cents":{"type":"integer","title":"Balance Cents"},"issue_count":{"type":"integer","title":"Issue Count"},"credit_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Score"},"zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zone"},"advisor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Advisor Id"},"advisor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advisor Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["account_id","user_id","holder_name","holder_email","business_name","stage","gross_annual_revenue","credit_limit_cents","balance_cents","issue_count","credit_score","zone","advisor_id","advisor_name","created_at"],"title":"ClientSummaryResponse","description":"One Client Book row as returned by the API.\n\n``credit_score``/``zone`` are **always ``null``** (\"not scored\" — no score subsystem\nexists, and the projection never fabricates one). ``advisor_id``/\n``advisor_name`` are ``null`` for an unassigned client."},"CloseAccountRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"CloseAccountRequest","description":"Request schema for closing an account."},"CodeOption":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"CodeOption","description":"One code of a vocabulary and its operator-facing label."},"CommPreviewRequest":{"properties":{"context":{"additionalProperties":{"type":"string"},"type":"object","title":"Context"}},"type":"object","title":"CommPreviewRequest","description":"Merge values to compose one comm with, for a preview."},"CommPreviewResponse":{"properties":{"subject":{"type":"string","title":"Subject"},"body_text":{"type":"string","title":"Body Text"},"body_html":{"type":"string","title":"Body Html"}},"type":"object","required":["subject","body_text","body_html"],"title":"CommPreviewResponse","description":"One composed comm as the two bodies a cardholder would receive.\n\nBoth bodies, because the whole point of the repoint is that an operator send\nis now a framed multipart message: a preview that showed only the text would\nshow the half that changed least. ``body_html`` is the same string\n``dispatch_comm`` hands the transport, frame and footer included."},"CommsLogItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"},"channel":{"type":"string","title":"Channel"},"notification_type":{"type":"string","title":"Notification Type"},"template_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Ref"},"title":{"type":"string","title":"Title"},"send_outcome":{"type":"string","title":"Send Outcome"},"delivery_receipt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Receipt"},"case_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Case Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"admin_actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Admin Actor Id"}},"type":"object","required":["id","user_id","account_id","channel","notification_type","template_ref","title","send_outcome","delivery_receipt","case_id","occurred_at","admin_actor_id"],"title":"CommsLogItemResponse","description":"One outbound-comm entry as returned by the Comms-log API.\n\n**Two status fields since #1894 t7, and the split is a contract change.**\n``send_outcome`` is what the platform did when it tried — ``created`` for the\nin-app row, ``queued``/``skipped``/``failed`` for email and SMS.\n``delivery_receipt`` is what the provider told us afterwards\n(``delivered``/``bounced``/``soft_bounced``/``complained``), and ``None``\nmeans none has arrived: the permanent state of every in-app row and the\ntransient state of mail in flight.\n\nThey were one ``status`` field, and the receipt overwrote the outcome — so a\ndelivered comm could not also report that it had been queued. The client's\nown union carried only the four send outcomes while the Postmark webhook was\nalready writing the four receipts into the same column, so a bounced comm\nrendered an **empty badge**. Both facts are now separate and both are typed.\n\n``admin_actor_id`` names the admin who caused the comm, or is ``None`` when\nthe system emitted it."},"CommsLogListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CommsLogItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"CommsLogListResponse","description":"A paginated page of Comms-log items plus the full account total."},"ComplaintChannel":{"type":"string","enum":["INTERCOM_CHAT","INTERCOM_EMAIL","PHONE","MAIL","IN_APP","SOCIAL","BBB","REGULATOR_PORTAL","FORWARDED_BY_BANK"],"title":"ComplaintChannel","description":"How the complaint reached us. ``regulatory_portal`` is true for a regulator's portal."},"ComplaintReceivedBy":{"type":"string","enum":["DAO","CS_PROVIDER","BANK","REGULATOR"],"title":"ComplaintReceivedBy","description":"Who received the complaint: us, our customer service provider, the bank or a regulator."},"ComplaintResolutionCode":{"type":"string","enum":["MONETARY_RELIEF","NON_MONETARY_RELIEF","EXPLANATION","WITHDRAWN","OTHER"],"title":"ComplaintResolutionCode","description":"How the complaint was resolved."},"ComplaintResponse":{"properties":{"received_day":{"type":"string","format":"date","title":"Received Day"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"received_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Received By"},"regulatory_portal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Regulatory Portal"},"intercom_conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intercom Conversation Id"},"root_cause":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Root Cause"},"resolution_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Code"},"corrective_action_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corrective Action Code"},"corrective_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corrective Action"},"conclusion_states":{"items":{"type":"string"},"type":"array","title":"Conclusion States"}},"type":"object","required":["received_day","channel","received_by","regulatory_portal","intercom_conversation_id","root_cause","resolution_code","corrective_action_code","corrective_action","conclusion_states"],"title":"ComplaintResponse","description":"A complaint's complaint-log fields.\n\n``received_day`` is the day it was received in the card processor's calendar\n(``issuer_day``), the day the bank's log reports. ``corrective_action`` is free text\nthat may name the complainant. ``conclusion_states`` are the states the resolution\nform may conclude it as from the state it is in now, as the case decides them."},"ComplaintRootCause":{"type":"string","enum":["FEES_AND_INTEREST","BILLING_AND_STATEMENTS","PAYMENTS","CARD_ACCESS_AND_DELIVERY","TRANSACTIONS_AND_MERCHANTS","FRAUD_AND_SECURITY","CREDIT_DECISION","CREDIT_REPORTING","COLLECTIONS","CUSTOMER_SERVICE","APP_OR_SYSTEM","PRIVACY","OTHER"],"title":"ComplaintRootCause","description":"What the complaint was found to be caused by."},"ComplaintVocabularyResponse":{"properties":{"channels":{"items":{"$ref":"#/components/schemas/CodeOption"},"type":"array","title":"Channels"},"received_by":{"items":{"$ref":"#/components/schemas/CodeOption"},"type":"array","title":"Received By"},"root_causes":{"items":{"$ref":"#/components/schemas/CodeOption"},"type":"array","title":"Root Causes"},"resolutions":{"items":{"$ref":"#/components/schemas/CodeOption"},"type":"array","title":"Resolutions"},"corrective_actions":{"items":{"$ref":"#/components/schemas/CodeOption"},"type":"array","title":"Corrective Actions"},"comm_types":{"items":{"$ref":"#/components/schemas/CodeOption"},"type":"array","title":"Comm Types"}},"type":"object","required":["channels","received_by","root_causes","resolutions","corrective_actions","comm_types"],"title":"ComplaintVocabularyResponse","description":"Every complaint code list, in order, with labels — the console's only source."},"CompleteBankLinkRequest":{"properties":{"link_reference":{"type":"string","minLength":1,"title":"Link Reference"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"institution_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Institution Name"},"authorisation_template_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Authorisation Template Id"},"authorisation_template_version":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Authorisation Template Version"},"make_default":{"type":"boolean","title":"Make Default","default":false},"holder_type":{"anyOf":[{"type":"string","enum":["business","personal"]},{"type":"null"}],"title":"Holder Type"},"certification_text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Certification Text"}},"additionalProperties":false,"type":"object","required":["link_reference"],"title":"CompleteBankLinkRequest","description":"``POST /api/v1/payment-sources/bank-link``: complete the link and accept the authorisation.\n\nEverything here is the cardholder's assertion: the session, the account\nthey chose (a claim the provider validates against the item), and\n**which** authorisation they were shown. The text is never sent: the\nserver renders it from the template and version named. ``institution_name``\nis accepted and not recorded: the bank's name is the one the provider\nresolved.\nThe moment of acceptance and the address it came from are the server's\nand have no field here; ``extra=\"forbid\"`` refuses a body that tries to\nsupply them (422) rather than quietly dropping them."},"ComplianceFlagList":{"type":"string","enum":["watch","blocked","high_risk"],"title":"ComplianceFlagList","description":"Which BSA/AML list to enumerate on the per-list query surface (#921).\n\nA plain ``str, Enum`` naming the three account-level flags. Used by the\n``GET /admin/accounts/flagged?list=...`` query and its repository lookup."},"ComplianceFlagResponse":{"properties":{"reason":{"type":"string","title":"Reason"},"flagged_by":{"type":"string","title":"Flagged By"},"flagged_at":{"type":"string","format":"date-time","title":"Flagged At"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},"type":"object","required":["reason","flagged_by","flagged_at"],"title":"ComplianceFlagResponse","description":"One BSA/AML flag's audit snapshot as returned by the API."},"ConcludeComplaintRequest":{"properties":{"to_state":{"type":"string","enum":["resolved","closed"],"title":"To State"},"root_cause":{"$ref":"#/components/schemas/ComplaintRootCause"},"resolution_code":{"$ref":"#/components/schemas/ComplaintResolutionCode"},"corrective_action_code":{"$ref":"#/components/schemas/CorrectiveActionCode"},"corrective_action":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Corrective Action"},"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"type":"object","required":["to_state","root_cause","resolution_code","corrective_action_code"],"title":"ConcludeComplaintRequest","description":"A complaint's resolution, and whether it is now resolved or closed.\n\nSECURITY: ``corrective_action`` is free text that may name the complainant, so it is\nleft out of the model's ``repr``."},"ConfigureAutopayRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"fixed_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fixed Amount Cents"},"days_before_due":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Before Due"},"payment_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Source Id"},"authorization":{"anyOf":[{"$ref":"#/components/schemas/AutopayAuthorizationRequest"},{"type":"null"}]},"certification_text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Certification Text"}},"type":"object","required":["enabled"],"title":"ConfigureAutopayRequest","description":"Request body for configuring autopay."},"ConnectErrorItem":{"properties":{"ended_by":{"type":"string","title":"Ended By"},"error_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Error Code"},"error_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Reason"},"alert_error_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Alert Error Code"}},"type":"object","required":["ended_by","error_code","error_reason","alert_error_code"],"title":"ConnectErrorItem","description":"What the provider's window showed, as the browser reported it."},"ConnectFailureRequest":{"properties":{"link_reference":{"type":"string","maxLength":4096,"minLength":1,"title":"Link Reference"},"ended_by":{"type":"string","enum":["error","cancel"],"title":"Ended By"},"error_code":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Error Code"},"error_reason":{"anyOf":[{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9 _.:()-]+$"},{"type":"null"}],"title":"Error Reason"},"alert_error_code":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Alert Error Code"},"institution_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,32}$"},{"type":"null"}],"title":"Institution Id"}},"additionalProperties":false,"type":"object","required":["link_reference","ended_by"],"title":"ConnectFailureRequest","description":"What Connect told the browser when the session ``link_reference`` names failed."},"ConsumerBureauDetailResponse":{"properties":{"availability":{"type":"string","title":"Availability"},"open_tradelines":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Open Tradelines"},"utilization_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Utilization Pct"},"oldest_account_years":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Oldest Account Years"},"hard_inquiries_6mo":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hard Inquiries 6Mo"},"delinquencies_24mo":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delinquencies 24Mo"},"collections":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Collections"},"public_records":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Public Records"}},"type":"object","required":["availability","open_tradelines","utilization_pct","oldest_account_years","hard_inquiries_6mo","delinquencies_24mo","collections","public_records"],"title":"ConsumerBureauDetailResponse","description":"Tradeline-level consumer-bureau detail — PENDING until the bureau feed (task #1010)."},"ConsumerCreditResponse":{"properties":{"personal_fico":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Personal Fico"},"bureau_detail":{"$ref":"#/components/schemas/ConsumerBureauDetailResponse"}},"type":"object","required":["personal_fico","bureau_detail"],"title":"ConsumerCreditResponse","description":"Consumer credit pull: REAL personal FICO + PENDING tradeline detail (task #1010)."},"CorrectiveActionCode":{"type":"string","enum":["PROCESS_CHANGE","STAFF_TRAINING","SYSTEM_FIX","POLICY_CLARIFICATION","CUSTOMER_REMEDIATION","NO_ACTION_REQUIRED","OTHER"],"title":"CorrectiveActionCode","description":"The corrective action taken, as the code the bank's complaint log reads."},"CreateAdvisorRequest":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"$ref":"#/components/schemas/AdvisorRole"},"capacity":{"type":"integer","exclusiveMinimum":0.0,"title":"Capacity","description":"Maximum active clients (positive)"}},"type":"object","required":["user_id","role","capacity"],"title":"CreateAdvisorRequest","description":"Register a CRM advisor for an existing admin user."},"CreateSignupRequest":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"ssn_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssn Last4"},"landing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landing Id"}},"type":"object","required":["phone_number","landing_id"],"title":"CreateSignupRequest"},"CreateTaskRequest":{"properties":{"subject":{"type":"string","maxLength":500,"minLength":1,"title":"Subject"},"ref_type":{"$ref":"#/components/schemas/TaskRefType"},"ref_id":{"type":"string","format":"uuid","title":"Ref Id"},"category":{"$ref":"#/components/schemas/TaskCategory"},"priority":{"$ref":"#/components/schemas/TaskPriority","default":"normal"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"assignee_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignee Id"},"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"type":"object","required":["subject","ref_type","ref_id","category"],"title":"CreateTaskRequest","description":"Open a new advisor task."},"CreditBlock":{"properties":{"personal_fico":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Personal Fico"},"credit_limit_cents":{"type":"integer","title":"Credit Limit Cents"},"available_credit_cents":{"type":"integer","title":"Available Credit Cents"},"balance_cents":{"type":"integer","title":"Balance Cents"},"bank_linked":{"type":"boolean","title":"Bank Linked"},"bank_institution_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Institution Name"}},"type":"object","required":["personal_fico","credit_limit_cents","available_credit_cents","balance_cents","bank_linked","bank_institution_name"],"title":"CreditBlock","description":"Credit AttrGroup — account credit metrics + onboarding FICO + bank link."},"CreditFactorResponse":{"properties":{"factor":{"type":"string","title":"Factor"},"impact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Impact"}},"type":"object","required":["factor","impact"],"title":"CreditFactorResponse","description":"One factor behind a bureau score, with the influence recorded for it.\n\n``impact`` is ``positive``, ``negative`` or ``neutral`` as stored, and ``None`` where\nthe store recorded no influence — never defaulted to ``neutral``, which would tell a\ncardholder a factor has no effect when nobody said so (``RID-CREDIT-JOURNEY-HONEST-004``)."},"CreditJourneyResponse":{"properties":{"credit_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Level"},"credit_level_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credit Level Name"},"credit_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Limit Cents"},"progress_percent":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress Percent"},"do_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Do Score"},"scores":{"items":{"$ref":"#/components/schemas/app__shared__api__credit_journey_models__CreditScoreResponse"},"type":"array","title":"Scores"},"nudge_cards":{"items":{"$ref":"#/components/schemas/NudgeCardResponse"},"type":"array","title":"Nudge Cards"},"sba_requirements":{"items":{"$ref":"#/components/schemas/SBARequirementResponse"},"type":"array","title":"Sba Requirements"},"sba_qualified":{"type":"boolean","title":"Sba Qualified"}},"type":"object","required":["credit_level","credit_level_name","credit_limit_cents","progress_percent","do_score","scores","nudge_cards","sba_requirements","sba_qualified"],"title":"CreditJourneyResponse"},"CurrentDetailsResponse":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"},"address_street1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Street1"},"address_street2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Street2"},"address_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address City"},"address_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address State"},"address_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Zip"}},"type":"object","required":["first_name","last_name","business_name","address_street1","address_street2","address_city","address_state","address_zip"],"title":"CurrentDetailsResponse","description":"The name and business as they stand, so a correction form starts from them."},"DashboardAccountResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"balance_cents":{"type":"integer","title":"Balance Cents"},"available_credit_cents":{"type":"integer","title":"Available Credit Cents"},"credit_limit_cents":{"type":"integer","title":"Credit Limit Cents"},"billing_cycle_day":{"type":"integer","title":"Billing Cycle Day"},"close_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Reason"}},"type":"object","required":["id","status","balance_cents","available_credit_cents","credit_limit_cents","billing_cycle_day"],"title":"DashboardAccountResponse","description":"Account summary for the dashboard."},"DashboardCardResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"card_type":{"type":"string","title":"Card Type"},"last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Four"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","card_type","last_four","status"],"title":"DashboardCardResponse","description":"Primary card summary for the dashboard."},"DashboardConnectFailureRequest":{"properties":{"link_reference":{"type":"string","maxLength":4096,"minLength":1,"title":"Link Reference"},"ended_by":{"type":"string","enum":["error","cancel"],"title":"Ended By"},"error_code":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Error Code"},"error_reason":{"anyOf":[{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9 _.:()-]+$"},{"type":"null"}],"title":"Error Reason"},"alert_error_code":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Alert Error Code"},"institution_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,32}$"},{"type":"null"}],"title":"Institution Id"},"purpose":{"type":"string","enum":["link","repair"],"title":"Purpose","default":"link"}},"additionalProperties":false,"type":"object","required":["link_reference","ended_by"],"title":"DashboardConnectFailureRequest","description":"The dashboard's report also names which kind of session failed: a link or a repair."},"DashboardCreditLevelResponse":{"properties":{"level":{"type":"integer","title":"Level"},"name":{"type":"string","title":"Name"},"credit_limit_cents":{"type":"integer","title":"Credit Limit Cents"},"progress_percent":{"type":"integer","title":"Progress Percent"},"nudge_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nudge Message"}},"type":"object","required":["level","name","credit_limit_cents","progress_percent"],"title":"DashboardCreditLevelResponse","description":"Credit level progress for the dashboard."},"DashboardCycleSpendResponse":{"properties":{"spend_cents":{"type":"integer","title":"Spend Cents"},"since":{"type":"string","title":"Since"},"since_account_opened":{"type":"boolean","title":"Since Account Opened"}},"type":"object","required":["spend_cents","since","since_account_opened"],"title":"DashboardCycleSpendResponse","description":"What the cycle that is running right now has cost so far.\n\nSummed from this platform's own transaction rows, because there is nowhere\nelse to get it: an open statement's aggregates are ``None`` at the\nprocessor until the cycle closes, so **nothing about a running cycle can be\nread from Highnote** (measured 2026-09-12; see\n``statement_payment_allocator``'s module docstring)."},"DashboardOccurrenceResponse":{"properties":{"id":{"type":"string","title":"Id"},"signal":{"type":"string","title":"Signal"},"message":{"type":"string","title":"Message"},"impact":{"type":"string","title":"Impact"},"speed":{"type":"string","title":"Speed"},"score_gain":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score Gain"},"cta_label":{"type":"string","title":"Cta Label"},"icon":{"type":"string","title":"Icon"}},"type":"object","required":["id","signal","message","impact","speed","score_gain","cta_label","icon"],"title":"DashboardOccurrenceResponse","description":"A single occurrence action item for the dashboard."},"DashboardPaymentDueResponse":{"properties":{"amount_cents":{"type":"integer","title":"Amount Cents"},"due_date":{"type":"string","title":"Due Date"},"statement_balance_cents":{"type":"integer","title":"Statement Balance Cents"},"days_until_due":{"type":"integer","title":"Days Until Due"},"is_past_due":{"type":"boolean","title":"Is Past Due"},"period_start":{"type":"string","title":"Period Start"},"period_end":{"type":"string","title":"Period End"}},"type":"object","required":["amount_cents","due_date","statement_balance_cents","days_until_due","is_past_due","period_start","period_end"],"title":"DashboardPaymentDueResponse","description":"What the cardholder owes next, from the statement that asks for it.\n\nPresent **only** when a closed statement is genuinely still asking to be\npaid. Absent — not zeroed, not placeholdered — when there is no such\nstatement, because there is then no amount and no date, and inventing\neither is how a cardholder ends up reading a figure from a cycle that\nclosed months ago. ``_latest_open_statement`` decides which statements\nqualify and says why.\n\nEvery figure here belongs to one period: the cycle the statement covers.\nNothing about the cycle that is currently running appears in it — that is\n:class:`DashboardCycleSpendResponse`, and keeping the two apart is the\nwhole point of the split (#2115)."},"DashboardResponse":{"properties":{"user":{"$ref":"#/components/schemas/DashboardUserResponse"},"account":{"anyOf":[{"$ref":"#/components/schemas/DashboardAccountResponse"},{"type":"null"}]},"primary_card":{"anyOf":[{"$ref":"#/components/schemas/DashboardCardResponse"},{"type":"null"}]},"cards":{"anyOf":[{"items":{"$ref":"#/components/schemas/DashboardCardResponse"},"type":"array"},{"type":"null"}],"title":"Cards"},"recent_transactions":{"anyOf":[{"items":{"$ref":"#/components/schemas/DashboardTransactionResponse"},"type":"array"},{"type":"null"}],"title":"Recent Transactions"},"payment_due":{"anyOf":[{"$ref":"#/components/schemas/DashboardPaymentDueResponse"},{"type":"null"}]},"cycle_spend":{"anyOf":[{"$ref":"#/components/schemas/DashboardCycleSpendResponse"},{"type":"null"}]},"credit_level":{"anyOf":[{"$ref":"#/components/schemas/DashboardCreditLevelResponse"},{"type":"null"}]},"notification_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Notification Count"},"occurrences":{"anyOf":[{"items":{"$ref":"#/components/schemas/DashboardOccurrenceResponse"},"type":"array"},{"type":"null"}],"title":"Occurrences"},"has_linked_bank":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Linked Bank"}},"type":"object","required":["user"],"title":"DashboardResponse","description":"Aggregated dashboard response for the BFF endpoint."},"DashboardTransactionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"merchant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Name"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"amount_cents":{"type":"integer","title":"Amount Cents"},"transaction_type":{"type":"string","title":"Transaction Type"},"is_credit":{"type":"boolean","title":"Is Credit"},"status":{"type":"string","title":"Status"},"transaction_date":{"type":"string","title":"Transaction Date"},"transaction_day":{"type":"string","title":"Transaction Day"},"card_last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card Last Four"},"has_dispute":{"type":"boolean","title":"Has Dispute","default":false}},"type":"object","required":["id","amount_cents","transaction_type","is_credit","status","transaction_date","transaction_day"],"title":"DashboardTransactionResponse","description":"Recent transaction for the dashboard."},"DashboardUserResponse":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"DashboardUserResponse","description":"User summary for the dashboard."},"DeclineApplicationRequest":{"properties":{"decline_reason":{"type":"string","maxLength":500,"minLength":1,"title":"Decline Reason"},"decline_codes":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Decline Codes","description":"FCRA reason codes (≥1) from ('C01', 'C02', 'C03', 'C04', 'C05', 'C06', 'C07', 'C08', 'C09', 'C10', 'C11', 'C12', 'C13', 'C14', 'F01', 'F02', 'B01', 'B02', 'B03', 'B04', 'B05', 'B06', 'I01', 'I02', 'I03', 'P01', 'P02', 'P03', 'P04')"}},"type":"object","required":["decline_reason","decline_codes"],"title":"DeclineApplicationRequest","description":"Admin override-decline with FCRA reason codes."},"DeclineDecisionRequest":{"properties":{"decision":{"type":"string","const":"decline","title":"Decision"},"decline_reason":{"type":"string","maxLength":500,"title":"Decline Reason","default":""},"decline_codes":{"items":{"type":"string"},"type":"array","title":"Decline Codes","description":"FCRA reason codes from ('C01', 'C02', 'C03', 'C04', 'C05', 'C06', 'C07', 'C08', 'C09', 'C10', 'C11', 'C12', 'C13', 'C14', 'F01', 'F02', 'B01', 'B02', 'B03', 'B04', 'B05', 'B06', 'I01', 'I02', 'I03', 'P01', 'P02', 'P03', 'P04'). Empty only to confirm a decline the launch review gate is holding, which then states the flow's own codes."}},"type":"object","required":["decision"],"title":"DeclineDecisionRequest","description":"Decline with FCRA reason codes (drives the Adverse Action Notice)."},"DeliveryAddress":{"properties":{"street1":{"type":"string","maxLength":100,"minLength":1,"title":"Street1"},"street2":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Street2"},"city":{"type":"string","maxLength":50,"minLength":1,"title":"City"},"state":{"type":"string","maxLength":2,"minLength":2,"title":"State"},"zip_code":{"type":"string","maxLength":10,"minLength":5,"title":"Zip Code"}},"type":"object","required":["street1","city","state","zip_code"],"title":"DeliveryAddress","description":"A US mailing address, as the delivery step shows it and takes a change to it."},"DeliveryResponse":{"properties":{"recipient":{"type":"string","title":"Recipient"},"address":{"anyOf":[{"$ref":"#/components/schemas/DeliveryAddress"},{"type":"null"}]},"changed":{"type":"boolean","title":"Changed"}},"type":"object","required":["recipient","address","changed"],"title":"DeliveryResponse","description":"Who the card ships to, and where (prototype ``v9`` \"Confirm your delivery details\")."},"DeliveryRulingOutcomeResponse":{"properties":{"event_id":{"type":"string","title":"Event Id"},"outcome":{"type":"string","title":"Outcome"},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"},"retry_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry Count"}},"type":"object","required":["event_id","outcome","event_type","retry_count"],"title":"DeliveryRulingOutcomeResponse"},"DeliveryRulingRequest":{"properties":{"event_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Event Ids"},"ruling":{"type":"string","enum":["not_ours","no_effect"],"title":"Ruling"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"type":"object","required":["event_ids","ruling","reason"],"title":"DeliveryRulingRequest","description":"A person's ruling that the named deliveries will never be applied (#2286)."},"DeliveryRulingResponse":{"properties":{"ruling":{"type":"string","title":"Ruling"},"dry_run":{"type":"boolean","title":"Dry Run"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"},"outcomes":{"items":{"$ref":"#/components/schemas/DeliveryRulingOutcomeResponse"},"type":"array","title":"Outcomes"}},"type":"object","required":["ruling","dry_run","counts","outcomes"],"title":"DeliveryRulingResponse"},"DeliveryRulingWithdrawnResponse":{"properties":{"event_id":{"type":"string","title":"Event Id"},"withdrawn_ruling":{"type":"string","title":"Withdrawn Ruling"},"withdrawn_ruled_by":{"type":"string","title":"Withdrawn Ruled By"},"withdrawn_ruled_at":{"type":"string","title":"Withdrawn Ruled At"}},"type":"object","required":["event_id","withdrawn_ruling","withdrawn_ruled_by","withdrawn_ruled_at"],"title":"DeliveryRulingWithdrawnResponse"},"DepositAttemptResponse":{"properties":{"status":{"type":"string","title":"Status"},"amount_cents":{"type":"integer","title":"Amount Cents"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"return_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Code"}},"type":"object","required":["status","amount_cents"],"title":"DepositAttemptResponse","description":"The latest deposit, as the cardholder may see it."},"DisputeDeclineReason":{"type":"string","enum":["transaction_authorized","delivered_as_described","amount_matches_records","credit_already_posted","received_too_late","agent_of_cardholder","quality_of_goods"],"title":"DisputeDeclineReason","description":"Why a dispute was decided against the cardholder: one of the SOP's seven.\n\nCompliance's *Transaction Dispute Handling SOP* (2026), Appendix A, template\nA-4 (*Dispute Declined*) offers exactly these seven reasons — *\"Select and\ncomplete one\"* — and SOP §5.7 makes the reason part of the notice (#2390,\n#3123). Each member carries A-4's own clause for it, **word for word**: it\nis what the cardholder is told, in the email, the in-app message and on the\ndispute screen. The operator chooses one when deciding; the free-text\n``resolution_reason`` beside it is an internal note and is never sent.\n\n``CREDIT_ALREADY_POSTED`` is the one clause with a blank to complete — the\ndate the credit posted — so a decision giving it must give that date too."},"DisputeDetailResponse":{"properties":{"dispute_id":{"type":"string","format":"uuid","title":"Dispute Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"transaction_id":{"type":"string","format":"uuid","title":"Transaction Id"},"reason":{"type":"string","title":"Reason"},"description":{"type":"string","title":"Description"},"status":{"type":"string","title":"Status"},"disputed_amount_cents":{"type":"integer","title":"Disputed Amount Cents"},"provisional_credit_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Provisional Credit Amount Cents"},"is_open":{"type":"boolean","title":"Is Open"},"is_resolved":{"type":"boolean","title":"Is Resolved"},"is_withdrawn":{"type":"boolean","title":"Is Withdrawn"},"filed_at":{"type":"string","title":"Filed At"},"updated_at":{"type":"string","title":"Updated At"},"documents":{"items":{"$ref":"#/components/schemas/DisputeDocumentItemResponse"},"type":"array","title":"Documents"},"transaction_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction Date"},"credit_posted_latest":{"type":"string","title":"Credit Posted Latest"}},"type":"object","required":["dispute_id","account_id","transaction_id","reason","description","status","disputed_amount_cents","provisional_credit_amount_cents","is_open","is_resolved","is_withdrawn","filed_at","updated_at","documents","credit_posted_latest"],"title":"DisputeDetailResponse","description":"A dispute as returned by the admin detail / resolve / escalate endpoints."},"DisputeDocumentItemResponse":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"document_type":{"type":"string","title":"Document Type"},"file_name":{"type":"string","title":"File Name"},"uploaded_at":{"type":"string","title":"Uploaded At"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["document_id","document_type","file_name","uploaded_at","description"],"title":"DisputeDocumentItemResponse","description":"One item of evidence on a dispute, as the operator sees it listed (#3325).\n\nOpened through the detail's ``documents/{document_id}/content`` route; where the\nbytes are stored is not part of the response."},"DisputeDocumentResponse":{"properties":{"id":{"type":"string","title":"Id"},"document_type":{"type":"string","title":"Document Type"},"file_name":{"type":"string","title":"File Name"},"uploaded_at":{"type":"string","title":"Uploaded At"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","document_type","file_name","uploaded_at"],"title":"DisputeDocumentResponse","description":"A supporting document attached to a dispute.\n\nShape matches the frontend ``DisputeDocument`` type\n(``web/src/lib/api/disputes.ts``): ``id``, ``document_type``,\n``file_name``, ``uploaded_at`` (+ optional ``description``).\n\nThere is no ``file_url``. Where the bytes are stored is a ``gs://`` path no\nbrowser can open, and it is ours rather than the client's; the item is opened at\n``GET /disputes/{dispute_id}/documents/{id}/content`` (#3326)."},"DisputeListItemResponse":{"properties":{"dispute_id":{"type":"string","format":"uuid","title":"Dispute Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"transaction_id":{"type":"string","format":"uuid","title":"Transaction Id"},"reason":{"type":"string","title":"Reason"},"status":{"type":"string","title":"Status"},"disputed_amount_cents":{"type":"integer","title":"Disputed Amount Cents"},"is_open":{"type":"boolean","title":"Is Open"},"filed_at":{"type":"string","title":"Filed At"},"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"}},"type":"object","required":["dispute_id","account_id","transaction_id","reason","status","disputed_amount_cents","is_open","filed_at"],"title":"DisputeListItemResponse","description":"A dispute summary row for the admin list."},"DisputeListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DisputeListItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"DisputeListResponse","description":"Paginated admin dispute list."},"DisputeResponse":{"properties":{"id":{"type":"string","title":"Id"},"case_number":{"type":"string","title":"Case Number"},"status":{"type":"string","title":"Status"},"issue_type":{"type":"string","title":"Issue Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"transaction_id":{"type":"string","title":"Transaction Id"},"transaction_merchant":{"type":"string","title":"Transaction Merchant"},"transaction_amount_cents":{"type":"integer","title":"Transaction Amount Cents"},"transaction_date":{"type":"string","title":"Transaction Date"},"created_at":{"type":"string","title":"Created At"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved At"},"resolution_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Notes"},"documents":{"items":{"$ref":"#/components/schemas/DisputeDocumentResponse"},"type":"array","title":"Documents","default":[]}},"type":"object","required":["id","case_number","status","issue_type","description","transaction_id","transaction_merchant","transaction_amount_cents","transaction_date","created_at","resolved_at","resolution_notes"],"title":"DisputeResponse","description":"Single dispute response."},"DocumentsBlock":{"properties":{"bank_linked":{"type":"boolean","title":"Bank Linked"}},"type":"object","required":["bank_linked"],"title":"DocumentsBlock","description":"Documents AttrGroup — only the signals that have a backing source."},"EcoaNoticeResponse":{"properties":{"text":{"type":"string","title":"Text","description":"The notice's ECOA paragraph and the federal agency that administers it, as one paragraph, verbatim"}},"type":"object","required":["text"],"title":"EcoaNoticeResponse","description":"``GET /ecoa-notice``: the ECOA paragraph every adverse action notice prints.\n\nThe decline screen renders ``text`` as served, so the screen and the notice state one text."},"EmailVerificationResponse":{"properties":{"status":{"type":"string","enum":["sent","already_verified"],"title":"Status"}},"type":"object","required":["status"],"title":"EmailVerificationResponse","description":"What became of a verification-link request: sent, or not needed."},"EngineOutcomeResponse":{"properties":{"outcome":{"type":"string","title":"Outcome","description":"decline, secured or unsecured"},"credit_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Limit Cents"},"apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Apr"},"required_deposit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Required Deposit Cents"},"required_deposit_max_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Required Deposit Max Cents"},"decline_codes":{"items":{"type":"string"},"type":"array","title":"Decline Codes","default":[]},"despite_referral":{"type":"boolean","title":"Despite Referral","default":false}},"type":"object","required":["outcome"],"title":"EngineOutcomeResponse","description":"What the decision engine decided, which Proceed performs (#4399, #4394).\n\n``outcome`` is ``decline``, ``secured`` or ``unsecured``. An offer carries the terms on the\napplication (a secured ``credit_limit_cents`` is null where the deposit paid sets it); a\ndecline carries the reason codes its notice states."},"EscalateDecisionRequest":{"properties":{"decision":{"type":"string","const":"escalate","title":"Decision"},"note":{"type":"string","maxLength":1000,"title":"Note","description":"Context for the underwriter","default":""}},"type":"object","required":["decision"],"title":"EscalateDecisionRequest","description":"Escalate to a senior underwriter; the application stays in review."},"EscalateDisputeRequest":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"EscalateDisputeRequest","description":"Admin dispute escalation."},"EventTypeStat":{"properties":{"event_type":{"type":"string","title":"Event Type"},"total":{"type":"integer","title":"Total"},"processed":{"type":"integer","title":"Processed"},"failed":{"type":"integer","title":"Failed"},"last_seen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Seen"}},"type":"object","required":["event_type","total","processed","failed","last_seen"],"title":"EventTypeStat"},"FailedDelivery":{"properties":{"event_id":{"type":"string","title":"Event Id"},"event_type":{"type":"string","title":"Event Type"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"retry_count":{"type":"integer","title":"Retry Count"},"received_at":{"type":"string","title":"Received At"},"ruling":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ruling"},"ruling_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ruling Reason"},"ruled_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ruled By"},"ruled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ruled At"}},"type":"object","required":["event_id","event_type","error_message","retry_count","received_at"],"title":"FailedDelivery"},"FailedLinkAttemptItem":{"properties":{"attempt_id":{"type":"string","format":"uuid","title":"Attempt Id"},"kind":{"type":"string","title":"Kind"},"channel":{"type":"string","title":"Channel"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"bank_link_session_id":{"type":"string","format":"uuid","title":"Bank Link Session Id"},"aggregator_customer_id":{"type":"string","title":"Aggregator Customer Id"},"aggregator_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aggregator Account Id"},"institution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Institution Id"},"institution_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Institution Name"},"connect_error":{"anyOf":[{"$ref":"#/components/schemas/ConnectErrorItem"},{"type":"null"}]},"holder_match":{"anyOf":[{"$ref":"#/components/schemas/HolderMatchItem"},{"type":"null"}]}},"type":"object","required":["attempt_id","kind","channel","occurred_at","bank_link_session_id","aggregator_customer_id","aggregator_account_id","institution_id","institution_name","connect_error","holder_match"],"title":"FailedLinkAttemptItem","description":"One link attempt that made no funding source."},"FieldChangeResponse":{"properties":{"before":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"},"after":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},"type":"object","required":["before","after"],"title":"FieldChangeResponse"},"FileDisputeRequest":{"properties":{"transaction_id":{"type":"string","title":"Transaction Id"},"issue_type":{"type":"string","title":"Issue Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["transaction_id","issue_type"],"title":"FileDisputeRequest","description":"Request body for filing a new dispute.\n\nAttributes:\n    transaction_id: ID of the disputed transaction.\n    issue_type: Frontend issue-type code (mapped to ``DisputeReason``\n        inside the BFF).\n    description: The cardholder's own account of the problem, at most\n        ``DESCRIPTION_MAX_LENGTH`` characters. Stored on the dispute as\n        the one narrative it carries (#2393). A ``subscriber_note`` field\n        sent by an older client is ignored: the narrative is always the\n        description."},"FinalOfferResponse":{"properties":{"product":{"type":"string","title":"Product"},"credit_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Limit Cents"},"apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Apr"},"required_deposit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Required Deposit Cents"},"required_deposit_max_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Required Deposit Max Cents"},"keeps_prior_offer":{"type":"boolean","title":"Keeps Prior Offer"},"terms_changed":{"type":"boolean","title":"Terms Changed"},"less_favourable":{"type":"boolean","title":"Less Favourable"},"ach_required":{"type":"boolean","title":"Ach Required"},"expiry_date":{"type":"string","format":"date","title":"Expiry Date"},"funding_deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Funding Deadline"}},"type":"object","required":["product","credit_limit_cents","apr","required_deposit_cents","required_deposit_max_cents","keeps_prior_offer","terms_changed","less_favourable","ach_required","expiry_date","funding_deadline"],"title":"FinalOfferResponse","description":"A reviewer's offer after the hard pull, waiting for the applicant (#4000, stage 2).\n\nThe final-offer screen's whole input (#4167). Present on the application while the offer\nwaits on the applicant, on either card, and absent (``null``) otherwise. Accepting it is\n``POST /{id}/accept-final-offer``, after the offered card's agreement is accepted through\n``/agreement-acceptance`` with ``product``. Money in cents. Fields are only ever added: the\nscreen reads this shape."},"FinalOfferShownResponse":{"properties":{"application_id":{"type":"string","title":"Application Id","description":"The application whose final offer was shown"},"offer_opened_at":{"type":"string","format":"date-time","title":"Offer Opened At","description":"When the offer shown was opened, its upgrade_offered_at, which keys its record"},"shown_at":{"type":"string","format":"date-time","title":"Shown At","description":"When the offer was first shown, in UTC"}},"type":"object","required":["application_id","offer_opened_at","shown_at"],"title":"FinalOfferShownResponse","description":"Which final offer was recorded as shown, and when it was first shown.\n\nThe same on every repeat: the first showing is the one kept. Carries no applicant data."},"FinalizeRequest":{"properties":{"password":{"type":"string","title":"Password"},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"}},"type":"object","required":["password"],"title":"FinalizeRequest"},"FlagRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"FlagRequest","description":"Set a watch-list or blocked compliance flag (reason required)."},"FlaggedAccountResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"status":{"type":"string","title":"Status"},"list_type":{"type":"string","title":"List Type"},"reason":{"type":"string","title":"Reason"},"flagged_by":{"type":"string","title":"Flagged By"},"flagged_at":{"type":"string","format":"date-time","title":"Flagged At"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"},"holder_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Email"}},"type":"object","required":["account_id","user_id","status","list_type","reason","flagged_by","flagged_at"],"title":"FlaggedAccountResponse","description":"A row in the per-list enumeration query (ACB report source)."},"FlaggedAccountsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FlaggedAccountResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"FlaggedAccountsResponse","description":"Paginated per-list enumeration of flagged accounts."},"FraudDisposition":{"type":"string","enum":["WAIVED","REINSTATED","CHARGED_OFF"],"title":"FraudDisposition","description":"What was done with the amounts a finding concerns (``fraud_finding.disposition``).\n\nCredit policy section 13. A plain enum: which dispositions count as a loss is the\nbank's fraud-loss view's definition, and the product does not compute it.\n\n- WAIVED: the amounts are waived for the cardholder\n- REINSTATED: the amounts are put back on the cardholder\n- CHARGED_OFF: the amounts are written off"},"FraudFindingResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"},"card_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Card Id"},"dispute_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dispute Id"},"application_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Application Id"},"fraud_type":{"$ref":"#/components/schemas/FraudType"},"disposition":{"$ref":"#/components/schemas/FraudDisposition"},"determined_at":{"type":"string","format":"date-time","title":"Determined At"},"determined_day":{"type":"string","format":"date","title":"Determined Day"},"actor_id":{"type":"string","format":"uuid","title":"Actor Id"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"adjustment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Adjustment Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","account_id","card_id","dispute_id","application_id","fraud_type","disposition","determined_at","determined_day","actor_id","actor_name","adjustment_id","notes"],"title":"FraudFindingResponse","description":"A recorded finding with the operator's notes, for the reads."},"FraudFindingSummaryResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"},"card_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Card Id"},"dispute_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dispute Id"},"application_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Application Id"},"fraud_type":{"$ref":"#/components/schemas/FraudType"},"disposition":{"$ref":"#/components/schemas/FraudDisposition"},"determined_at":{"type":"string","format":"date-time","title":"Determined At"},"determined_day":{"type":"string","format":"date","title":"Determined Day"},"actor_id":{"type":"string","format":"uuid","title":"Actor Id"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"adjustment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Adjustment Id"}},"type":"object","required":["id","account_id","card_id","dispute_id","application_id","fraud_type","disposition","determined_at","determined_day","actor_id","actor_name","adjustment_id"],"title":"FraudFindingSummaryResponse","description":"A recorded finding without its notes: what the recording answers."},"FraudType":{"type":"string","enum":["THIRD_PARTY_CARD","ACCOUNT_TAKEOVER","IDENTITY_THEFT","FIRST_PARTY","APPLICATION_FRAUD"],"title":"FraudType","description":"What kind of fraud an investigation found (``fraud_finding.fraud_type``).\n\nThe five the bank's fraud-loss view reports by, stored as written here. A plain\nenum: nothing in the product classifies a finding by its type.\n\n- THIRD_PARTY_CARD: somebody other than the cardholder used the card\n- ACCOUNT_TAKEOVER: somebody other than the cardholder took control of the account\n- IDENTITY_THEFT: the account or application was opened in another person's name\n- FIRST_PARTY: the cardholder committed the fraud themselves\n- APPLICATION_FRAUD: the application itself was fraudulent"},"FreezeAccountRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"FreezeAccountRequest","description":"Request schema for freezing an account."},"GrantRoleRequest":{"properties":{"role":{"$ref":"#/components/schemas/AdminRole"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},"type":"object","required":["role"],"title":"GrantRoleRequest","description":"Grant a role to a user by ``email`` (invite a teammate) or DB ``user_id``.\n\nThe UI grants by email; the service resolves it to an existing user (unknown\nemail → 404). ``user_id`` is retained for back-compat callers."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HardPullDecisionResponse":{"properties":{"status":{"type":"string","title":"Status"},"decision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Id"},"decision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision"},"risk_tier":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk Tier"},"product_assignment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Assignment"},"credit_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Limit"},"apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Apr"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"ach_step_owed":{"type":"boolean","title":"Ach Step Owed","default":false},"final_offer":{"anyOf":[{"$ref":"#/components/schemas/FinalOfferResponse"},{"type":"null"}]}},"type":"object","required":["status"],"title":"HardPullDecisionResponse","description":"What `GET /{id}/decisions/hard-pull` answers while the funnel waits.\n\nAnswers in the assessment's vocabulary -- `pending`, `completed`, `failed` --\nbecause that is the record it reads. The decision's own outputs are present\nonly once there is a decision."},"HardPullSubmitResponse":{"properties":{"decision_id":{"type":"string","title":"Decision Id"},"status":{"type":"string","title":"Status","default":"pending"}},"type":"object","required":["decision_id"],"title":"HardPullSubmitResponse","description":"What `POST /{id}/hard-pull` answers.\n\n🔑 **The decision id and nothing else, immediately.** This route does not\nwait for the decision the way the prequal route does. The flow it starts can\npark on a case webhook or on document capture, where the applicant is texted\na link and the decision resumes when they finish -- there is no ceiling an\nHTTP request could sensibly hold open for. The client polls\n`GET /{id}/decisions/hard-pull` instead."},"HeaderBlock":{"properties":{"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"},"holder_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Email"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"status":{"type":"string","title":"Status"},"product_type":{"type":"string","title":"Product Type"},"cease_and_desist_active":{"type":"boolean","title":"Cease And Desist Active"}},"type":"object","required":["holder_name","holder_email","account_id","status","product_type","cease_and_desist_active"],"title":"HeaderBlock","description":"The 360 header: who + high-level account state."},"HeldDebitRefusedResponse":{"properties":{"error":{"type":"string","title":"Error"},"detail":{"type":"string","title":"Detail"},"check":{"anyOf":[{"$ref":"#/components/schemas/RailCheckResponse"},{"type":"null"}]}},"type":"object","required":["error","detail","check"],"title":"HeldDebitRefusedResponse","description":"A payment-rail action refused, and why: the house error shape, plus the check."},"HeldDebitResponse":{"properties":{"outcome":{"type":"string","title":"Outcome"},"attempt_id":{"type":"string","format":"uuid","title":"Attempt Id"},"check":{"anyOf":[{"$ref":"#/components/schemas/RailCheckResponse"},{"type":"null"}]}},"type":"object","required":["outcome","attempt_id","check"],"title":"HeldDebitResponse","description":"What resolving a payment-rail debit came to."},"HeldPaymentItem":{"properties":{"rail":{"type":"string","title":"Rail"},"purpose":{"type":"string","title":"Purpose"},"payment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payment Id"},"attempt_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Attempt Id"},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"},"application_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Application Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"payment_source_id":{"type":"string","format":"uuid","title":"Payment Source Id"},"source_institution_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Institution Name"},"source_last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Last Four"},"is_autopay":{"type":"boolean","title":"Is Autopay"},"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"},"unconfirmed_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unconfirmed Reason"},"resend_open_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resend Open Until"},"released_automatically_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released Automatically From"}},"type":"object","required":["rail","purpose","payment_id","attempt_id","account_id","application_id","user_id","amount_cents","payment_source_id","source_institution_name","source_last_four","is_autopay","recorded_at","unconfirmed_reason","resend_open_until","released_automatically_from"],"title":"HeldPaymentItem","description":"A held debit, on either rail, with what an operator needs to act on it."},"HighRiskCategory":{"type":"string","enum":["hifca","hidta","cip","other"],"title":"HighRiskCategory","description":"The classification axis for the high-risk BSA/AML flag.\n\nA plain ``str, Enum`` — the category carries no classification behavior of\nits own; it is a label attached to the high-risk flag for the ACB report\nsurface. ``HIFCA`` (High-Intensity Financial Crime Area) and ``HIDTA``\n(High-Intensity Drug Trafficking Area) are geographic designations; ``CIP``\nmarks a Customer Identification Program concern; ``OTHER`` is the catch-all."},"HighRiskFlagRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"category":{"$ref":"#/components/schemas/HighRiskCategory"}},"type":"object","required":["reason","category"],"title":"HighRiskFlagRequest","description":"Set the high-risk compliance flag (reason + classification category)."},"HolderMatchItem":{"properties":{"bank_link_session_id":{"type":"string","format":"uuid","title":"Bank Link Session Id"},"channel":{"type":"string","title":"Channel"},"decided_at":{"type":"string","format":"date-time","title":"Decided At"},"outcome":{"type":"string","title":"Outcome"},"band":{"type":"string","title":"Band"},"match_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Match Score"},"matched_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched On"},"holder_count":{"type":"integer","title":"Holder Count"},"legal_name":{"type":"string","title":"Legal Name"},"holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Name"},"holder_name_unreadable":{"type":"boolean","title":"Holder Name Unreadable"},"business_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Type"},"aggregator_customer_id":{"type":"string","title":"Aggregator Customer Id"},"aggregator_account_id":{"type":"string","title":"Aggregator Account Id"},"institution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Institution Id"},"account_market_segment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Market Segment"},"name_classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Classification"},"name_classification_confidence":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Name Classification Confidence"},"owner_relationship":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Relationship"},"normaliser_version":{"type":"integer","title":"Normaliser Version"},"policy_values":{"additionalProperties":true,"type":"object","title":"Policy Values"}},"type":"object","required":["bank_link_session_id","channel","decided_at","outcome","band","match_score","matched_on","holder_count","legal_name","holder_name","holder_name_unreadable","business_type","aggregator_customer_id","aggregator_account_id","institution_id","account_market_segment","name_classification","name_classification_confidence","owner_relationship","normaliser_version","policy_values"],"title":"HolderMatchItem","description":"What the decision that an account is the business's rested on."},"IdentityPrefillResponse":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"date_of_birth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Of Birth"},"ssn_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssn Last4"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"emails":{"items":{"type":"string"},"type":"array","title":"Emails"},"address_street1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Street1"},"address_street2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Street2"},"address_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address City"},"address_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address State"},"address_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Zip"}},"type":"object","title":"IdentityPrefillResponse"},"InvoiceResponse":{"properties":{"id":{"type":"string","title":"Id"},"invoice_number":{"type":"string","title":"Invoice Number"},"status":{"type":"string","enum":["paid","unpaid","past_due"],"title":"Status"},"amount_cents":{"type":"integer","title":"Amount Cents"},"minimum_due_cents":{"type":"integer","title":"Minimum Due Cents"},"statement_period_start":{"type":"string","title":"Statement Period Start"},"statement_period_end":{"type":"string","title":"Statement Period End"},"due_date":{"type":"string","title":"Due Date"},"paid_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid Date"},"paid_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paid Amount Cents"},"payment_method_last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Method Last Four"},"card_last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card Last Four"},"confirmation_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirmation Number"},"pending_payment_cents":{"type":"integer","title":"Pending Payment Cents"}},"type":"object","required":["id","invoice_number","status","amount_cents","minimum_due_cents","statement_period_start","statement_period_end","due_date","paid_date","paid_amount_cents","payment_method_last_four","card_last_four","confirmation_number","pending_payment_cents"],"title":"InvoiceResponse","description":"Invoice detail returned by invoice endpoints."},"IssuanceResumeResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"outcome":{"type":"string","title":"Outcome"}},"type":"object","required":["account_id","outcome"],"title":"IssuanceResumeResponse","description":"Where the resumed issuance stopped."},"IssueCardBody":{"properties":{"shipping_address_confirmed":{"type":"boolean","title":"Shipping Address Confirmed"},"shipping_address":{"anyOf":[{"$ref":"#/components/schemas/DeliveryAddress"},{"type":"null"}]}},"type":"object","required":["shipping_address_confirmed"],"title":"IssueCardBody","description":"The cardholder confirms the address the card ships to, or changes it."},"IssueCardResponse":{"properties":{"issuance_status":{"type":"string","title":"Issuance Status"}},"type":"object","required":["issuance_status"],"title":"IssueCardResponse","description":"The issuer's status for the card: ISSUED, or PENDING while the issuer finishes.\n\n``AWAITING_DEPOSIT`` for a secured card confirmed before its deposit settled: the\nconfirmation is kept, and the card issues when the deposit settles."},"IssueReplacementCardRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"ship_plastic":{"type":"boolean","title":"Ship Plastic","default":true}},"additionalProperties":false,"type":"object","required":["reason"],"title":"IssueReplacementCardRequest","description":"Order a replacement for a stopped primary card.\n\n🆕 2026-10-05: the plastic ships only to the address on file — the account\nholder's, the one the first card shipped to. The request takes no address: a\nreplacement ships an active card, so an address typed by an operator is a way\nto redirect a cardholder's card. Unknown fields are refused (422) rather than\nignored, so a caller still sending ``shipping`` learns it was not used."},"IssuerAdverseActionReasonResponse":{"properties":{"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["code","description"],"title":"IssuerAdverseActionReasonResponse","description":"One reason the card processor gave for issuing no card, as it gave it (#2122)."},"KeyFactorResponse":{"properties":{"rank":{"type":"integer","title":"Rank"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"wording":{"type":"string","title":"Wording"}},"type":"object","required":["rank","code","wording"],"title":"KeyFactorResponse","description":"One key factor a notice states, in its rank. ``code`` is ``None`` for a bureau's own."},"LinkEventItem":{"properties":{"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"event":{"type":"string","title":"Event"},"flow":{"type":"string","title":"Flow"},"payment_source_id":{"type":"string","format":"uuid","title":"Payment Source Id"},"holder_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Holder Type"},"institution_name":{"type":"string","title":"Institution Name"},"last_four":{"type":"string","title":"Last Four"},"actor_kind":{"type":"string","title":"Actor Kind"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"},"ach_debit_authorization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ach Debit Authorization Id"},"authorization_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization Template Id"},"authorization_template_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization Template Version"},"authorized_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Authorized At"}},"type":"object","required":["occurred_at","event","flow","payment_source_id","holder_type","institution_name","last_four","actor_kind","actor_id","ach_debit_authorization_id","authorization_template_id","authorization_template_version","authorized_at"],"title":"LinkEventItem","description":"One link, replacement or unlink of a bank account, as its kept history records it (#3716)."},"LinkedBankAccountItem":{"properties":{"payment_source_id":{"type":"string","format":"uuid","title":"Payment Source Id"},"institution_name":{"type":"string","title":"Institution Name"},"institution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Institution Id"},"account_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Type"},"last_four":{"type":"string","title":"Last Four"},"status":{"type":"string","title":"Status"},"is_verified":{"type":"boolean","title":"Is Verified"},"verification_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Method"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"},"is_default":{"type":"boolean","title":"Is Default"},"business_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Status"},"linked_at":{"type":"string","format":"date-time","title":"Linked At"},"removed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Removed At"},"relink_required_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Relink Required At"},"relink_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relink Category"},"aggregation_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Aggregation Status Code"},"aggregation_status_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Aggregation Status Read At"},"case_error_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Case Error Code"},"case_error_at":{"type":"string","format":"date-time","title":"Case Error At"},"external_payment_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Payment Source Id"},"aggregator_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aggregator Customer Id"},"aggregator_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aggregator Account Id"},"aggregator_institution_login_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aggregator Institution Login Id"},"consent_granted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consent Granted At"},"consent_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consent Expires At"},"consent_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Version"},"consent_revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consent Revoked At"},"consent_revoke_outstanding_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consent Revoke Outstanding Since"},"aggregator_account_deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Aggregator Account Deleted At"},"aggregator_account_delete_outstanding_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Aggregator Account Delete Outstanding Since"},"holder_match":{"anyOf":[{"$ref":"#/components/schemas/HolderMatchItem"},{"type":"null"}]}},"type":"object","required":["payment_source_id","institution_name","institution_id","account_type","last_four","status","is_verified","verification_method","verified_at","is_default","business_status","linked_at","removed_at","relink_required_at","relink_category","aggregation_status_code","aggregation_status_read_at","case_error_code","case_error_at","external_payment_source_id","aggregator_customer_id","aggregator_account_id","aggregator_institution_login_id","consent_granted_at","consent_expires_at","consent_version","consent_revoked_at","consent_revoke_outstanding_since","aggregator_account_deleted_at","aggregator_account_delete_outstanding_since","holder_match"],"title":"LinkedBankAccountItem","description":"One bank account held as a funding source, removed or not."},"LivenessResponse":{"properties":{"status":{"type":"string","title":"Status"},"version":{"type":"string","title":"Version"},"timestamp":{"type":"string","title":"Timestamp"}},"type":"object","required":["status","version","timestamp"],"title":"LivenessResponse","description":"Liveness response. Deliberately carries no dependency status."},"LockCardRequest":{"properties":{"reason":{"type":"string","title":"Reason","default":"User requested lock"}},"type":"object","title":"LockCardRequest","description":"Request body for locking a card."},"MakePaymentRequest":{"properties":{"amount_cents":{"type":"integer","title":"Amount Cents"},"payment_source_id":{"type":"string","title":"Payment Source Id"},"authorization":{"$ref":"#/components/schemas/OneTimeAchAuthorizationRequest"},"certification_text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Certification Text"}},"type":"object","required":["amount_cents","payment_source_id","authorization"],"title":"MakePaymentRequest","description":"Request body for making a payment.\n\n``amount_cents`` is an integer in cents. The frontend converts\ndisplay dollars to cents via ``Math.round(amount * 100)`` before\nsending the request."},"MarkAllReadResponse":{"properties":{"updated_count":{"type":"integer","minimum":0.0,"title":"Updated Count"}},"type":"object","required":["updated_count"],"title":"MarkAllReadResponse","description":"Response model for mark-all-as-read operation."},"MarkUnderReviewRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"MarkUnderReviewRequest","description":"Move an account into UNDER_REVIEW."},"MembershipResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"type":"string","title":"Role"},"card_id":{"type":"string","format":"uuid","title":"Card Id"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["user_id","role","card_id","is_active"],"title":"MembershipResponse","description":"Response schema for a membership in API responses."},"MyPermissionsResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"type":"string","title":"Role"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["user_id","role","permissions"],"title":"MyPermissionsResponse","description":"The current admin's identity, role, and permissions (for UI gating)."},"NameCorrectionRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"document_reference":{"type":"string","maxLength":255,"minLength":1,"title":"Document Reference"},"first_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Last Name"}},"additionalProperties":false,"type":"object","required":["reason","document_reference"],"title":"NameCorrectionRequest","description":"A corrected given or family name. A name not sent is left as it is."},"NoticeListResponse":{"properties":{"notices":{"items":{"$ref":"#/components/schemas/NoticeResponse"},"type":"array","title":"Notices"},"sends":{"items":{"$ref":"#/components/schemas/SendOptionResponse"},"type":"array","title":"Sends"}},"type":"object","required":["notices","sends"],"title":"NoticeListResponse","description":"An application's adverse action notices, newest first, and what a send for each purpose\nwould do."},"NoticeResponse":{"properties":{"notice_id":{"type":"string","title":"Notice Id","description":"The notice's key in the record of sends; stable."},"application_id":{"type":"string","format":"uuid","title":"Application Id"},"for":{"type":"string","enum":["decline","secured_offer_refused","revised_offer"],"title":"For","description":"What the notice is for."},"trigger":{"type":"string","title":"Trigger","description":"What owes it, e.g. decline, secured_offer_refused."},"triggered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Triggered At"},"template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template","description":"The template the letter renders; the server's."},"status":{"type":"string","enum":["owed","held","failed","sent"],"title":"Status"},"held_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Held Reason","description":"Why a held notice is held, as a machine code."},"failed_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failed Reason","description":"Why a failed attempt did not go out."},"origin":{"type":"string","enum":["platform","operator"],"title":"Origin"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"sent":{"anyOf":[{"$ref":"#/components/schemas/SentResponse"},{"type":"null"}]},"principal_reasons":{"items":{"$ref":"#/components/schemas/ReasonResponse"},"type":"array","title":"Principal Reasons"},"reasons_source":{"type":"string","enum":["engine","operator"],"title":"Reasons Source"},"key_factors":{"items":{"$ref":"#/components/schemas/KeyFactorResponse"},"type":"array","title":"Key Factors"},"credit_score":{"anyOf":[{"$ref":"#/components/schemas/app__notification__api__admin_adverse_action_notices__CreditScoreResponse"},{"type":"null"}]},"fcra_block":{"type":"boolean","title":"Fcra Block"}},"type":"object","required":["notice_id","application_id","for","trigger","triggered_at","template","status","held_reason","failed_reason","origin","due_at","sent","principal_reasons","reasons_source","key_factors","credit_score","fcra_block"],"title":"NoticeResponse","description":"One adverse action notice an application owes or owed."},"NoticeSentByHandRequest":{"properties":{"sent_at":{"type":"string","format":"date-time","title":"Sent At","description":"When it was sent; not in the future."},"principal_reason_codes":{"items":{"type":"string"},"type":"array","maxItems":16,"title":"Principal Reason Codes"},"recipient_email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Recipient Email","description":"The address it went to, if by email."},"note":{"anyOf":[{"type":"string","maxLength":180},{"type":"null"}],"title":"Note"}},"type":"object","required":["sent_at"],"title":"NoticeSentByHandRequest","description":"An operator's statement that they sent this notice outside the platform."},"NotificationResponse":{"properties":{"notification_id":{"type":"string","format":"uuid","title":"Notification Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"notification_type":{"type":"string","title":"Notification Type"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"source_event_id":{"type":"string","title":"Source Event Id"},"is_read":{"type":"boolean","title":"Is Read"},"read_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read At"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["notification_id","user_id","notification_type","title","body","source_event_id","is_read","created_at"],"title":"NotificationResponse","description":"Response model for a single notification."},"NudgeCardResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"action_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Label"},"action_href":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Href"}},"type":"object","required":["id","title","description","action_label","action_href"],"title":"NudgeCardResponse"},"OfferResponse":{"properties":{"decision":{"type":"string","title":"Decision"},"credit_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Score"},"composite_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Composite Score"},"risk_tier":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk Tier"},"product_assignment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Assignment"},"prequal_credit_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prequal Credit Limit"},"prequal_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prequal Apr"},"prequal_apr_figure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prequal Apr Figure"},"required_deposit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Required Deposit"},"review_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Reason"},"requires_step_up":{"type":"boolean","title":"Requires Step Up","default":false},"step_up_actions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Up Actions"},"adverse_action_reasons":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adverse Action Reasons"},"bureau_agency_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bureau Agency Name"},"bureau_score_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bureau Score Used"},"bureau_score_factors":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bureau Score Factors"},"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"},"funding_window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Funding Window Days"},"counteroffer_reasons":{"items":{"type":"string"},"type":"array","title":"Counteroffer Reasons"},"purchase_apr_floor":{"type":"string","title":"Purchase Apr Floor"},"purchase_apr_ceiling":{"type":"string","title":"Purchase Apr Ceiling"},"final_offer_enabled":{"type":"boolean","title":"Final Offer Enabled","default":false}},"type":"object","required":["decision","purchase_apr_floor","purchase_apr_ceiling"],"title":"OfferResponse"},"OneTimeAchAuthorizationRequest":{"properties":{"template_id":{"type":"string","maxLength":100,"minLength":1,"title":"Template Id"},"version":{"type":"string","maxLength":100,"minLength":1,"title":"Version"},"debit_date":{"type":"string","format":"date","title":"Debit Date"}},"additionalProperties":false,"type":"object","required":["template_id","version","debit_date"],"title":"OneTimeAchAuthorizationRequest","description":"Which form 2 the cardholder was shown before submitting a payment (#2489).\n\nThe client names the template, the version and the debit date it showed;\nthe text is never sent. The server renders it from those names and the\npayment's own amount, and stamps the moment, the address, the user agent\nand the payer's sign-in itself, from the request and its verified token.\n``extra=\"forbid\"`` refuses a body that tries to supply any of that (422)\nrather than quietly dropping it."},"OneTimeAchAuthorizationResponse":{"properties":{"template_id":{"type":"string","title":"Template Id"},"version":{"type":"string","title":"Version"},"payment_request_text":{"type":"string","title":"Payment Request Text"},"authorization_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization Text"},"debit_date":{"type":"string","format":"date","title":"Debit Date"},"processor_terms":{"anyOf":[{"$ref":"#/components/schemas/ProcessorTermsResponse"},{"type":"null"}]}},"type":"object","required":["template_id","version","payment_request_text","authorization_text","debit_date"],"title":"OneTimeAchAuthorizationResponse","description":"``GET /api/v1/payments/one-time-ach-authorization``: form 2 as it is shown (#2489).\n\nThe three screens of the workbook's One Time ACH Authorization, from the\none template the server holds. ``authorization_text`` is screen 2 rendered\nfor ``amount_cents`` and ``debit_date``, and ``None`` when no amount was\nasked about. ``debit_date`` is the day a payment made now is applied as\nof: the account day (Eastern) up to 11:00 P.M. Eastern on a business day,\nand otherwise the next business day, as screen 2 states. It is what the\nclient echoes back when it submits the payment."},"OpenCaseRequest":{"properties":{"case_type":{"$ref":"#/components/schemas/CaseType"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"assignee_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignee Id"}},"type":"object","required":["case_type","account_id"],"title":"OpenCaseRequest","description":"Open a compliance case against an account."},"OperatorSendChannel":{"type":"string","enum":["email","sms"],"title":"OperatorSendChannel","description":"A channel an operator may ask a prepared communication to go out on.\n\nTwo members, and both absences are decisions rather than omissions.\n\n**No in-app member.** The in-app notification is the pipeline's primary\nartifact and is created by every operator send — it is the record, and the\nsuppression gate reads it — so it is not something to be asked for. Offering\nit as a channel would offer a choice the send does not have.\n\n**No paper mail.** ``TemplateChannel.MAIL`` existed, rendered a ``mail_body``\ncolumn, and was accepted by this request body while nothing anywhere posted a\nletter: an operator who asked for one was told the send succeeded. #1894 t5 removes it\n**with the capability** rather than by fixing it — no primary source requires\npost and both cardholder agreements say the opposite. A request naming\n``\"mail\"`` is now a 422 rather than a false success.\n\nA plain ``str`` enum: there is no classification behaviour to carry inline.\n\n**Its values are taken from ``CommChannel`` rather than typed again (#1894\nt7).** They used to be literals, single-sourced against\n``comm_dispatch.EMAIL_CHANNEL`` by an agreement test, because the only other\ndeclaration lived in the *application* layer and a domain enum importing it\nwould have pointed the dependency the wrong way. ``CommChannel`` is a domain\nmodule, so that reason is gone: this enum is now a genuine **subset** of the\ndelivery vocabulary — the two members an operator may *ask* for — and a\nsubset that derives its values cannot drift from the set. A request naming\none spelling and a Comms-log row filed under another would read as two\nchannels to anybody looking at the log; now they cannot be two spellings.\n\nThe subset is still the interesting part, and both exclusions are decisions\nrather than omissions — see above for in-app and for paper mail."},"OwnerBlock":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"date_of_birth":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Of Birth"},"ssn_last4_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssn Last4 Masked"},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressBlock"},{"type":"null"}]},"annual_household_income_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Annual Household Income Cents"}},"type":"object","required":["name","email","phone","date_of_birth","ssn_last4_masked","address","annual_household_income_cents"],"title":"OwnerBlock","description":"Owner AttrGroup — the applicant's personal details."},"PaginatedResponse_DisputeResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DisputeResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total","description":"Total number of items across all pages"},"page":{"type":"integer","minimum":1.0,"title":"Page","description":"Current page number (1-indexed)"},"page_size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page Size","description":"Items per page"},"total_pages":{"type":"integer","minimum":0.0,"title":"Total Pages","description":"Total number of pages"},"has_next":{"type":"boolean","title":"Has Next"},"has_previous":{"type":"boolean","title":"Has Previous"}},"type":"object","required":["items","total","page","page_size","total_pages","has_next","has_previous"],"title":"PaginatedResponse[DisputeResponse]"},"PaginatedResponse_InvoiceResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/InvoiceResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total","description":"Total number of items across all pages"},"page":{"type":"integer","minimum":1.0,"title":"Page","description":"Current page number (1-indexed)"},"page_size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page Size","description":"Items per page"},"total_pages":{"type":"integer","minimum":0.0,"title":"Total Pages","description":"Total number of pages"},"has_next":{"type":"boolean","title":"Has Next"},"has_previous":{"type":"boolean","title":"Has Previous"}},"type":"object","required":["items","total","page","page_size","total_pages","has_next","has_previous"],"title":"PaginatedResponse[InvoiceResponse]"},"PaginatedResponse_NotificationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NotificationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total","description":"Total number of items across all pages"},"page":{"type":"integer","minimum":1.0,"title":"Page","description":"Current page number (1-indexed)"},"page_size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page Size","description":"Items per page"},"total_pages":{"type":"integer","minimum":0.0,"title":"Total Pages","description":"Total number of pages"},"has_next":{"type":"boolean","title":"Has Next"},"has_previous":{"type":"boolean","title":"Has Previous"}},"type":"object","required":["items","total","page","page_size","total_pages","has_next","has_previous"],"title":"PaginatedResponse[NotificationResponse]"},"PaginatedResponse_PaymentResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PaymentResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total","description":"Total number of items across all pages"},"page":{"type":"integer","minimum":1.0,"title":"Page","description":"Current page number (1-indexed)"},"page_size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page Size","description":"Items per page"},"total_pages":{"type":"integer","minimum":0.0,"title":"Total Pages","description":"Total number of pages"},"has_next":{"type":"boolean","title":"Has Next"},"has_previous":{"type":"boolean","title":"Has Previous"}},"type":"object","required":["items","total","page","page_size","total_pages","has_next","has_previous"],"title":"PaginatedResponse[PaymentResponse]"},"PaginatedResponse_TransactionResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TransactionResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total","description":"Total number of items across all pages"},"page":{"type":"integer","minimum":1.0,"title":"Page","description":"Current page number (1-indexed)"},"page_size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page Size","description":"Items per page"},"total_pages":{"type":"integer","minimum":0.0,"title":"Total Pages","description":"Total number of pages"},"has_next":{"type":"boolean","title":"Has Next"},"has_previous":{"type":"boolean","title":"Has Previous"}},"type":"object","required":["items","total","page","page_size","total_pages","has_next","has_previous"],"title":"PaginatedResponse[TransactionResponse]"},"PasswordResetAccepted":{"properties":{"status":{"type":"string","const":"accepted","title":"Status","default":"accepted"}},"type":"object","title":"PasswordResetAccepted","description":"The one answer a password-reset request gets, whoever the address belongs to."},"PasswordResetRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"PasswordResetRequest","description":"Who wants a password-reset link."},"PaymentItem":{"properties":{"payment_id":{"type":"string","format":"uuid","title":"Payment Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"payment_method":{"type":"string","title":"Payment Method"},"status":{"type":"string","title":"Status"},"scheduled_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Scheduled Date"},"posted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Posted At"},"posted_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Posted Day"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"reversal_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reversal Reason"}},"type":"object","required":["payment_id","account_id","amount_cents","payment_method","status","scheduled_date","posted_at","posted_day","failure_reason","reversal_reason"],"title":"PaymentItem","description":"A payment row in the admin 360 billing snapshot."},"PaymentResponse":{"properties":{"id":{"type":"string","title":"Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"status":{"type":"string","title":"Status"},"payment_source_id":{"type":"string","title":"Payment Source Id"},"payment_source_last_four":{"type":"string","title":"Payment Source Last Four"},"payment_source_type":{"type":"string","title":"Payment Source Type"},"confirmation_number":{"type":"string","title":"Confirmation Number"},"processing_time":{"type":"string","title":"Processing Time"},"created_at":{"type":"string","title":"Created At"},"authorization_confirmation_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization Confirmation Text"},"authorized_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized At"},"debit_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Debit Date"}},"type":"object","required":["id","amount_cents","status","payment_source_id","payment_source_last_four","payment_source_type","confirmation_number","processing_time","created_at"],"title":"PaymentResponse","description":"Payment record returned by payment endpoints."},"PaymentSourceResponse":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"institution_name":{"type":"string","title":"Institution Name"},"last_four":{"type":"string","title":"Last Four"},"is_default":{"type":"boolean","title":"Is Default"},"is_verified":{"type":"boolean","title":"Is Verified"},"created_at":{"type":"string","title":"Created At"},"status":{"type":"string","title":"Status"},"account_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Type"},"consent_granted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Granted At"},"consent_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Expires At"},"consent_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Version"},"consent_lapsed":{"type":"boolean","title":"Consent Lapsed","default":false},"holder_type":{"anyOf":[{"type":"string","enum":["business","personal"]},{"type":"null"}],"title":"Holder Type"}},"type":"object","required":["id","type","institution_name","last_four","is_default","is_verified","created_at","status"],"title":"PaymentSourceResponse","description":"Payment source (bank account or debit card)."},"PendingPaymentResponse":{"properties":{"amount_cents":{"type":"integer","title":"Amount Cents"},"date":{"type":"string","title":"Date"}},"type":"object","required":["amount_cents","date"],"title":"PendingPaymentResponse","description":"The payment a change warning names: sent to the bank from the account, not cleared."},"PlasticOrderResponse":{"properties":{"card_id":{"type":"string","format":"uuid","title":"Card Id"},"reissued_from_card_id":{"type":"string","format":"uuid","title":"Reissued From Card Id"},"last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Four"},"status":{"type":"string","title":"Status"},"expiry_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expiry Month"},"expiry_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expiry Year"}},"type":"object","required":["card_id","reissued_from_card_id","last_four","status","expiry_month","expiry_year"],"title":"PlasticOrderResponse","description":"The plastic as recorded, and the digital card it was reissued from."},"PreviewResponse":{"properties":{"template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"fcra_block":{"type":"boolean","title":"Fcra Block"},"principal_reasons":{"items":{"$ref":"#/components/schemas/ReasonResponse"},"type":"array","title":"Principal Reasons"},"key_factors":{"items":{"$ref":"#/components/schemas/KeyFactorResponse"},"type":"array","title":"Key Factors"},"credit_score":{"anyOf":[{"$ref":"#/components/schemas/app__notification__api__admin_adverse_action_notices__CreditScoreResponse"},{"type":"null"}]},"warnings":{"items":{"$ref":"#/components/schemas/WarningResponse"},"type":"array","title":"Warnings"}},"type":"object","required":["template","subject","html","text","fcra_block","principal_reasons","key_factors","credit_score","warnings"],"title":"PreviewResponse","description":"The notice as it would be sent. Nothing is sent or recorded."},"ProceedDecisionRequest":{"properties":{"decision":{"type":"string","const":"proceed","title":"Decision"}},"type":"object","required":["decision"],"title":"ProceedDecisionRequest","description":"Proceed as the decision engine decided, with its codes and terms (#4399).\n\nTakes nothing from the reviewer: the server performs ``engine_outcome``, the outcome the\ndetail shows. Refused (400) where the engine made no decision to proceed with."},"ProcessorCheckResponse":{"properties":{"verdict":{"type":"string","title":"Verdict"},"permits_release":{"type":"boolean","title":"Permits Release"},"permits_attach":{"type":"boolean","title":"Permits Attach"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"transfers_examined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transfers Examined"},"may_be_this_payment":{"items":{"$ref":"#/components/schemas/ProcessorTransferItem"},"type":"array","title":"May Be This Payment"},"failure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure"}},"type":"object","required":["verdict","permits_release","permits_attach","checked_at","transfers_examined","may_be_this_payment","failure"],"title":"ProcessorCheckResponse","description":"What asking the card processor about a held payment established."},"ProcessorTermsResponse":{"properties":{"processor":{"type":"string","title":"Processor"},"agreement_title":{"type":"string","title":"Agreement Title"},"agreement_url":{"type":"string","title":"Agreement Url"}},"type":"object","required":["processor","agreement_title","agreement_url"],"title":"ProcessorTermsResponse","description":"The processor the surface names, and the agreement it links and asks assent to.\n\nServed with the authorization's version, so the surface shows exactly the\nterms that version carries, and a version with none shows none."},"ProcessorTransferItem":{"properties":{"kind":{"type":"string","title":"Kind"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"from_external_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From External Account Id"}},"type":"object","required":["kind","external_id","amount_cents","status","created_at","from_external_account_id"],"title":"ProcessorTransferItem","description":"A transfer the processor holds that may be the held payment."},"ProfileCorrectionListResponse":{"properties":{"current":{"$ref":"#/components/schemas/CurrentDetailsResponse"},"items":{"items":{"$ref":"#/components/schemas/ProfileCorrectionResponse"},"type":"array","title":"Items"}},"type":"object","required":["current","items"],"title":"ProfileCorrectionListResponse"},"ProfileCorrectionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"operator_id":{"type":"string","format":"uuid","title":"Operator Id"},"operator_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operator Name"},"subject":{"type":"string","title":"Subject"},"changes":{"additionalProperties":{"$ref":"#/components/schemas/FieldChangeResponse"},"type":"object","title":"Changes"},"reason":{"type":"string","title":"Reason"},"document_reference":{"type":"string","title":"Document Reference"},"corrected_at":{"type":"string","format":"date-time","title":"Corrected At"}},"type":"object","required":["id","operator_id","operator_name","subject","changes","reason","document_reference","corrected_at"],"title":"ProfileCorrectionResponse","description":"One recorded correction."},"PurgeResponse":{"properties":{"deleted_count":{"type":"integer","minimum":0.0,"title":"Deleted Count"},"retention_days":{"type":"integer","minimum":1.0,"title":"Retention Days"},"batch_size":{"type":"integer","minimum":1.0,"title":"Batch Size"}},"type":"object","required":["deleted_count","retention_days","batch_size"],"title":"PurgeResponse","description":"Response from the notification purge endpoint."},"RailCheckResponse":{"properties":{"verdict":{"type":"string","title":"Verdict"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"final":{"type":"boolean","title":"Final"},"resend_open":{"type":"boolean","title":"Resend Open"},"permits_release":{"type":"boolean","title":"Permits Release"},"permits_attach":{"type":"boolean","title":"Permits Attach"},"charge_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Charge Id"},"charge_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Charge Status"},"charge_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Charge Amount Cents"},"disagreement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disagreement"},"failure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure"}},"type":"object","required":["verdict","checked_at","final","resend_open","permits_release","permits_attach","charge_id","charge_status","charge_amount_cents","disagreement","failure"],"title":"RailCheckResponse","description":"What asking the payment rail about a held debit established."},"ReasonCodeCatalogueResponse":{"properties":{"reason_codes":{"items":{"$ref":"#/components/schemas/ReasonCodeResponse"},"type":"array","title":"Reason Codes"}},"type":"object","required":["reason_codes"],"title":"ReasonCodeCatalogueResponse","description":"Every reason code a notice can state, in catalogue order."},"ReasonCodeResponse":{"properties":{"code":{"type":"string","title":"Code"},"wording":{"type":"string","title":"Wording"},"family":{"type":"string","title":"Family"},"role":{"type":"string","enum":["principal","key_factor"],"title":"Role"},"fcra_block":{"type":"boolean","title":"Fcra Block"},"operator_selectable":{"type":"boolean","title":"Operator Selectable"},"wording_status":{"type":"string","enum":["approved","pending"],"title":"Wording Status"}},"type":"object","required":["code","wording","family","role","fcra_block","operator_selectable","wording_status"],"title":"ReasonCodeResponse","description":"One code in the adverse action reason catalogue."},"ReasonResponse":{"properties":{"code":{"type":"string","title":"Code"},"wording":{"type":"string","title":"Wording"}},"type":"object","required":["code","wording"],"title":"ReasonResponse","description":"One principal reason a notice states."},"ReceiveComplaintRequest":{"properties":{"idempotency_key":{"type":"string","format":"uuid","title":"Idempotency Key"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"channel":{"$ref":"#/components/schemas/ComplaintChannel"},"received_by":{"$ref":"#/components/schemas/ComplaintReceivedBy"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"intercom_conversation_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Intercom Conversation Id"}},"type":"object","required":["idempotency_key","account_id","channel","received_by","received_at"],"title":"ReceiveComplaintRequest","description":"Record a complaint about an account, received at ``received_at``."},"RecordAgreementAcceptanceRequest":{"properties":{"product":{"type":"string","enum":["unsecured","secured"],"title":"Product"},"version":{"type":"string","maxLength":64,"minLength":1,"title":"Version"},"acknowledgement_version":{"type":"string","maxLength":64,"minLength":1,"title":"Acknowledgement Version"},"locale":{"anyOf":[{"type":"string","maxLength":35},{"type":"null"}],"title":"Locale"}},"additionalProperties":false,"type":"object","required":["product","version","acknowledgement_version"],"title":"RecordAgreementAcceptanceRequest","description":"``POST /{id}/agreement-acceptance``: which product's agreement, which versions, where.\n\n🆕 2026-10-01. The body names the product offered, the agreement version\nlinked and the checkbox sentence's version. When and from where are the\nserver's to stamp, and the text recorded is the server's own, so a body that\ntries to say either is refused rather than ignored."},"RecordComplaintResponseRequest":{"properties":{"comm_type":{"$ref":"#/components/schemas/CaseCommType"},"sent_at":{"type":"string","format":"date-time","title":"Sent At"}},"type":"object","required":["comm_type","sent_at"],"title":"RecordComplaintResponseRequest","description":"A communication sent about a complaint, and when it was sent."},"RecordCreditAuthorizationRequest":{"properties":{"stage":{"type":"string","enum":["soft_pull","hard_pull"],"title":"Stage"},"version":{"type":"string","maxLength":64,"minLength":1,"title":"Version"},"locale":{"anyOf":[{"type":"string","maxLength":35},{"type":"null"}],"title":"Locale"}},"additionalProperties":false,"type":"object","required":["stage","version"],"title":"RecordCreditAuthorizationRequest","description":"``POST /{id}/credit-authorization``: which authorization was given, and where.\n\nThe names only: the stage it was given before and the version rendered.\nWhen and from where are the server's to stamp, and the text recorded is the\nserver's own, so a body that tries to say either is refused rather than\nignored."},"RecordCreditAuthorizationResponse":{"properties":{"acceptance_id":{"type":"string","format":"uuid","title":"Acceptance Id"},"document_type":{"type":"string","title":"Document Type"},"version":{"type":"string","title":"Version"},"accepted_at":{"type":"string","format":"date-time","title":"Accepted At"}},"type":"object","required":["acceptance_id","document_type","version","accepted_at"],"title":"RecordCreditAuthorizationResponse","description":"What ``POST /{id}/credit-authorization`` recorded."},"RecordEsignConsentRequest":{"properties":{"landing_id":{"type":"string","format":"uuid","title":"Landing Id"},"version":{"type":"string","maxLength":64,"minLength":1,"title":"Version"},"acknowledgement_version":{"type":"string","maxLength":64,"minLength":1,"title":"Acknowledgement Version"},"locale":{"anyOf":[{"type":"string","maxLength":35},{"type":"null"}],"title":"Locale"}},"additionalProperties":false,"type":"object","required":["landing_id","version","acknowledgement_version"],"title":"RecordEsignConsentRequest","description":"``POST /esign-consent``: which arrival consented, to which document version, and where.\n\n🆕 2026-10-01. Taken before an application exists, so the arrival's landing\nid is the subject. The body names the document version linked and the\ncheckbox sentence's version; when and from where are the server's to stamp,\nand the text recorded is the server's own, so a body that tries to say\neither is refused rather than ignored."},"RecordEsignConsentResponse":{"properties":{"acceptance_id":{"type":"string","format":"uuid","title":"Acceptance Id"},"document_type":{"type":"string","title":"Document Type"},"version":{"type":"string","title":"Version"},"accepted_at":{"type":"string","format":"date-time","title":"Accepted At"}},"type":"object","required":["acceptance_id","document_type","version","accepted_at"],"title":"RecordEsignConsentResponse","description":"What ``POST /esign-consent`` recorded."},"RecordFraudFindingRequest":{"properties":{"idempotency_key":{"type":"string","format":"uuid","title":"Idempotency Key"},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"},"card_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Card Id"},"dispute_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dispute Id"},"application_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Application Id"},"fraud_type":{"$ref":"#/components/schemas/FraudType"},"disposition":{"$ref":"#/components/schemas/FraudDisposition"},"determined_at":{"type":"string","format":"date-time","title":"Determined At"},"adjustment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Adjustment Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"additionalProperties":false,"type":"object","required":["idempotency_key","fraud_type","disposition","determined_at"],"title":"RecordFraudFindingRequest","description":"A finding: what it is about (at least one), what was found, and what was done."},"RecordTermsConsentRequest":{"properties":{"landing_id":{"type":"string","format":"uuid","title":"Landing Id"},"privacy_policy_version":{"type":"string","maxLength":64,"minLength":1,"title":"Privacy Policy Version"},"terms_version":{"type":"string","maxLength":64,"minLength":1,"title":"Terms Version"},"acknowledgement_version":{"type":"string","maxLength":64,"minLength":1,"title":"Acknowledgement Version"},"locale":{"anyOf":[{"type":"string","maxLength":35},{"type":"null"}],"title":"Locale"}},"additionalProperties":false,"type":"object","required":["landing_id","privacy_policy_version","terms_version","acknowledgement_version"],"title":"RecordTermsConsentRequest","description":"``POST /terms-consent``: which arrival agreed, to which document versions, and where.\n\n🆕 2026-11-10 (#3951). Taken on the welcome step, before an application exists,\nso the arrival's landing id is the subject, as for the e-sign consent. The body\nnames the version of each document linked and the checkbox sentence's version;\nwhen and from where are the server's to stamp, and the text recorded is the\nserver's own, so a body that tries to say either is refused rather than ignored."},"RecordTermsConsentResponse":{"properties":{"acceptances":{"items":{"$ref":"#/components/schemas/RecordedAcceptanceResponse"},"type":"array","title":"Acceptances"}},"type":"object","required":["acceptances"],"title":"RecordTermsConsentResponse","description":"What ``POST /terms-consent`` recorded: the Privacy Policy, then the Terms of Service."},"RecordedAcceptanceResponse":{"properties":{"acceptance_id":{"type":"string","format":"uuid","title":"Acceptance Id"},"document_type":{"type":"string","title":"Document Type"},"version":{"type":"string","title":"Version"},"accepted_at":{"type":"string","format":"date-time","title":"Accepted At"}},"type":"object","required":["acceptance_id","document_type","version","accepted_at"],"title":"RecordedAcceptanceResponse","description":"One acceptance a consent route recorded."},"RecyclePersonaRequest":{"properties":{"phone_number":{"type":"string","maxLength":20,"minLength":7,"title":"Phone Number","description":"A catalogued end-to-end test persona's phone, in any common US format"},"scope":{"type":"string","enum":["latest","all"],"title":"Scope","description":"latest: the number's latest application (the default). all: every application in flight or approved sharing this persona's phone, SSN or the walkthrough EIN.","default":"latest"},"dry_run":{"type":"boolean","title":"Dry Run","description":"With scope=all: report what would be cancelled or retired, change nothing.","default":false}},"type":"object","required":["phone_number"],"title":"RecyclePersonaRequest","description":"The synthetic phone number whose application should be terminalised.\n\n🆕 2026-10-09 — ``scope`` and ``dry_run``. The default, ``latest``, is the recycle as it was:\nthe number's latest application. ``all`` closes every application in flight or approved that\nshares this persona's phone, its catalogued SSN, or the walkthrough EIN, because prequal now\ndeclines a duplicate (``P02``) and every one of those collides with the persona's next run.\n``dry_run`` reports what ``all`` would do and writes nothing; it is refused with ``latest``,\nwhich has nothing to report beyond the one row it would act on."},"RecyclePersonaResponse":{"properties":{"result":{"type":"string","title":"Result","description":"cancelled | retired | already_terminal | not_found; with scope=all, recycled | would_recycle | not_found"},"acted":{"type":"boolean","title":"Acted","description":"True only when an application was actually cancelled or retired"},"application_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Application Id"},"status_before":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Before","description":"The application's status when it was found"},"auth_user":{"type":"string","title":"Auth User","description":"What happened to the persona's Firebase login: deleted | not_found | skipped:<why>. The application half above frees the number; this half frees the address, so the next run's finalize creates a login instead of meeting one.","default":"skipped:not attempted"},"user_row":{"type":"string","title":"User Row","description":"What happened to the persona's users row: released | not_found | skipped:<why>. Finalize refuses a user row holding the address under another login (#2766), so the recycle moves the row off the address as well.","default":"skipped:not attempted"},"scope":{"type":"string","title":"Scope","description":"latest | all, as requested","default":"latest"},"dry_run":{"type":"boolean","title":"Dry Run","default":false},"applications":{"items":{"$ref":"#/components/schemas/RecycledApplication"},"type":"array","title":"Applications","description":"scope=all: every application found, oldest first, and what was done to it"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts","description":"scope=all: applications per action"},"fingerprints":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fingerprints","description":"scope=all: used | skipped:<why>. Skipped means no fingerprint key is mounted, so only the phone was matched and an application sharing just the SSN or the walkthrough EIN was not seen."}},"type":"object","required":["result","acted"],"title":"RecyclePersonaResponse","description":"What the recycle call found, and what it did about it.\n\n🔑 All three results are ``200``, deliberately. The caller's contract is a\npost-condition — *no non-terminal application holds this number* — and it is satisfied\nwhether one was cancelled, one was already terminal, or none existed. Mapping two of\nthose to ``4xx`` would make a scheduled run treat a clean persona as a failed reset,\nwhich is the exact defect the three-state outcome exists to avoid.\n\n🆕 2026-09-28 — **four, and the post-condition is now *nothing blocks a fresh application\non this number*.** ``retired`` is an approved persona's application closed so the next run\ncan sign up again: the funnel answers a number whose latest application is approved with a\nresume challenge, so an approval blocked every later run as surely as an open application.\nAlso ``200``, and ``acted`` is true."},"RecycledApplication":{"properties":{"application_id":{"type":"string","format":"uuid","title":"Application Id"},"status_before":{"type":"string","title":"Status Before"},"action":{"type":"string","title":"Action","description":"cancelled | retired | would_cancel | would_retire | refused"},"matched_on":{"items":{"type":"string"},"type":"array","title":"Matched On","description":"Which of phone | ssn | ein it shares"}},"type":"object","required":["application_id","status_before","action","matched_on"],"title":"RecycledApplication","description":"One application ``scope=\"all\"`` found. Ids, statuses and match keys only -- no PII."},"ReferralLandingRequest":{"properties":{"claimed_partner_slug":{"type":"string","maxLength":64,"title":"Claimed Partner Slug"},"uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Uid"},"channel":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Channel"}},"type":"object","required":["claimed_partner_slug"],"title":"ReferralLandingRequest","description":"One arrival on a partner path (`/signup/<partner>`).\n\nWhat a link must carry to prove its partner is decided in the onboarding\ndomain — not here. This model only says what may appear on the wire.\n\nThe lengths are the widths of the columns these values land in\n(``referral_landings.claimed_partner_slug`` / ``.partner_lead_uid`` /\n``.channel_token``), and they are the one exception to this package's\nno-constraints rule: a landing is recorded whatever the gate rules, so an\noversized value would reach an INSERT and 500 a public unauthenticated route\ninstead of being refused at the boundary that owns wire widths. They encode\nno rule about *which* identifier is needed or what shape it takes."},"ReferralLandingResponse":{"properties":{"link_valid":{"type":"boolean","title":"Link Valid"},"admitted":{"type":"boolean","title":"Admitted","default":true},"landing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landing Id"}},"type":"object","required":["link_valid"],"title":"ReferralLandingResponse","description":"The ruling on a referral link — two independent answers, not one.\n\n``admitted`` is the **only field the client branches on**; ``link_valid`` is\ndiagnostic and costs an admitted visitor nothing.\n\n- proved its partner   -> ``{\"link_valid\": true,  \"admitted\": true,  \"landing_id\": …}``\n- proved nothing       -> ``{\"link_valid\": false, \"admitted\": true,  \"landing_id\": …}``\n- public signup closed -> ``{\"link_valid\": false, \"admitted\": false, \"landing_id\": …}``\n\n``landing_id`` is present in every case, refusals included: the row is\nwritten either way, and the client carries the id if it proceeds. Nothing\nredirects — ``redirect_to`` went with the redirect (2026-09-13).\n\nThe reason a link failed is deliberately **not** echoed. It is recorded on\nthe landing row, which is where it is useful — telling an arbitrary caller\nwhich gate it tripped is of no use to a visitor and of some use to someone\nprobing the issued set."},"RefuseOfferResponse":{"properties":{"application_id":{"type":"string","title":"Application Id","description":"The application refused"},"status":{"type":"string","title":"Status","description":"`declined` once the refusal has landed"}},"type":"object","required":["application_id","status"],"title":"RefuseOfferResponse","description":"The application and the status the refusal left it in.\n\nA refused secured offer shows the \"application closed\" screen next (#4010), a refused\nunsecured offer the Dao website (#4009); neither states reasons. The\nanswer carries no other applicant data: none of the name, date of birth, address or taxpayer\nidentifier the full application response would repeat back."},"RegisterRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["email","password"],"title":"RegisterRequest","description":"User registration request."},"RegisterResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"email":{"type":"string","title":"Email"},"message":{"type":"string","title":"Message"}},"type":"object","required":["uid","email","message"],"title":"RegisterResponse","description":"User registration response."},"RejectAdjustmentRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"RejectAdjustmentRequest","description":"Reject a pending adjustment with a reason."},"ReleaseAuthorizationHoldRequest":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"ReleaseAuthorizationHoldRequest","description":"Why the claim behind the hold is resolved. Kept on the hold and in the account log."},"ReleaseAuthorizationHoldResponse":{"properties":{"outcome":{"type":"string","title":"Outcome"},"hold":{"$ref":"#/components/schemas/AuthorizationHoldItem"}},"type":"object","required":["outcome","hold"],"title":"ReleaseAuthorizationHoldResponse","description":"A hold released, by this request or an earlier one."},"ReleaseRefusedResponse":{"properties":{"error":{"type":"string","title":"Error"},"detail":{"type":"string","title":"Detail"},"check":{"$ref":"#/components/schemas/ProcessorCheckResponse"}},"type":"object","required":["error","detail","check"],"title":"ReleaseRefusedResponse","description":"The release or attach was refused, and why: the house error shape, plus the check."},"ReleaseResponse":{"properties":{"outcome":{"type":"string","title":"Outcome"},"payment_id":{"type":"string","format":"uuid","title":"Payment Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"payment_source_id":{"type":"string","format":"uuid","title":"Payment Source Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"released_at":{"type":"string","format":"date-time","title":"Released At"},"check":{"anyOf":[{"$ref":"#/components/schemas/ProcessorCheckResponse"},{"type":"null"}]}},"type":"object","required":["outcome","payment_id","account_id","payment_source_id","amount_cents","released_at","check"],"title":"ReleaseResponse","description":"A held payment released or attached, by this request or by an earlier one."},"RelinkSessionResponse":{"properties":{"link_token":{"type":"string","title":"Link Token"},"expires_at":{"type":"string","title":"Expires At"}},"type":"object","required":["link_token","expires_at"],"title":"RelinkSessionResponse","description":"What ``POST /api/v1/payment-sources/{id}/relink-session`` answers (#1253).\n\n``link_token`` is the opaque reference the client opens the provider's\nrepair flow with; nothing hands it back on any later call, and confirming a\nrepair (``POST .../confirm-relink``) takes no client input at all.\n``expires_at`` is ISO-8601 UTC."},"ReplacementCardResponse":{"properties":{"card_id":{"type":"string","format":"uuid","title":"Card Id"},"replaces_card_id":{"type":"string","format":"uuid","title":"Replaces Card Id"},"last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Four"},"status":{"type":"string","title":"Status"},"expiry_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expiry Month"},"expiry_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expiry Year"},"holds_primary_slot":{"type":"boolean","title":"Holds Primary Slot"}},"type":"object","required":["card_id","replaces_card_id","last_four","status","expiry_month","expiry_year","holds_primary_slot"],"title":"ReplacementCardResponse","description":"The replacement card as recorded, and the card it replaces."},"RequestDepositBody":{"properties":{"payment_source_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payment Source Id"},"amount_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Cents"},"authorization":{"$ref":"#/components/schemas/OneTimeAchAuthorizationRequest"},"certification_text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Certification Text"}},"type":"object","required":["amount_cents","authorization"],"title":"RequestDepositBody","description":"The amount the cardholder chose, and the form 2 they were shown.\n\nThe bank account is not theirs to name: the deposit is pulled from their default payment\naccount, resolved on the server (#3715). ``payment_source_id`` is what an older client\nstill sends, refused unless it names the default."},"RequestEmployeeCardBody":{"properties":{"card_type":{"type":"string","const":"employee","title":"Card Type"},"cardholder_name":{"type":"string","minLength":1,"title":"Cardholder Name"},"user_id":{"type":"string","title":"User Id"},"spend_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Spend Limit Cents"}},"type":"object","required":["card_type","cardholder_name","user_id"],"title":"RequestEmployeeCardBody","description":"Request a new card for an authorized employee user (primary holder only)."},"RequestInfoDecisionRequest":{"properties":{"decision":{"type":"string","const":"request_info","title":"Decision"},"requested_items":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Requested Items","description":"Items requested (≥1)"}},"type":"object","required":["decision","requested_items"],"title":"RequestInfoDecisionRequest","description":"Request more information from the applicant."},"RequestPhysicalCardBody":{"properties":{"card_type":{"type":"string","const":"physical","title":"Card Type"}},"type":"object","required":["card_type"],"title":"RequestPhysicalCardBody","description":"Physical card request — not yet supported."},"RequestVirtualCardBody":{"properties":{"card_type":{"type":"string","const":"virtual","title":"Card Type"},"cardholder_name":{"type":"string","minLength":1,"title":"Cardholder Name"},"spend_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Spend Limit Cents"}},"type":"object","required":["card_type","cardholder_name"],"title":"RequestVirtualCardBody","description":"Request a new virtual card for the authenticated user."},"RerouteDecisionRequest":{"properties":{"decision":{"type":"string","const":"reroute","title":"Decision"},"reroute_to":{"type":"string","enum":["decline","secured","unsecured"],"title":"Reroute To"},"note":{"type":"string","maxLength":1000,"minLength":1,"title":"Note","description":"The reviewer's reason for the reroute, kept with the decision"},"credit_limit_cents":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Credit Limit Cents","description":"An offer's limit"},"apr":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Apr","description":"An offer's purchase APR as a percentage. The application refuses one outside the disclosed 13.49–17.49 band (400 purchase_rate_not_disclosed)"},"required_deposit_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Required Deposit Cents","description":"A secured offer's deposit floor, in cents"},"required_deposit_max_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Required Deposit Max Cents","description":"A secured offer's deposit ceiling, in cents"},"decline_reason":{"type":"string","maxLength":500,"title":"Decline Reason","default":""},"decline_codes":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Decline Codes","description":"A decline's FCRA reason codes from ('C01', 'C02', 'C03', 'C04', 'C05', 'C06', 'C07', 'C08', 'C09', 'C10', 'C11', 'C12', 'C13', 'C14', 'F01', 'F02', 'B01', 'B02', 'B03', 'B04', 'B05', 'B06', 'I01', 'I02', 'I03', 'P01', 'P02', 'P03', 'P04'); the console starts from the engine's"}},"type":"object","required":["decision","reroute_to","note"],"title":"RerouteDecisionRequest","description":"Reroute a held decline or held secured decision, at either holding pen (#3843).\n\n``reroute_to`` picks the outcome. An offer states its limit and APR, and the secured card\nits deposit floor and ceiling too; a decline states its reason codes. The reason is\nrequired on every reroute. What is required for which outcome is the application's to\nenforce, so a missing term is a 400 with the reason, not a 422."},"ResolveDisputeRequest":{"properties":{"resolution_in_customer_favor":{"type":"boolean","title":"Resolution In Customer Favor"},"resolution_reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Resolution Reason"},"final_credit_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Final Credit Cents"},"decline_reason":{"anyOf":[{"$ref":"#/components/schemas/DisputeDeclineReason"},{"type":"null"}]},"credit_posted_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Credit Posted On"}},"type":"object","required":["resolution_in_customer_favor","resolution_reason"],"title":"ResolveDisputeRequest","description":"Admin dispute resolution.\n\n``final_credit_cents`` is required when in favour and refused when against\n(``@RID-DISPUTE-ADMIN-RESOLVE-002``), so a figure that cannot apply is\nrejected rather than accepted and dropped.\n\n``decline_reason`` is the mirror (``@RID-DISPUTE-ADMIN-RESOLVE-003``, #2390):\nrequired when against — one of the seven reasons in the dispute SOP's\ntemplate A-4, and the reason the cardholder is told — and refused when in\nfavour. ``credit_posted_on`` is required with the one reason whose clause\nnames a date and refused with any other. ``resolution_reason`` is the\noperator's internal note and is never sent to the cardholder."},"ResumeLookupRequest":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"ssn_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssn Last4"},"landing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landing Id"}},"type":"object","required":["phone_number"],"title":"ResumeLookupRequest","description":"What ``POST /api/v1/signup/resume`` takes: the line, its challenge, the arrival.\n\nThe same three fields as ``CreateSignupRequest``, and for the same reasons: the\nlast four are Prove's ``/v3/start`` challenge for the code a resume dispatches,\nand the landing is what entry is ruled on. Unlike that request it never creates\nan application, so nothing here is written to one."},"ResumeNotFoundResponse":{"properties":{"resuming":{"type":"boolean","const":false,"title":"Resuming","default":false}},"type":"object","title":"ResumeNotFoundResponse","description":"The lookup's answer for a number with nothing to resume.\n\nOne shape for every such number, and no more than the ``resuming`` flag the\nclient branches on: it names no status and no application. The applicant then\ngoes through the ownership gate and the e-sign consent, and the funnel's own\n``POST /`` creates their application."},"ResumeVerifyPhoneRequest":{"properties":{"phone_verification_session_id":{"type":"string","title":"Phone Verification Session Id"},"otp_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Otp Code"},"ssn_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssn Last4"},"landing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landing Id"}},"type":"object","required":["phone_verification_session_id"],"title":"ResumeVerifyPhoneRequest","description":"#1085: proves possession of a line whose application already resumed.\n\nCarries ``phone_verification_session_id`` rather than an\n``application_id`` — the pre-OTP resume wire never learns the\napplication id, only the opaque session id from the resumed\n``SignupResumeChallengeResponse``. Otherwise identical to\n``VerifyPhoneRequest``: ``otp_code`` is ``None`` on the client-SDK\n(Prove Mobile Auth) path and carries the user-entered code on the basic\nOTP path."},"RevealClientTokenResponse":{"properties":{"client_token":{"type":"string","title":"Client Token"},"payment_card_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Card Id"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"provider":{"type":"string","enum":["highnote","local"],"title":"Provider"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["client_token","payment_card_id","expires_at","provider","permissions"],"title":"RevealClientTokenResponse","description":"Wire shape for the M5.03 ``/reveal-token`` and ``/pin-set-token`` endpoints.\n\nFrontend branches on ``provider``:\n\n* ``\"highnote\"`` → load the matching Highnote SDK\n  (``@highnoteplatform/card-viewer`` for reveal,\n  ``@highnoteplatform/secure-inputs`` for PIN set), hand it\n  ``client_token`` + ``payment_card_id``. The PAN/CVV/PIN values are\n  rendered inside a Highnote-hosted iframe; backend never sees them.\n* ``\"local\"`` → ignore ``client_token`` (sentinel value); fall back\n  to the legacy dev/test path (M5.04 wires this on the frontend).\n\nPCI: ``client_token`` is opaque server-side. The endpoint itself\ndoesn't log it; SDK consumers should treat it equally carefully."},"ReviewRationaleResponse":{"properties":{"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"}},"type":"object","required":["reasons"],"title":"ReviewRationaleResponse","description":"\"Why this needs review\" — derived only from real aggregate fields (task #1010)."},"ReviewerRerouteSwitchRequest":{"properties":{"switched_on":{"type":"boolean","title":"Switched On"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason","description":"Why, as the supervisor says"}},"type":"object","required":["switched_on","reason"],"title":"ReviewerRerouteSwitchRequest","description":"Turn Option A on or off for one application, with the supervisor's reason (#4353)."},"ReviewerRerouteSwitchResponse":{"properties":{"application_id":{"type":"string","format":"uuid","title":"Application Id"},"reviewer_reroute_switched_on":{"type":"boolean","title":"Reviewer Reroute Switched On"},"reviewer_reroute_switchable":{"type":"boolean","title":"Reviewer Reroute Switchable"},"reviewer_reroute_on":{"type":"boolean","title":"Reviewer Reroute On"}},"type":"object","required":["application_id","reviewer_reroute_switched_on","reviewer_reroute_switchable","reviewer_reroute_on"],"title":"ReviewerRerouteSwitchResponse","description":"Option A for the application after the switch (#4353)."},"RotateResponse":{"properties":{"rotated":{"type":"boolean","title":"Rotated"},"active_signing_keys":{"type":"integer","title":"Active Signing Keys"}},"type":"object","required":["rotated","active_signing_keys"],"title":"RotateResponse"},"SBARequirementResponse":{"properties":{"name":{"type":"string","title":"Name"},"target":{"type":"string","title":"Target"},"current_value":{"type":"string","title":"Current Value"},"met":{"type":"boolean","title":"Met"}},"type":"object","required":["name","target","current_value","met"],"title":"SBARequirementResponse"},"SecuredDepositStatusResponse":{"properties":{"application_id":{"type":"string","format":"uuid","title":"Application Id"},"product_type":{"type":"string","title":"Product Type"},"deposit_required":{"type":"boolean","title":"Deposit Required"},"minimum_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimum Cents"},"maximum_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maximum Cents"},"deposit":{"anyOf":[{"$ref":"#/components/schemas/DepositAttemptResponse"},{"type":"null"}]},"paid":{"type":"boolean","title":"Paid"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"expired":{"type":"boolean","title":"Expired"},"delivery":{"$ref":"#/components/schemas/DeliveryResponse"},"delivery_confirmed":{"type":"boolean","title":"Delivery Confirmed"},"bank_accounts":{"items":{"$ref":"#/components/schemas/PaymentSourceResponse"},"type":"array","title":"Bank Accounts"}},"type":"object","required":["application_id","product_type","deposit_required","minimum_cents","maximum_cents","deposit","paid","expires_at","expired","delivery","delivery_confirmed","bank_accounts"],"title":"SecuredDepositStatusResponse","description":"Where a deferred card stands between approval and issuance."},"SendCommRequest":{"properties":{"reference":{"type":"string","maxLength":64,"minLength":1,"title":"Reference"},"channels":{"items":{"$ref":"#/components/schemas/OperatorSendChannel"},"type":"array","title":"Channels"},"context":{"additionalProperties":{"type":"string"},"type":"object","title":"Context"},"case_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Case Id"}},"type":"object","required":["reference"],"title":"SendCommRequest","description":"Send a prepared communication to an account's owner.\n\n``reference`` is a key of ``COMMS`` where this was ``template_id: UUID``\n(#1894 t5). A string rather than an enum: the registry is the vocabulary and\nit is checked against ``COMMS`` in the service, which returns a 404 naming the\nreference — an enum generated off the registry would make an unknown reference\na 422 with a list of every comm in it, and the list is not the operator's\nproblem."},"SendCommResponse":{"properties":{"status":{"type":"string","title":"Status"},"notification_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Notification Id"},"channels":{"additionalProperties":{"type":"string"},"type":"object","title":"Channels"}},"type":"object","required":["status"],"title":"SendCommResponse","description":"Outcome of an operator send: ``sent``, ``suppressed`` or ``duplicate``.\n\n``channels`` maps each requested email/SMS channel to its dispatch outcome\n(``queued``/``skipped``/``failed``); email/SMS are recorded-only (mock) until\n#883. A ``suppressed`` status (C&D or closed account) creates nothing and\ndispatches nothing. A cardholder's channel preference never suppresses the\nsend (#1568) — it shows up as ``skipped`` on the channel it switched off.\n\n``duplicate`` is new with #1894 t5 and is the visible half of the dedup fix:\nthe send's ``source_event_id`` is derived from its own inputs, so a second\nidentical send finds the first one's notification and reports this instead of\nmailing the cardholder again. ``notification_id`` is the **first** send's."},"SendNoticeRequest":{"properties":{"for":{"type":"string","enum":["decline","secured_offer_refused","revised_offer"],"title":"For"},"principal_reason_codes":{"items":{"type":"string"},"type":"array","maxItems":16,"title":"Principal Reason Codes"},"resend":{"type":"boolean","title":"Resend","default":false}},"type":"object","required":["for"],"title":"SendNoticeRequest","description":"A notice to send: what it is for, the principal reasons it states, and whether it may\nrepeat one already sent."},"SendOptionResponse":{"properties":{"for":{"type":"string","enum":["decline","secured_offer_refused","revised_offer"],"title":"For"},"fulfils":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fulfils","description":"The open notice a send for this purpose fulfils, by notice_id; null for a new notice."},"resend":{"type":"boolean","title":"Resend","description":"A send for this purpose repeats a notice already sent, so it is refused already_sent unless resend is asked for."}},"type":"object","required":["for","fulfils","resend"],"title":"SendOptionResponse","description":"What a send for one purpose would do now, by the send's own rule."},"SendableCommResponse":{"properties":{"reference":{"type":"string","title":"Reference"},"name":{"type":"string","title":"Name"},"comm_class":{"type":"string","title":"Comm Class"},"requires":{"items":{"type":"string"},"type":"array","title":"Requires"}},"type":"object","required":["reference","name","comm_class","requires"],"title":"SendableCommResponse","description":"One comm an operator may send a cardholder, as the send picker reads it.\n\nReplaces ``TemplateResponse`` for the picker's purposes, and carries four\nfields where that carried fifteen. Copy is code now, so what is left is the\nidentity, the name, the delivery class and the values the operator has to\nsupply. Of the fifteen, ten were editable copy or channel toggles, four were\nrow metadata (``id``, ``ref``, ``category``, ``status`` — two of which survive\nhere as ``reference`` and ``name``) and ``enabled_channels`` was derived.\n\n``requires`` is **the comm's own declaration** (``Comm.requires``), not a\nregular expression over the copy. The send modal used to derive its merge-field\ninputs by scanning the template body for ``{{field}}``, which meant the form\nwas built from a *guess* about the copy and could not know about a value the\ncopy read on a branch it happened not to be showing. ``requires`` is what the\nsend path itself validates against (``CommContext.require``), so the form and\nthe refusal now read the same list."},"SentByHandRequest":{"properties":{"sent_at":{"type":"string","format":"date-time","title":"Sent At","description":"When it was sent; not in the future."},"principal_reason_codes":{"items":{"type":"string"},"type":"array","maxItems":16,"title":"Principal Reason Codes"},"recipient_email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Recipient Email","description":"The address it went to, if by email."},"note":{"anyOf":[{"type":"string","maxLength":180},{"type":"null"}],"title":"Note"},"for":{"type":"string","enum":["decline","secured_offer_refused","revised_offer"],"title":"For"}},"type":"object","required":["sent_at","for"],"title":"SentByHandRequest","description":"An operator's statement that they sent a notice outside the platform, by what it was for."},"SentResponse":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"channel":{"type":"string","enum":["app","by_hand"],"title":"Channel"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"}},"type":"object","required":["at","channel","actor_id"],"title":"SentResponse","description":"How a sent notice went. ``actor_id`` is ``None`` when the platform sent it unattended."},"SetPinRequest":{"properties":{"pin":{"type":"string","maxLength":4,"minLength":4,"pattern":"^\\d{4}$","title":"Pin"}},"type":"object","required":["pin"],"title":"SetPinRequest"},"SignupApplicationResponse":{"properties":{"application_id":{"type":"string","title":"Application Id"},"status":{"type":"string","title":"Status"},"phone_number":{"type":"string","title":"Phone Number"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"date_of_birth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Of Birth"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"ssn_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssn Last4"},"phone_auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Auth Token"},"phone_requires_client_sdk":{"type":"boolean","title":"Phone Requires Client Sdk","default":false},"phone_retry_after_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Phone Retry After Seconds"},"phone_code_not_sent":{"type":"boolean","title":"Phone Code Not Sent","default":false},"phone_verification_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Verification Error"},"identity_verification_session_expired":{"type":"boolean","title":"Identity Verification Session Expired","default":false},"identity_verification_outcome":{"anyOf":[{"type":"string","enum":["verified","declined","held","session_expired","unavailable"]},{"type":"null"}],"title":"Identity Verification Outcome"},"identity_verified":{"type":"boolean","title":"Identity Verified","default":false},"street1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street1"},"street2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"annual_household_income_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Annual Household Income Cents"},"ein_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein Masked"},"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"},"gross_annual_revenue":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gross Annual Revenue"},"corporate_experience":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Corporate Experience"},"decision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision"},"credit_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Score"},"composite_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Composite Score"},"risk_tier":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk Tier"},"product_assignment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Assignment"},"prequal_credit_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prequal Credit Limit"},"prequal_apr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prequal Apr"},"prequal_apr_figure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prequal Apr Figure"},"required_deposit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Required Deposit"},"purchase_apr_floor":{"type":"string","title":"Purchase Apr Floor"},"purchase_apr_ceiling":{"type":"string","title":"Purchase Apr Ceiling"},"requires_step_up":{"type":"boolean","title":"Requires Step Up","default":false},"step_up_actions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Up Actions"},"taktile_decision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taktile Decision Id"},"issuance_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuance Status"},"external_application_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Application Id"},"bank_link_offered":{"type":"boolean","title":"Bank Link Offered","default":false},"account_step_after_hard_pull":{"type":"boolean","title":"Account Step After Hard Pull","default":false},"upgrade_offer_pending":{"type":"boolean","title":"Upgrade Offer Pending","default":false},"final_offer":{"anyOf":[{"$ref":"#/components/schemas/FinalOfferResponse"},{"type":"null"}]},"ach_step_owed":{"type":"boolean","title":"Ach Step Owed","default":false},"refused_offer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refused Offer"},"final_offer_enabled":{"type":"boolean","title":"Final Offer Enabled","default":false},"final_offer_owed":{"type":"boolean","title":"Final Offer Owed","default":false}},"type":"object","required":["application_id","status","phone_number","purchase_apr_floor","purchase_apr_ceiling"],"title":"SignupApplicationResponse"},"SignupResumeChallengeResponse":{"properties":{"resuming":{"type":"boolean","title":"Resuming","default":true},"phone_verification_session_id":{"type":"string","title":"Phone Verification Session Id"},"phone_auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Auth Token"},"phone_requires_client_sdk":{"type":"boolean","title":"Phone Requires Client Sdk","default":false},"phone_verification_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Verification Error"},"phone_retry_after_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Phone Retry After Seconds"},"phone_code_not_sent":{"type":"boolean","title":"Phone Code Not Sent","default":false}},"type":"object","required":["phone_verification_session_id"],"title":"SignupResumeChallengeResponse","description":"What ``POST /api/v1/signup/`` answers when it resumed an application.\n\nMirrors ``ResumeChallengeDTO`` exactly, and deliberately no more. A phone\nnumber is not a credential, so this is everything a stranger who typed\nsomeone else's number is allowed to learn: no\n``application_id`` (the capability token every downstream unauthenticated\nendpoint accepts), no status (an adverse decision like\n``prequal_declined`` is not for a stranger to see), no PII. The dossier\nand the ``application_id`` arrive only on\n``POST /resume/verify-phone``'s ``SignupApplicationResponse``, once\npossession of the line is proven.\n\n``phone_verification_error`` is set only on a ``/resume/verify-phone``\nanswer whose check failed and used the session up, so a new one was opened\nin its place (#3399). It is the fixed sentence a refused check answers\nanyone, and names nothing about the applicant.\n\n``phone_retry_after_seconds`` is set only when the answer reused a challenge\nalready out (#2679): the whole seconds until a new one can be sent, between 1\nand the reuse window's length. Such an answer carries no ``phone_auth_token``,\nwhich is never stored. It is a reading of the clock against the line's last\ndispatch, not a fact about the applicant.\n\n``phone_code_not_sent`` is set only when the answer dispatched a fresh\nchallenge and the provider could not start the check, so no code went out\n(#2679). It says the provider failed to start a check and names nothing about\nthe applicant. It is ``False`` on a reuse and on every ``/resume/verify-phone``\nanswer.\n\n``resuming`` is the discriminator the client branches on. It defaults to\n``True`` because this model is only ever constructed on the resume\nbranch of ``create_signup``."},"SimulateTestTransactionRequest":{"properties":{"card_id":{"type":"string","format":"uuid","title":"Card Id","description":"The DOMAIN card id, as returned by GET /api/v1/accounts/me"},"amount_cents":{"type":"integer","maximum":100000.0,"exclusiveMinimum":0.0,"title":"Amount Cents","description":"Authorization amount in cents","default":5000},"merchant_name":{"type":"string","maxLength":25,"minLength":1,"title":"Merchant Name","description":"Merchant descriptor — the string the dashboard assertion looks for","default":"E2E Watchdog"}},"type":"object","required":["card_id"],"title":"SimulateTestTransactionRequest","description":"The persona's card, and what to spend on it."},"SimulateTestTransactionResponse":{"properties":{"transaction_id":{"type":"string","title":"Transaction Id"},"authorized_amount_cents":{"type":"integer","title":"Authorized Amount Cents"},"cleared_amount_cents":{"type":"integer","title":"Cleared Amount Cents"},"merchant_name":{"type":"string","title":"Merchant Name"},"attempts":{"type":"integer","title":"Attempts","description":"Authorization attempts needed before a non-zero approval (#2540)"}},"type":"object","required":["transaction_id","authorized_amount_cents","cleared_amount_cents","merchant_name","attempts"],"title":"SimulateTestTransactionResponse","description":"What was authorized and cleared."},"StatementCopyResponse":{"properties":{"status":{"type":"string","title":"Status"},"period":{"type":"string","title":"Period"}},"type":"object","required":["status","period"],"title":"StatementCopyResponse","description":"What became of the operator's request to send a statement."},"StatementItem":{"properties":{"statement_id":{"type":"string","format":"uuid","title":"Statement Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"statement_date":{"type":"string","format":"date","title":"Statement Date"},"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"},"previous_balance_cents":{"type":"integer","title":"Previous Balance Cents"},"payments_received_cents":{"type":"integer","title":"Payments Received Cents"},"purchases_cents":{"type":"integer","title":"Purchases Cents"},"fees_cents":{"type":"integer","title":"Fees Cents"},"interest_charged_cents":{"type":"integer","title":"Interest Charged Cents"},"new_balance_cents":{"type":"integer","title":"New Balance Cents"},"minimum_payment_due_cents":{"type":"integer","title":"Minimum Payment Due Cents"},"credit_limit_cents":{"type":"integer","title":"Credit Limit Cents"},"available_credit_cents":{"type":"integer","title":"Available Credit Cents"},"payment_due_date":{"type":"string","format":"date","title":"Payment Due Date"},"status":{"type":"string","title":"Status"},"is_past_due":{"type":"boolean","title":"Is Past Due"},"days_until_due":{"type":"integer","title":"Days Until Due"}},"type":"object","required":["statement_id","account_id","statement_date","period_start","period_end","previous_balance_cents","payments_received_cents","purchases_cents","fees_cents","interest_charged_cents","new_balance_cents","minimum_payment_due_cents","credit_limit_cents","available_credit_cents","payment_due_date","status","is_past_due","days_until_due"],"title":"StatementItem","description":"A statement row in the admin 360 billing snapshot."},"StatusHistoryResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"previous_status":{"type":"string","title":"Previous Status"},"new_status":{"type":"string","title":"New Status"},"actor_id":{"type":"string","title":"Actor Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"}},"type":"object","required":["id","account_id","previous_status","new_status","actor_id","reason","occurred_at"],"title":"StatusHistoryResponse","description":"An account status-transition record."},"SubmitAddressRequest":{"properties":{"street1":{"type":"string","title":"Street1"},"street2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street2"},"city":{"type":"string","title":"City"},"state":{"type":"string","title":"State"},"zip_code":{"type":"string","title":"Zip Code"},"annual_household_income_cents":{"type":"integer","title":"Annual Household Income Cents"}},"type":"object","required":["street1","city","state","zip_code","annual_household_income_cents"],"title":"SubmitAddressRequest"},"SubmitAdjustmentRequest":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"amount_cents":{"type":"integer","title":"Amount Cents","description":"Signed adjustment amount in cents (non-zero)"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"adjustment_type":{"$ref":"#/components/schemas/AdjustmentType","description":"One of the 11 named adjustment types (#924); ops-only types require the Ops/Supervisor role","default":"credit_adjustment"},"scope":{"$ref":"#/components/schemas/AdjustmentScope","description":"Reconciliation scope: dao_only / highnote_only / both","default":"both"}},"type":"object","required":["account_id","amount_cents","reason"],"title":"SubmitAdjustmentRequest","description":"Submit a balance adjustment against an account."},"SubmitBusinessInfoRequest":{"properties":{"ein":{"type":"string","title":"Ein"},"business_name":{"type":"string","title":"Business Name"},"annual_household_income_cents":{"type":"integer","title":"Annual Household Income Cents"},"gross_annual_revenue":{"type":"integer","title":"Gross Annual Revenue"},"corporate_experience":{"type":"integer","title":"Corporate Experience"},"business_street1":{"type":"string","title":"Business Street1"},"business_city":{"type":"string","title":"Business City"},"business_state":{"type":"string","title":"Business State"},"business_zip":{"type":"string","title":"Business Zip"},"incorporation_date":{"type":"string","title":"Incorporation Date"},"business_email":{"type":"string","title":"Business Email"},"naics_code":{"type":"string","title":"Naics Code"},"state_of_incorporation":{"type":"string","title":"State Of Incorporation"},"beneficial_ownership_attested":{"type":"boolean","title":"Beneficial Ownership Attested"},"beneficial_ownership_attestation_version":{"type":"string","maxLength":64,"minLength":1,"title":"Beneficial Ownership Attestation Version"},"business_street2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Street2"},"device_session_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Session Token"},"ownership_standing_attested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ownership Standing Attested"},"applicant_ownership_bps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Applicant Ownership Bps"},"applicant_title":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Applicant Title"},"business_type":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Business Type"}},"type":"object","required":["ein","business_name","annual_household_income_cents","gross_annual_revenue","corporate_experience","business_street1","business_city","business_state","business_zip","incorporation_date","business_email","naics_code","state_of_incorporation","beneficial_ownership_attested","beneficial_ownership_attestation_version"],"title":"SubmitBusinessInfoRequest"},"SubmitIdentityRequest":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"date_of_birth":{"type":"string","title":"Date Of Birth"},"email":{"type":"string","title":"Email"},"ssn":{"type":"string","title":"Ssn"}},"type":"object","required":["first_name","last_name","date_of_birth","email","ssn"],"title":"SubmitIdentityRequest"},"SubmitShippingAddressRequest":{"properties":{"street1":{"type":"string","title":"Street1"},"street2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street2"},"city":{"type":"string","title":"City"},"state":{"type":"string","title":"State"},"zip_code":{"type":"string","title":"Zip Code"}},"type":"object","required":["street1","city","state","zip_code"],"title":"SubmitShippingAddressRequest"},"SubscriptionReconcileResponse":{"properties":{"added":{"type":"integer","title":"Added"},"removed":{"type":"integer","title":"Removed"},"skipped_removal":{"type":"integer","title":"Skipped Removal"}},"type":"object","required":["added","removed","skipped_removal"],"title":"SubscriptionReconcileResponse"},"SubscriptionsResponse":{"properties":{"environment":{"type":"string","title":"Environment"},"live":{"items":{"type":"string"},"type":"array","title":"Live"},"canonical":{"items":{"type":"string"},"type":"array","title":"Canonical"},"to_add":{"items":{"type":"string"},"type":"array","title":"To Add"},"to_remove":{"items":{"type":"string"},"type":"array","title":"To Remove"}},"type":"object","required":["environment","live","canonical","to_add","to_remove"],"title":"SubscriptionsResponse"},"SuspendRequest":{"properties":{"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At","description":"Auto-resume time (UTC); omit for indefinite"}},"type":"object","title":"SuspendRequest","description":"Apply a fee/interest suspension. ``ends_at`` omitted = indefinite."},"SuspensionResponse":{"properties":{"suspended_at":{"type":"string","format":"date-time","title":"Suspended At"},"suspended_by":{"type":"string","title":"Suspended By"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"is_indefinite":{"type":"boolean","title":"Is Indefinite"}},"type":"object","required":["suspended_at","suspended_by","ends_at","is_indefinite"],"title":"SuspensionResponse","description":"A fee/interest suspension as returned by the API."},"SuspensionResponseModel":{"properties":{"suspended_at":{"type":"string","format":"date-time","title":"Suspended At"},"suspended_by":{"type":"string","title":"Suspended By"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"is_indefinite":{"type":"boolean","title":"Is Indefinite"}},"type":"object","required":["suspended_at","suspended_by","ends_at","is_indefinite"],"title":"SuspensionResponseModel","description":"A fee/interest suspension in the detail response."},"TargetResponse":{"properties":{"environment":{"type":"string","title":"Environment"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"status":{"type":"string","title":"Status"},"created":{"type":"boolean","title":"Created"},"active_signing_keys":{"type":"integer","title":"Active Signing Keys"},"subscriptions":{"type":"integer","title":"Subscriptions"}},"type":"object","required":["environment","external_id","status","created","active_signing_keys","subscriptions"],"title":"TargetResponse"},"TaskCategory":{"type":"string","enum":["compliance","credit","issues","onboarding","loans","score","review"],"title":"TaskCategory","description":"The work-domain a task belongs to (from the design inventory)."},"TaskPriority":{"type":"string","enum":["urgent","high","normal","low"],"title":"TaskPriority","description":"Work-item priority; ``weight`` orders the queue (0 = most urgent first)."},"TaskRefType":{"type":"string","enum":["case","account","client"],"title":"TaskRefType","description":"What a task points at: a compliance Case (#919), an account, or a client."},"TaskResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subject":{"type":"string","title":"Subject"},"ref_type":{"type":"string","title":"Ref Type"},"ref_id":{"type":"string","format":"uuid","title":"Ref Id"},"assignee_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignee Id"},"priority":{"type":"string","title":"Priority"},"status":{"type":"string","title":"Status"},"category":{"type":"string","title":"Category"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"is_overdue":{"type":"boolean","title":"Is Overdue"},"note":{"type":"string","title":"Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"ref_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref Name"}},"type":"object","required":["id","subject","ref_type","ref_id","assignee_id","priority","status","category","due_at","is_overdue","note","created_at"],"title":"TaskResponse","description":"An advisor task as returned by the API."},"TaskStatsResponse":{"properties":{"open":{"type":"integer","title":"Open"},"in_progress":{"type":"integer","title":"In Progress"},"blocked":{"type":"integer","title":"Blocked"},"done":{"type":"integer","title":"Done"}},"type":"object","required":["open","in_progress","blocked","done"],"title":"TaskStatsResponse","description":"Queue counts for the Tasks stats row."},"TaskStatus":{"type":"string","enum":["open","in_progress","blocked","done"],"title":"TaskStatus","description":"State of a ``Task`` in its lifecycle (``DONE`` is terminal)."},"TransactionListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TxnAdminItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"TransactionListResponse","description":"Paginated admin transaction list for one account."},"TransactionResponse":{"properties":{"id":{"type":"string","title":"Id"},"merchant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Name"},"merchant_logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Logo Url"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"amount_cents":{"type":"integer","title":"Amount Cents"},"transaction_type":{"type":"string","title":"Transaction Type"},"status":{"type":"string","title":"Status"},"transaction_date":{"type":"string","title":"Transaction Date"},"transaction_day":{"type":"string","title":"Transaction Day"},"posted_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posted Date"},"posted_day":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posted Day"},"card_last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card Last Four"},"card_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card Id"},"reference_number":{"type":"string","title":"Reference Number"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_credit":{"type":"boolean","title":"Is Credit"},"has_dispute":{"type":"boolean","title":"Has Dispute"},"dispute_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dispute Id"},"in_closed_billing_cycle":{"type":"boolean","title":"In Closed Billing Cycle","default":false}},"type":"object","required":["id","merchant_name","merchant_logo_url","category","amount_cents","transaction_type","status","transaction_date","transaction_day","posted_date","card_last_four","card_id","reference_number","description","is_credit","has_dispute","dispute_id"],"title":"TransactionResponse","description":"Single transaction in the ledger."},"TransitionCaseRequest":{"properties":{"to_state":{"$ref":"#/components/schemas/CaseState"},"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"type":"object","required":["to_state"],"title":"TransitionCaseRequest","description":"Move a case to a new state."},"TransitionTaskRequest":{"properties":{"to_status":{"$ref":"#/components/schemas/TaskStatus"}},"type":"object","required":["to_status"],"title":"TransitionTaskRequest","description":"Move a task to a new status."},"TrueUpMissResponse":{"properties":{"event_id":{"type":"string","title":"Event Id"},"event_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Name"},"highnote_created_at":{"type":"string","title":"Highnote Created At"},"first_seen_missing_at":{"type":"string","title":"First Seen Missing At"},"replay_attempts":{"type":"integer","title":"Replay Attempts"},"last_replay_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Replay Error"},"historical":{"type":"boolean","title":"Historical"},"ruling":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ruling"},"ruled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ruled At"}},"type":"object","required":["event_id","event_name","highnote_created_at","first_seen_missing_at","replay_attempts","last_replay_error","historical","ruling","ruled_at"],"title":"TrueUpMissResponse"},"TrueUpStatusResponse":{"properties":{"settled_through":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settled Through"},"last_run_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Run At"},"last_run_clean":{"type":"boolean","title":"Last Run Clean"},"outstanding":{"items":{"$ref":"#/components/schemas/TrueUpMissResponse"},"type":"array","title":"Outstanding"},"last_triggered_execution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Triggered Execution"},"last_triggered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Triggered At"},"last_triggered_dry_run":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Last Triggered Dry Run"},"last_triggered_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Triggered By"}},"type":"object","required":["settled_through","last_run_at","last_run_clean","outstanding","last_triggered_execution","last_triggered_at","last_triggered_dry_run"],"title":"TrueUpStatusResponse"},"TrueUpTriggerResponse":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run"},"triggered_job":{"type":"boolean","title":"Triggered Job"},"execution_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Execution Name"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"}},"type":"object","required":["dry_run","triggered_job"],"title":"TrueUpTriggerResponse"},"TxnAdminItem":{"properties":{"transaction_id":{"type":"string","format":"uuid","title":"Transaction Id"},"reference":{"type":"string","title":"Reference"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"transaction_type":{"type":"string","title":"Transaction Type"},"is_credit":{"type":"boolean","title":"Is Credit"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"posted_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Posted Date"},"transaction_date":{"type":"string","format":"date-time","title":"Transaction Date"},"transaction_day":{"type":"string","format":"date","title":"Transaction Day"},"card_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Card Id"},"merchant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Name"},"merchant_mcc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Mcc"},"merchant_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Category"},"external_transaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Transaction Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["transaction_id","reference","account_id","transaction_type","is_credit","amount_cents","currency","status","posted_date","transaction_date","transaction_day","card_id","merchant_name","merchant_mcc","merchant_category","external_transaction_id","description"],"title":"TxnAdminItem","description":"An admin transaction row in the 360 Transactions tab."},"UnreadCountResponse":{"properties":{"count":{"type":"integer","minimum":0.0,"title":"Count"}},"type":"object","required":["count"],"title":"UnreadCountResponse","description":"Response model for unread notification count."},"UpdateAlertPreferenceRequest":{"properties":{"email_enabled":{"type":"boolean","title":"Email Enabled"}},"type":"object","required":["email_enabled"],"title":"UpdateAlertPreferenceRequest","description":"Set one toggle. The alert type comes from the path, the admin from the token."},"UpdateSettingsRequest":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"},"admin_prefs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Admin Prefs"},"user_defaults":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"User Defaults"}},"type":"object","title":"UpdateSettingsRequest","description":"Change the acting admin's settings. Blobs are validated server-side.\n\nEvery field is optional and only the fields sent are applied (#2880): a field\nnot sent is left as it was, and one sent empty (``\"\"``, ``{}`` or ``null``) is\ncleared. A block sent replaces the stored block wholesale.\n\nAny ``user_id`` in the body is ignored — settings are self-scoped to the token."},"UserCreateRequest":{"properties":{"firebase_uid":{"type":"string","maxLength":128,"minLength":1,"title":"Firebase Uid"},"email":{"type":"string","format":"email","title":"Email"},"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"},"first_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone"},"address_street1":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Street1"},"address_street2":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Street2"},"address_city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Address City"},"address_state":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Address State"},"address_zip":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Address Zip"}},"type":"object","required":["firebase_uid","email"],"title":"UserCreateRequest","description":"Request schema for creating a new user.\n\nThe five address parts are declared and then refused — see\n``_refuse_a_self_submitted_address``."},"UserUpdateRequest":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"},"first_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone"},"address_street1":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Street1"},"address_street2":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Street2"},"address_city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Address City"},"address_state":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Address State"},"address_zip":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Address Zip"}},"additionalProperties":false,"type":"object","title":"UserUpdateRequest","description":"Request schema for the change a person makes to their own profile (#2880).\n\nEvery field is optional, and only the fields sent are applied: a field sent\nempty (``\"\"`` or ``null``) is cleared, and a field not sent is left alone\n(#2424). The telephone number and display name are the person's to change;\nthe given and family names change in capitalisation only. The five address\nparts are refused rather than applied (``_refuse_an_unverified_address``),\nand so is anything else: ``extra=\"forbid\"`` refuses ``onboarding_status``,\nwhich only onboarding may assert (``@RID-USER-PROGRESS-002``), and\n``email``, the sign-in identity."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerificationSignalsResponse":{"properties":{"availability":{"type":"string","title":"Availability"},"identity_match":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Match"},"ein_irs_match":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein Irs Match"},"address_bureau_match":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Bureau Match"}},"type":"object","required":["availability","identity_match","ein_irs_match","address_bureau_match"],"title":"VerificationSignalsResponse","description":"Verification chips — PENDING until verification signals are persisted (task #1010)."},"VerifyIdentityRequest":{"properties":{"ssn_last4":{"type":"string","maxLength":4,"minLength":4,"pattern":"^\\d{4}$","title":"Ssn Last4"},"expiry_month":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Expiry Month"},"expiry_year":{"type":"integer","maximum":2099.0,"minimum":2020.0,"title":"Expiry Year"}},"type":"object","required":["ssn_last4","expiry_month","expiry_year"],"title":"VerifyIdentityRequest"},"VerifyIdentityResponse":{"properties":{"identity_verified":{"type":"boolean","title":"Identity Verified"},"verification_locked":{"type":"boolean","title":"Verification Locked"},"remaining_attempts":{"type":"integer","title":"Remaining Attempts"}},"type":"object","required":["identity_verified","verification_locked","remaining_attempts"],"title":"VerifyIdentityResponse"},"VerifyPersonaEmailRequest":{"properties":{"phone_number":{"type":"string","maxLength":20,"minLength":7,"title":"Phone Number","description":"A catalogued end-to-end test persona's phone, in any common US format"},"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email","description":"The run's login address; only an RFC 2606 example domain is ever touched"}},"type":"object","required":["phone_number","email"],"title":"VerifyPersonaEmailRequest","description":"The persona a run is driving, and the address its login was created under.\n\nThe address comes from the request, not the catalogue, because a walkthrough no longer signs\nup with the persona's catalogued address: each run types its own (``e2e-…@example.com``),\nsince #2900 refuses an address that already has an account."},"VerifyPersonaEmailResponse":{"properties":{"auth_user":{"type":"string","title":"Auth User","description":"verified | not_found | skipped:<why>. not_found means no login holds the persona's address yet: the run has not reached finalize."}},"type":"object","required":["auth_user"],"title":"VerifyPersonaEmailResponse","description":"What happened to the persona's login. ``200`` for every outcome, as with the recycle."},"VerifyPhoneRequest":{"properties":{"otp_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Otp Code"},"ssn_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssn Last4"}},"type":"object","title":"VerifyPhoneRequest","description":"Request schema for phone verification.\n\nFor providers with a client SDK (Prove Mobile Auth / OTP fallback),\n`otp_code` is None — the SDK owns the possession check and the result\ncomes from the server-side validate. For basic OTP providers it carries\nthe user-entered code.\n\n`ssn_last4` is the last four the applicant typed before the challenge, as\n`CreateSignupRequest` carried them. They are used only if the check spends\nthe session and a new one is opened in its place (#3399), because the\nprovider's session needs them. Optional: a caller that sends none is\nanswered as before, and a new session opened without them is opened\nwithout a challenge."},"VerifyTokenRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"VerifyTokenRequest","description":"Token verification request."},"VerifyTokenResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["valid"],"title":"VerifyTokenResponse","description":"Token verification response."},"WaiveFeeRequest":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"amount_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Cents","description":"Fee amount to waive in cents (positive)"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"},"interest":{"type":"boolean","title":"Interest","description":"Waive interest (INTEREST_FEE_WAIVER) instead of a fee (LATE_FEE_WAIVER)","default":false},"scope":{"$ref":"#/components/schemas/AdjustmentScope","default":"both"}},"type":"object","required":["account_id","amount_cents","reason"],"title":"WaiveFeeRequest","description":"Waive an assessed fee (or interest) as a credit adjustment."},"WarningResponse":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"}},"type":"object","required":["code","message"],"title":"WarningResponse","description":"Something to know before sending that does not stop the send."},"app__notification__api__admin_adverse_action_notices__CreditScoreResponse":{"properties":{"value":{"type":"integer","title":"Value"},"model":{"type":"string","title":"Model"},"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},"type":"object","required":["value","model","as_of"],"title":"CreditScoreResponse","description":"The credit score a notice states."},"app__shared__api__admin__webhooks_routes__HealthResponse":{"properties":{"environment":{"type":"string","title":"Environment"},"provisioned":{"type":"boolean","title":"Provisioned"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"active_signing_keys":{"type":"integer","title":"Active Signing Keys"},"signing_key_expiries":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array","title":"Signing Key Expiries"},"subscriptions":{"type":"integer","title":"Subscriptions"},"unhandled_event_types":{"items":{"type":"string"},"type":"array","title":"Unhandled Event Types"},"abandoned_deliveries":{"type":"integer","title":"Abandoned Deliveries","default":0},"abandoned_delivery_types":{"additionalProperties":{"type":"integer"},"type":"object","title":"Abandoned Delivery Types","default":{}},"ruled_deliveries":{"type":"integer","title":"Ruled Deliveries","default":0}},"type":"object","required":["environment","provisioned","status","active_signing_keys","signing_key_expiries","subscriptions","unhandled_event_types"],"title":"HealthResponse"},"app__shared__api__auth__UserResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"email_verified":{"type":"boolean","title":"Email Verified"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["uid","email","email_verified","display_name"],"title":"UserResponse","description":"User information response."},"app__shared__api__credit_journey_models__CreditScoreResponse":{"properties":{"name":{"type":"string","title":"Name"},"credit_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Score"},"max_score":{"type":"integer","title":"Max Score"},"trend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trend"},"factors":{"items":{"$ref":"#/components/schemas/CreditFactorResponse"},"type":"array","title":"Factors"}},"type":"object","required":["name","credit_score","max_score","trend","factors"],"title":"CreditScoreResponse","description":"One bureau score on the credit-journey surface.\n\n``credit_score`` is the reading about the person; ``max_score`` is the\nceiling of the scale it is read on (850 for FICO, 100 for PAYDEX). The pair\nis asymmetric on purpose — see the note in\n``api/tests/integration/security/test_credit_score_is_scrubbed_from_logs.py``.\n\n``credit_score`` is ``None`` when no score has been obtained, and ``trend``\nis ``None`` with it: a score that does not exist has not moved either way."},"app__shared__api__health__HealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"database":{"type":"string","title":"Database"},"version":{"type":"string","title":"Version"},"timestamp":{"type":"string","title":"Timestamp"}},"type":"object","required":["status","database","version","timestamp"],"title":"HealthResponse","description":"Health check response."},"app__shared__api__payments_models__BankLinkAccountsRequest":{"properties":{"link_reference":{"type":"string","title":"Link Reference"}},"additionalProperties":false,"type":"object","required":["link_reference"],"title":"BankLinkAccountsRequest","description":"``POST /api/v1/payment-sources/bank-link/accounts``: the session's reference."},"app__shared__api__payments_models__BankLinkAccountsResponse":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/app__shared__api__payments_models__LinkableAccountResponse"},"type":"array","title":"Accounts"}},"type":"object","required":["accounts"],"title":"BankLinkAccountsResponse","description":"The checking and savings accounts the link offers. Empty means none."},"app__shared__api__payments_models__BankLinkSessionResponse":{"properties":{"link_reference":{"type":"string","title":"Link Reference"},"expires_at":{"type":"string","title":"Expires At"}},"type":"object","required":["link_reference","expires_at"],"title":"BankLinkSessionResponse","description":"What ``POST /api/v1/payment-sources/bank-link/session`` answers.\n\n``link_reference`` is the opaque reference the client opens the provider's\nhosted flow with and hands back on the next two calls. ``expires_at`` is\nISO-8601 UTC."},"app__shared__api__payments_models__LinkableAccountResponse":{"properties":{"account_id":{"type":"string","title":"Account Id"},"display_name":{"type":"string","title":"Display Name"},"account_type":{"type":"string","title":"Account Type"},"account_mask":{"type":"string","title":"Account Mask"}},"type":"object","required":["account_id","display_name","account_type","account_mask"],"title":"LinkableAccountResponse","description":"One account the cardholder may choose. Display values only, never a full number."},"app__signup__models__bank_link__BankLinkAccountsRequest":{"properties":{"link_reference":{"type":"string","title":"Link Reference"}},"type":"object","required":["link_reference"],"title":"BankLinkAccountsRequest","description":"``POST /{id}/bank-link/accounts``: the reference the session answered with."},"app__signup__models__bank_link__BankLinkAccountsResponse":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/app__signup__models__bank_link__LinkableAccountResponse"},"type":"array","title":"Accounts"}},"type":"object","required":["accounts"],"title":"BankLinkAccountsResponse","description":"The checking and savings accounts the link offers. Empty means none."},"app__signup__models__bank_link__BankLinkSessionResponse":{"properties":{"link_token":{"type":"string","title":"Link Token"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["link_token"],"title":"BankLinkSessionResponse","description":"What ``POST /{id}/bank-link/session`` answers.\n\n``link_token`` is the opaque reference the client opens the provider's\nhosted flow with and hands back on the next two calls. ``expires_at`` is\nISO-8601 UTC (``...Z``), or ``None`` when the provider states no expiry."},"app__signup__models__bank_link__LinkableAccountResponse":{"properties":{"account_id":{"type":"string","title":"Account Id"},"display_name":{"type":"string","title":"Display Name"},"account_type":{"type":"string","title":"Account Type"},"account_mask":{"type":"string","title":"Account Mask"}},"type":"object","required":["account_id","display_name","account_type","account_mask"],"title":"LinkableAccountResponse","description":"One account the applicant may choose. Display values only, never a full number."},"app__user__api__routes__UserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"firebase_uid":{"type":"string","title":"Firebase Uid"},"email":{"type":"string","title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"onboarding_status":{"type":"string","title":"Onboarding Status","default":"not_started"},"address_street1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Street1"},"address_street2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Street2"},"address_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address City"},"address_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address State"},"address_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Zip"},"preview_tabs":{"items":{"type":"string"},"type":"array","title":"Preview Tabs"},"shown_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shown Name"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","firebase_uid","email","display_name","created_at","updated_at"],"title":"UserResponse","description":"Response schema for user in API responses."}}}}