{"openapi":"3.1.0","info":{"title":"PY-GW — Sente Integration Gateway","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}},"/alive":{"get":{"summary":"Alive","operationId":"alive_alive_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Alive Alive Get"}}}}}}},"/health/ready":{"get":{"summary":"Health Ready","description":"Integration-test readiness gate (§5.3z).\n\nReturns 200 + a per-service status payload when every downstream service\nPY-GW's PlatformHealthChecker knows about is healthy; returns 503 with the\nsame payload otherwise. A test runner polls this until 200 (bounded,\nsub-minute) before starting the suite — no fixed `time.sleep(N)` that\neither oversleeps or races a slow cold start.\n\nPhase 10.2: includes a NATS connectivity check via the event transport's\ninternal connection state.","operationId":"health_ready_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Ready Health Ready Get"}}}}}}},"/v1/activity":{"get":{"summary":"List Activity","description":"Return recent activity feed entries, newest first.\n\nUses the activity-feed pools on ``app.state`` — the read replica\n(``app.state.activity_read_router``) when configured and healthy, else\nthe primary pool (``app.state.activity_db_pool``). If no pool is\nconfigured at all (no ``GATEWAY_ACTIVITY_DB_DSN`` env var), returns an\nempty list rather than failing — the activity feed is an optional\nnon-critical read path.","operationId":"list_activity_v1_activity_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Max entries to return","default":50,"title":"Limit"},"description":"Max entries to return"},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor: return entries before this id","title":"Before Id"},"description":"Cursor: return entries before this 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":{"type":"object","additionalProperties":true},"title":"Response List Activity V1 Activity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/{rail}":{"post":{"summary":"Ingest","operationId":"ingest_webhook__rail__post","parameters":[{"name":"rail","in":"path","required":true,"schema":{"type":"string","title":"Rail"}},{"name":"X-Signature","in":"header","required":true,"schema":{"type":"string","title":"X-Signature"}},{"name":"X-Timestamp","in":"header","required":true,"schema":{"type":"string","title":"X-Timestamp"}},{"name":"X-Nonce","in":"header","required":true,"schema":{"type":"string","title":"X-Nonce"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Webhook  Rail  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/callbacks/mpesa/stk-push":{"post":{"tags":["mpesa"],"summary":"Stk Push Callback","description":"Handle M-PESA STK Push result callback.\n\nCalled by Safaricom when a customer completes (enters PIN) or cancels\nan STK Push payment. The callback is idempotent — Safaricom may send\nduplicates; the handler checks for already-processed CheckoutRequestIDs\nbefore acting.","operationId":"stk_push_callback_v1_callbacks_mpesa_stk_push_post","parameters":[{"name":"X-Callback-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Callback-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Stk Push Callback V1 Callbacks Mpesa Stk Push Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/callbacks/mpesa/b2c-result":{"post":{"tags":["mpesa"],"summary":"B2C Result Callback","description":"Handle M-PESA B2C payment result callback.\n\nCalled by Safaricom when a B2C disbursement completes or fails.\nSame idempotency and logging contract as the STK Push handler above.","operationId":"b2c_result_callback_v1_callbacks_mpesa_b2c_result_post","parameters":[{"name":"X-Callback-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Callback-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response B2C Result Callback V1 Callbacks Mpesa B2C Result Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/callbacks/mpesa/b2c-timeout":{"post":{"tags":["mpesa"],"summary":"B2C Timeout Callback","description":"Handle M-PESA B2C queue timeout callback (when the request expires\nbefore being processed).","operationId":"b2c_timeout_callback_v1_callbacks_mpesa_b2c_timeout_post","parameters":[{"name":"X-Callback-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Callback-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response B2C Timeout Callback V1 Callbacks Mpesa B2C Timeout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/callbacks/mpesa/balance-result":{"post":{"tags":["mpesa"],"summary":"Balance Result Callback","description":"Handle M-PESA Account Balance result callback (Wave 33 §3 /\nWave 39 §8.1) — the async delivery half of\n`MpesaAdapter.account_balance()`'s `ResultURL`. This is the platform's\nOWN business-shortcode balance (working/utility/MMF accounts), never a\ncustomer's — no PII scrubbing needed for the balance figures\nthemselves, unlike the STK/B2C customer-payment callbacks above.\n\nCapture is audit-logging only (matching this platform's OTel/Grafana\nmonitoring convention, not an ad-hoc DB table) — an ops dashboard can\nalert on `gateway.mpesa.balance_result` counter absence (a query\nthat never got a result) or grep the structured log for the actual\nfigures.","operationId":"balance_result_callback_v1_callbacks_mpesa_balance_result_post","parameters":[{"name":"X-Callback-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Callback-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Balance Result Callback V1 Callbacks Mpesa Balance Result Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/callbacks/mpesa/balance-timeout":{"post":{"tags":["mpesa"],"summary":"Balance Timeout Callback","description":"Handle M-PESA Account Balance queue timeout callback (the query\nexpired before Safaricom processed it).","operationId":"balance_timeout_callback_v1_callbacks_mpesa_balance_timeout_post","parameters":[{"name":"X-Callback-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Callback-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Balance Timeout Callback V1 Callbacks Mpesa Balance Timeout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/callbacks/mtn-momo/requesttopay":{"post":{"tags":["mtn-momo"],"summary":"Request To Pay Callback","description":"Handle MTN MoMo Request to Pay result callback.\n\nMTN posts the final `status` (`SUCCESSFUL`/`FAILED`) keyed by the\n`X-Reference-Id` the collection request was submitted with — which IS\nthe client `Idempotency-Key`/`externalId` PY-PRODUCTS used, so no\nseparate lookup table is required (but IS why this handler must be\nauthenticated — see module docstring).","operationId":"request_to_pay_callback_v1_callbacks_mtn_momo_requesttopay_post","parameters":[{"name":"X-Callback-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Callback-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request To Pay Callback V1 Callbacks Mtn Momo Requesttopay Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/callbacks/mtn-momo/transfer":{"post":{"tags":["mtn-momo"],"summary":"Transfer Callback","description":"Handle MTN MoMo Transfer (disbursement) result callback. Same\nauthentication/idempotency/logging contract as\n`request_to_pay_callback` above.","operationId":"transfer_callback_v1_callbacks_mtn_momo_transfer_post","parameters":[{"name":"X-Callback-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Callback-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Transfer Callback V1 Callbacks Mtn Momo Transfer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/callbacks/airtel/collections":{"post":{"tags":["airtel"],"summary":"Collections Callback","description":"Handle Airtel Money collection result callback. `transaction.id` IS\nthe client `Idempotency-Key` the collection request was submitted\nwith, so no separate lookup table is required (but IS why this\nhandler must be authenticated — see module docstring).","operationId":"collections_callback_v1_callbacks_airtel_collections_post","parameters":[{"name":"X-Callback-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Callback-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Collections Callback V1 Callbacks Airtel Collections Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/callbacks/airtel/disbursements":{"post":{"tags":["airtel"],"summary":"Disbursements Callback","description":"Handle Airtel Money disbursement result callback. Same\nauthentication/idempotency/logging contract as `collections_callback`\nabove.","operationId":"disbursements_callback_v1_callbacks_airtel_disbursements_post","parameters":[{"name":"X-Callback-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Callback-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Disbursements Callback V1 Callbacks Airtel Disbursements Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/callbacks/orange-money/notify":{"post":{"tags":["orange-money"],"summary":"Notify Callback","description":"Handle Orange Money web-payment notification. `order_id` IS the\nclient `Idempotency-Key` the web-payment request was submitted with,\nso no separate lookup table is required (but IS why this handler must\nbe authenticated — see module docstring). `notif_token` arrives as a\nquery parameter on the `notif_url` Orange calls back to.","operationId":"notify_callback_v1_callbacks_orange_money_notify_post","parameters":[{"name":"notif_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notif Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Notify Callback V1 Callbacks Orange Money Notify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses":{"post":{"tags":["businesses"],"summary":"Create Business","operationId":"create_business_v1_businesses_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Business V1 Businesses Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["businesses"],"summary":"List My Businesses","description":"The businesses the caller is an active member of (the switcher),\nthrough the user's read cache. Any other principal (staff, apps) simply\nhas none.","operationId":"list_my_businesses_v1_businesses_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":"object","additionalProperties":true,"title":"Response List My Businesses V1 Businesses Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}":{"get":{"tags":["businesses"],"summary":"Get Business","operationId":"get_business_v1_businesses__business_id__get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Business V1 Businesses  Business Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/workspaces":{"get":{"tags":["businesses"],"summary":"List Workspaces","operationId":"list_workspaces_v1_businesses__business_id__workspaces_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Workspaces V1 Businesses  Business Id  Workspaces Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Create Workspace","description":"Opens the workspace's wallet, then issues its till. A retry with the\nsame key returns the same workspace and finishes a till that failed.","operationId":"create_workspace_v1_businesses__business_id__workspaces_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Workspace V1 Businesses  Business Id  Workspaces Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/payments/destinations":{"get":{"tags":["businesses"],"summary":"List Move Destinations","description":"Every workspace a move between workspaces may land in — the whole\nbusiness, not just the member's scope: branch staff send the day's\ntakings to Main without seeing Main. The name, currency, whether it's a\nsandbox workspace (sandbox money only moves between sandbox ones) and\nits till — a till code is printed for payers anyway — show to members\nwho may pay from somewhere; never a balance or activity.","operationId":"list_move_destinations_v1_businesses__business_id__payments_destinations_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Move Destinations V1 Businesses  Business Id  Payments Destinations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/workspaces/{wallet_id}":{"patch":{"tags":["businesses"],"summary":"Update Workspace","operationId":"update_workspace_v1_businesses__business_id__workspaces__wallet_id__patch","parameters":[{"name":"wallet_id","in":"path","required":true,"schema":{"type":"string","title":"Wallet Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Workspace V1 Businesses  Business Id  Workspaces  Wallet Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/tills":{"get":{"tags":["businesses"],"summary":"List Tills","operationId":"list_tills_v1_businesses__business_id__tills_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Tills V1 Businesses  Business Id  Tills Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/members":{"get":{"tags":["businesses"],"summary":"List Members","operationId":"list_members_v1_businesses__business_id__members_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Pagesize"}},{"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":true,"title":"Response List Members V1 Businesses  Business Id  Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/members/{user_id}":{"patch":{"tags":["businesses"],"summary":"Set Member Status","operationId":"set_member_status_v1_businesses__business_id__members__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Member Status V1 Businesses  Business Id  Members  User Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/invitations":{"post":{"tags":["businesses"],"summary":"Invite Member","description":"Invites by `email` (a single-use, expiring link) or by `phone`\n(E.164; a text, and the invitation waits in that number's app). The\ncontact goes only to C-IDENTITY, which tokenizes it; it is never logged\nor echoed back.","operationId":"invite_member_v1_businesses__business_id__invitations_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Invite Member V1 Businesses  Business Id  Invitations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["businesses"],"summary":"List Invitations","operationId":"list_invitations_v1_businesses__business_id__invitations_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Invitations V1 Businesses  Business Id  Invitations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/invitations/{invitation_id}/resend":{"post":{"tags":["businesses"],"summary":"Resend Invitation","operationId":"resend_invitation_v1_businesses__business_id__invitations__invitation_id__resend_post","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Resend Invitation V1 Businesses  Business Id  Invitations  Invitation Id  Resend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/invitations/{invitation_id}":{"delete":{"tags":["businesses"],"summary":"Cancel Invitation","operationId":"cancel_invitation_v1_businesses__business_id__invitations__invitation_id__delete","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Cancel Invitation V1 Businesses  Business Id  Invitations  Invitation Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/business-invitations/{invitation_id}/accept":{"post":{"tags":["businesses"],"summary":"Accept Invitation","description":"Joins the business the invitation is for. The secret comes from the\ninvitation link; any mismatch answers the same 404.","operationId":"accept_invitation_v1_business_invitations__invitation_id__accept_post","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accept Invitation V1 Business Invitations  Invitation Id  Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/business-invitations":{"get":{"tags":["businesses"],"summary":"List My Invitations","description":"Businesses that have invited the signed-in account, by its phone\nnumber or its verified email.","operationId":"list_my_invitations_v1_me_business_invitations_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":"object","additionalProperties":true,"title":"Response List My Invitations V1 Me Business Invitations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/business-invitations/{invitation_id}/accept":{"post":{"tags":["businesses"],"summary":"Accept My Invitation","description":"Joins from the app; the invitation must be addressed to this account.","operationId":"accept_my_invitation_v1_me_business_invitations__invitation_id__accept_post","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation 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":true,"title":"Response Accept My Invitation V1 Me Business Invitations  Invitation Id  Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/roles":{"get":{"tags":["businesses"],"summary":"List Roles","operationId":"list_roles_v1_businesses__business_id__roles_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Roles V1 Businesses  Business Id  Roles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Create Role","operationId":"create_role_v1_businesses__business_id__roles_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Role V1 Businesses  Business Id  Roles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/roles/{role_id}":{"put":{"tags":["businesses"],"summary":"Update Role","description":"Everyone holding the role follows at once, so the permission cache\nis dropped: a permission taken away must stop working now.","operationId":"update_role_v1_businesses__business_id__roles__role_id__put","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Role V1 Businesses  Business Id  Roles  Role Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["businesses"],"summary":"Remove Role","operationId":"remove_role_v1_businesses__business_id__roles__role_id__delete","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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"}}}}}}},"/v1/businesses/{business_id}/groups":{"get":{"tags":["businesses"],"summary":"List Groups","operationId":"list_groups_v1_businesses__business_id__groups_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Groups V1 Businesses  Business Id  Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Create Group","operationId":"create_group_v1_businesses__business_id__groups_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Group V1 Businesses  Business Id  Groups Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/groups/{group_id}":{"put":{"tags":["businesses"],"summary":"Update Group","description":"Membership decides permissions, so the cache is dropped here too.","operationId":"update_group_v1_businesses__business_id__groups__group_id__put","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Group V1 Businesses  Business Id  Groups  Group Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["businesses"],"summary":"Remove Group","operationId":"remove_group_v1_businesses__business_id__groups__group_id__delete","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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"}}}}}}},"/v1/businesses/{business_id}/grants":{"get":{"tags":["businesses"],"summary":"List Grants","operationId":"list_grants_v1_businesses__business_id__grants_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"memberUserId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memberuserid"}},{"name":"groupId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Groupid"}},{"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":true,"title":"Response List Grants V1 Businesses  Business Id  Grants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Grant Role","operationId":"grant_role_v1_businesses__business_id__grants_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Grant Role V1 Businesses  Business Id  Grants Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/grants/{grant_id}":{"delete":{"tags":["businesses"],"summary":"Revoke Grant","operationId":"revoke_grant_v1_businesses__business_id__grants__grant_id__delete","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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"}}}}}}},"/v1/businesses/{business_id}/transactions":{"get":{"tags":["businesses"],"summary":"List Transactions","description":"The business's checkout transactions, newest first. Filters run in\nC-TRANSFERS' SQL — one page per call, whatever the filters. A member\nwith a listed-workspace grant sees only their wallets' money (a\nbusiness-wide holder sees every workspace); a member who may see none\nfinds no business (404).","operationId":"list_transactions_v1_businesses__business_id__transactions_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":0,"default":0,"title":"Pagesize"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"workspaceId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspaceid"}},{"name":"rail","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Rail"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"title":"Country"}},{"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":true,"title":"Response List Transactions V1 Businesses  Business Id  Transactions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/compliance-signals":{"get":{"tags":["businesses"],"summary":"Get Compliance Signals","description":"How many of the business's own checkouts compliance is holding, and\nthe worst outcome among them — scoped to the member's visible wallets\nexactly like the transactions read (a listed grant sees only their\nwallets' holds). C-COMPLY only ever sees opaque session ids this\nbusiness already owns — never a business identity or PII.","operationId":"get_compliance_signals_v1_businesses__business_id__compliance_signals_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Compliance Signals V1 Businesses  Business Id  Compliance Signals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/analytics":{"get":{"tags":["businesses"],"summary":"Get Analytics","description":"The business's dashboard from PY-ANALYTICS, whose projection is keyed\nby the merchant id its checkouts carry (the owner principal); through\nthe business's read cache (aggregates only).","operationId":"get_analytics_v1_businesses__business_id__analytics_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"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":true,"title":"Response Get Analytics V1 Businesses  Business Id  Analytics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/workspaces/{wallet_id}/checkout-sessions":{"post":{"tags":["businesses"],"summary":"Create Checkout Session","description":"A payment link/QR that settles into this workspace, in its currency.\nThe merchant id is always the business's own owner principal — never a\nclient value.","operationId":"create_checkout_session_v1_businesses__business_id__workspaces__wallet_id__checkout_sessions_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Checkout Session V1 Businesses  Business Id  Workspaces  Wallet Id  Checkout Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/me":{"get":{"tags":["businesses"],"summary":"Get My Permissions","description":"The signed-in member's effective permissions on this business — the\nconsole shell's permission-aware navigation. A permission counts when\nthe member holds it business-wide OR on any of their wallets (a listed\ngrant still unlocks the rail's section; the reads behind it are scoped\nto those wallets server-side). A caller holding nothing finds no\nbusiness (404, never an empty 200) — the tenant-isolation contract\nevery business route keeps.","operationId":"get_my_permissions_v1_businesses__business_id__me_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get My Permissions V1 Businesses  Business Id  Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/balances":{"get":{"tags":["businesses"],"summary":"Get Workspace Balances","description":"Each workspace's wallet balance (Home, business-platform §4): read\nstraight from C-LEDGER via the account ref C-IDENTITY registered for the\nworkspace wallet — C-LEDGER is the ONLY source of truth for a balance,\nnever a client-side sum. Listed-grant members see only their wallets;\na member who may see none finds no business (404). A wallet whose\nbalance cannot be read says `unavailable` — a guessed zero would be a\nlie about money (money-invariants).","operationId":"get_workspace_balances_v1_businesses__business_id__balances_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Workspace Balances V1 Businesses  Business Id  Balances Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/branding":{"get":{"tags":["businesses"],"summary":"Get Branding","operationId":"get_branding_v1_businesses__business_id__branding_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Branding V1 Businesses  Business Id  Branding Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["businesses"],"summary":"Update Branding","description":"Each field optional; an empty value clears it.","operationId":"update_branding_v1_businesses__business_id__branding_put","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Branding V1 Businesses  Business Id  Branding Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/branding/logo":{"post":{"tags":["businesses"],"summary":"Upload Logo","description":"Store a logo (PNG, JPEG or WebP, at most 1 MB) under the public prefix.\nSaving the returned ``logoUrl`` through PUT is what puts it on checkout.","operationId":"upload_logo_v1_businesses__business_id__branding_logo_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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_logo_v1_businesses__business_id__branding_logo_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Logo V1 Businesses  Business Id  Branding Logo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/fees":{"get":{"tags":["businesses"],"summary":"Business Fees","description":"The fee on each sample amount (integer minor units), per kind of movement.","operationId":"business_fees_v1_businesses__business_id__fees_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"currency","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Z]{3}$","title":"Currency"}},{"name":"amounts","in":"query","required":true,"schema":{"type":"array","items":{"type":"integer"},"title":"Amounts"}},{"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":true,"title":"Response Business Fees V1 Businesses  Business Id  Fees Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/business-categories":{"get":{"tags":["businesses"],"summary":"List Business Categories","description":"\"What best describes your business\" — C-COMPLY's taxonomy for a country.","operationId":"list_business_categories_v1_business_categories_get","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":2,"title":"Country"}},{"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":true,"title":"Response List Business Categories V1 Business Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/onboarding":{"get":{"tags":["businesses"],"summary":"Get Onboarding","operationId":"get_onboarding_v1_businesses__business_id__onboarding_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Onboarding V1 Businesses  Business Id  Onboarding Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/onboarding/steps/{step}":{"put":{"tags":["businesses"],"summary":"Save Onboarding Step","operationId":"save_onboarding_step_v1_businesses__business_id__onboarding_steps__step__put","parameters":[{"name":"step","in":"path","required":true,"schema":{"type":"string","title":"Step"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Save Onboarding Step V1 Businesses  Business Id  Onboarding Steps  Step  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/onboarding/documents":{"post":{"tags":["businesses"],"summary":"Upload Onboarding Document","description":"`{kind, contentBase64, contentType}` — forwarded byte-exact; the bytes\nend up only in P-SECPROXY's regional vault.","operationId":"upload_onboarding_document_v1_businesses__business_id__onboarding_documents_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Upload Onboarding Document V1 Businesses  Business Id  Onboarding Documents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/onboarding/submit":{"post":{"tags":["businesses"],"summary":"Submit Onboarding","operationId":"submit_onboarding_v1_businesses__business_id__onboarding_submit_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Submit Onboarding V1 Businesses  Business Id  Onboarding Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/onboarding/upgrade-to-company":{"post":{"tags":["businesses"],"summary":"Upgrade To Company","operationId":"upgrade_to_company_v1_businesses__business_id__onboarding_upgrade_to_company_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Upgrade To Company V1 Businesses  Business Id  Onboarding Upgrade To Company Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/activity":{"get":{"tags":["businesses"],"summary":"List Activity","operationId":"list_activity_v1_businesses__business_id__activity_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Pagesize"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"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":true,"title":"Response List Activity V1 Businesses  Business Id  Activity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/audit":{"get":{"tags":["businesses"],"summary":"List Audit","operationId":"list_audit_v1_businesses__business_id__audit_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Pagesize"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Action"}},{"name":"actorId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Actorid"}},{"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":true,"title":"Response List Audit V1 Businesses  Business Id  Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/payments":{"post":{"tags":["businesses"],"summary":"Create Payment","description":"Creates the payment and submits it in one step: it then waits for\napproval under the business's policy, or — when no band applies — pays\nat once. A retry with the same key replays both steps.","operationId":"create_payment_v1_businesses__business_id__payments_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Payment V1 Businesses  Business Id  Payments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["businesses"],"summary":"List Payments","description":"Payments out, newest first. A listed-workspace grant sees only its\nworkspaces' payments. `waitingForMe` lists what this member may approve\nnow (C-TRANSFERS applies the snapshotted policy).","operationId":"list_payments_v1_businesses__business_id__payments_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"workspaceId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspaceid"}},{"name":"waitingForMe","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Waitingforme"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Pagesize"}},{"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":true,"title":"Response List Payments V1 Businesses  Business Id  Payments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/payments/quote":{"post":{"tags":["businesses"],"summary":"Quote Payment","description":"The member-facing quote for a workspace transfer (business-platform\nD20): a cross-currency move shows the conversion — the amount that will\nland, the effective rate and the corridor fee — before the payment waits\nfor approval. C-TRANSFERS mints the same wallet-transfer quote the\nexecutor re-quotes at execution time, as the business's owner principal;\nthe quote id travels with the payment (`fxQuoteId`), never a rate the\nclient made up (no implicit FX, ever).","operationId":"quote_payment_v1_businesses__business_id__payments_quote_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Quote Payment V1 Businesses  Business Id  Payments Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/payments/{payment_id}":{"get":{"tags":["businesses"],"summary":"Get Payment","operationId":"get_payment_v1_businesses__business_id__payments__payment_id__get","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Payment V1 Businesses  Business Id  Payments  Payment Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/payments/{payment_id}/approve":{"post":{"tags":["businesses"],"summary":"Approve Payment","operationId":"approve_payment_v1_businesses__business_id__payments__payment_id__approve_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Approve Payment V1 Businesses  Business Id  Payments  Payment Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/payments/{payment_id}/reject":{"post":{"tags":["businesses"],"summary":"Reject Payment","operationId":"reject_payment_v1_businesses__business_id__payments__payment_id__reject_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Reject Payment V1 Businesses  Business Id  Payments  Payment Id  Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/payments/{payment_id}/cancel":{"post":{"tags":["businesses"],"summary":"Cancel Payment","operationId":"cancel_payment_v1_businesses__business_id__payments__payment_id__cancel_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Cancel Payment V1 Businesses  Business Id  Payments  Payment Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/payees":{"get":{"tags":["businesses"],"summary":"List Payees","operationId":"list_payees_v1_businesses__business_id__payees_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Payees V1 Businesses  Business Id  Payees Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Create Payee","operationId":"create_payee_v1_businesses__business_id__payees_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Payee V1 Businesses  Business Id  Payees Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/payees/{payee_id}":{"patch":{"tags":["businesses"],"summary":"Update Payee","operationId":"update_payee_v1_businesses__business_id__payees__payee_id__patch","parameters":[{"name":"payee_id","in":"path","required":true,"schema":{"type":"string","title":"Payee Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Payee V1 Businesses  Business Id  Payees  Payee Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["businesses"],"summary":"Archive Payee","operationId":"archive_payee_v1_businesses__business_id__payees__payee_id__delete","parameters":[{"name":"payee_id","in":"path","required":true,"schema":{"type":"string","title":"Payee Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Archive Payee V1 Businesses  Business Id  Payees  Payee Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/approval-policies":{"get":{"tags":["businesses"],"summary":"List Policies","operationId":"list_policies_v1_businesses__business_id__approval_policies_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Policies V1 Businesses  Business Id  Approval Policies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Set Policy","description":"One band: `approvalsRequired` 0 retires it.","operationId":"set_policy_v1_businesses__business_id__approval_policies_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Policy V1 Businesses  Business Id  Approval Policies Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/limits":{"get":{"tags":["businesses"],"summary":"List Limits","operationId":"list_limits_v1_businesses__business_id__limits_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Limits V1 Businesses  Business Id  Limits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Set Limit","description":"One limit; an amount of 0 clears it.","operationId":"set_limit_v1_businesses__business_id__limits_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Limit V1 Businesses  Business Id  Limits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/bulk/template":{"get":{"tags":["businesses"],"summary":"Bulk Template","operationId":"bulk_template_v1_businesses__business_id__bulk_template_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(csv|xlsx)$","default":"csv","title":"Format"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/bulk/validate":{"post":{"tags":["businesses"],"summary":"Validate Bulk","description":"Parses and checks every row without creating anything. Returns the\nrows (for the grid) and every problem.","operationId":"validate_bulk_v1_businesses__business_id__bulk_validate_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_validate_bulk_v1_businesses__business_id__bulk_validate_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Validate Bulk V1 Businesses  Business Id  Bulk Validate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/bulk/batches":{"post":{"tags":["businesses"],"summary":"Create Batch","description":"Creates the batch from the grid's rows and submits it for approval\nin one step. Any problem → 422 with every problem and nothing created.","operationId":"create_batch_v1_businesses__business_id__bulk_batches_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["businesses"],"summary":"List Batches","description":"Batches, newest first. A listed-workspace grant sees only its\nworkspaces' batches (a member who may see none finds no business).","operationId":"list_batches_v1_businesses__business_id__bulk_batches_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"workspaceId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspaceid"}},{"name":"waitingForMe","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Waitingforme"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Pagesize"}},{"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":true,"title":"Response List Batches V1 Businesses  Business Id  Bulk Batches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/bulk/batches/{batch_id}":{"get":{"tags":["businesses"],"summary":"Get Batch","operationId":"get_batch_v1_businesses__business_id__bulk_batches__batch_id__get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Batch V1 Businesses  Business Id  Bulk Batches  Batch Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/bulk/batches/{batch_id}/report.csv":{"get":{"tags":["businesses"],"summary":"Batch Report","description":"Per-line results as CSV. Every cell that a spreadsheet could read as a\nformula is neutralised with a leading quote (CSV injection).","operationId":"batch_report_v1_businesses__business_id__bulk_batches__batch_id__report_csv_get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/bulk/batches/{batch_id}/{action}":{"post":{"tags":["businesses"],"summary":"Decide Batch","operationId":"decide_batch_v1_businesses__business_id__bulk_batches__batch_id___action__post","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Decide Batch V1 Businesses  Business Id  Bulk Batches  Batch Id   Action  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/scheduled-payments":{"get":{"tags":["businesses"],"summary":"List Schedules","operationId":"list_schedules_v1_businesses__business_id__scheduled_payments_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Schedules V1 Businesses  Business Id  Scheduled Payments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Create Schedule","operationId":"create_schedule_v1_businesses__business_id__scheduled_payments_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Schedule V1 Businesses  Business Id  Scheduled Payments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/scheduled-payments/{schedule_id}/status":{"post":{"tags":["businesses"],"summary":"Set Schedule Status","operationId":"set_schedule_status_v1_businesses__business_id__scheduled_payments__schedule_id__status_post","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Schedule Status V1 Businesses  Business Id  Scheduled Payments  Schedule Id  Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/sweeps":{"get":{"tags":["businesses"],"summary":"List Sweeps","operationId":"list_sweeps_v1_businesses__business_id__sweeps_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Sweeps V1 Businesses  Business Id  Sweeps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/sweeps/{workspace_id}":{"put":{"tags":["businesses"],"summary":"Set Sweep","description":"bank.manage: a sweep decides where the business's money goes.","operationId":"set_sweep_v1_businesses__business_id__sweeps__workspace_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Sweep V1 Businesses  Business Id  Sweeps  Workspace Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/checkout-payments/{checkout_session_id}":{"get":{"tags":["businesses"],"summary":"Get Checkout Payment","operationId":"get_checkout_payment_v1_businesses__business_id__checkout_payments__checkout_session_id__get","parameters":[{"name":"checkout_session_id","in":"path","required":true,"schema":{"type":"string","title":"Checkout Session Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Checkout Payment V1 Businesses  Business Id  Checkout Payments  Checkout Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/refunds":{"get":{"tags":["businesses"],"summary":"List Refunds","operationId":"list_refunds_v1_businesses__business_id__refunds_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"checkoutSessionId","in":"query","required":false,"schema":{"type":"string","default":"","title":"Checkoutsessionid"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Pagesize"}},{"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":true,"title":"Response List Refunds V1 Businesses  Business Id  Refunds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Create Refund","operationId":"create_refund_v1_businesses__business_id__refunds_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Refund V1 Businesses  Business Id  Refunds Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/disputes":{"get":{"tags":["businesses"],"summary":"List Disputes","description":"Disputes on the business's payments, newest first. A listed-workspace\ngrant sees only disputes on its workspaces' payments (a dispute names\nits checkout, whose workspace decides).","operationId":"list_disputes_v1_businesses__business_id__disputes_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Pagesize"}},{"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":true,"title":"Response List Disputes V1 Businesses  Business Id  Disputes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/disputes/{dispute_id}/evidence":{"post":{"tags":["businesses"],"summary":"Submit Evidence","operationId":"submit_evidence_v1_businesses__business_id__disputes__dispute_id__evidence_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","title":"Dispute Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Evidence V1 Businesses  Business Id  Disputes  Dispute Id  Evidence Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/disputes/{dispute_id}/accept":{"post":{"tags":["businesses"],"summary":"Accept Dispute","description":"Refund what is left of the payment, then close the dispute. The\nrefund's key derives from the client key, so a retry after a partial\nfailure converges on the same refund.","operationId":"accept_dispute_v1_businesses__business_id__disputes__dispute_id__accept_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","title":"Dispute Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accept Dispute V1 Businesses  Business Id  Disputes  Dispute Id  Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/disputes/{dispute_id}/documents":{"post":{"tags":["businesses"],"summary":"Upload Evidence Document","description":"Upload one evidence document (PDF, JPEG or PNG, at most 10 MB). The\nbytes go to the object store, never under the public prefix; the\nreturned id is what `submit_evidence` takes. C-SETTLE keeps only the id.","operationId":"upload_evidence_document_v1_businesses__business_id__disputes__dispute_id__documents_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","title":"Dispute Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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_evidence_document_v1_businesses__business_id__disputes__dispute_id__documents_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Evidence Document V1 Businesses  Business Id  Disputes  Dispute Id  Documents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["businesses"],"summary":"List Evidence Documents","description":"The documents uploaded for a dispute (filenames for the answer form;\nC-SETTLE's own view carries the ids).","operationId":"list_evidence_documents_v1_businesses__business_id__disputes__dispute_id__documents_get","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","title":"Dispute Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Evidence Documents V1 Businesses  Business Id  Disputes  Dispute Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/disputes/{dispute_id}/documents/{document_id}":{"get":{"tags":["businesses"],"summary":"Download Evidence Document","description":"Download an uploaded evidence document. The store row's own\nbusiness_id is the gate — a document from another business's dispute\nanswers 404 here.","operationId":"download_evidence_document_v1_businesses__business_id__disputes__dispute_id__documents__document_id__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":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/customers":{"get":{"tags":["businesses"],"summary":"List Customers","operationId":"list_customers_v1_businesses__business_id__customers_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Pagesize"}},{"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":true,"title":"Response List Customers V1 Businesses  Business Id  Customers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Create Customer","operationId":"create_customer_v1_businesses__business_id__customers_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Customer V1 Businesses  Business Id  Customers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/customers/{customer_id}":{"patch":{"tags":["businesses"],"summary":"Update Customer","operationId":"update_customer_v1_businesses__business_id__customers__customer_id__patch","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Customer V1 Businesses  Business Id  Customers  Customer Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["businesses"],"summary":"Archive Customer","operationId":"archive_customer_v1_businesses__business_id__customers__customer_id__delete","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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"}}}}}}},"/v1/businesses/{business_id}/invoices":{"get":{"tags":["businesses"],"summary":"List Invoices","operationId":"list_invoices_v1_businesses__business_id__invoices_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"customerId","in":"query","required":false,"schema":{"type":"string","default":"","title":"Customerid"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Pagesize"}},{"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":true,"title":"Response List Invoices V1 Businesses  Business Id  Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Create Invoice","description":"Lines carry quantity and unit amount; every total is computed by\nC-TRANSFERS (any client-sent total is ignored).","operationId":"create_invoice_v1_businesses__business_id__invoices_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Invoice V1 Businesses  Business Id  Invoices Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/invoices/{invoice_id}":{"get":{"tags":["businesses"],"summary":"Get Invoice","operationId":"get_invoice_v1_businesses__business_id__invoices__invoice_id__get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Invoice V1 Businesses  Business Id  Invoices  Invoice Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/invoices/{invoice_id}/{action}":{"post":{"tags":["businesses"],"summary":"Act On Invoice","operationId":"act_on_invoice_v1_businesses__business_id__invoices__invoice_id___action__post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Act On Invoice V1 Businesses  Business Id  Invoices  Invoice Id   Action  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/payment-links":{"get":{"tags":["businesses"],"summary":"List Links","operationId":"list_links_v1_businesses__business_id__payment_links_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Pagesize"}},{"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":true,"title":"Response List Links V1 Businesses  Business Id  Payment Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Create Link","operationId":"create_link_v1_businesses__business_id__payment_links_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Link V1 Businesses  Business Id  Payment Links Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/payment-links/{link_id}":{"patch":{"tags":["businesses"],"summary":"Update Link","operationId":"update_link_v1_businesses__business_id__payment_links__link_id__patch","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Link V1 Businesses  Business Id  Payment Links  Link Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/payment-links/{link_id}/deactivate":{"post":{"tags":["businesses"],"summary":"Deactivate Link","operationId":"deactivate_link_v1_businesses__business_id__payment_links__link_id__deactivate_post","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Deactivate Link V1 Businesses  Business Id  Payment Links  Link Id  Deactivate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/queries":{"get":{"tags":["businesses"],"summary":"List Queries","operationId":"list_queries_v1_businesses__business_id__queries_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Pagesize"}},{"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":true,"title":"Response List Queries V1 Businesses  Business Id  Queries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/queries/{query_id}":{"get":{"tags":["businesses"],"summary":"Get Query","operationId":"get_query_v1_businesses__business_id__queries__query_id__get","parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Query V1 Businesses  Business Id  Queries  Query Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/queries/{query_id}/reply":{"post":{"tags":["businesses"],"summary":"Reply To Query","operationId":"reply_to_query_v1_businesses__business_id__queries__query_id__reply_post","parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reply To Query V1 Businesses  Business Id  Queries  Query Id  Reply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/queries/{query_id}/close":{"post":{"tags":["businesses"],"summary":"Close Query","operationId":"close_query_v1_businesses__business_id__queries__query_id__close_post","parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Close Query V1 Businesses  Business Id  Queries  Query Id  Close Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/queries/{query_id}/escalate":{"post":{"tags":["businesses"],"summary":"Escalate Query","description":"Hands the query to Sente support: a real staff ticket in the CRM\nstore, linked back on the query. Escalating twice replays the same\nticket — never a second one.","operationId":"escalate_query_v1_businesses__business_id__queries__query_id__escalate_post","parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Escalate Query V1 Businesses  Business Id  Queries  Query Id  Escalate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/visitors":{"get":{"tags":["businesses"],"summary":"Get Visitors","description":"The hosted-page funnel (D16): per day and page kind, views of the\ninvoice and payment-link pages against checkouts started and payments\ncompleted — counted server-side by C-TRANSFERS, no cookies, no personal\ndata.","operationId":"get_visitors_v1_businesses__business_id__visitors_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}},{"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":true,"title":"Response Get Visitors V1 Businesses  Business Id  Visitors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/overview":{"get":{"tags":["businesses"],"summary":"Reports Overview","operationId":"reports_overview_v1_businesses__business_id__reports_overview_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"workspaceId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspaceid"}},{"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":true,"title":"Response Reports Overview V1 Businesses  Business Id  Reports Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/statements":{"post":{"tags":["businesses"],"summary":"Request Workspace Statement","operationId":"request_workspace_statement_v1_businesses__business_id__reports_statements_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Workspace Statement V1 Businesses  Business Id  Reports Statements Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["businesses"],"summary":"List Workspace Statements","description":"The member's own statement requests for this business — each delivers\nto the requester's email, so the list is per member, not per business.","operationId":"list_workspace_statements_v1_businesses__business_id__reports_statements_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Workspace Statements V1 Businesses  Business Id  Reports Statements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/reconciliation":{"get":{"tags":["businesses"],"summary":"Reconciliation Queue","operationId":"reconciliation_queue_v1_businesses__business_id__reports_reconciliation_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Pagesize"}},{"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":true,"title":"Response Reconciliation Queue V1 Businesses  Business Id  Reports Reconciliation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/reconciliation/{transfer_id}/category":{"post":{"tags":["businesses"],"summary":"Assign Reconciliation Category","description":"Tag an unmatched incoming movement. The write is a projection upsert\n(the ledger is untouched); PY-ANALYTICS 404s when the movement is not\nthis business's or lies outside the member's workspace scope.","operationId":"assign_reconciliation_category_v1_businesses__business_id__reports_reconciliation__transfer_id__category_post","parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string","title":"Transfer Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Assign Reconciliation Category V1 Businesses  Business Id  Reports Reconciliation  Transfer Id  Category Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/categories":{"get":{"tags":["businesses"],"summary":"List Report Categories","operationId":"list_report_categories_v1_businesses__business_id__reports_categories_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"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":true,"title":"Response List Report Categories V1 Businesses  Business Id  Reports Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/schedules":{"get":{"tags":["businesses"],"summary":"List Report Schedules","operationId":"list_report_schedules_v1_businesses__business_id__reports_schedules_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Report Schedules V1 Businesses  Business Id  Reports Schedules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["businesses"],"summary":"Create Report Schedule","description":"A recurring money summary emailed to chosen members (D11). The\ngateway verifies every recipient is an active member and the workspace\nis this business's; C-TRANSFERS stores ids only, never contacts.","operationId":"create_report_schedule_v1_businesses__business_id__reports_schedules_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Report Schedule V1 Businesses  Business Id  Reports Schedules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/schedules/{schedule_id}":{"delete":{"tags":["businesses"],"summary":"Delete Report Schedule","operationId":"delete_report_schedule_v1_businesses__business_id__reports_schedules__schedule_id__delete","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Delete Report Schedule V1 Businesses  Business Id  Reports Schedules  Schedule Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/exports":{"post":{"tags":["businesses"],"summary":"Create Export","description":"Ask for a transactions CSV; the processor job builds it and the row\nflips to READY (or FAILED with a reason).","operationId":"create_export_v1_businesses__business_id__reports_exports_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Export V1 Businesses  Business Id  Reports Exports Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["businesses"],"summary":"List Exports","operationId":"list_exports_v1_businesses__business_id__reports_exports_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Exports V1 Businesses  Business Id  Reports Exports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/exports/{request_id}/download":{"get":{"tags":["businesses"],"summary":"Download Export","operationId":"download_export_v1_businesses__business_id__reports_exports__request_id__download_get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/rules":{"get":{"tags":["businesses"],"summary":"List Category Rules","operationId":"list_category_rules_v1_businesses__business_id__reports_rules_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Category Rules V1 Businesses  Business Id  Reports Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["businesses"],"summary":"Set Category Rule","description":"Auto-tag incoming money by source (settings.manage) — e.g. every\ntill payment becomes \"Sales\". The rule applies lazily to the queue view\nand materializes on apply-rules.","operationId":"set_category_rule_v1_businesses__business_id__reports_rules_put","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Category Rule V1 Businesses  Business Id  Reports Rules Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/rules/{source}":{"delete":{"tags":["businesses"],"summary":"Delete Category Rule","operationId":"delete_category_rule_v1_businesses__business_id__reports_rules__source__delete","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Delete Category Rule V1 Businesses  Business Id  Reports Rules  Source  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/reconciliation/apply-rules":{"post":{"tags":["businesses"],"summary":"Apply Category Rules","description":"Materialize every rule: rule-covered incoming rows take their\ncategory (settings.manage).","operationId":"apply_category_rules_v1_businesses__business_id__reports_reconciliation_apply_rules_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Apply Category Rules V1 Businesses  Business Id  Reports Reconciliation Apply Rules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/reports/reconciliation/categories-bulk":{"post":{"tags":["businesses"],"summary":"Assign Categories Bulk","description":"Tag many incoming movements at once (reports.view) — the bulk-file\npath. The same projection upsert as the single assignment; rows that do\nnot belong to this business are reported as missed, never an error.","operationId":"assign_categories_bulk_v1_businesses__business_id__reports_reconciliation_categories_bulk_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Assign Categories Bulk V1 Businesses  Business Id  Reports Reconciliation Categories Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/notifications":{"get":{"tags":["businesses"],"summary":"List Business Notifications","description":"The member's own business notifications for this tenant — the bell's\nfeed, and page by page (`before` = the previous page's `nextCursor`) the\nconsole's notifications page. Personal (non-business) messages never\nappear here.","operationId":"list_business_notifications_v1_businesses__business_id__notifications_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}},{"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":true,"title":"Response List Business Notifications V1 Businesses  Business Id  Notifications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/agent/profile":{"get":{"tags":["businesses"],"summary":"Get Agent Profile","description":"The business's own agent profile — status included, so the Settings ›\nAgent banking page can show pending/approved/suspended.","operationId":"get_agent_profile_v1_businesses__business_id__agent_profile_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Agent Profile V1 Businesses  Business Id  Agent Profile Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/agent/apply":{"post":{"tags":["businesses"],"summary":"Apply For Agent","description":"A business applies to be an agent (Settings › Agent banking). The\nexisting admin approval queue approves/suspends; the float is one of\nthe business's own workspaces.","operationId":"apply_for_agent_v1_businesses__business_id__agent_apply_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Apply For Agent V1 Businesses  Business Id  Agent Apply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/agent/cash-in/quote":{"post":{"tags":["businesses"],"summary":"Quote Agent Cash In","description":"Cash-in at the counter: the customer hands over cash and their\nwallet is credited from the float workspace. The quote shows the\ncustomer the exact amount before anything moves.","operationId":"quote_agent_cash_in_v1_businesses__business_id__agent_cash_in_quote_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Quote Agent Cash In V1 Businesses  Business Id  Agent Cash In Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/agent/cash-out/quote":{"post":{"tags":["businesses"],"summary":"Quote Agent Cash Out","description":"Cash-out at the counter: the customer's wallet pays amount +\nΣdeductions (tax, levy, agent commission — shown up front); the float\nworkspace is credited the amount.","operationId":"quote_agent_cash_out_v1_businesses__business_id__agent_cash_out_quote_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Quote Agent Cash Out V1 Businesses  Business Id  Agent Cash Out Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/agent/cash-in/confirm":{"post":{"tags":["businesses"],"summary":"Confirm Agent Cash In","operationId":"confirm_agent_cash_in_v1_businesses__business_id__agent_cash_in_confirm_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Agent Cash In V1 Businesses  Business Id  Agent Cash In Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/agent/cash-out/confirm":{"post":{"tags":["businesses"],"summary":"Confirm Agent Cash Out","operationId":"confirm_agent_cash_out_v1_businesses__business_id__agent_cash_out_confirm_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Agent Cash Out V1 Businesses  Business Id  Agent Cash Out Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/agent/float":{"get":{"tags":["businesses"],"summary":"Get Agent Float","description":"The float workspace's balance, read straight from C-LEDGER — the\nONLY source of truth for a balance (money-invariants).","operationId":"get_agent_float_v1_businesses__business_id__agent_float_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Agent Float V1 Businesses  Business Id  Agent Float Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/agent/commissions":{"get":{"tags":["businesses"],"summary":"List Agent Commissions","description":"The commission legs this business's agent earned on settled counter\ncash-outs — the frozen deduction snapshots, never re-derived. PII-free:\ntransfer ids and closed numbers only.","operationId":"list_agent_commissions_v1_businesses__business_id__agent_commissions_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"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":"object","additionalProperties":true,"title":"Response List Agent Commissions V1 Businesses  Business Id  Agent Commissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/installations":{"get":{"tags":["pay-by-sente"],"summary":"List Installations","operationId":"list_installations_v1_businesses__business_id__installations_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response List Installations V1 Businesses  Business Id  Installations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pay-by-sente"],"summary":"Connect Store","operationId":"connect_store_v1_businesses__business_id__installations_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Connect Store V1 Businesses  Business Id  Installations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/installations/{installation_id}/keys":{"post":{"tags":["pay-by-sente"],"summary":"Issue Key","operationId":"issue_key_v1_businesses__business_id__installations__installation_id__keys_post","parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","title":"Installation Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Issue Key V1 Businesses  Business Id  Installations  Installation Id  Keys Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/installations/{installation_id}/keys/{key_id}/rotate":{"post":{"tags":["pay-by-sente"],"summary":"Rotate Key","operationId":"rotate_key_v1_businesses__business_id__installations__installation_id__keys__key_id__rotate_post","parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","title":"Installation Id"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Rotate Key V1 Businesses  Business Id  Installations  Installation Id  Keys  Key Id  Rotate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/installations/{installation_id}/keys/{key_id}/revoke":{"post":{"tags":["pay-by-sente"],"summary":"Revoke Key","operationId":"revoke_key_v1_businesses__business_id__installations__installation_id__keys__key_id__revoke_post","parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","title":"Installation Id"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Revoke Key V1 Businesses  Business Id  Installations  Installation Id  Keys  Key Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/installations/{installation_id}/webhook":{"get":{"tags":["pay-by-sente"],"summary":"Get Webhook","operationId":"get_webhook_v1_businesses__business_id__installations__installation_id__webhook_get","parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","title":"Installation Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Webhook V1 Businesses  Business Id  Installations  Installation Id  Webhook Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["pay-by-sente"],"summary":"Set Webhook","operationId":"set_webhook_v1_businesses__business_id__installations__installation_id__webhook_put","parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","title":"Installation Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Webhook V1 Businesses  Business Id  Installations  Installation Id  Webhook Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/installations/{installation_id}/revoke":{"post":{"tags":["pay-by-sente"],"summary":"Disconnect Store","operationId":"disconnect_store_v1_businesses__business_id__installations__installation_id__revoke_post","parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","title":"Installation Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Disconnect Store V1 Businesses  Business Id  Installations  Installation Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/workspaces/{wallet_id}/payment-requests":{"post":{"tags":["businesses"],"summary":"Request Payment","description":"Body: `{recipient, amountMinorUnits, currency, note?}`. Answers the\ncheckout (`checkoutSessionId`, `status`, `payerUrl`) — the same key\nreturns the same request, and the customer is told once.","operationId":"request_payment_v1_businesses__business_id__workspaces__wallet_id__payment_requests_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Payment V1 Businesses  Business Id  Workspaces  Wallet Id  Payment Requests Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/business-payment-requests":{"get":{"tags":["businesses"],"summary":"My Unpaid Business Requests","description":"The payments businesses asked the caller for that are still waiting —\nthe app's To do lists each until it's paid (or the checkout ends).","operationId":"my_unpaid_business_requests_v1_users_me_business_payment_requests_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":"object","additionalProperties":true,"title":"Response My Unpaid Business Requests V1 Users Me Business Payment Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/books":{"get":{"tags":["businesses"],"summary":"Workspace Books","description":"One workspace's general ledger and summary for [from, to] (whole UTC\ndays, inclusive; this month so far by default). Money in, money out,\nfees Sente took on sales, opening and closing balances, and whether the\npostings add up to C-LEDGER's balance. A workspace outside the business\nor the member's reach answers 404; a ledger outage 502, never an empty\nmonth.","operationId":"workspace_books_v1_businesses__business_id__books_get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"workspaceId","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Workspaceid"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"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":true,"title":"Response Workspace Books V1 Businesses  Business Id  Books Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/businesses/{business_id}/top-up/quote":{"post":{"tags":["businesses"],"summary":"Quote Top Up","description":"Prices a move from the member's own wallet (`fromWalletId`) into a\nworkspace (`workspaceId`), same currency. Confirm with\n`POST /v1/transfers/confirm` and the returned `quoteId`.","operationId":"quote_top_up_v1_businesses__business_id__top_up_quote_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Quote Top Up V1 Businesses  Business Id  Top Up Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout-sessions":{"post":{"tags":["checkout"],"summary":"Create Checkout Session","operationId":"create_checkout_session_v1_checkout_sessions_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Checkout Session V1 Checkout Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout-sessions/{session_id}":{"get":{"tags":["checkout"],"summary":"Get Checkout Session","description":"Payer-facing read (§5.3o, \"Pay with Sente\"). The response is built\nentirely from `CheckoutSessionView`/`CheckoutSessionPayerView`, neither of\nwhich has a `merchantId`/`merchantWalletId` field to begin with — there\nis no code path here that could leak either. No auth dependency by\ndesign (Wave 19 §8b.2): `session_id` is the read capability, same trust\nmodel as a Stripe Checkout session URL — see this file's module\ndocstring for the full reasoning and the compliance-review flag.\n\nResidual, infra-level risk (re-review SIGNIFICANT finding, see module\ndocstring's \"Session-id-in-URL log exposure\" note): `session_id`, being\na bearer-token-equivalent capability, will land in any access/proxy log\nsitting in front of this gateway (uvicorn's own access log if enabled,\nor a reverse proxy/load balancer's) — this route and PY-GW itself\nperform no logging of `session_id`, but that infra-level log surface is\noutside this codebase's control and is not mitigated here.\n\n`CheckoutSessionProviderRegistry.for_session_id` routes a `sandbox_`-\nprefixed `session_id` to `SandboxCheckoutSessionProvider` (served\nentirely from its own in-process store — never proxied to C-TRANSFERS,\nwhich has never heard of it) and everything else to\n`RealCheckoutSessionProvider` — this route itself never branches on the\nprefix, only the registry does (see module docstring's \"Sandbox\nisolation\" section and `app/adapters/checkout/session_providers.py`).","operationId":"get_checkout_session_v1_checkout_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Checkout Session V1 Checkout Sessions  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout-sessions/{session_id}/quote":{"post":{"tags":["checkout"],"summary":"Quote Checkout Payment","description":"`quoteCheckoutPayment({checkoutSessionId, fromWalletId})` — mints a\n`MERCHANT_CHECKOUT` `TransferQuote`. `fromCurrency` is required (the\npayer's own source-wallet currency, which the client already has from its\nown `listWallets()` call — same precondition `QuoteCheckoutPaymentRequest`\ndocuments). Confirm is the SAME `POST /v1/transfers/confirm` route every\nother transfer kind uses; not duplicated here.","operationId":"quote_checkout_payment_v1_checkout_sessions__session_id__quote_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Quote Checkout Payment V1 Checkout Sessions  Session Id  Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout-sessions/{session_id}/events":{"get":{"tags":["checkout"],"summary":"Stream Checkout Session Events","operationId":"stream_checkout_session_events_v1_checkout_sessions__session_id__events_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout/sdk-sessions":{"post":{"tags":["checkout"],"summary":"Create Sdk Checkout Session","description":"Creates an SDK checkout session from browser-side config.\n\nCalled by the hosted checkout page (iframe) with businessId, amount,\ncurrency, and reference. Unauthenticated by design — the iframe runs\non a third-party site that cannot hold a secret.\n\nA client-supplied `idempotencyKey` (when present) is validated as a\nUUIDv4 via `require_idempotency_key` (Wave 42 §1.8) before any provider\ncall — same contract as the sibling `create_checkout_session`\nendpoint; when absent, a fresh UUIDv4 is\ngenerated.\n\nAlways uses the sandbox provider regardless of merchant mode, so no\nreal money movement occurs through this path. The session id is\n`sandbox_`-prefixed and the SSE stream delivers the simulated\nPENDING → SETTLED lifecycle.","operationId":"create_sdk_checkout_session_v1_checkout_sdk_sessions_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Sdk Checkout Session V1 Checkout Sdk Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout/sdk-sessions/{session_id}":{"get":{"tags":["checkout"],"summary":"Get Sdk Checkout Session","description":"Returns the current status of an SDK checkout session.\n\nUnauthenticated — same session-id-as-capability model as\n`get_checkout_session`. The response shape matches what the hosted\ncheckout page needs: status, merchant display info, amount, reference.","operationId":"get_sdk_checkout_session_v1_checkout_sdk_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sdk Checkout Session V1 Checkout Sdk Sessions  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout/sessions":{"post":{"tags":["pay-by-sente"],"summary":"Create Store Checkout","description":"Creates a checkout for the store's order; send the shopper to\n`payerUrl`. The amount is final — Sente never takes it from the browser.","operationId":"create_store_checkout_v1_checkout_sessions_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Store Checkout V1 Checkout Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout/sessions/{checkout_session_id}":{"get":{"tags":["pay-by-sente"],"summary":"Get Store Checkout","description":"The store's source of truth for an order: mark it paid only when\n`status` is `paid` here (or on the signed webhook), never on a redirect.","operationId":"get_store_checkout_v1_checkout_sessions__checkout_session_id__get","parameters":[{"name":"checkout_session_id","in":"path","required":true,"schema":{"type":"string","title":"Checkout Session Id"}},{"name":"X-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Store Checkout V1 Checkout Sessions  Checkout Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout/sessions/{checkout_session_id}/refunds":{"post":{"tags":["pay-by-sente"],"summary":"Refund Store Checkout","description":"Refunds all or part of a paid order back to the shopper. Omit\n`amountMinorUnits` to refund whatever is left. A refund above the\nbusiness's approval band waits (`pending_approval`) for a member.","operationId":"refund_store_checkout_v1_checkout_sessions__checkout_session_id__refunds_post","parameters":[{"name":"checkout_session_id","in":"path","required":true,"schema":{"type":"string","title":"Checkout Session Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"X-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Refund Store Checkout V1 Checkout Sessions  Checkout Session Id  Refunds Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout-sessions/{session_id}/simulate-payment":{"post":{"tags":["pay-by-sente"],"summary":"Simulate Store Payment","description":"Marks a sandbox store checkout paid, as if the shopper had paid. A\nreal (non-sandbox) session is never touched: it isn't found here.","operationId":"simulate_store_payment_v1_checkout_sessions__session_id__simulate_payment_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Simulate Store Payment V1 Checkout Sessions  Session Id  Simulate Payment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout-sessions/{session_id}/disputes":{"post":{"tags":["checkout"],"summary":"Open Checkout Dispute","operationId":"open_checkout_dispute_v1_checkout_sessions__session_id__disputes_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Open Checkout Dispute V1 Checkout Sessions  Session Id  Disputes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout-sessions/{session_id}/queries":{"post":{"tags":["checkout"],"summary":"Open Checkout Query","operationId":"open_checkout_query_v1_checkout_sessions__session_id__queries_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Open Checkout Query V1 Checkout Sessions  Session Id  Queries Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/checkout-sessions/{session_id}/prompt":{"post":{"tags":["checkout"],"summary":"Prompt Payer Phone","operationId":"prompt_payer_phone_v1_checkout_sessions__session_id__prompt_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Prompt Payer Phone V1 Checkout Sessions  Session Id  Prompt Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pay/{kind}/{item_id}":{"get":{"tags":["checkout"],"summary":"Get Payable","operationId":"get_payable_v1_pay__kind___item_id__get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Payable V1 Pay  Kind   Item Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pay/{kind}/{item_id}/checkout":{"post":{"tags":["checkout"],"summary":"Open Payable Checkout","operationId":"open_payable_checkout_v1_pay__kind___item_id__checkout_post","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Open Payable Checkout V1 Pay  Kind   Item Id  Checkout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wallets":{"get":{"tags":["wallets"],"summary":"List Wallets","operationId":"list_wallets_v1_wallets_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":"object","additionalProperties":true,"title":"Response List Wallets V1 Wallets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["wallets"],"summary":"Create Wallet","operationId":"create_wallet_v1_wallets_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Wallet V1 Wallets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wallets/defaults":{"get":{"tags":["wallets"],"summary":"Get Wallet Defaults","operationId":"get_wallet_defaults_v1_wallets_defaults_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":"object","additionalProperties":true,"title":"Response Get Wallet Defaults V1 Wallets Defaults Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["wallets"],"summary":"Set Wallet Defaults","operationId":"set_wallet_defaults_v1_wallets_defaults_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Wallet Defaults V1 Wallets Defaults Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wallets/{wallet_id}":{"put":{"tags":["wallets"],"summary":"Update Wallet","description":"Proxy a wallet edit to C-IDENTITY, which validates it and checks the\ncaller owns the wallet. Only the editable fields are forwarded (never\nthe currency); `category` may be the app's key (\"savings\") or\nC-IDENTITY's number, and goes out as the number.","operationId":"update_wallet_v1_wallets__wallet_id__put","parameters":[{"name":"wallet_id","in":"path","required":true,"schema":{"type":"string","title":"Wallet Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Wallet V1 Wallets  Wallet Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["wallets"],"summary":"Delete Wallet","description":"The user deletes an empty wallet. C-IDENTITY closes it (kept for its\nhistory) after checking it holds no money and isn't their main or last\nwallet; its refusal (409) and reason pass through to the app.","operationId":"delete_wallet_v1_wallets__wallet_id__delete","parameters":[{"name":"wallet_id","in":"path","required":true,"schema":{"type":"string","title":"Wallet 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"}}}}}}},"/v1/wallets/categories":{"get":{"tags":["wallets"],"summary":"List Wallet Categories","operationId":"list_wallet_categories_v1_wallets_categories_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":{},"title":"Response List Wallet Categories V1 Wallets Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/wallets/savings/summary":{"get":{"tags":["wallets"],"summary":"Get Savings Summary","description":"Computes the savings summary itself instead of proxying C-IDENTITY's\n`GET /v1/wallets/savings/summary` (G2 fix). `WalletService.\nGetSavingsSummaryAsync` (`Application/Profile/WalletService.cs:340-373`)\nis a permanent stub — `totalBalance += 0` and `progressPercent = 0` are\nhardcoded behind a `// placeholder` comment, it never actually reads\nC-LEDGER — so it can never return real numbers as written. `list_wallets`\nalready computes a genuinely correct per-wallet balance via\n`LedgerClient.get_balance`; this route reuses that same\n`_list_wallets_with_balance` helper, filters to `category == \"savings\"`,\nand computes progress/aggregates itself. No C-IDENTITY change needed.\n\nDESIGN CHOICE — currency grouping: a user's savings wallets can be in\ndifferent currencies. Summing minor units across currencies into one\nflat total would be actively misleading (100 KES + 100 USD is not \"200\"\nof anything real). C-IDENTITY's real `SavingsSummaryView` assumes a\nsingle currency (it takes one `currency` query param) — this route\ninstead returns one summary PER currency the caller actually holds\nsavings wallets in, never a mixed-currency total.\n\nDESIGN CHOICE — `progressPercent` with no target set: `None`, not `0`.\n\"0% progress toward an undefined goal\" is a different (and more\nmisleading) claim than \"no goal exists to measure progress against\" —\ncallers must treat `None` as \"no target\", not \"0% there\".","operationId":"get_savings_summary_v1_wallets_savings_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":{"type":"object","additionalProperties":true,"title":"Response Get Savings Summary V1 Wallets Savings Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/security/biometric-credentials":{"post":{"tags":["biometric"],"summary":"Register Biometric Credential","operationId":"register_biometric_credential_v1_users_me_security_biometric_credentials_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Biometric Credential V1 Users Me Security Biometric Credentials Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["biometric"],"summary":"List Biometric Credentials","operationId":"list_biometric_credentials_v1_users_me_security_biometric_credentials_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":"object","additionalProperties":true,"title":"Response List Biometric Credentials V1 Users Me Security Biometric Credentials Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/security/biometric-credentials/{credential_id}":{"delete":{"tags":["biometric"],"summary":"Revoke Biometric Credential","operationId":"revoke_biometric_credential_v1_users_me_security_biometric_credentials__credential_id__delete","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","title":"Credential Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/biometric/challenge":{"post":{"tags":["biometric"],"summary":"Request Biometric Challenge","operationId":"request_biometric_challenge_v1_auth_biometric_challenge_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Biometric Challenge V1 Auth Biometric Challenge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/biometric/verify":{"post":{"tags":["biometric"],"summary":"Verify Biometric Assertion","operationId":"verify_biometric_assertion_v1_auth_biometric_verify_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Biometric Assertion V1 Auth Biometric Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/profile":{"get":{"tags":["profile"],"summary":"Get Profile","operationId":"get_profile_v1_users_me_profile_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":"object","additionalProperties":true,"title":"Response Get Profile V1 Users Me Profile Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["profile"],"summary":"Update Profile","operationId":"update_profile_v1_users_me_profile_put","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Profile V1 Users Me Profile Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/profile/channels":{"post":{"tags":["profile"],"summary":"Add Profile Channel","description":"Register a notification contact channel (email/sms/whatsapp).\n\nC-IDENTITY's POST /v1/profile/channels (RestEndpoints.cs) has existed\nsince the profile routes were written, but PY-GW never proxied it —\nthe GET side already projects `contactChannels` from it (see\n`_to_user_profile` below), but nothing could ever ADD one through any\nreal client. Caught while adding e2e coverage for the statements\nworkflow: every statement request's channel resolution\n(`app/api/payments/statements.py`'s `_resolve_channels`) always fell\nback to its \"no channels available\" placeholder for every user in the\nplatform, because there was no front door to register a real one.","operationId":"add_profile_channel_v1_users_me_profile_channels_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Profile Channel V1 Users Me Profile Channels Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/handle":{"post":{"tags":["profile"],"summary":"Claim Handle","description":"One-time immutable @handle claim (G-5c) — proxies C-IDENTITY's\nPOST /v1/profile/handle. The Idempotency-Key requirement is C-IDENTITY's\n(validated there); forward the caller's header unchanged.","operationId":"claim_handle_v1_users_me_handle_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Claim Handle V1 Users Me Handle Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/handles/check":{"get":{"tags":["profile"],"summary":"Check Handle Availability","description":"Handle availability check (G-5c) — proxies C-IDENTITY's\nGET /v1/users/handles/check (authoritative DB answer; the bloom filter\nis identity-internal).","operationId":"check_handle_availability_v1_users_handles_check_get","parameters":[{"name":"handle","in":"query","required":true,"schema":{"type":"string","title":"Handle"}},{"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":true,"title":"Response Check Handle Availability V1 Users Handles Check Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/security":{"get":{"tags":["profile"],"summary":"Get Security Settings","operationId":"get_security_settings_v1_users_me_security_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":"object","additionalProperties":true,"title":"Response Get Security Settings V1 Users Me Security Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/security/sessions/{session_id}":{"delete":{"tags":["profile"],"summary":"Revoke Session","operationId":"revoke_session_v1_users_me_security_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/security/sessions/revoke-all":{"post":{"tags":["profile"],"summary":"Revoke All Sessions","operationId":"revoke_all_sessions_v1_users_me_security_sessions_revoke_all_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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/security/devices/{device_id}":{"delete":{"tags":["profile"],"summary":"Revoke Trusted Device","operationId":"revoke_trusted_device_v1_users_me_security_devices__device_id__delete","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/contacts":{"get":{"tags":["profile"],"summary":"List Contacts","operationId":"list_contacts_v1_users_me_contacts_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":"object","additionalProperties":true,"title":"Response List Contacts V1 Users Me Contacts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["profile"],"summary":"Create Contact","operationId":"create_contact_v1_users_me_contacts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Contact V1 Users Me Contacts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/contacts/{contact_id}":{"delete":{"tags":["profile"],"summary":"Delete Contact","operationId":"delete_contact_v1_users_me_contacts__contact_id__delete","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/security/password":{"post":{"tags":["profile"],"summary":"Change Password","operationId":"change_password_v1_users_me_security_password_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Password V1 Users Me Security Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/security/geo-fence":{"get":{"tags":["profile"],"summary":"Get Geo Fence","operationId":"get_geo_fence_v1_users_me_security_geo_fence_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":"object","additionalProperties":true,"title":"Response Get Geo Fence V1 Users Me Security Geo Fence Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["profile"],"summary":"Set Geo Fence","operationId":"set_geo_fence_v1_users_me_security_geo_fence_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Geo Fence V1 Users Me Security Geo Fence Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/deletion-eligibility":{"get":{"tags":["deletion"],"summary":"Get Deletion Eligibility","description":"The caller's pre-deletion blocker list — the read side the mobile\napp's deletion screen renders before the user confirms.","operationId":"get_deletion_eligibility_v1_users_me_deletion_eligibility_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":"object","additionalProperties":true,"title":"Response Get Deletion Eligibility V1 Users Me Deletion Eligibility Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/deletion-request":{"post":{"tags":["deletion"],"summary":"Request Account Deletion","description":"Create the deletion request. Re-runs the Phase B checks server-side\n(TOCTOU: balances change between the eligibility read and submit); when\nblocked, returns 409 with the machine-readable reason list so the\nclient can render exactly what must be cleared first.","operationId":"request_account_deletion_v1_users_me_deletion_request_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Account Deletion V1 Users Me Deletion Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["deletion"],"summary":"Get Account Deletion Status","description":"The caller's live deletion request (or `{request: null}`) — the read\nside the mobile app polls after requesting deletion.","operationId":"get_account_deletion_status_v1_users_me_deletion_request_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":"object","additionalProperties":true,"title":"Response Get Account Deletion Status V1 Users Me Deletion Request Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/data-export":{"post":{"tags":["data-export"],"summary":"Request Data Export","description":"Create the export request — C-IDENTITY's own step-up gate is the\nauthorization boundary; the archive assembles asynchronously.","operationId":"request_data_export_v1_users_me_data_export_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Request Data Export V1 Users Me Data Export Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["data-export"],"summary":"Get Data Export Status","description":"The caller's newest export request (or `{request: null}`).","operationId":"get_data_export_status_v1_users_me_data_export_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":"object","additionalProperties":true,"title":"Response Get Data Export Status V1 Users Me Data Export Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/data-export/{request_id}/download":{"get":{"tags":["data-export"],"summary":"Download Data Export","description":"The archive bytes, passthrough from C-IDENTITY's step-up-gated\ndownload — the zip never touches a gateway log line.","operationId":"download_data_export_v1_users_me_data_export__request_id__download_get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/kyc/applications":{"post":{"tags":["kyc"],"summary":"Create Kyc Application","operationId":"create_kyc_application_v1_kyc_applications_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Kyc Application V1 Kyc Applications Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["kyc"],"summary":"List Kyc Applications","operationId":"list_kyc_applications_v1_kyc_applications_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":"object","additionalProperties":true,"title":"Response List Kyc Applications V1 Kyc Applications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/kyc/applications/{application_id}":{"get":{"tags":["kyc"],"summary":"Get Kyc Application","operationId":"get_kyc_application_v1_kyc_applications__application_id__get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","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":{"type":"object","additionalProperties":true,"title":"Response Get Kyc Application V1 Kyc Applications  Application Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/kyc/applications/{application_id}/documents":{"post":{"tags":["kyc"],"summary":"Submit Kyc Document","operationId":"submit_kyc_document_v1_kyc_applications__application_id__documents_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Submit Kyc Document V1 Kyc Applications  Application Id  Documents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/kyc/applications/{application_id}/submit":{"post":{"tags":["kyc"],"summary":"Submit Kyc Application For Review","operationId":"submit_kyc_application_for_review_v1_kyc_applications__application_id__submit_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Submit Kyc Application For Review V1 Kyc Applications  Application Id  Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","description":"The authenticated user's own money-activity feed, newest first:\ntransfers they sent or received and sandbox credits. Empty, with\n`inAppDisabled`, when they switched in-app notifications off.","operationId":"list_notifications_v1_users_me_notifications_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Max entries to return","default":50,"title":"Limit"},"description":"Max entries to return"},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor: return entries before this id","title":"Before Id"},"description":"Cursor: return entries before this 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":true,"title":"Response List Notifications V1 Users Me Notifications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/notifications/read":{"post":{"tags":["notifications"],"summary":"Mark Notification Read","description":"Mark one feed entry read: advances the user's read cursor past that\nentry (it and everything older become read). Idempotent; an unknown id\nor another user's entry is a no-op (never an existence oracle).","operationId":"mark_notification_read_v1_users_me_notifications_read_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/MarkReadBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Mark Notification Read V1 Users Me Notifications Read Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Unread Notification Count","description":"Entries newer than the read cursor, from both feed sources. Zero when\nthe user switched in-app notifications off (the feed itself is empty\nthen).","operationId":"unread_notification_count_v1_users_me_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":{"type":"object","additionalProperties":{"type":"integer"},"title":"Response Unread Notification Count V1 Users Me Notifications Unread Count Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/me/notification-preferences":{"get":{"tags":["notification-preferences"],"summary":"Get Notification Preferences","operationId":"get_notification_preferences_v1_users_me_notification_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":"object","additionalProperties":true,"title":"Response Get Notification Preferences V1 Users Me Notification Preferences Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["notification-preferences"],"summary":"Put Notification Preferences","operationId":"put_notification_preferences_v1_users_me_notification_preferences_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/NotificationPreferences"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Notification Preferences V1 Users Me Notification Preferences Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/otp/request":{"post":{"tags":["otp"],"summary":"Request Otp","operationId":"request_otp_v1_auth_otp_request_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Otp V1 Auth Otp Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/otp/verify":{"post":{"tags":["otp"],"summary":"Verify Otp","operationId":"verify_otp_v1_auth_otp_verify_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Otp V1 Auth Otp Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/mfa/enroll":{"post":{"tags":["mfa"],"summary":"Enroll Mfa","operationId":"enroll_mfa_v1_auth_mfa_enroll_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enroll Mfa V1 Auth Mfa Enroll Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/mfa/verify":{"post":{"tags":["mfa"],"summary":"Verify Mfa","operationId":"verify_mfa_v1_auth_mfa_verify_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Mfa V1 Auth Mfa Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/mfa/recovery":{"post":{"tags":["mfa"],"summary":"Generate Mfa Recovery Codes","operationId":"generate_mfa_recovery_codes_v1_auth_mfa_recovery_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":true,"title":"Response Generate Mfa Recovery Codes V1 Auth Mfa Recovery Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/mfa/recovery/use":{"post":{"tags":["mfa"],"summary":"Use Mfa Recovery Code","operationId":"use_mfa_recovery_code_v1_auth_mfa_recovery_use_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Use Mfa Recovery Code V1 Auth Mfa Recovery Use Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/mfa/disable":{"post":{"tags":["mfa"],"summary":"Disable Mfa","description":"Turn TOTP MFA off. Requires a bearer token AND (enforced server-side\nby C-IDENTITY's `TotpMfaService.DisableAsync`) a fresh OTP step-up — this\nproxy does not loosen or extend C-IDENTITY's own auth posture, matching\n`recovery`/`recovery/use` above. A 403 here means step-up is required;\nthe caller must complete `POST /v1/auth/otp/request` +\n`POST /v1/auth/otp/verify` first, then retry this call (same\nchallenge-on-demand pattern as every other step-up-gated route).","operationId":"disable_mfa_v1_auth_mfa_disable_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":true,"title":"Response Disable Mfa V1 Auth Mfa Disable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/device-tokens":{"post":{"tags":["device-tokens"],"summary":"Register Device Token","operationId":"register_device_token_v1_device_tokens_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Device Token V1 Device Tokens Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["device-tokens"],"summary":"List Device Tokens","operationId":"list_device_tokens_v1_device_tokens_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":{},"title":"Response List Device Tokens V1 Device Tokens Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/device-tokens/{device_token_id}/revoke":{"post":{"tags":["device-tokens"],"summary":"Revoke Device Token","operationId":"revoke_device_token_v1_device_tokens__device_token_id__revoke_post","parameters":[{"name":"device_token_id","in":"path","required":true,"schema":{"type":"string","title":"Device Token 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":true,"title":"Response Revoke Device Token V1 Device Tokens  Device Token Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/assistant/chat/stream":{"post":{"tags":["assistant"],"summary":"Chat Stream","operationId":"chat_stream_v1_assistant_chat_stream_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/ChatStreamRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/assistant/knowledge/{article_id}":{"get":{"tags":["assistant"],"summary":"Get Article","operationId":"get_article_v1_assistant_knowledge__article_id__get","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9-]{1,64}$","title":"Article 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":true,"title":"Response Get Article V1 Assistant Knowledge  Article Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/assistant/chat/feedback":{"post":{"tags":["assistant"],"summary":"Reply Feedback","operationId":"reply_feedback_v1_assistant_chat_feedback_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/FeedbackRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/invites/quote":{"post":{"tags":["invites"],"summary":"Quote Invite","description":"Price money for `email` from one of the caller's own wallets.","operationId":"quote_invite_v1_transfers_invites_quote_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Quote Invite V1 Transfers Invites Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/invites/confirm":{"post":{"tags":["invites"],"summary":"Confirm Invite","description":"Confirm an invite quote, then email the person. The email goes only\nto the address the quote was made for (its hash must match), and once\nper invite however often the confirm is retried.","operationId":"confirm_invite_v1_transfers_invites_confirm_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Invite V1 Transfers Invites Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/invites":{"get":{"tags":["invites"],"summary":"List Invites","operationId":"list_invites_v1_transfers_invites_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":"object","additionalProperties":true,"title":"Response List Invites V1 Transfers Invites Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/invites/{transfer_id}/cancel":{"post":{"tags":["invites"],"summary":"Cancel Invite","operationId":"cancel_invite_v1_transfers_invites__transfer_id__cancel_post","parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string","title":"Transfer 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":true,"title":"Response Cancel Invite V1 Transfers Invites  Transfer Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/merchant-tills/recent":{"get":{"tags":["payees"],"summary":"Recent Tills","description":"Merchants the caller has paid, most recent first.","operationId":"recent_tills_v1_merchant_tills_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":"object","additionalProperties":true,"title":"Response Recent Tills V1 Merchant Tills Recent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/merchant-tills/{code}":{"get":{"tags":["payees"],"summary":"Get Till","description":"The merchant name behind a code, for the payer to check before paying.","operationId":"get_till_v1_merchant_tills__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"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":true,"title":"Response Get Till V1 Merchant Tills  Code  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/merchant-tills/{code}/checkout-sessions":{"post":{"tags":["payees"],"summary":"Pay Till","description":"Open a checkout session at the till for the amount the payer entered;\nthe app quotes and confirms it through the existing checkout routes.","operationId":"pay_till_v1_merchant_tills__code__checkout_sessions_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pay Till V1 Merchant Tills  Code  Checkout Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/recent-recipients":{"get":{"tags":["payees"],"summary":"Recent Recipients","description":"People the caller has sent money to or received it from, by @handle\nand name (and phone, for people the caller paid), most recent first.","operationId":"recent_recipients_v1_transfers_recent_recipients_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":"object","additionalProperties":true,"title":"Response Recent Recipients V1 Transfers Recent Recipients Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/wallet/quote":{"post":{"tags":["transfers"],"summary":"Quote Wallet Transfer","operationId":"quote_wallet_transfer_v1_transfers_wallet_quote_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Quote Wallet Transfer V1 Transfers Wallet Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/bank/quote":{"post":{"tags":["transfers"],"summary":"Quote Bank Transfer","description":"Quote a domestic bank transfer (BANK_DOMESTIC).","operationId":"quote_bank_transfer_v1_transfers_bank_quote_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Quote Bank Transfer V1 Transfers Bank Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/international/quote":{"post":{"tags":["transfers"],"summary":"Quote International Transfer","description":"Quote an international (cross-currency) transfer.","operationId":"quote_international_transfer_v1_transfers_international_quote_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Quote International Transfer V1 Transfers International Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/agent-cash-out/quote":{"post":{"tags":["transfers"],"summary":"Quote Agent Cash Out","description":"Quote an agent cash-out (on-behalf withdrawal).\n\nDespite the \"agent\" in the name, the CALLER here is the customer\nwithdrawing their own funds through an agent (`fromWalletId` is the\ncustomer's own wallet, verified via `caller_user_id` below by\n`VerifyWalletOwnershipAsync` -- see `TransferQuoteService.cs`); `agentId`\nis just the counterparty being cashed out through, not an assertion the\ncaller IS that agent. So this is self-service (`transactions:self`),\nnot one of the genuinely agent-initiated routes below (which verify\n`agentId` against the CALLER's own agent profile via\n`_verify_caller_is_agent`).","operationId":"quote_agent_cash_out_v1_transfers_agent_cash_out_quote_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Quote Agent Cash Out V1 Transfers Agent Cash Out Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/beneficiaries":{"post":{"tags":["transfers"],"summary":"Create Beneficiary","description":"Create (tokenize + store) a saved payout target for bank/international\ntransfers.\n\nSECURITY: `owner_user_id` is ALWAYS `principal.user_id` — the\nAUTHENTICATED caller's own validated-token user id — and is NEVER read\nfrom the request body, matching every other \"ask the validated\nprincipal, not the request body\" gate this module already establishes\n(`caller_user_id` on every quote route above).\n\nPII: `body[\"rawAccountNumber\"]`/`body[\"rawAccountHolderName\"]` are raw\nPII. They are forwarded ONLY as gRPC request fields on the outgoing\n`CreateBeneficiaryRequest` (tokenized by C-TRANSFERS via P-SECPROXY\nbefore ever being stored) — this handler never logs `body`, never puts\nit in an `HTTPException` detail, and never attaches it to a span\nattribute (same rule `TransfersGrpcClient.create_beneficiary`'s own\ndocstring enforces on the outgoing gRPC call itself). `body` stays a\nbare `dict` (matching this module's and `cards.py`'s existing PII-route\nconvention, e.g. `change_card_pin`) rather than a Pydantic model\nspecifically BECAUSE that convention already keeps PII fields out of\nFastAPI's validation-error path — this route does its own manual\nvalidation below and never re-raises `body` verbatim. The response\nbelow echoes back only the tokenized `Beneficiary` projection — never\nthe raw fields, never `account_token`/`name_token`.","operationId":"create_beneficiary_v1_beneficiaries_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Beneficiary V1 Beneficiaries Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["transfers"],"summary":"List Beneficiaries","description":"List the caller's own saved payout targets, newest first.\n\n`owner_user_id` is ALWAYS `principal.user_id` — never a query param —\nmatching `create_beneficiary` above and every other ownership-scoped\nlist route in this module (`/v1/transfers`, `/v1/transfers/recent`).\n\nResponse is `{\"beneficiaries\": [...]}` — an OBJECT with a named array\nkey, matching `GET /v1/wallets`'s `{\"wallets\": [...]}` shape. Wave 42\n§1.1 was a live client crash caused by exactly this bare-array-vs-object\nenvelope mismatch elsewhere in the app; this route deliberately does not\nrepeat it.","operationId":"list_beneficiaries_v1_beneficiaries_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":0,"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":"object","additionalProperties":true,"title":"Response List Beneficiaries V1 Beneficiaries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/beneficiaries/{beneficiary_id}":{"delete":{"tags":["transfers"],"summary":"Remove Beneficiary","description":"The caller removes one of their saved payout targets (C-TRANSFERS\narchives it; past transfers keep pointing at it). Someone else's is 404.","operationId":"remove_beneficiary_v1_beneficiaries__beneficiary_id__delete","parameters":[{"name":"beneficiary_id","in":"path","required":true,"schema":{"type":"string","title":"Beneficiary 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"}}}}}},"patch":{"tags":["transfers"],"summary":"Rename Beneficiary","description":"`{nickname}`: the caller's own label for a payout target (\"\" clears\nit). The account details can't change; a different account is new.","operationId":"rename_beneficiary_v1_beneficiaries__beneficiary_id__patch","parameters":[{"name":"beneficiary_id","in":"path","required":true,"schema":{"type":"string","title":"Beneficiary Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rename Beneficiary V1 Beneficiaries  Beneficiary Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/confirm":{"post":{"tags":["transfers"],"summary":"Confirm Transfer","operationId":"confirm_transfer_v1_transfers_confirm_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Transfer V1 Transfers Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/bank/confirm":{"post":{"tags":["transfers"],"summary":"Confirm Bank Transfer","description":"Confirm a domestic bank transfer (BANK_DOMESTIC).\n\nThe quote must have been obtained via `/v1/transfers/bank/quote`.","operationId":"confirm_bank_transfer_v1_transfers_bank_confirm_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Bank Transfer V1 Transfers Bank Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/international/confirm":{"post":{"tags":["transfers"],"summary":"Confirm International Transfer","description":"Confirm an international (cross-currency) transfer.\n\nThe quote must have been obtained via `/v1/transfers/international/quote`.","operationId":"confirm_international_transfer_v1_transfers_international_confirm_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm International Transfer V1 Transfers International Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/recent":{"get":{"tags":["transfers"],"summary":"Recent Transfers","description":"Recent Payments (§5.3p, Wave 11) — REAL proxy to C-TRANSFERS'\n`GetRecentTransfers` (a CQRS read model computed over existing\n`transfer`/`transfer_event` rows, no new stored table, §5.9a). Groups the\ncaller's own confirmed transfers by distinct payee across all four kinds,\nnewest first, each tagged with its kind.\n\n`fromWalletId` is client-supplied but MUST be one of the caller's own\nwallets — wallet ids are disclosed to counterparties in normal flows\n(recent-payment/checkout responses, etc.), so a bare pass-through to\nC-TRANSFERS would let any authenticated caller read another user's\nrecent-payee graph (counterparty wallet ids, beneficiary/agent ids,\nmerchant names, timestamps). Verify ownership the same way\n`app/api/wallets.py`'s `list_wallets` establishes as this codebase's\nconvention for \"the caller's own wallets\": ask C-IDENTITY for the\nwallets the validated bearer token resolves to (`GET /v1/wallets/`,\nscoped server-side by C-IDENTITY to the token's owner) and check\nmembership, rather than trusting the query param outright.\n\nThe response deliberately carries ONLY the same fields\n`RecentPayee` itself carries — an opaque `transferId` (never a\nreplayable quote id) and per-kind identity fields, no amount. This is\nintentional: \"pay again\" must pre-fill identity only and always re-quote\nfresh (§5.3p) — there is no field here a client could cache and replay\nto skip re-quoting.","operationId":"recent_transfers_v1_transfers_recent_get","parameters":[{"name":"fromWalletId","in":"query","required":true,"schema":{"type":"string","title":"Fromwalletid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":0,"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":"object","additionalProperties":true,"title":"Response Recent Transfers V1 Transfers Recent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers":{"get":{"tags":["transfers"],"summary":"List Transfers","description":"Wave 41 §6: the caller's own transfer history (both sent and received\nWALLET_P2P legs, every status), newest first — backs TS-APP's Home\ndashboard Recent Activity list and the Transactions screen, which\n(before this route existed) both called this exact path with nothing\nbehind it server-side.\n\n`fromWalletId` is client-supplied but MUST be one of the caller's own\nwallets — same ownership-verification pattern as `/v1/transfers/recent`\nabove (ask C-IDENTITY for the wallets the validated bearer token\nresolves to, rather than trusting the query param outright), since a\nbare pass-through to C-TRANSFERS would let any authenticated caller read\nanother wallet's transaction history/amounts.\n\nWhen the client OMITS `fromWalletId` (TS-APP's Home Recent Activity,\nthe Ledger tab, PY-USSD's statement), the history covers EVERY wallet\nthe caller owns, newest first — not only the default wallet, which left\nthe list empty for users whose money moves through other wallets (e.g.\nthe Sandbox ones). A transfer seen from two of the caller's own wallets\nis a move between them: listed once, direction \"moved\". No wallets →\nan empty list (a fresh registration), never a client error.","operationId":"list_transfers_v1_transfers_get","parameters":[{"name":"fromWalletId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fromwalletid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":0,"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":"object","additionalProperties":true,"title":"Response List Transfers V1 Transfers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/statistics":{"get":{"tags":["transfers"],"summary":"Get Transfer Statistics","description":"Wave 41 §6.1: monthly income/outcome sums for `fromWalletId` in\n`currency`, settled money movement only, zero-filled for months with no\nactivity — backs TS-APP's Statistics screen bar chart. `currency` is\nclient-supplied (the client already knows its own wallet's currency from\n`GET /v1/wallets`) rather than re-resolved here — mixing currencies into\none sum would be meaningless, and this route has no opinion on which\ncurrency the caller wants summed beyond what they explicitly ask for.\n\nSame wallet-ownership verification as `/v1/transfers`/`/v1/transfers/\nrecent` above — `fromWalletId` MUST be one of the caller's own wallets.","operationId":"get_transfer_statistics_v1_transfers_statistics_get","parameters":[{"name":"fromWalletId","in":"query","required":true,"schema":{"type":"string","title":"Fromwalletid"}},{"name":"currency","in":"query","required":true,"schema":{"type":"string","title":"Currency"}},{"name":"months","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Months"}},{"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":true,"title":"Response Get Transfer Statistics V1 Transfers Statistics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/lookup":{"get":{"tags":["transfers"],"summary":"Lookup Recipient","operationId":"lookup_recipient_v1_users_lookup_get","parameters":[{"name":"handle","in":"query","required":true,"schema":{"type":"string","title":"Handle"}},{"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":true,"title":"Response Lookup Recipient V1 Users Lookup Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/request":{"post":{"tags":["transfers"],"summary":"Request Money","description":"Send a payment request to another user.\n\nBody:\n    recipientId: str   — user ID of the person being asked to pay\n    amountMinorUnits: str — amount in minor units (int64-safe string)\n    currency: str       — ISO 4217 currency code, e.g. \"KES\"\n    note: str           — reason for the request\n\nReturns:\n    requestId, status, expiresAt\n\nThe recipient gets a push + WhatsApp notification.","operationId":"request_money_v1_transfers_request_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Money V1 Transfers Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/request/{request_id}/decline":{"post":{"tags":["transfers"],"summary":"Decline Request","description":"Decline a payment request. Only the recipient can decline.","operationId":"decline_request_v1_transfers_request__request_id__decline_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request 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":true,"title":"Response Decline Request V1 Transfers Request  Request Id  Decline Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/split":{"post":{"tags":["transfers"],"summary":"Split Bill","description":"Split a bill among multiple users.\n\nBody:\n    totalAmount: str          — total bill amount in minor units\n    currency: str             — ISO 4217 currency code, e.g. \"KES\"\n    description: str          — what the bill is for\n    splits: [{userId, amount}] — list of splits\n\nCreates a payment request for each split recipient.","operationId":"split_bill_v1_transfers_split_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Split Bill V1 Transfers Split Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/requests":{"get":{"tags":["transfers"],"summary":"List Payment Requests","description":"List payment requests for the authenticated user (as requester or recipient).\nOptionally filter by status.","operationId":"list_payment_requests_v1_transfers_requests_get","parameters":[{"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":{"type":"object","additionalProperties":true,"title":"Response List Payment Requests V1 Transfers Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/{transfer_id}":{"get":{"tags":["transfers"],"summary":"Get Transfer Detail","description":"Return full transfer detail (status, timestamps) for a confirmed\ntransfer.\n\nReachable by EITHER a real self-service login (`transactions:self`) OR a\ngenuine ops/support read credential (`transfers:read`, granted to the\n\"Support Agent\" role, see `sente_service_kit.scopes`' module docstring\nfor the full audit) -- widened from `transfers:read`-only now that a\nreal, enforced ownership check exists (previously this route's own\ndocstring flagged the earlier `transfers:read`-only gate as a deliberate\nstopgap specifically BECAUSE no ownership check existed yet: \"this route\ncannot be safely switched to `transactions:self` without first building a\nreal ownership check... or add a `caller_user_id` gRPC field and enforce\nit server-side\" -- that field now exists, see below). C-TRANSFERS'\n`GetTransferDetail` (`TransfersGrpcService.cs` / `TransferConfirmationService.\nGetRescreenDetailAsync`) enforces access itself: EITHER `caller_user_id`\n(the AUTHENTICATED principal's own validated-token user id, never a\nclient-supplied field) owns the transfer, OR `caller_has_ops_scope`\n(PY-GW's own attestation that the validated token genuinely carries\n`transfers:read` -- re-derived here from the same principal this route\nalready gated on via `require_scope`, not a second independent check) is\ntrue, in which case the access is recorded in C-TRANSFERS' own\n`transfer_access_audit` table. See `GetTransferDetailRequest`'s own doc\ncomment in transfer.proto for the full access-control writeup.","operationId":"get_transfer_detail_v1_transfers__transfer_id__get","parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string","title":"Transfer 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":true,"title":"Response Get Transfer Detail V1 Transfers  Transfer Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/request/{request_id}/pay":{"post":{"tags":["transfers"],"summary":"Pay Request","description":"Pay a payment request. The authenticated user (recipient) pays the requester.\nUses the wallet-to-wallet P2P transfer flow, then marks the request as paid.","operationId":"pay_request_v1_transfers_request__request_id__pay_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Pay Request V1 Transfers Request  Request Id  Pay Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/agent-deposit/quote":{"post":{"tags":["transfers"],"summary":"Quote Agent Deposit","description":"Agent initiates a cash deposit for a customer.\n\nBody:\n    toWalletId: str     — the customer's receiving wallet ID\n    amountMinorUnits: str — amount in minor units\n    currency: str        — ISO 4217 currency code\n    agentId: str         — the approved agent's ID\n\nWave 19 §8a: the authenticated principal MUST be the agent identified by\n`agentId` — verified via `_verify_caller_is_agent` (asks C-IDENTITY for\nthe CALLER's own agent profile, `GET /v1/agents/me`, never trusts the\nbody's `agentId` outright). C-TRANSFERS separately re-verifies the\nagent's `approved` status fresh at both quote and confirm time.","operationId":"quote_agent_deposit_v1_transfers_agent_deposit_quote_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Quote Agent Deposit V1 Transfers Agent Deposit Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfers/agent-deposit/confirm":{"post":{"tags":["transfers"],"summary":"Confirm Agent Deposit","description":"Confirm the deposit. Credits customer wallet from agent float.\n\nWave 19 §8a: no `agentId` is available in this route's own request body\nto check ownership against (only an opaque `quoteId`) — ownership was\nalready verified at quote time (`quote_agent_deposit`'s\n`_verify_caller_is_agent` check) and C-TRANSFERS' `ConfirmAsync`\nre-verifies agent eligibility fresh from the quote's own `AgentId`\n(TOCTOU-safe), the same opaque-quote-id-as-capability pattern every\nother confirm route in this file already relies on.","operationId":"confirm_agent_deposit_v1_transfers_agent_deposit_confirm_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Confirm Agent Deposit V1 Transfers Agent Deposit Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/float":{"get":{"tags":["transfers"],"summary":"Get Agent Float","description":"Return an agent's current float balance.\n\nThe float balance is derived from the agent's float account in C-LEDGER.\nThe float account is a system account keyed by the agent id.\n\nWave 19 §8a: `agent_id` is a client-supplied path segment, so ownership\nis verified the same way `quote_agent_deposit` does — via\n`_verify_caller_is_agent` against C-IDENTITY's `GET /v1/agents/me` —\nbefore ever asking C-LEDGER for the balance.\n\nUNLIKE `quote_agent_deposit`, this route has NO downstream re-check: it\nreads directly from C-LEDGER with no further eligibility gate, so\n`_verify_caller_is_agent` (agent-identity ownership AND `status ==\n\"approved\"`) is the ONLY line of defense here — do not assume a second,\nserver-side re-verification exists for this particular route.","operationId":"get_agent_float_v1_agents__agent_id__float_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent 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":true,"title":"Response Get Agent Float V1 Agents  Agent Id  Float Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/me":{"get":{"tags":["transfers"],"summary":"Get My Agent Profile","description":"Wave 49 §F2: expose the CALLER's own agent profile to the client.\n\nThin public proxy to C-IDENTITY's real `GET /v1/agents/me`\n(`agentsGroup.MapGet(\"/me\", ...)` in\n`services/identity/src/Sente.Identity/Api/RestEndpoints.cs`), reusing the\nexact same `IdentityRestClient` call `_verify_caller_is_agent` already\nmakes server-to-server — the only difference is this route returns the\nbody to the client instead of only using it for a pass/fail gate.\n\nThere is no client-supplied identifier to check ownership against here\n(unlike `agent_id` on `quote_agent_deposit`/`get_agent_float`): the\ncaller's own validated bearer token IS scoped server-side to their own\n`OwnerId` by C-IDENTITY (`req.UserId()`), so this can never return\nanother user's agent profile.\n\nC-IDENTITY returns a real `404` (`IdentityException.NotFound(\"agent\")`)\nwhen the caller has no agent profile at all — propagated through\nunchanged (not collapsed into the internal-only `403` `_verify_caller_is_agent`\nuses for its own pass/fail gate) so the client can distinguish \"no\nprofile\" cleanly. Response body shape (real `AgentProfileView`, C#\ndefault camelCase JSON naming): `agentId`, `ownerId`, `country`,\n`status` (`pending`/`approved`/`suspended`), `commissionTier`,\n`createdAt`. `status != \"approved\"` (e.g. `pending`) is returned as-is,\nnot collapsed into a 404 — the client treats any non-`approved` status\nas \"not eligible to deposit\" but can still show the real status.","operationId":"get_my_agent_profile_v1_agents_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":"object","additionalProperties":true,"title":"Response Get My Agent Profile V1 Agents Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/round-up-rules":{"post":{"tags":["transfers"],"summary":"Create Round Up Rule","description":"Create a round-up rule sweeping a source wallet's round-up delta into\na real wallet-category savings wallet (Wave 52 redesign).\n\nThe authenticated principal's user id is forwarded as ownerId — never a\nclient-supplied field (the transfers side validates wallet ownership and\nthat toWalletId is a real savings-category wallet).","operationId":"create_round_up_rule_v1_round_up_rules_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Round Up Rule V1 Round Up Rules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["transfers"],"summary":"List Round Up Rules","description":"List the authenticated user's round-up rules. C-TRANSFERS returns a\nbare JSON ARRAY of rule objects (not an envelope) — the return type must\nmatch or FastAPI's response validation 500s on every call (observed\nlive).","operationId":"list_round_up_rules_v1_round_up_rules_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":{"type":"object","additionalProperties":true},"title":"Response List Round Up Rules V1 Round Up Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/round-up-rules/{rule_id}/enable":{"post":{"tags":["transfers"],"summary":"Enable Round Up Rule","operationId":"enable_round_up_rule_v1_round_up_rules__rule_id__enable_post","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule 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":true,"title":"Response Enable Round Up Rule V1 Round Up Rules  Rule Id  Enable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/round-up-rules/{rule_id}/disable":{"post":{"tags":["transfers"],"summary":"Disable Round Up Rule","operationId":"disable_round_up_rule_v1_round_up_rules__rule_id__disable_post","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule 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":true,"title":"Response Disable Round Up Rule V1 Round Up Rules  Rule Id  Disable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/standing-orders":{"post":{"tags":["standing-orders"],"summary":"Create Standing Order","description":"Create a recurring P2P standing order. `ownerId` and `transferKind`\nare NEVER read from the client body -- see module docstring. See the\nmodule docstring's \"Idempotency\" section for why this route owns its own\nidempotency store rather than forwarding the key downstream.","operationId":"create_standing_order_v1_standing_orders_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Standing Order V1 Standing Orders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["standing-orders"],"summary":"List Standing Orders","description":"List the authenticated user's standing orders. `ownerId` is always\nthe authenticated principal's own id -- never client-supplied.","operationId":"list_standing_orders_v1_standing_orders_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}},{"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":{},"title":"Response List Standing Orders V1 Standing Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/standing-orders/{order_id}/pause":{"put":{"tags":["standing-orders"],"summary":"Pause Standing Order","operationId":"pause_standing_order_v1_standing_orders__order_id__pause_put","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order 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":true,"title":"Response Pause Standing Order V1 Standing Orders  Order Id  Pause Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/standing-orders/{order_id}/resume":{"put":{"tags":["standing-orders"],"summary":"Resume Standing Order","operationId":"resume_standing_order_v1_standing_orders__order_id__resume_put","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order 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":true,"title":"Response Resume Standing Order V1 Standing Orders  Order Id  Resume Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/standing-orders/{order_id}/cancel":{"put":{"tags":["standing-orders"],"summary":"Cancel Standing Order","description":"NEW route -- didn't exist in the old (broken) proxy at all.","operationId":"cancel_standing_order_v1_standing_orders__order_id__cancel_put","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order 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":true,"title":"Response Cancel Standing Order V1 Standing Orders  Order Id  Cancel Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/savings-goals":{"post":{"tags":["savings-goals"],"summary":"Create Savings Goal","description":"Create a savings goal. The authenticated principal's user id is set\nas ownerId — never a client-supplied field. See the module docstring's\n\"Idempotency\" section for why this route owns its own idempotency store\ndespite not itself moving money.","operationId":"create_savings_goal_v1_savings_goals_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Savings Goal V1 Savings Goals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["savings-goals"],"summary":"List Savings Goals","description":"List the authenticated user's savings goals. `ownerId` is always the\nauthenticated principal's own id — never client-supplied.","operationId":"list_savings_goals_v1_savings_goals_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":{},"title":"Response List Savings Goals V1 Savings Goals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/savings-goals/{goal_id}/pause":{"post":{"tags":["savings-goals"],"summary":"Pause Savings Goal","operationId":"pause_savings_goal_v1_savings_goals__goal_id__pause_post","parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal 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":true,"title":"Response Pause Savings Goal V1 Savings Goals  Goal Id  Pause Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/savings-goals/{goal_id}/resume":{"post":{"tags":["savings-goals"],"summary":"Resume Savings Goal","operationId":"resume_savings_goal_v1_savings_goals__goal_id__resume_post","parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal 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":true,"title":"Response Resume Savings Goal V1 Savings Goals  Goal Id  Resume Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/savings-goals/{goal_id}/contribute":{"post":{"tags":["savings-goals"],"summary":"Contribute Savings Goal","description":"Record a contribution toward a savings goal (bookkeeping only — see\nthe module docstring's F3 note, this never moves money). See the module\ndocstring's \"Idempotency\" section for why this route owns its own\nidempotency store (F4: no native dedup key downstream, and a duplicate\nsilently inflates the goal's tracked progress and can trigger a false\nearly auto-completion).","operationId":"contribute_savings_goal_v1_savings_goals__goal_id__contribute_post","parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Contribute Savings Goal V1 Savings Goals  Goal Id  Contribute Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cards":{"get":{"tags":["cards"],"summary":"List Cards","operationId":"list_cards_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":{"type":"object","additionalProperties":true,"title":"Response List Cards V1 Cards Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cards"],"summary":"Issue Virtual Card","description":"Issue a virtual card.\n\nF3 fix (Wave 55 Phase 2): the client's `Idempotency-Key` is validated\nand forwarded UNCHANGED to C-CARDS' `IssueVirtualCard` RPC — never\nminted server-side. C-CARDS' own `VirtualCardService.\nIssueVirtualCardAsync` is the system of record for the replay: the\nsame key + an identical request body returns the SAME previously\nissued card (no second card minted); the same key with a different\nbody is rejected as a conflict. This closes the double-tap-mints-two-\nreal-cards defect (same class Wave 50 fixed on standing-order create).","operationId":"issue_virtual_card_v1_cards_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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/IssueVirtualCardRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Issue Virtual Card V1 Cards Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cards/{card_id}":{"get":{"tags":["cards"],"summary":"Get Card","operationId":"get_card_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":{"type":"object","additionalProperties":true,"title":"Response Get Card V1 Cards  Card Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cards/{card_id}/freeze":{"post":{"tags":["cards"],"summary":"Freeze Card","operationId":"freeze_card_v1_cards__card_id__freeze_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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Freeze Card V1 Cards  Card Id  Freeze Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cards/{card_id}/unfreeze":{"post":{"tags":["cards"],"summary":"Unfreeze Card","operationId":"unfreeze_card_v1_cards__card_id__unfreeze_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":{"type":"object","additionalProperties":true,"title":"Response Unfreeze Card V1 Cards  Card Id  Unfreeze Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cards/{card_id}/limits":{"post":{"tags":["cards"],"summary":"Update Card Limits","description":"Update a card's spend limits.\n\nSame F3 fix class as `issue_virtual_card` above (Wave 55 Phase 2\ncompliance-review finding 2.2): the client's `Idempotency-Key` is\nvalidated and forwarded UNCHANGED to C-CARDS' `UpdateCardLimits` RPC,\nnever minted server-side; the limit fields are parsed via the shared\n`_parse_limit_minor_units` helper so a malformed value is a clean `400`,\nnever an unhandled `ValueError` -> 500.","operationId":"update_card_limits_v1_cards__card_id__limits_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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/UpdateCardLimitsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Card Limits V1 Cards  Card Id  Limits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cards/{card_id}/pin":{"post":{"tags":["cards"],"summary":"Change Card Pin","description":"Set a card's PIN.\n\nSame F3 fix class as `issue_virtual_card`/`update_card_limits` above:\nthe client's `Idempotency-Key` is validated and forwarded UNCHANGED to\nC-CARDS' `SetCardPin` RPC, never minted server-side.","operationId":"change_card_pin_v1_cards__card_id__pin_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Card Pin V1 Cards  Card Id  Pin Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cards/{card_id}/cvv/rotate":{"post":{"tags":["cards"],"summary":"Rotate Cvv","description":"Rotate a card's CVV.\n\nSame F3 fix class as `issue_virtual_card`/`update_card_limits`/\n`change_card_pin` above: the client's `Idempotency-Key` is validated\nand forwarded UNCHANGED to C-CARDS' `RotateCvv` RPC, never minted\nserver-side.","operationId":"rotate_cvv_v1_cards__card_id__cvv_rotate_post","parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Rotate Cvv V1 Cards  Card Id  Cvv Rotate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cards/{card_id}/reveal":{"post":{"tags":["cards"],"summary":"Reveal Card Number","description":"The card's full number for its owner, shown by TS-APP for\n`revealSeconds`. Requires a fresh step-up (biometric, or an OTP where\nthe device has none): C-IDENTITY consumes it here, so one verification\nshows the number once; without one this answers 403 \"step-up ...\nrequired\" and the app prompts and retries. Never cached or logged.","operationId":"reveal_card_number_v1_cards__card_id__reveal_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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/daily-limits/me":{"get":{"tags":["daily-limits"],"summary":"Get My Daily Limit","operationId":"get_my_daily_limit_v1_daily_limits_me_get","parameters":[{"name":"walletId","in":"query","required":true,"schema":{"type":"string","title":"Walletid"}},{"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":true,"title":"Response Get My Daily Limit V1 Daily Limits Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["daily-limits"],"summary":"Set My Daily Limit","operationId":"set_my_daily_limit_v1_daily_limits_me_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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/SelfSetDailyLimitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set My Daily Limit V1 Daily Limits Me Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crypto/quote":{"post":{"tags":["crypto"],"summary":"Crypto Quote","operationId":"crypto_quote_v1_crypto_quote_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/CryptoQuoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Crypto Quote V1 Crypto Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crypto/buy":{"post":{"tags":["crypto"],"summary":"Crypto Buy","operationId":"crypto_buy_v1_crypto_buy_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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/CryptoBuyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Crypto Buy V1 Crypto Buy Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crypto/sell":{"post":{"tags":["crypto"],"summary":"Crypto Sell","operationId":"crypto_sell_v1_crypto_sell_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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/CryptoSellRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Crypto Sell V1 Crypto Sell Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crypto/send":{"post":{"tags":["crypto"],"summary":"Crypto Send","operationId":"crypto_send_v1_crypto_send_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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/CryptoSendRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Crypto Send V1 Crypto Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crypto/balance":{"get":{"tags":["crypto"],"summary":"Crypto Balance","operationId":"crypto_balance_v1_crypto_balance_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":"object","additionalProperties":true,"title":"Response Crypto Balance V1 Crypto Balance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crypto/transactions":{"get":{"tags":["crypto"],"summary":"Crypto Transactions","operationId":"crypto_transactions_v1_crypto_transactions_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Pagesize"}},{"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":true,"title":"Response Crypto Transactions V1 Crypto Transactions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crypto/deposit-address/{asset}":{"get":{"tags":["crypto"],"summary":"Crypto Deposit Address","operationId":"crypto_deposit_address_v1_crypto_deposit_address__asset__get","parameters":[{"name":"asset","in":"path","required":true,"schema":{"type":"string","title":"Asset"}},{"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":true,"title":"Response Crypto Deposit Address V1 Crypto Deposit Address  Asset  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crypto/webhook/{exchange}":{"post":{"tags":["crypto"],"summary":"Crypto Webhook","description":"Exchange callback handler — receives webhook events from the exchange.\nNo end-user auth required (exchange-signed callbacks, not user-initiated);\nreal signature verification is added when the real exchange adapter lands.","operationId":"crypto_webhook_v1_crypto_webhook__exchange__post","parameters":[{"name":"exchange","in":"path","required":true,"schema":{"type":"string","title":"Exchange"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Crypto Webhook V1 Crypto Webhook  Exchange  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crypto/wallet":{"post":{"tags":["crypto"],"summary":"Crypto Wallet Create","description":"Create (or get-or-create) the caller's crypto wallet — returns the\nper-asset deposit addresses and the SCRW-… reference number. Idempotent\nvia the forwarded `Idempotency-Key` (replays return the stored wallet;\nsame key + different body is a 409 from PY-PRODUCTS).","operationId":"crypto_wallet_create_v1_crypto_wallet_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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/CryptoWalletProxyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Crypto Wallet Create V1 Crypto Wallet Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crypto/wallet/{wallet_id}":{"get":{"tags":["crypto"],"summary":"Crypto Wallet Get","description":"Read the caller's crypto wallet (addresses + SCRW reference). The\nwallet must belong to the authenticated principal — enforced below, not\njust assumed from the path id.","operationId":"crypto_wallet_get_v1_crypto_wallet__wallet_id__get","parameters":[{"name":"wallet_id","in":"path","required":true,"schema":{"type":"string","title":"Wallet 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":true,"title":"Response Crypto Wallet Get V1 Crypto Wallet  Wallet Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crypto/wallet/{wallet_id}/addresses":{"get":{"tags":["crypto"],"summary":"Crypto Wallet Addresses","description":"Read the caller's wallet deposit addresses only.","operationId":"crypto_wallet_addresses_v1_crypto_wallet__wallet_id__addresses_get","parameters":[{"name":"wallet_id","in":"path","required":true,"schema":{"type":"string","title":"Wallet 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":true,"title":"Response Crypto Wallet Addresses V1 Crypto Wallet  Wallet Id  Addresses Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/products":{"get":{"tags":["products"],"summary":"List Products","operationId":"list_products_v1_products_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"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":"object","additionalProperties":true,"title":"Response List Products V1 Products Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/products/purchases":{"post":{"tags":["products"],"summary":"Purchase Product","operationId":"purchase_product_v1_products_purchases_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Purchase Product V1 Products Purchases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/statements":{"post":{"tags":["statements"],"summary":"Request Statement","operationId":"request_statement_v1_statements_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Request Statement V1 Statements Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["statements"],"summary":"List Statement Requests","operationId":"list_statement_requests_v1_statements_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":"object","additionalProperties":true,"title":"Response List Statement Requests V1 Statements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/statements/{request_id}":{"get":{"tags":["statements"],"summary":"Get Statement Request","operationId":"get_statement_request_v1_statements__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request 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":true,"title":"Response Get Statement Request V1 Statements  Request Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/statements/{request_id}/redeliver":{"post":{"tags":["statements"],"summary":"Redeliver Statement","operationId":"redeliver_statement_v1_statements__request_id__redeliver_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request 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":true,"title":"Response Redeliver Statement V1 Statements  Request Id  Redeliver Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/auth/register":{"post":{"tags":["devportal"],"summary":"Register","operationId":"register_v1_devportal_auth_register_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register V1 Devportal Auth Register Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/auth/login":{"post":{"tags":["devportal"],"summary":"Login","operationId":"login_v1_devportal_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Login V1 Devportal Auth Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/auth/social/login":{"post":{"tags":["devportal"],"summary":"Social Login","operationId":"social_login_v1_devportal_auth_social_login_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Social Login V1 Devportal Auth Social Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/auth/social/link":{"post":{"tags":["devportal"],"summary":"Social Link","operationId":"social_link_v1_devportal_auth_social_link_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Social Link V1 Devportal Auth Social Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps":{"get":{"tags":["devportal"],"summary":"List Apps","operationId":"list_apps_v1_devportal_apps_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pagesize"}},{"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":true,"title":"Response List Apps V1 Devportal Apps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["devportal"],"summary":"Create App","operationId":"create_app_v1_devportal_apps_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create App V1 Devportal Apps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps/{app_id}":{"get":{"tags":["devportal"],"summary":"Get App","operationId":"get_app_v1_devportal_apps__app_id__get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App 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":true,"title":"Response Get App V1 Devportal Apps  App Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps/{app_id}/revoke":{"post":{"tags":["devportal"],"summary":"Revoke App","operationId":"revoke_app_v1_devportal_apps__app_id__revoke_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App 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":true,"title":"Response Revoke App V1 Devportal Apps  App Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps/{app_id}/keys":{"post":{"tags":["devportal"],"summary":"Create Sandbox Key","operationId":"create_sandbox_key_v1_devportal_apps__app_id__keys_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Sandbox Key V1 Devportal Apps  App Id  Keys Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps/{app_id}/production-keys":{"post":{"tags":["devportal"],"summary":"Create Production Key","operationId":"create_production_key_v1_devportal_apps__app_id__production_keys_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Production Key V1 Devportal Apps  App Id  Production Keys Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/keys/{key_id}/revoke":{"post":{"tags":["devportal"],"summary":"Revoke Key","operationId":"revoke_key_v1_devportal_keys__key_id__revoke_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key 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":true,"title":"Response Revoke Key V1 Devportal Keys  Key Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps/{app_id}/usage":{"get":{"tags":["devportal"],"summary":"Get App Usage","operationId":"get_app_usage_v1_devportal_apps__app_id__usage_get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days"}},{"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":true,"title":"Response Get App Usage V1 Devportal Apps  App Id  Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps/{app_id}/quota":{"get":{"tags":["devportal"],"summary":"Get App Quota","operationId":"get_app_quota_v1_devportal_apps__app_id__quota_get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App 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":true,"title":"Response Get App Quota V1 Devportal Apps  App Id  Quota Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps/{app_id}/webhooks":{"get":{"tags":["devportal"],"summary":"List Webhooks","operationId":"list_webhooks_v1_devportal_apps__app_id__webhooks_get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App 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":{"type":"object","additionalProperties":true},"title":"Response List Webhooks V1 Devportal Apps  App Id  Webhooks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["devportal"],"summary":"Register Webhook","operationId":"register_webhook_v1_devportal_apps__app_id__webhooks_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Webhook V1 Devportal Apps  App Id  Webhooks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps/{app_id}/webhooks/{webhook_id}":{"delete":{"tags":["devportal"],"summary":"Delete Webhook","operationId":"delete_webhook_v1_devportal_apps__app_id__webhooks__webhook_id__delete","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook 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":true,"title":"Response Delete Webhook V1 Devportal Apps  App Id  Webhooks  Webhook Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps/{app_id}/webhooks/{webhook_id}/deliveries":{"get":{"tags":["devportal"],"summary":"List Webhook Deliveries","operationId":"list_webhook_deliveries_v1_devportal_apps__app_id__webhooks__webhook_id__deliveries_get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"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":{"type":"object","additionalProperties":true},"title":"Response List Webhook Deliveries V1 Devportal Apps  App Id  Webhooks  Webhook Id  Deliveries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps/{app_id}/authorize":{"post":{"tags":["devportal"],"summary":"Authorize App","operationId":"authorize_app_v1_devportal_apps__app_id__authorize_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Authorize App V1 Devportal Apps  App Id  Authorize Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps/oauth-clients/{client_id}/rotate":{"post":{"tags":["devportal"],"summary":"Rotate Client Secret","operationId":"rotate_client_secret_v1_devportal_apps_oauth_clients__client_id__rotate_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client 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":true,"title":"Response Rotate Client Secret V1 Devportal Apps Oauth Clients  Client Id  Rotate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/account":{"get":{"tags":["devportal"],"summary":"Get Account","operationId":"get_account_v1_devportal_account_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":"object","additionalProperties":true,"title":"Response Get Account V1 Devportal Account Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/account/submit-for-review":{"post":{"tags":["devportal"],"summary":"Submit Account For Review","description":"Real proxy to C-DEVPLATFORM's `POST /v1/developer-account/submit-for-\nreview` (`RestEndpoints.cs`) — this section's own header comment (\"status\nread + submit-for-review\") documented this route long before it was\nactually wired; only `get_account` above existed.","operationId":"submit_account_for_review_v1_devportal_account_submit_for_review_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Account For Review V1 Devportal Account Submit For Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/apps/{app_id}/request-log":{"get":{"tags":["devportal"],"summary":"Get App Request Log","operationId":"get_app_request_log_v1_devportal_apps__app_id__request_log_get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App Id"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pagesize"}},{"name":"environment","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"}},{"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":true,"title":"Response Get App Request Log V1 Devportal Apps  App Id  Request Log Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/consent-grants":{"post":{"tags":["devportal"],"summary":"Create Consent Grant","operationId":"create_consent_grant_v1_devportal_consent_grants_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Consent Grant V1 Devportal Consent Grants Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["devportal"],"summary":"List Consent Grants","operationId":"list_consent_grants_v1_devportal_consent_grants_get","parameters":[{"name":"appId","in":"query","required":true,"schema":{"type":"string","title":"Appid"}},{"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":{},"title":"Response List Consent Grants V1 Devportal Consent Grants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/consent-grants/revoke":{"post":{"tags":["devportal"],"summary":"Revoke Consent Grant","operationId":"revoke_consent_grant_v1_devportal_consent_grants_revoke_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Consent Grant V1 Devportal Consent Grants Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/subscriptions/{app_id}":{"get":{"tags":["devportal"],"summary":"Get Subscription","operationId":"get_subscription_v1_devportal_subscriptions__app_id__get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","title":"App 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":true,"title":"Response Get Subscription V1 Devportal Subscriptions  App Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/subscriptions":{"post":{"tags":["devportal"],"summary":"Subscribe App","operationId":"subscribe_app_v1_devportal_subscriptions_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Subscribe App V1 Devportal Subscriptions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/wallet/balance":{"get":{"tags":["devportal"],"summary":"Get Wallet Balance","operationId":"get_wallet_balance_v1_devportal_wallet_balance_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":"object","additionalProperties":true,"title":"Response Get Wallet Balance V1 Devportal Wallet Balance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/wallet/transactions":{"get":{"tags":["devportal"],"summary":"Get Wallet Transactions","operationId":"get_wallet_transactions_v1_devportal_wallet_transactions_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Wallet Transactions V1 Devportal Wallet Transactions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/billing/cycles":{"get":{"tags":["devportal"],"summary":"List Billing Cycles","operationId":"list_billing_cycles_v1_devportal_billing_cycles_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":"object","additionalProperties":true,"title":"Response List Billing Cycles V1 Devportal Billing Cycles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devportal/billing/receipts/{cycle_id}":{"get":{"tags":["devportal"],"summary":"Get Billing Receipt","operationId":"get_billing_receipt_v1_devportal_billing_receipts__cycle_id__get","parameters":[{"name":"cycle_id","in":"path","required":true,"schema":{"type":"string","title":"Cycle Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/auth/login":{"post":{"tags":["ops"],"summary":"Login","operationId":"login_v1_ops_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Login V1 Ops Auth Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/customers":{"get":{"tags":["ops"],"summary":"Lookup Customer","description":"Three REAL C-IDENTITY lookup paths, tried in order:\n\n1. UUID-shaped `query` -> C-IDENTITY's admin-by-id path: `GET\n   /v1/admin/users/{userId}` (PII-free detail projection — see\n   `RestEndpoints.cs`) + `GET /v1/admin/users/{userId}/wallets` (the\n   SAME wallet-resolution endpoint `get_transaction_timeline` below\n   already calls).\n2. Otherwise -> the original recipient-handle resolution: `GET\n   /v1/users/lookup?handle=...` (`RecipientLookupService`).\n3. If both miss -> fuzzy admin search: `GET\n   /v1/admin/users?query=...` (Wave 34 §9.2 — added 2026-08-11).\n   Searches by UUID, email hash, principal_type ILIKE, and status\n   ILIKE. Returns a list of matching users (max 10).\n\nPaths 1 and 2 return the SAME `{customer: {userId, displayName,\ndefaultReceiveWalletId, wallets}}` shape. Path 3 returns\n`{customers: [{userId, principalType, ...}, ...]}` — a list of\nPII-free matches. A miss or an unreachable C-IDENTITY returns\n`{customer: None}` — never a fabricated hit.","operationId":"lookup_customer_v1_ops_customers_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"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":true,"title":"Response Lookup Customer V1 Ops Customers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/customers/{customer_id}/transactions":{"get":{"tags":["ops"],"summary":"Get Transaction Timeline","description":"Customer transaction history for CRM support.\n\nResolves customer_id -> wallets via C-IDENTITY's admin wallet-list\nendpoint, then streams each wallet's journal entries from C-LEDGER's\nGetJournal RPC and merges them into a single timeline sorted by\nposted_at descending (newest first).","operationId":"get_transaction_timeline_v1_ops_customers__customer_id__transactions_get","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer 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":true,"title":"Response Get Transaction Timeline V1 Ops Customers  Customer Id  Transactions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/transactions/lookup":{"get":{"tags":["ops"],"summary":"Lookup Transaction","description":"TS-CRM transaction search (§5.1). Resolves a `referenceNumber` (e.g.\n\"STXN-KE-20260719-8F3K2Q\") via C-LEDGER's `GetTransactionByReference`\ngRPC RPC. If `transactionId` (UUID) is supplied instead, C-LEDGER does\nnot expose a direct UUID lookup today — that path is documented below\nas a gap.\n\nReturns the SAME `{transaction: null}` graceful-miss shape this route\nalways used — never fabricates a hit.","operationId":"lookup_transaction_v1_ops_transactions_lookup_get","parameters":[{"name":"referenceNumber","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referencenumber"}},{"name":"transactionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transactionid"}},{"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":true,"title":"Response Lookup Transaction V1 Ops Transactions Lookup Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/customers/{customer_id}/tickets":{"get":{"tags":["ops"],"summary":"List Tickets","description":"REAL proxy to the ticketing backend — rewired 2026-08-11 (Wave 33\n§2.3). A real, gateway-managed, Postgres-backed ticket system already\nexisted (Wave 17: `app/adapters/tickets/postgres_store.py` +\n`app/api/tickets.py`, already wired into `app.state.ticket_store` at\nstartup) — this route simply predated it and was never rewired, unlike\nevery other `TODO(Wave-18)` stub in this file which genuinely had no\nbackend at all. Confirmed via investigation (not assumption) before\nwiring: `docs/progress.md`'s Wave 17 \"gateway-managed ticket system\"\nclaim holds up.\n\nFilters by `created_by=customer_id`, the SAME filter\n`/v1/tickets/my` (`app/api/tickets.py`) uses to scope an authenticated\nend-user's own tickets — the ticket schema has no separate\n\"customer_id\" column distinct from `created_by`. A `customer_id` that\ndoesn't parse as a UUID returns the SAME graceful `{tickets: []}`\nempty-list shape this route always returned, never an error.","operationId":"list_tickets_v1_ops_customers__customer_id__tickets_get","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer 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":true,"title":"Response List Tickets V1 Ops Customers  Customer Id  Tickets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/txn/{transaction_id}/receipt":{"post":{"tags":["ops"],"summary":"Resend Receipt","description":"Audit-log the resend intent. No re-send backend exists yet.\n\n# BLOCKED (Wave 33 §2.3, confirmed 2026-08-11): this is NOT just a\n# missing PY-NOTIFY endpoint — it is the SAME platform-wide, already-\n# documented gap `services/async-worker/app/events/\n# recipient_resolver.py`'s module docstring describes for\n# `transfers.transfer.posted` notifications: nothing in the platform\n# can map a bare transaction id back to the owning user's registered\n# notification contact channel (email/MSISDN).\n#   - C-LEDGER's transaction record carries account/wallet ids, never a\n#     user id (confirmed: `TransactionEntry`/`Posting` proto messages).\n#   - C-IDENTITY has no reverse account-id -> user-id lookup (confirmed:\n#     `RestEndpoints.cs`'s wallet routes are all forward, user -> wallets\n#     only — `WalletService.ListWalletsAsync(userId, ...)`).\n#   - Even with a user id in hand, C-IDENTITY exposes no contact-channel\n#     read endpoint outside self-service `/v1/profile/`, and PY-NOTIFY's\n#     `NotificationRequest.to` requires the CALLER to already have a\n#     resolved contact handle — PY-NOTIFY never resolves one itself\n#     (`app/domain/models.py`'s own doc comment).\n# Closing this needs a NEW cross-service C-IDENTITY contract addition\n# (a `GetNotificationChannels`-shaped RPC), the exact same class of\n# cross-service C# work `recipient_resolver.py` flags — out of scope\n# for PY-GW-only Python work. Do NOT fabricate/guess a contact to make\n# this \"work\" in the meantime.","operationId":"resend_receipt_v1_ops_txn__transaction_id__receipt_post","parameters":[{"name":"transaction_id","in":"path","required":true,"schema":{"type":"string","title":"Transaction 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":true,"title":"Response Resend Receipt V1 Ops Txn  Transaction Id  Receipt Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/customers/{customer_id}/otp":{"post":{"tags":["ops"],"summary":"Resend Otp","description":"Admin-initiated OTP re-issue — real proxy to C-IDENTITY's\n`POST /v1/admin/users/{userId}/otp/issue` (Wave 18).\n\nThe OTP code itself is never returned here — same contract as the\nself-service `/v1/otp/issue` route: only `{issued, userId, channel,\nexpiresInSeconds, maxVerifyAttempts}` comes back. The code is\ndelivered out-of-band via PY-NOTIFY.","operationId":"resend_otp_v1_ops_customers__customer_id__otp_post","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer 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":true,"title":"Response Resend Otp V1 Ops Customers  Customer Id  Otp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/customers/{customer_id}/suspend":{"post":{"tags":["ops"],"summary":"Suspend Customer","description":"§5.3a-iv, Wave 15 §2: TS-CRM's suspend-ONLY account-status action,\ntriggered from an active case/escalation view (§5.3q). REAL proxy to\nC-IDENTITY's `/v1/admin/users/{userId}/suspend` (`UserStatusService`) —\nthe SAME edge `app/api/admin.py`'s TS-ADMIN `suspend_user` route\nforwards to, gated on the SAME `admin:users:suspend` scope so a `TS-CRM`\nstaff session (which is never minted `admin:users:ban`) can suspend but\nnever ban — banning stays `TS-ADMIN`-only (§5.3a-iv: \"banning is\nreserved for TS-ADMIN since it is the more consequential, harder-to-\nreverse action\"). There is deliberately NO `/ops/customers/{id}/ban`\nroute in this file.\n\n`reason` is required (mirrors `admin.py`'s own validation) and is never\nlogged/spanned beyond the forwarded call — same scrubbing discipline\nevery other free-text admin/ops field in this codebase follows.","operationId":"suspend_customer_v1_ops_customers__customer_id__suspend_post","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Suspend Customer V1 Ops Customers  Customer Id  Suspend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/txn/{transaction_id}/refund":{"post":{"tags":["ops"],"summary":"Initiate Refund","description":"REAL proxy to C-SETTLE's `POST /v1/reversals` (`ReversalService`) —\nwired 2026-08-11 (Wave 33 §2.3), fintech-compliance-reviewer fixes\napplied same day. The SAME real C-SETTLE backend TS-ADMIN's `POST\n/admin/reversals` already forwards to unchanged (`app/api/admin.py`'s\n`create_reversal`) — this route reuses `SettlementRestClient` exactly\nthe same way, no new client written.\n\nC-SETTLE's `CreateReversalRequestBody` (`RestEndpoints.cs`) requires\nthe ORIGINAL transaction's amount and created-at timestamp, and its\nREST body SILENTLY DEFAULTS an absent\n`originalTransactionAmountMinorUnits`/`originalTransactionCreatedAt`\nto `0`/invalid rather than rejecting the request — a dangerous\nfootgun that would create a wrong-amount (likely $0) reversal record.\nC-LEDGER has no UUID transaction lookup (see `lookup_transaction`'s\nown BLOCKED comment above), so PY-GW cannot resolve these fields\nitself.\n\nMoney-safety guard (AGENTS.md §1.1 — money must be rejected, never\ncoerced): `amountMinorUnits` must be a genuine `int` (bool is\nexplicitly excluded — Python's `bool` is an `int` subclass, so\n`isinstance(True, int)` is `True` and would otherwise silently pass)\nand strictly positive; a float such as `12.75` is REJECTED outright\nrather than silently truncated via `int(12.75) == 12` (a real loss of\nmoney-shaped data — the wire-encoding rule everywhere else in this\ncodebase already enforces). `reversalAmountMinorUnits` (defaults to\nthe full `amountMinorUnits` when omitted) is bound to\n`0 < reversalAmountMinorUnits <= amountMinorUnits` — a reversal can\nnever exceed the original transaction's amount. `currency` and\n`originalTransactionCreatedAt` are still required-present (C-SETTLE\nneeds both), but are not otherwise money-typed here — no amount\ncoercion risk on either field.","operationId":"initiate_refund_v1_ops_txn__transaction_id__refund_post","parameters":[{"name":"transaction_id","in":"path","required":true,"schema":{"type":"string","title":"Transaction Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Initiate Refund V1 Ops Txn  Transaction Id  Refund Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/txn/{transaction_id}/dispute":{"post":{"tags":["ops"],"summary":"Initiate Dispute","description":"Audit-log the dispute intent. Deliberately still NOT wired to\nC-SETTLE's `OpenDispute` RPC.\n\n# BLOCKED (Wave 33 §2.3, investigated and rejected 2026-08-11):\n# `OpenDispute` (`sente.settlement.v1.SettlementService`,\n# `DisputeService.OpenAsync` in `Application/DisputeService.cs`) is\n# NOT a general \"CRM/customer disputes an arbitrary transaction\"\n# endpoint — it is exclusively the manual-open half of the 3-way\n# SETTLEMENT-RECONCILIATION break workflow. It requires a `batch_id`/\n# `break_key` from an actual settlement batch/break (there is no such\n# thing for an ops agent looking at one customer's transaction), and\n# as a SIDE EFFECT it posts a real two-leg ledger entry between the\n# platform's suspense and scheme-clearing SYSTEM accounts\n# (`SystemAccountRepository.Suspense`/`SchemeClearing`) — i.e. calling\n# it here would mean either fabricating a `batch_id`/`break_key` (a\n# money-invariants violation: inventing settlement-reconciliation\n# state that doesn't exist) or, if it happened to succeed, posting an\n# incorrect real ledger entry against the wrong pair of accounts for\n# an unrelated business event. `ResolveDispute` (already wired above\n# in `app/api/admin.py`) is safe because it only acts on a dispute\n# that was already legitimately opened by that same batch pipeline.\n# A genuine \"ops agent files a dispute on this customer's\n# transaction\" primitive does not exist anywhere in `SettlementService`\n# today — it needs a NEW, purpose-built RPC (cross-service C# work,\n# `ledger-csharp-engineer`/C-SETTLE scope), not a reuse of\n# `OpenDispute`. Audit-only until that lands.","operationId":"initiate_dispute_v1_ops_txn__transaction_id__dispute_post","parameters":[{"name":"transaction_id","in":"path","required":true,"schema":{"type":"string","title":"Transaction Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Initiate Dispute V1 Ops Txn  Transaction Id  Dispute Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance/cases":{"get":{"tags":["ops"],"summary":"List Compliance Cases","operationId":"list_compliance_cases_v1_compliance_cases_get","parameters":[{"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":{"type":"array","items":{},"title":"Response List Compliance Cases V1 Compliance Cases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance/cases/{case_id}":{"get":{"tags":["ops"],"summary":"Get Compliance Case","operationId":"get_compliance_case_v1_compliance_cases__case_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","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":{"type":"object","additionalProperties":true,"title":"Response Get Compliance Case V1 Compliance Cases  Case Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance/cases/{case_id}/dispositions":{"post":{"tags":["ops"],"summary":"Record Case Disposition","operationId":"record_case_disposition_v1_compliance_cases__case_id__dispositions_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Case Disposition V1 Compliance Cases  Case Id  Dispositions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance/cases/{case_id}/assignments":{"post":{"tags":["ops"],"summary":"Reassign Compliance Case","operationId":"reassign_compliance_case_v1_compliance_cases__case_id__assignments_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reassign Compliance Case V1 Compliance Cases  Case Id  Assignments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance/cases/{case_id}/comments":{"get":{"tags":["ops"],"summary":"List Comments","operationId":"list_comments_v1_compliance_cases__case_id__comments_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","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/CommentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["ops"],"summary":"Add Comment","operationId":"add_comment_v1_compliance_cases__case_id__comments_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","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/app__adapters__comments__models__CreateCommentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseComment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance/cases/{case_id}/timeline":{"get":{"tags":["ops"],"summary":"Get Case Timeline","description":"Unified case timeline: merges comments, dispositions, and assignments\ninto a single chronological feed (oldest first).","operationId":"get_case_timeline_v1_compliance_cases__case_id__timeline_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","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/CaseTimelineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/disputes/overdue":{"get":{"tags":["ops"],"summary":"List Overdue Disputes","description":"The queue (ADR 0018): disputes whose evidence window has passed and\nare still open or under review — the business stayed silent.","operationId":"list_overdue_disputes_v1_ops_disputes_overdue_get","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cursor"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Pagesize"}},{"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":true,"title":"Response List Overdue Disputes V1 Ops Disputes Overdue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/disputes/{dispute_id}/write-off":{"post":{"tags":["ops"],"summary":"Write Off Dispute","operationId":"write_off_dispute_v1_ops_disputes__dispute_id__write_off_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","title":"Dispute Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Write Off Dispute V1 Ops Disputes  Dispute Id  Write Off Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/disputes/{dispute_id}/accept":{"post":{"tags":["ops"],"summary":"Accept Dispute","operationId":"accept_dispute_v1_ops_disputes__dispute_id__accept_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","title":"Dispute Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accept Dispute V1 Ops Disputes  Dispute Id  Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance/cases/{case_id}/model-explanation":{"get":{"tags":["ops"],"summary":"Case Model Explanation","operationId":"case_model_explanation_v1_compliance_cases__case_id__model_explanation_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","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/CaseModelExplanation"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/decision-audit/{decision_id}":{"get":{"tags":["admin"],"summary":"Decision Detail","operationId":"decision_detail_v1_admin_decision_audit__decision_id__get","parameters":[{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Decision 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":true,"title":"Response Decision Detail V1 Admin Decision Audit  Decision Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/rule-sets/{name}/versions":{"post":{"tags":["admin"],"summary":"Create Rule Set Version","operationId":"create_rule_set_version_v1_rule_sets__name__versions_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Rule Set Version V1 Rule Sets  Name  Versions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/rule-sets/{name}/versions/{version}/activate":{"post":{"tags":["admin"],"summary":"Activate Rule Set Version","operationId":"activate_rule_set_version_v1_rule_sets__name__versions__version__activate_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"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":true,"title":"Response Activate Rule Set Version V1 Rule Sets  Name  Versions  Version  Activate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/rule-sets/{name}/active":{"get":{"tags":["admin"],"summary":"Get Active Rule Set","operationId":"get_active_rule_set_v1_rule_sets__name__active_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"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":true,"title":"Response Get Active Rule Set V1 Rule Sets  Name  Active Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/rule-fields":{"get":{"tags":["admin"],"summary":"Get Rule Fields","description":"The authorable rule-field catalogue (path + value type) TS-ADMIN's\nrule builder renders its inputs from.","operationId":"get_rule_fields_v1_rule_fields_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":"object","additionalProperties":true,"title":"Response Get Rule Fields V1 Rule Fields Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/agents/":{"get":{"tags":["admin"],"summary":"List Agents","operationId":"list_agents_v1_admin_agents__get","parameters":[{"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":{"type":"array","items":{},"title":"Response List Agents V1 Admin Agents  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/agents/{agent_id}/approve":{"post":{"tags":["admin"],"summary":"Approve Agent","operationId":"approve_agent_v1_admin_agents__agent_id__approve_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent 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":true,"title":"Response Approve Agent V1 Admin Agents  Agent Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/agents/{agent_id}/suspend":{"post":{"tags":["admin"],"summary":"Suspend Agent","operationId":"suspend_agent_v1_admin_agents__agent_id__suspend_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent 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":true,"title":"Response Suspend Agent V1 Admin Agents  Agent Id  Suspend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/deletion-requests/":{"get":{"tags":["admin"],"summary":"List Deletion Requests","operationId":"list_deletion_requests_v1_admin_deletion_requests__get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"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":"object","additionalProperties":true,"title":"Response List Deletion Requests V1 Admin Deletion Requests  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/deletion-requests/{request_id}":{"get":{"tags":["admin"],"summary":"Get Deletion Request","operationId":"get_deletion_request_v1_admin_deletion_requests__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request 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":true,"title":"Response Get Deletion Request V1 Admin Deletion Requests  Request Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/transfer-fee-rules":{"get":{"tags":["admin"],"summary":"List Transfer Fee Rules","operationId":"list_transfer_fee_rules_v1_transfer_fee_rules_get","parameters":[{"name":"fromCountry","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fromcountry"}},{"name":"toCountry","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tocountry"}},{"name":"transferKind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transferkind"}},{"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":{},"title":"Response List Transfer Fee Rules V1 Transfer Fee Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Transfer Fee Rule","operationId":"create_transfer_fee_rule_v1_transfer_fee_rules_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Transfer Fee Rule V1 Transfer Fee Rules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/travel-rule-thresholds":{"get":{"tags":["admin"],"summary":"List Travel Rule Thresholds","operationId":"list_travel_rule_thresholds_v1_travel_rule_thresholds_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"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":{},"title":"Response List Travel Rule Thresholds V1 Travel Rule Thresholds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Travel Rule Threshold","operationId":"create_travel_rule_threshold_v1_travel_rule_thresholds_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Travel Rule Threshold V1 Travel Rule Thresholds Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sanctions":{"get":{"tags":["admin"],"summary":"List Sanctioned Accounts","operationId":"list_sanctioned_accounts_v1_sanctions_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"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":{"type":"object","additionalProperties":true,"title":"Response List Sanctioned Accounts V1 Sanctions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sanctions/{account_id}/list":{"post":{"tags":["admin"],"summary":"Sanction Account","operationId":"sanction_account_v1_sanctions__account_id__list_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sanction Account V1 Sanctions  Account Id  List Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sanctions/{account_id}/reason":{"post":{"tags":["admin"],"summary":"Update Sanction Reason","description":"Edit a sanctioned account's reason — C-COMPLY appends a new 'listed'\nevent (audit-preserving), so the proxy surface is a POST like the rest.","operationId":"update_sanction_reason_v1_sanctions__account_id__reason_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Sanction Reason V1 Sanctions  Account Id  Reason Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sanctions/{account_id}/delist":{"post":{"tags":["admin"],"summary":"Delist Account","operationId":"delist_account_v1_sanctions__account_id__delist_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","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":"object","additionalProperties":true,"title":"Response Delist Account V1 Sanctions  Account Id  Delist Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/watchlists":{"get":{"tags":["admin"],"summary":"List Watchlist Sources","operationId":"list_watchlist_sources_v1_watchlists_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":"object","additionalProperties":true,"title":"Response List Watchlist Sources V1 Watchlists Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/watchlists/entries":{"get":{"tags":["admin"],"summary":"Search Watchlist Entries","operationId":"search_watchlist_entries_v1_watchlists_entries_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"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":{"type":"object","additionalProperties":true,"title":"Response Search Watchlist Entries V1 Watchlists Entries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/watchlists/{source}/refresh":{"post":{"tags":["admin"],"summary":"Refresh Watchlist","operationId":"refresh_watchlist_v1_watchlists__source__refresh_post","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}},{"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":true,"title":"Response Refresh Watchlist V1 Watchlists  Source  Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/decision-audit":{"get":{"tags":["admin"],"summary":"List Decision Audit","operationId":"list_decision_audit_v1_admin_decision_audit_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"typeFilter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typefilter"}},{"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":true,"title":"Response List Decision Audit V1 Admin Decision Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/aml-screenings":{"get":{"tags":["admin"],"summary":"List Aml Screenings","operationId":"list_aml_screenings_v1_admin_aml_screenings_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"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":true,"title":"Response List Aml Screenings V1 Admin Aml Screenings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/aml-screenings/{application_id}":{"get":{"tags":["admin"],"summary":"Get Aml Screening Detail","operationId":"get_aml_screening_detail_v1_admin_aml_screenings__application_id__get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","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":{"type":"object","additionalProperties":true,"title":"Response Get Aml Screening Detail V1 Admin Aml Screenings  Application Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/daily-limits":{"get":{"tags":["admin"],"summary":"List Daily Limits","operationId":"list_daily_limits_v1_daily_limits_get","parameters":[{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"}},{"name":"scopeKey","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scopekey"}},{"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":{},"title":"Response List Daily Limits V1 Daily Limits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Daily Limit","operationId":"create_daily_limit_v1_daily_limits_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Daily Limit V1 Daily Limits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deduction-schedules":{"get":{"tags":["admin"],"summary":"List Deduction Schedules","operationId":"list_deduction_schedules_v1_deduction_schedules_get","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string","title":"Country"}},{"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":{},"title":"Response List Deduction Schedules V1 Deduction Schedules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Deduction Schedule","operationId":"create_deduction_schedule_v1_deduction_schedules_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Deduction Schedule V1 Deduction Schedules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/disputes":{"get":{"tags":["admin"],"summary":"List Disputes","description":"List disputes, optionally filtered by `country` (ISO 3166-1 alpha-2).\nWhen `country` is provided, results are filtered to that country's\ndisputes only; when omitted, all disputes are returned.\n\nC-SETTLE's own `GET /v1/disputes` REST edge (`RestEndpoints.cs`) has no\n`country` query param of its own — `SettlementRestClient.list_disputes`\nonly forwards `after`/`limit`. Filtering PY-GW-side on the\n`country` field of each returned dispute (Wave 36 rename — was `region`)\nkeeps the documented `?country=` behavior working without a C-SETTLE\nchange.\n\nfintech-compliance-reviewer fix (2026-08-11, Wave 33 §2.3 follow-up):\nthis used to catch the WRONG `SettlementUnavailableError` — the gRPC\nclient's class (imported for `resolve_dispute` below), not the REST\nclient's own — so a real C-SETTLE REST outage propagated as an\nunhandled exception (FastAPI 500) instead of the documented 502.","operationId":"list_disputes_v1_admin_disputes_get","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"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":true,"title":"Response List Disputes V1 Admin Disputes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/disputes/{dispute_id}/resolution":{"post":{"tags":["admin"],"summary":"Resolve Dispute","operationId":"resolve_dispute_v1_admin_disputes__dispute_id__resolution_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":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Dispute V1 Admin Disputes  Dispute Id  Resolution Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/reversals":{"post":{"tags":["admin"],"summary":"Create Reversal","description":"Request a reversal (TS-CRM/TS-ADMIN). C-SETTLE's authorization matrix\nenforces role-based limits; a denied request returns 403, and an\nalready-in-flight reversal for the same transaction returns 409 —\nneither is mapped to 502 (fintech-compliance-reviewer fix, Wave 33\n§2.3 follow-up: previously EVERY non-2xx, including these two\nlegitimate denials, was swallowed into a misleading \"settlement\nservice unavailable\" 502 by a REST/gRPC `SettlementUnavailableError`\nclass mismatch — see `list_disputes`'s own doc comment above for the\nsame underlying bug).","operationId":"create_reversal_v1_admin_reversals_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Reversal V1 Admin Reversals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/reversals/{reversal_id}":{"get":{"tags":["admin"],"summary":"Get Reversal","description":"Get reversal status by id.","operationId":"get_reversal_v1_admin_reversals__reversal_id__get","parameters":[{"name":"reversal_id","in":"path","required":true,"schema":{"type":"string","title":"Reversal 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":true,"title":"Response Get Reversal V1 Admin Reversals  Reversal Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/circuit-breaker/compliance":{"get":{"tags":["admin"],"summary":"Get Circuit Breaker Ceiling","operationId":"get_circuit_breaker_ceiling_v1_circuit_breaker_compliance_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":"object","additionalProperties":true,"title":"Response Get Circuit Breaker Ceiling V1 Circuit Breaker Compliance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/circuit-breaker/compliance/audit":{"get":{"tags":["admin"],"summary":"Get Circuit Breaker Audit","operationId":"get_circuit_breaker_audit_v1_circuit_breaker_compliance_audit_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"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":{},"title":"Response Get Circuit Breaker Audit V1 Circuit Breaker Compliance Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/circuit-breaker/compliance/arm":{"post":{"tags":["admin"],"summary":"Arm Circuit Breaker","operationId":"arm_circuit_breaker_v1_circuit_breaker_compliance_arm_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Arm Circuit Breaker V1 Circuit Breaker Compliance Arm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/circuit-breaker/compliance/disarm":{"post":{"tags":["admin"],"summary":"Disarm Circuit Breaker","operationId":"disarm_circuit_breaker_v1_circuit_breaker_compliance_disarm_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":true,"title":"Response Disarm Circuit Breaker V1 Circuit Breaker Compliance Disarm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/rate-limits":{"get":{"tags":["admin"],"summary":"List Rate Limits","description":"Every known route_key with its code default and, if set, the admin\noverride currently in effect.","operationId":"list_rate_limits_v1_admin_rate_limits_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":{"type":"object","additionalProperties":true},"title":"Response List Rate Limits V1 Admin Rate Limits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/rate-limits/audit":{"get":{"tags":["admin"],"summary":"Get Rate Limit Audit","operationId":"get_rate_limit_audit_v1_admin_rate_limits_audit_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"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":{"type":"object","additionalProperties":true},"title":"Response Get Rate Limit Audit V1 Admin Rate Limits Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/rate-limits/{route_key}":{"put":{"tags":["admin"],"summary":"Set Rate Limit Override","operationId":"set_rate_limit_override_v1_admin_rate_limits__route_key__put","parameters":[{"name":"route_key","in":"path","required":true,"schema":{"type":"string","title":"Route 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/SetRateLimitOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Rate Limit Override V1 Admin Rate Limits  Route Key  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Rate Limit Override","operationId":"delete_rate_limit_override_v1_admin_rate_limits__route_key__delete","parameters":[{"name":"route_key","in":"path","required":true,"schema":{"type":"string","title":"Route Key"}},{"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":true,"title":"Response Delete Rate Limit Override V1 Admin Rate Limits  Route Key  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/developer-accounts/":{"get":{"tags":["admin"],"summary":"List Developer Accounts","operationId":"list_developer_accounts_v1_admin_developer_accounts__get","parameters":[{"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":{"type":"array","items":{},"title":"Response List Developer Accounts V1 Admin Developer Accounts  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/developer-accounts/{account_id}/approve":{"post":{"tags":["admin"],"summary":"Approve Developer Account","operationId":"approve_developer_account_v1_admin_developer_accounts__account_id__approve_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","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":"object","additionalProperties":true,"title":"Response Approve Developer Account V1 Admin Developer Accounts  Account Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/developer-accounts/{account_id}/reject":{"post":{"tags":["admin"],"summary":"Reject Developer Account","operationId":"reject_developer_account_v1_admin_developer_accounts__account_id__reject_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","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":"object","additionalProperties":true,"title":"Response Reject Developer Account V1 Admin Developer Accounts  Account Id  Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/customer-groups/":{"get":{"tags":["admin"],"summary":"List Customer Groups","operationId":"list_customer_groups_v1_admin_customer_groups__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":{},"title":"Response List Customer Groups V1 Admin Customer Groups  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Customer Group","operationId":"create_customer_group_v1_admin_customer_groups__post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Customer Group V1 Admin Customer Groups  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/customer-groups/{group_id}":{"put":{"tags":["admin"],"summary":"Update Customer Group","operationId":"update_customer_group_v1_admin_customer_groups__group_id__put","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Customer Group V1 Admin Customer Groups  Group Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/customer-groups/{group_id}/delete":{"post":{"tags":["admin"],"summary":"Delete Customer Group","operationId":"delete_customer_group_v1_admin_customer_groups__group_id__delete_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group 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":true,"title":"Response Delete Customer Group V1 Admin Customer Groups  Group Id  Delete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/customer-groups/{group_id}/members":{"post":{"tags":["admin"],"summary":"Add Users To Group","operationId":"add_users_to_group_v1_admin_customer_groups__group_id__members_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Users To Group V1 Admin Customer Groups  Group Id  Members Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/customer-groups/{group_id}/members/remove":{"post":{"tags":["admin"],"summary":"Remove Users From Group","operationId":"remove_users_from_group_v1_admin_customer_groups__group_id__members_remove_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Users From Group V1 Admin Customer Groups  Group Id  Members Remove Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/customer-groups/{group_id}/member-count":{"get":{"tags":["admin"],"summary":"Customer Group Member Count","description":"Membership count (the multi-group view) — shown before a group\nmessage is reviewed. Mirrored from C-IDENTITY's own route unchanged.","operationId":"customer_group_member_count_v1_admin_customer_groups__group_id__member_count_get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group 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":true,"title":"Response Customer Group Member Count V1 Admin Customer Groups  Group Id  Member Count Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/feature-flags":{"get":{"tags":["admin"],"summary":"List Feature Flags","description":"List all flags. Reads from the Redis store (primary, always available)\nand C-COMPLY's Postgres-backed store (Wave 21 §4, best-effort).\nResults are merged — C-COMPLY wins on key conflict (it is the canonical\nsource of truth for flags managed through the admin UI).\n\n`?country=CC` (optional, ISO 3166-1 alpha-2) resolves per-country\noverrides in the Redis store (override replaces the global record for\nthe same key); C-COMPLY has no country concept, so its global flags\nmerge over any same-key Redis record as before.","operationId":"list_feature_flags_v1_admin_feature_flags_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"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":{},"title":"Response List Feature Flags V1 Admin Feature Flags Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/feature-flags/{key}":{"put":{"tags":["admin"],"summary":"Set Feature Flag","operationId":"set_feature_flag_v1_admin_feature_flags__key__put","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"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/SetFeatureFlagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Feature Flag V1 Admin Feature Flags  Key  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/feature-flags/audit":{"get":{"tags":["admin"],"summary":"Feature Flag Audit","description":"Audit log of feature flag changes, backed by C-COMPLY's Postgres\nappend-only audit trail (Wave 21 §4). Optionally scoped to a single\nflag key.","operationId":"feature_flag_audit_v1_admin_feature_flags_audit_get","parameters":[{"name":"key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"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":{"type":"object","additionalProperties":true},"title":"Response Feature Flag Audit V1 Admin Feature Flags Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users":{"get":{"tags":["admin"],"summary":"List Users","description":"List users, optionally filtered by `country` (ISO 3166-1 alpha-2).\nWhen `country` is provided, C-IDENTITY filters the user register to that\nregion; when omitted, all users across all regions are returned.","operationId":"list_users_v1_admin_users_get","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"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":true,"title":"Response List Users V1 Admin Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users/{user_id}/scopes":{"put":{"tags":["admin"],"summary":"Set User Scopes","description":"Real proxy to C-IDENTITY's general `PUT /v1/admin/users/{userId}`\nedge (`AdminUpdateUserBody.Scopes`, `RestEndpoints.cs`) — there is no\ndedicated `/scopes` sub-resource on C-IDENTITY's side, just the one\nadmin-update endpoint that also handles `kycTier`. This route stayed a\n501 stub (`# `/admin/users/{user_id}/scopes` — 501 stub (no backend\nyet)`, this file's own module docstring) after that backend landed —\nclosing a stale gap, not adding a new capability.\n\nHIGH-1 fix: `admin:users:write` is a narrower role-scoped grant, NOT\nequivalent to `admin:*` (`docs/design/security/scopes.md`'s scope\nhierarchy) — forwarding `body.scopes` to C-IDENTITY verbatim let any\ncaller holding only `admin:users:write` self-promote to full admin via\n`{\"scopes\": [\"admin:*\"]}`. Two independent guards, either one alone\nwould close the hole:\n\n1. Cannot-escalate-beyond-your-own-scopes: every scope in the request\n   must already be held by the CALLER (exact or wildcard match via the\n   same `TokenPrincipal.has_scope` the auth layer itself uses) — a\n   standard \"cannot grant a scope you don't hold yourself\" rule.\n2. Self-target guard: a caller can never modify their own scopes via\n   this endpoint at all, closing a related self-escalation vector even\n   if (1) had a gap (e.g. a caller who already holds a broad wildcard\n   legitimately, but shouldn't be able to silently strip/alter their\n   own grant through this admin surface either).\n\nBoth rejections are still recorded to the audit trail (`success=False`)\n— a blocked privilege-escalation attempt is exactly the kind of event\nthat must never go unaudited.","operationId":"set_user_scopes_v1_admin_users__user_id__scopes_put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User 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/SetUserScopesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set User Scopes V1 Admin Users  User Id  Scopes Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users/by-reference/{reference_number}":{"get":{"tags":["admin"],"summary":"Get User By Reference","description":"Look up a user by their human-readable reference number (e.g.\n\"SCTX-KE-20260719-8F3K2Q\") via C-IDENTITY's\n`GET /v1/admin/users/by-reference/{referenceNumber}` REST admin edge.\n\nSame shape as `get_transaction_by_reference` above (C-LEDGER's\nequivalent lookup) and the same trust-boundary convention as `get_user`\nbelow: a real proxy, admin-scoped, 404 on an unresolved reference.","operationId":"get_user_by_reference_v1_admin_users_by_reference__reference_number__get","parameters":[{"name":"reference_number","in":"path","required":true,"schema":{"type":"string","title":"Reference Number"}},{"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":true,"title":"Response Get User By Reference V1 Admin Users By Reference  Reference Number  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users/{user_id}":{"get":{"tags":["admin"],"summary":"Get User","description":"Get full user detail including roles, scopes, activity log.","operationId":"get_user_v1_admin_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User 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":true,"title":"Response Get User V1 Admin Users  User Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin"],"summary":"Update User","description":"Update user (scopes, KYC tier).\n\nHIGH-1 fix: this general edge forwards straight into the SAME\nC-IDENTITY `AdminUpdateUserBody.Scopes` field the dedicated\n`PUT /admin/users/{user_id}/scopes` route above guards — without the\nsame check here, that route's guard was trivially bypassable by calling\nthis one instead with `{\"scopes\": [...]}`. Only applies when the body\nactually carries a `scopes` field; `kycTier`-only updates are\nunaffected.\n\nLOW fix (re-review): a PRESENT but non-list `scopes` value (a string,\ndict, or number) used to skip the guard entirely and forward straight to\nC-IDENTITY, relying on its own JSON deserializer as the only backstop.\nReject that shape explicitly with 422 here instead.","operationId":"update_user_v1_admin_users__user_id__put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update User V1 Admin Users  User Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users/{user_id}/disable":{"post":{"tags":["admin"],"summary":"Disable User","operationId":"disable_user_v1_admin_users__user_id__disable_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Disable User V1 Admin Users  User Id  Disable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users/{user_id}/enable":{"post":{"tags":["admin"],"summary":"Enable User","description":"Re-enable a disabled account.","operationId":"enable_user_v1_admin_users__user_id__enable_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enable User V1 Admin Users  User Id  Enable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users/{user_id}/delete":{"post":{"tags":["admin"],"summary":"Delete User","description":"Soft-delete (marks as deleted, keeps audit trail). POST (not DELETE)\nbecause the body carries actorId and reason — IGatewayClient.delete()\ndoes not accept a request body.","operationId":"delete_user_v1_admin_users__user_id__delete_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete User V1 Admin Users  User Id  Delete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users/{user_id}/suspend":{"post":{"tags":["admin"],"summary":"Suspend User","operationId":"suspend_user_v1_admin_users__user_id__suspend_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Suspend User V1 Admin Users  User Id  Suspend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users/{user_id}/ban":{"post":{"tags":["admin"],"summary":"Ban User","operationId":"ban_user_v1_admin_users__user_id__ban_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ban User V1 Admin Users  User Id  Ban Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users/{user_id}/reactivate":{"post":{"tags":["admin"],"summary":"Reactivate User","description":"Reactivate a suspended/banned user account. C-IDENTITY's\n`UserStatusService.ReactivateAsync` accepts any current status other than\nActive — this is the single reversible path for both suspension and ban\n(per §5.3a-iv). `reason` is optional for reactivate (C-IDENTITY doesn't\nrequire it) but is forwarded if provided.","operationId":"reactivate_user_v1_admin_users__user_id__reactivate_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reactivate User V1 Admin Users  User Id  Reactivate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/audit-log":{"get":{"tags":["admin"],"summary":"List Audit Log","operationId":"list_audit_log_v1_admin_audit_log_get","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"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":true,"title":"Response List Audit Log V1 Admin Audit Log Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/transactions":{"get":{"tags":["admin"],"summary":"List Transactions","description":"Admin-scoped read of recent transaction entries from C-LEDGER.\nReturns entries with event-type badges consistent with the live-feed\n`_TYPE_BADGE_CATEGORIES` mapping.","operationId":"list_transactions_v1_admin_transactions_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"type_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Filter"}},{"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":true,"title":"Response List Transactions V1 Admin Transactions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/transactions/by-reference/{reference_number}":{"get":{"tags":["admin"],"summary":"Get Transaction By Reference","description":"Look up a transaction by its human-readable reference number (e.g.\n\"STXN-KE-20260719-8F3K2Q\") via C-LEDGER's GetTransactionByReference gRPC.\n\nReturns the transaction metadata; raises 404 if the reference does not\nresolve to a committed transaction.","operationId":"get_transaction_by_reference_v1_admin_transactions_by_reference__reference_number__get","parameters":[{"name":"reference_number","in":"path","required":true,"schema":{"type":"string","title":"Reference Number"}},{"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":true,"title":"Response Get Transaction By Reference V1 Admin Transactions By Reference  Reference Number  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/live-feed":{"get":{"tags":["admin"],"summary":"List Live Feed","description":"Enriched audit log for the live transaction/audit feed. Each entry\ncarries a derived `type` badge (TRANSFER, COMPLIANCE, AUTH, etc.) so the\nUI can render type-specific styling without hardcoding action-prefix\nlogic client-side. Supports an optional `type_filter` query param to\nfilter to a single badge category.\n\nWave 17 §1.6: also merges C-COMPLY decision audit entries (tagged\n`compliance:decision`) into the same feed.\nWave 17 §1.5: fans out to C-LEDGER for transaction-stream entries.\n\nThe final window is a FAIR merge, not a naive top-`limit` slice: each\nsource's newest entry is pinned into the window first, so a busy source\n(e.g. the ledger transaction flood during seed replay) cannot crowd the\nother sources out entirely — the feed must stay recognisably merged.","operationId":"list_live_feed_v1_admin_live_feed_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"type_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Filter"}},{"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":true,"title":"Response List Live Feed V1 Admin Live Feed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/feature-flags/status":{"get":{"tags":["admin"],"summary":"Get Feature Flag Status","description":"Aggregated feature-flag and circuit-breaker status view for the admin\nflags dashboard. Returns flags grouped by service prefix, plus the\ncurrent circuit-breaker ceiling when a transfers client is available.","operationId":"get_feature_flag_status_v1_admin_feature_flags_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":{"type":"object","additionalProperties":true,"title":"Response Get Feature Flag Status V1 Admin Feature Flags Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/platform-health":{"get":{"tags":["admin"],"summary":"Get Platform Health","operationId":"get_platform_health_v1_admin_platform_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":{"type":"object","additionalProperties":true,"title":"Response Get Platform Health V1 Admin Platform Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/status/services":{"get":{"tags":["admin"],"summary":"List Status Services","description":"All service statuses (admin view — includes update metadata).","operationId":"list_status_services_v1_admin_status_services_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":{"type":"object","additionalProperties":true},"title":"Response List Status Services V1 Admin Status Services Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/status/services/{service_name}":{"put":{"tags":["admin"],"summary":"Update Status Service","description":"Update a service status (e.g. operational -> degraded).","operationId":"update_status_service_v1_admin_status_services__service_name__put","parameters":[{"name":"service_name","in":"path","required":true,"schema":{"type":"string","title":"Service Name"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Status Service V1 Admin Status Services  Service Name  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/status/incidents":{"get":{"tags":["admin"],"summary":"List Status Incidents","description":"All incidents (admin view — includes all updates).","operationId":"list_status_incidents_v1_admin_status_incidents_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"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":{"type":"object","additionalProperties":true},"title":"Response List Status Incidents V1 Admin Status Incidents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Status Incident","description":"Create a new incident.","operationId":"create_status_incident_v1_admin_status_incidents_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Status Incident V1 Admin Status Incidents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/status/incidents/{incident_id}":{"put":{"tags":["admin"],"summary":"Update Status Incident","description":"Update an incident (add a timeline update, change status).","operationId":"update_status_incident_v1_admin_status_incidents__incident_id__put","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Status Incident V1 Admin Status Incidents  Incident Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/business/corridor-volume":{"get":{"tags":["admin"],"summary":"Get Corridor Volume","description":"Business-level corridor volume from PY-ANALYTICS.","operationId":"get_corridor_volume_v1_admin_analytics_business_corridor_volume_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"type":"string","default":"KE","title":"Country"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"day","title":"Period"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Corridor Volume V1 Admin Analytics Business Corridor Volume Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/business/dispute-rate":{"get":{"tags":["admin"],"summary":"Get Dispute Rate","description":"Business-level dispute rate from PY-ANALYTICS.","operationId":"get_dispute_rate_v1_admin_analytics_business_dispute_rate_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":"object","additionalProperties":true,"title":"Response Get Dispute Rate V1 Admin Analytics Business Dispute Rate Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/sandbox/credits":{"get":{"tags":["admin"],"summary":"Get Sandbox Credits","description":"Sandbox credits issued, by actor, from PY-ANALYTICS.","operationId":"get_sandbox_credits_v1_admin_analytics_sandbox_credits_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Sandbox Credits V1 Admin Analytics Sandbox Credits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/sandbox/blocked-actions":{"get":{"tags":["admin"],"summary":"Get Sandbox Blocked Actions","description":"Sandbox blocked cash-out funnel from PY-ANALYTICS.","operationId":"get_sandbox_blocked_actions_v1_admin_analytics_sandbox_blocked_actions_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Sandbox Blocked Actions V1 Admin Analytics Sandbox Blocked Actions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/sandbox/reconciliation":{"get":{"tags":["admin"],"summary":"Get Sandbox Reconciliation","description":"The ClickHouse side of the sandbox reconciliation proof.","operationId":"get_sandbox_reconciliation_v1_admin_analytics_sandbox_reconciliation_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Sandbox Reconciliation V1 Admin Analytics Sandbox Reconciliation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/sandbox/p2p-volume":{"get":{"tags":["admin"],"summary":"Get Sandbox P2P Volume","description":"Sandbox P2P circulation volume (WalletP2P posted outcomes) from\nPY-ANALYTICS — the F-3 dashboard card's circulation metric.","operationId":"get_sandbox_p2p_volume_v1_admin_analytics_sandbox_p2p_volume_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Sandbox P2P Volume V1 Admin Analytics Sandbox P2P Volume Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/templates/categories":{"get":{"tags":["admin"],"summary":"List Template Categories","operationId":"list_template_categories_v1_templates_categories_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":{},"title":"Response List Template Categories V1 Templates Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/templates":{"get":{"tags":["admin"],"summary":"List Templates","operationId":"list_templates_v1_templates_get","parameters":[{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"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":true,"title":"Response List Templates V1 Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Publish Template","operationId":"publish_template_v1_templates_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Template V1 Templates Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/templates/preview":{"post":{"tags":["admin"],"summary":"Preview Template","operationId":"preview_template_v1_templates_preview_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Template V1 Templates Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/templates/send-test":{"post":{"tags":["admin"],"summary":"Send Test Template","operationId":"send_test_template_v1_templates_send_test_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Test Template V1 Templates Send Test Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/templates/{key}/current":{"get":{"tags":["admin"],"summary":"Current Template","operationId":"current_template_v1_templates__key__current_get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"locale","in":"query","required":true,"schema":{"type":"string","title":"Locale"}},{"name":"channel","in":"query","required":true,"schema":{"type":"string","title":"Channel"}},{"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":true,"title":"Response Current Template V1 Templates  Key  Current Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/templates/{key}/history":{"get":{"tags":["admin"],"summary":"History Template","operationId":"history_template_v1_templates__key__history_get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"locale","in":"query","required":true,"schema":{"type":"string","title":"Locale"}},{"name":"channel","in":"query","required":true,"schema":{"type":"string","title":"Channel"}},{"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":{},"title":"Response History Template V1 Templates  Key  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/templates/{key}/metadata":{"put":{"tags":["admin"],"summary":"Update Template Metadata","operationId":"update_template_metadata_v1_templates__key__metadata_put","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"locale","in":"query","required":true,"schema":{"type":"string","title":"Locale"}},{"name":"channel","in":"query","required":true,"schema":{"type":"string","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Template Metadata V1 Templates  Key  Metadata Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/org/hierarchy":{"get":{"tags":["admin"],"summary":"Get Org Hierarchy","operationId":"get_org_hierarchy_v1_admin_org_hierarchy_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":{},"title":"Response Get Org Hierarchy V1 Admin Org Hierarchy Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/departments":{"get":{"tags":["admin"],"summary":"List Departments","operationId":"list_departments_v1_admin_departments_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":{},"title":"Response List Departments V1 Admin Departments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Department","operationId":"create_department_v1_admin_departments_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Department V1 Admin Departments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/departments/{department_id}":{"put":{"tags":["admin"],"summary":"Update Department","operationId":"update_department_v1_admin_departments__department_id__put","parameters":[{"name":"department_id","in":"path","required":true,"schema":{"type":"string","title":"Department Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Department V1 Admin Departments  Department Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Department","operationId":"delete_department_v1_admin_departments__department_id__delete","parameters":[{"name":"department_id","in":"path","required":true,"schema":{"type":"string","title":"Department 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":true,"title":"Response Delete Department V1 Admin Departments  Department Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/org/stats":{"get":{"tags":["admin"],"summary":"Get Org Stats","operationId":"get_org_stats_v1_admin_org_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":{"type":"object","additionalProperties":true,"title":"Response Get Org Stats V1 Admin Org Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/teams":{"get":{"tags":["admin"],"summary":"List Teams","operationId":"list_teams_v1_admin_teams_get","parameters":[{"name":"department_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department 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":{},"title":"Response List Teams V1 Admin Teams Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Team","operationId":"create_team_v1_admin_teams_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Team V1 Admin Teams Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/staff":{"get":{"tags":["admin"],"summary":"List Staff","operationId":"list_staff_v1_admin_staff_get","parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"}},{"name":"department_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department 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":{},"title":"Response List Staff V1 Admin Staff Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/staff/{user_id}/roles":{"post":{"tags":["admin"],"summary":"Assign Staff Role","operationId":"assign_staff_role_v1_admin_staff__user_id__roles_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Assign Staff Role V1 Admin Staff  User Id  Roles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/staff/{user_id}/roles/{role_key}":{"delete":{"tags":["admin"],"summary":"Remove Staff Role","operationId":"remove_staff_role_v1_admin_staff__user_id__roles__role_key__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"role_key","in":"path","required":true,"schema":{"type":"string","title":"Role Key"}},{"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":true,"title":"Response Remove Staff Role V1 Admin Staff  User Id  Roles  Role Key  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/staff/invites":{"get":{"tags":["admin"],"summary":"List Staff Invites","operationId":"list_staff_invites_v1_admin_staff_invites_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}},{"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":true,"title":"Response List Staff Invites V1 Admin Staff Invites Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Staff Invite","operationId":"create_staff_invite_v1_admin_staff_invites_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Staff Invite V1 Admin Staff Invites Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/staff/invites/{invite_id}/revoke":{"post":{"tags":["admin"],"summary":"Revoke Staff Invite","operationId":"revoke_staff_invite_v1_admin_staff_invites__invite_id__revoke_post","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite 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":true,"title":"Response Revoke Staff Invite V1 Admin Staff Invites  Invite Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/staff/invites/{invite_id}/resend":{"post":{"tags":["admin"],"summary":"Resend Staff Invite","operationId":"resend_staff_invite_v1_admin_staff_invites__invite_id__resend_post","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite 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":true,"title":"Response Resend Staff Invite V1 Admin Staff Invites  Invite Id  Resend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/jit/request":{"post":{"tags":["admin"],"summary":"Create Jit Request","description":"Self-service JIT privilege-escalation request. C-IDENTITY's\nPOST /v1/admin/jit/request (RestEndpoints.cs) has existed since the JIT\nroutes were written -- list/approve/deny below were all proxied, but\nnothing could ever CREATE a request through any real client. Found\nwhile auditing e2e coverage for the JIT workflow (list/approve/deny\nare covered; this route never existed to test).","operationId":"create_jit_request_v1_admin_jit_request_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Jit Request V1 Admin Jit Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/jit/grants":{"get":{"tags":["admin"],"summary":"List My Jit Grants","description":"The caller's own active/expired JIT grants. C-IDENTITY's\nGET /v1/admin/jit/grants (RestEndpoints.cs) resolves `req.UserId()`\nfrom the bearer token itself, so this route was never proxied at all —\nsame \"route exists on C-IDENTITY, PY-GW never wired it\" gap as\nPOST /v1/admin/jit/request above. Gated on ADMIN_JIT_REQUEST (not\nADMIN_JIT_APPROVE) since viewing your own grants is the requester's\nown capability, not an approver's.","operationId":"list_my_jit_grants_v1_admin_jit_grants_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":{},"title":"Response List My Jit Grants V1 Admin Jit Grants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/jit/requests":{"get":{"tags":["admin"],"summary":"List Jit Requests","operationId":"list_jit_requests_v1_admin_jit_requests_get","parameters":[{"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":{"type":"array","items":{},"title":"Response List Jit Requests V1 Admin Jit Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/jit/requests/{request_id}/approve":{"post":{"tags":["admin"],"summary":"Approve Jit Request","operationId":"approve_jit_request_v1_admin_jit_requests__request_id__approve_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request 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":true,"title":"Response Approve Jit Request V1 Admin Jit Requests  Request Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/jit/requests/{request_id}/deny":{"post":{"tags":["admin"],"summary":"Deny Jit Request","operationId":"deny_jit_request_v1_admin_jit_requests__request_id__deny_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Deny Jit Request V1 Admin Jit Requests  Request Id  Deny Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/jit/policies":{"get":{"tags":["admin"],"summary":"List Jit Policies","operationId":"list_jit_policies_v1_admin_jit_policies_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":{},"title":"Response List Jit Policies V1 Admin Jit Policies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/jit/policies/{policy_id}":{"put":{"tags":["admin"],"summary":"Upsert Jit Policy","operationId":"upsert_jit_policy_v1_admin_jit_policies__policy_id__put","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Jit Policy V1 Admin Jit Policies  Policy Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/jobs/":{"get":{"tags":["admin"],"summary":"List Background Jobs","description":"Aggregate background job status from ALL platform services.\n\nFans out to every C# service's /internal/jobs and PY-WORKER's\n/jobs/background, merges the gateway's OWN registered jobs, then\nreturns a single list tagged by service. A single unreachable service\nis silently omitted from the result.","operationId":"list_background_jobs_v1_admin_jobs__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":"object","additionalProperties":true,"title":"Response List Background Jobs V1 Admin Jobs  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/jobs/{name}":{"get":{"tags":["admin"],"summary":"Get Background Job","description":"Get a single background job by name, searching across all services.\n\nThe gateway's own registry first (its kit jobs carry a REAL run-history\nring buffer). Otherwise the job is resolved from the same aggregated\nfan-out the list endpoint uses — no C# service registers a per-job\n`/internal/jobs/{name}` route, so the previous per-service `/{name}`\nfan-out 404'd on every service and the dialog always came back empty.","operationId":"get_background_job_v1_admin_jobs__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"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":true,"title":"Response Get Background Job V1 Admin Jobs  Name  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/sandbox/recipients":{"get":{"tags":["admin-sandbox"],"summary":"Find Sandbox Recipients","description":"Who a phone number, email, @handle or till code belongs to, with the\ndetails an admin checks before sending (name, handle, reference number,\ncountry, status) and every sandbox wallet they could send to.","operationId":"find_sandbox_recipients_v1_admin_sandbox_recipients_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"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":true,"title":"Response Find Sandbox Recipients V1 Admin Sandbox Recipients Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/sandbox/credit":{"post":{"tags":["admin-sandbox"],"summary":"Admin Sandbox Credit","description":"Pays the sandbox wallet the admin picked (`ownerId` + `walletId`, from\nthe recipient lookup) through C-TRANSFERS' mesh-internal\n/internal/sandbox/credit with actor=admin. The money circulates but can\nnever be cashed out. The caller's Idempotency-Key is forwarded unchanged:\na fresh key per intentional top-up, a retried one replays the credit.","operationId":"admin_sandbox_credit_v1_admin_sandbox_credit_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Sandbox Credit V1 Admin Sandbox Credit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/risk-models/{model_kind}":{"get":{"tags":["admin"],"summary":"List Versions","operationId":"list_versions_v1_admin_risk_models__model_kind__get","parameters":[{"name":"model_kind","in":"path","required":true,"schema":{"type":"string","title":"Model Kind"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Versions V1 Admin Risk Models  Model Kind  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/risk-model-promotions":{"get":{"tags":["admin"],"summary":"List Promotions","operationId":"list_promotions_v1_admin_risk_model_promotions_get","parameters":[{"name":"open_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Open Only"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Promotions V1 Admin Risk Model Promotions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/risk-models/versions/{version}/promotions":{"post":{"tags":["admin"],"summary":"Propose","operationId":"propose_v1_admin_risk_models_versions__version__promotions_post","parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"string","title":"Version"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposeBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Propose V1 Admin Risk Models Versions  Version  Promotions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/risk-model-promotions/{promotion_id}/decision":{"post":{"tags":["admin"],"summary":"Decide","operationId":"decide_v1_admin_risk_model_promotions__promotion_id__decision_post","parameters":[{"name":"promotion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Promotion 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/DecideBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Decide V1 Admin Risk Model Promotions  Promotion Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/risk-models/{model_kind}/rollback":{"post":{"tags":["admin"],"summary":"Rollback","operationId":"rollback_v1_admin_risk_models__model_kind__rollback_post","parameters":[{"name":"model_kind","in":"path","required":true,"schema":{"type":"string","title":"Model Kind"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Rollback V1 Admin Risk Models  Model Kind  Rollback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/assistant/funnel":{"get":{"summary":"Get Assistant Funnel","description":"Per-intent classified → proposed → confirmed/rejected funnel.","operationId":"get_assistant_funnel_v1_admin_analytics_assistant_funnel_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Assistant Funnel V1 Admin Analytics Assistant Funnel Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/assistant/sessions":{"get":{"summary":"Get Assistant Sessions","description":"Sessions, turns, derived duration, text/voice and locale mix.","operationId":"get_assistant_sessions_v1_admin_analytics_assistant_sessions_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Assistant Sessions V1 Admin Analytics Assistant Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/assistant/conversion":{"get":{"summary":"Get Assistant Conversion","description":"Chat vs app share per transfer kind, and card conversion per kind.","operationId":"get_assistant_conversion_v1_admin_analytics_assistant_conversion_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Assistant Conversion V1 Admin Analytics Assistant Conversion Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/assistant/latency":{"get":{"summary":"Get Assistant Latency","description":"Classification latency percentiles (p50/p90/p95) per provider and intent.","operationId":"get_assistant_latency_v1_admin_analytics_assistant_latency_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Assistant Latency V1 Admin Analytics Assistant Latency Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/assistant/trend":{"get":{"summary":"Get Assistant Trend","description":"The intent funnel as a daily series (classified → proposed → terminal).","operationId":"get_assistant_trend_v1_admin_analytics_assistant_trend_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Assistant Trend V1 Admin Analytics Assistant Trend Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/assistant/knowledge":{"get":{"tags":["assistant-knowledge"],"summary":"List Articles","operationId":"list_articles_v1_admin_assistant_knowledge_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":"object","additionalProperties":true,"title":"Response List Articles V1 Admin Assistant Knowledge Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/assistant/knowledge/search":{"get":{"tags":["assistant-knowledge"],"summary":"Try Search","operationId":"try_search_v1_admin_assistant_knowledge_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":300,"title":"Q"}},{"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":true,"title":"Response Try Search V1 Admin Assistant Knowledge Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/assistant/knowledge/insights":{"get":{"tags":["assistant-knowledge"],"summary":"Insights","description":"AC-29: article usage and ratings, and the questions Amani could not\nanswer (scrubbed, no user).","operationId":"insights_v1_admin_assistant_knowledge_insights_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"default":30,"title":"Days"}},{"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":true,"title":"Response Insights V1 Admin Assistant Knowledge Insights Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/assistant/knowledge/{article_id}":{"get":{"tags":["assistant-knowledge"],"summary":"Get Article","operationId":"get_article_v1_admin_assistant_knowledge__article_id__get","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9-]{1,64}$","title":"Article 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":true,"title":"Response Get Article V1 Admin Assistant Knowledge  Article Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/assistant/knowledge/{article_id}/draft":{"put":{"tags":["assistant-knowledge"],"summary":"Save Draft","operationId":"save_draft_v1_admin_assistant_knowledge__article_id__draft_put","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9-]{1,64}$","title":"Article 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/Body_save_draft_v1_admin_assistant_knowledge__article_id__draft_put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Draft V1 Admin Assistant Knowledge  Article Id  Draft Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/assistant/knowledge/{article_id}/submit":{"post":{"tags":["assistant-knowledge"],"summary":"Submit","operationId":"submit_v1_admin_assistant_knowledge__article_id__submit_post","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9-]{1,64}$","title":"Article 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":true,"title":"Response Submit V1 Admin Assistant Knowledge  Article Id  Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/assistant/knowledge/{article_id}/publish":{"post":{"tags":["assistant-knowledge"],"summary":"Publish","operationId":"publish_v1_admin_assistant_knowledge__article_id__publish_post","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9-]{1,64}$","title":"Article 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":true,"title":"Response Publish V1 Admin Assistant Knowledge  Article Id  Publish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/assistant/knowledge/{article_id}/send-back":{"post":{"tags":["assistant-knowledge"],"summary":"Send Back","operationId":"send_back_v1_admin_assistant_knowledge__article_id__send_back_post","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9-]{1,64}$","title":"Article 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/Body_send_back_v1_admin_assistant_knowledge__article_id__send_back_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Back V1 Admin Assistant Knowledge  Article Id  Send Back Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/business/overview":{"get":{"summary":"Get Business Overview","description":"Platform GMV, count, avg ticket and success rate by country/kind/currency/day.","operationId":"get_business_overview_v1_admin_analytics_business_overview_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Business Overview V1 Admin Analytics Business Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/business/failure-reasons":{"get":{"summary":"Get Failure Reasons","description":"Non-posted outcome counts by the C-TRANSFERS status/reason vocabulary.","operationId":"get_failure_reasons_v1_admin_analytics_business_failure_reasons_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Failure Reasons V1 Admin Analytics Business Failure Reasons Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/business/settlement":{"get":{"summary":"Get Business Settlement","description":"Recon match/break rates, reversal volume by country, dispute aging.","operationId":"get_business_settlement_v1_admin_analytics_business_settlement_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Business Settlement V1 Admin Analytics Business Settlement Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/business/revenue":{"get":{"summary":"Get Business Revenue","description":"Billing revenue by tier, ledger net flow by currency, product mix by origin.","operationId":"get_business_revenue_v1_admin_analytics_business_revenue_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Business Revenue V1 Admin Analytics Business Revenue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/growth/signups":{"get":{"summary":"Get Growth Signups","description":"Wallets opened by country/currency/day.","operationId":"get_growth_signups_v1_admin_analytics_growth_signups_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Growth Signups V1 Admin Analytics Growth Signups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/growth/activation":{"get":{"summary":"Get Growth Activation","description":"Signup → first transfer → 5+ transfers funnel.","operationId":"get_growth_activation_v1_admin_analytics_growth_activation_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Growth Activation V1 Admin Analytics Growth Activation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/growth/engagement":{"get":{"summary":"Get Growth Engagement","description":"DAU/WAU/MAU, stickiness, auth-method mix, login geography, new-device share.","operationId":"get_growth_engagement_v1_admin_analytics_growth_engagement_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Growth Engagement V1 Admin Analytics Growth Engagement Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/growth/retention":{"get":{"summary":"Get Growth Retention","description":"Monthly first-activity cohorts with following-month retention.","operationId":"get_growth_retention_v1_admin_analytics_growth_retention_get","parameters":[{"name":"months","in":"query","required":false,"schema":{"type":"integer","default":6,"title":"Months"}},{"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":true,"title":"Response Get Growth Retention V1 Admin Analytics Growth Retention Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/cards/overview":{"get":{"summary":"Get Cards Overview","description":"Physical-card fulfillment funnel: latest status per card by country.","operationId":"get_cards_overview_v1_admin_analytics_cards_overview_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Cards Overview V1 Admin Analytics Cards Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/cards/disputes":{"get":{"summary":"Get Cards Disputes","description":"Card dispute outcomes (approved/rejected) with disputed volume.","operationId":"get_cards_disputes_v1_admin_analytics_cards_disputes_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Cards Disputes V1 Admin Analytics Cards Disputes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/compliance/ops":{"get":{"summary":"Get Compliance Ops","description":"AML ops: decision mix, top rule hits, approval rate, review backlog.","operationId":"get_compliance_ops_v1_admin_analytics_compliance_ops_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Compliance Ops V1 Admin Analytics Compliance Ops Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/products/overview":{"get":{"summary":"Get Products Overview","description":"Value-added product purchases: totals + mix by type, provider and SKU.","operationId":"get_products_overview_v1_admin_analytics_products_overview_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"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":true,"title":"Response Get Products Overview V1 Admin Analytics Products Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/analytics/pipeline/health":{"get":{"summary":"Get Pipeline Health","description":"Per-table data freshness and 24h row counts.","operationId":"get_pipeline_health_v1_admin_analytics_pipeline_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":{"type":"object","additionalProperties":true,"title":"Response Get Pipeline Health V1 Admin Analytics Pipeline Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/risk-signals":{"get":{"tags":["admin"],"summary":"Get Fraud Signals","operationId":"get_fraud_signals_v1_admin_risk_signals_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"high","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":900,"title":"High"}},{"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":true,"title":"Response Get Fraud Signals V1 Admin Risk Signals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/providers":{"get":{"tags":["providers"],"summary":"List Providers","operationId":"list_providers_v1_admin_providers_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":{},"title":"Response List Providers V1 Admin Providers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/providers/{provider_id}":{"put":{"tags":["providers"],"summary":"Set Provider Enabled","description":"REAL proxy to PY-PRODUCTS' `PUT /v1/providers/{id}`. PY-PRODUCTS\ndurably persists the toggle + writes its own audit row and updates the\nshared, Redis-backed dispatch-time cache so a disabled provider is\nexcluded from `resolve_one` at purchase time on every replica.","operationId":"set_provider_enabled_v1_admin_providers__provider_id__put","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider 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/SetProviderEnabledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Provider Enabled V1 Admin Providers  Provider Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/providers/{provider_id}/config-schema":{"get":{"tags":["providers"],"summary":"Get Provider Config Schema","description":"REAL proxy to PY-PRODUCTS' `GET /v1/providers/{id}/config-schema`\n(Wave 47 Phase 2.1b). Read-only — no audit log entry.","operationId":"get_provider_config_schema_v1_admin_providers__provider_id__config_schema_get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider 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":true,"title":"Response Get Provider Config Schema V1 Admin Providers  Provider Id  Config Schema Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/providers/{provider_id}/config":{"put":{"tags":["providers"],"summary":"Set Provider Config","description":"REAL proxy to PY-PRODUCTS' `PUT /v1/providers/{id}/config` (Wave 47\nPhase 2.1b). `actor` is always `principal.user_id` from the authenticated\nscope — never taken from the client-supplied body, matching\n`set_provider_enabled`'s trust-boundary convention. PY-PRODUCTS is the\ndurable source of truth for the before/after config values\n(`provider_config_audit`); this route's own audit-log entry is\nintentionally a short summary (field names only, not raw values that\nmight be money amounts) rather than duplicating that trail.","operationId":"set_provider_config_v1_admin_providers__provider_id__config_put","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider 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/SetProviderConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Provider Config V1 Admin Providers  Provider Id  Config Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/platform-health/slo-config":{"get":{"tags":["platform-health-slo"],"summary":"Get Platform Health Slo Config","operationId":"get_platform_health_slo_config_v1_admin_platform_health_slo_config_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/SloConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/platform-health/uptime":{"get":{"tags":["platform-health-slo"],"summary":"Get Platform Health Uptime","operationId":"get_platform_health_uptime_v1_admin_platform_health_uptime_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":60,"title":"Days"}},{"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/UptimeHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/password-reset/request":{"post":{"tags":["public"],"summary":"Request Password Reset","operationId":"request_password_reset_v1_auth_password_reset_request_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Request Password Reset V1 Auth Password Reset Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/password-reset/confirm":{"post":{"tags":["public"],"summary":"Confirm Password Reset","operationId":"confirm_password_reset_v1_auth_password_reset_confirm_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Confirm Password Reset V1 Auth Password Reset Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/change-password":{"post":{"tags":["public"],"summary":"Change Password","operationId":"change_password_v1_auth_change_password_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Change Password V1 Auth Change Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/invites/lookup":{"post":{"tags":["public"],"summary":"Lookup Invite","operationId":"lookup_invite_v1_auth_invites_lookup_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Lookup Invite V1 Auth Invites Lookup Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/invites/accept":{"post":{"tags":["public"],"summary":"Accept Invite","operationId":"accept_invite_v1_auth_invites_accept_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Accept Invite V1 Auth Invites Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/register":{"post":{"tags":["public"],"summary":"Register User","operationId":"register_user_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Register User V1 Auth Register Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/login":{"post":{"tags":["public"],"summary":"Login User","operationId":"login_user_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Login User V1 Auth Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/refresh":{"post":{"tags":["public"],"summary":"Refresh Token","operationId":"refresh_token_v1_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Refresh Token V1 Auth Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/phone/otp-channels":{"get":{"tags":["public"],"summary":"Phone Otp Channels","operationId":"phone_otp_channels_v1_auth_phone_otp_channels_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Phone Otp Channels V1 Auth Phone Otp Channels Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/phone/register/request-otp":{"post":{"tags":["public"],"summary":"Request Phone Register Otp","operationId":"request_phone_register_otp_v1_auth_phone_register_request_otp_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Request Phone Register Otp V1 Auth Phone Register Request Otp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/phone/register/verify-otp":{"post":{"tags":["public"],"summary":"Verify Phone Register Otp","operationId":"verify_phone_register_otp_v1_auth_phone_register_verify_otp_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Verify Phone Register Otp V1 Auth Phone Register Verify Otp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/phone/login/request-otp":{"post":{"tags":["public"],"summary":"Request Phone Login Otp","operationId":"request_phone_login_otp_v1_auth_phone_login_request_otp_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Request Phone Login Otp V1 Auth Phone Login Request Otp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/phone/login/verify-otp":{"post":{"tags":["public"],"summary":"Verify Phone Login Otp","operationId":"verify_phone_login_otp_v1_auth_phone_login_verify_otp_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Verify Phone Login Otp V1 Auth Phone Login Verify Otp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/countries":{"get":{"tags":["public"],"summary":"List Countries","description":"The launched country set with full metadata, server-driven so a\ncountry can be enabled/disabled without a client redeploy. The static\ndisplay-name catalogue for every known (not necessarily launched) code\nis `COUNTRIES` from the shared kit — never round-tripped here.","operationId":"list_countries_v1_countries_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Countries V1 Countries Get"}}}}}}},"/v1/flags":{"get":{"tags":["public"],"summary":"List Public Flags","description":"Flat `{key: enabled}` map of every known feature flag's effective\nvalue — the read side of the client-side flag contract documented in\n`docs/design/feature-flags-client-contract.md`. When `?country=CC` is\nsupplied, per-country overrides are resolved (override replaces the\nglobal value for the same key).","operationId":"list_public_flags_v1_flags_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Public Flags V1 Flags Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/status/history":{"get":{"tags":["public"],"summary":"Get Status History","description":"Return incident history for the past N days (default 7, max 90).\n\nEach incident is returned with its timeline of updates but without\ninternal operator names (createdBy is redacted).","operationId":"get_status_history_v1_public_status_history_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Status History V1 Public Status History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/problem-reports":{"post":{"tags":["problem-reports"],"summary":"Report Problem","operationId":"report_problem_v1_problem_reports_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/ProblemReportBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Report Problem V1 Problem Reports Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/content/posts":{"get":{"tags":["content"],"summary":"List Published Posts","operationId":"list_published_posts_v1_content_posts_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/content/posts/{slug}":{"get":{"tags":["content"],"summary":"Get Published Post","operationId":"get_published_post_v1_content_posts__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPost"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/content/posts":{"get":{"tags":["content"],"summary":"Admin List Posts","operationId":"admin_list_posts_v1_admin_content_posts_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Pagesize"}},{"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/PostListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["content"],"summary":"Admin Create Post","operationId":"admin_create_post_v1_admin_content_posts_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/CreatePostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPost"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/content/posts/{post_id}":{"get":{"tags":["content"],"summary":"Admin Get Post","description":"Get a single post by id (admin only, includes drafts).","operationId":"admin_get_post_v1_admin_content_posts__post_id__get","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post 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/BlogPost"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["content"],"summary":"Admin Update Post","operationId":"admin_update_post_v1_admin_content_posts__post_id__put","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post 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/UpdatePostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPost"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["content"],"summary":"Admin Delete Post","operationId":"admin_delete_post_v1_admin_content_posts__post_id__delete","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/content/images":{"post":{"tags":["content"],"summary":"Upload Image","description":"Upload an image for use in blog posts.\n\nReturns ``{ url, id, filename, sizeBytes }``.  The returned ``url`` is a\nrelative path (``/uploads/<uuid>.<ext>``) that the public site can\nresolve against the gateway base URL.","operationId":"upload_image_v1_admin_content_images_post","parameters":[{"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_image_v1_admin_content_images_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/uploads/{name}":{"get":{"tags":["content"],"summary":"Public Image","description":"A blog image, public by design. Only names under the public prefix\nare reachable from here.","operationId":"public_image_uploads__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/status":{"get":{"tags":["public"],"summary":"Get Public Status","description":"The platform's status as customers see it.","operationId":"get_public_status_v1_public_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Public Status V1 Public Status Get"}}}}}}},"/v1/tickets":{"get":{"tags":["tickets"],"summary":"List Tickets","description":"List tickets with optional filters. Results scoped to the CRM team.","operationId":"list_tickets_v1_tickets_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TicketStatus"},{"type":"null"}],"title":"Status"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TicketCategory"},{"type":"null"}],"title":"Category"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TicketPriority"},{"type":"null"}],"title":"Priority"}},{"name":"assigned_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned To"}},{"name":"created_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"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":200,"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/TicketListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tickets"],"summary":"Create Ticket","description":"Create a new ticket. Sends a notification to the creator.\n\nAny authenticated principal may create a ticket — support is\nend-user self-service (TS-APP's support screen), not staff-only.\nThe previous `tickets:write` staff gate made the in-app support\nsurface 403 for every regular user.","operationId":"create_ticket_v1_tickets_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/CreateTicketRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/queue":{"get":{"tags":["tickets"],"summary":"Get Team Queue","description":"Team queue -- unassigned tickets sorted by priority (highest first) + age.\n\nQueries for tickets where assigned_to IS NULL and status is not closed/resolved.","operationId":"get_team_queue_v1_tickets_queue_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":200,"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/TicketListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/mine":{"get":{"tags":["tickets"],"summary":"Get My Tickets","description":"Tickets assigned to the authenticated staff member.","operationId":"get_my_tickets_v1_tickets_mine_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":200,"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/TicketListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/my":{"get":{"tags":["tickets"],"summary":"My Tickets","description":"List tickets created by the authenticated user (in-app support).\n\nFor staff users this returns tickets *assigned to them* (same as /mine).\nFor end-user customers this returns tickets they created.\n\nREGISTERED BEFORE the parameterized `/v1/tickets/{ticket_id}` route\nbelow — FastAPI matches routes in registration order, and `my` would\notherwise be captured by `{ticket_id}` and 422 as a malformed UUID\n(observed live: the mobile support list silently fell into its\noffline fallback for exactly this reason).","operationId":"my_tickets_v1_tickets_my_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":200,"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/TicketListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/{ticket_id}":{"get":{"tags":["tickets"],"summary":"Get Ticket","description":"Get full ticket detail including comments and status history.\n\nStaff can read any ticket; end-user customers can read only their own\n(the in-app support surface — TS-APP's support chat calls this for the\nticket header), and internal comments are filtered out of the\nend-user view.","operationId":"get_ticket_v1_tickets__ticket_id__get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tickets"],"summary":"Update Ticket","description":"Update ticket fields. Sends a notification to the creator.","operationId":"update_ticket_v1_tickets__ticket_id__put","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/UpdateTicketRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/{ticket_id}/comments":{"get":{"tags":["tickets"],"summary":"List Comments","description":"List comments for a ticket in flat chronological order.","operationId":"list_comments_v1_tickets__ticket_id__comments_get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/TicketComment"},"title":"Response List Comments V1 Tickets  Ticket Id  Comments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tickets"],"summary":"Add Comment","description":"Add a comment to a ticket. Public comments trigger creator notification.","operationId":"add_comment_v1_tickets__ticket_id__comments_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/app__adapters__tickets__models__CreateCommentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketComment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/{ticket_id}/chat":{"get":{"tags":["tickets"],"summary":"Get Chat Messages","description":"Get chat messages for a ticket.\n\nEnd-user customers see only public (non-internal) messages.\nStaff users see all messages including internal notes.","operationId":"get_chat_messages_v1_tickets__ticket_id__chat_get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/TicketComment"},"title":"Response Get Chat Messages V1 Tickets  Ticket Id  Chat Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tickets"],"summary":"Send Chat Message","description":"Send a chat message on a ticket.\n\n- Staff messages are always public (is_internal=False) — they're\n  user-facing chat replies.\n- End-user messages are always public.\n- Sends a notification to the other party (user ↔ staff).","operationId":"send_chat_message_v1_tickets__ticket_id__chat_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/ChatSendRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketComment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/{ticket_id}/status":{"post":{"tags":["tickets"],"summary":"Change Ticket Status","description":"Change ticket status with an optional note. Records history.\n\nResolving or closing sends a notification to the ticket creator.","operationId":"change_ticket_status_v1_tickets__ticket_id__status_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/ChangeStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/{ticket_id}/assign":{"post":{"tags":["tickets"],"summary":"Assign Ticket","description":"Assign a ticket to a staff member. Sends notification to the creator.","operationId":"assign_ticket_v1_tickets__ticket_id__assign_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/AssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/{ticket_id}/unassign":{"post":{"tags":["tickets"],"summary":"Unassign Ticket","description":"Remove assignment from a ticket.","operationId":"unassign_ticket_v1_tickets__ticket_id__unassign_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/{ticket_id}/merge":{"post":{"tags":["tickets"],"summary":"Merge Ticket","description":"Merge this ticket into the target ticket. Moves comments + history,\ncloses this ticket with a merge note.","operationId":"merge_ticket_v1_tickets__ticket_id__merge_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/MergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/{ticket_id}/attachments":{"post":{"tags":["tickets"],"summary":"Upload Attachment","description":"Upload a file attachment to a ticket.","operationId":"upload_attachment_v1_tickets__ticket_id__attachments_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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_attachment_v1_tickets__ticket_id__attachments_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Attachment V1 Tickets  Ticket Id  Attachments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/{ticket_id}/attachments/{attachment_id}":{"get":{"tags":["tickets"],"summary":"Download Attachment","description":"Download a ticket attachment.","operationId":"download_attachment_v1_tickets__ticket_id__attachments__attachment_id__get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Attachment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tickets":{"get":{"tags":["admin-tickets"],"summary":"Admin List Tickets","description":"Admin: list ALL tickets across all staff members.\n\n`sort` is validated against the store's closed ORDER BY allow-list; an\nunknown value falls back to the default status/priority/age ranking.","operationId":"admin_list_tickets_v1_admin_tickets_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TicketStatus"},{"type":"null"}],"title":"Status"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TicketCategory"},{"type":"null"}],"title":"Category"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TicketPriority"},{"type":"null"}],"title":"Priority"}},{"name":"assigned_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned To"}},{"name":"created_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"}},{"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":200,"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/TicketListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-tickets"],"summary":"Admin Create Ticket","description":"Admin: create a ticket on behalf of the platform (creator = the\nacting admin principal). The rich-text description is sanitized to the\nallow-listed HTML subset before storage.","operationId":"admin_create_ticket_v1_admin_tickets_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/CreateTicketRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tickets/metrics":{"get":{"tags":["admin-tickets"],"summary":"Admin Metrics","description":"Admin: aggregate ticket metrics by status, category, priority, staff.","operationId":"admin_metrics_v1_admin_tickets_metrics_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/TicketMetrics"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tickets/metrics/sla":{"get":{"tags":["admin-tickets"],"summary":"Admin Sla Metrics","description":"Admin: SLA compliance metrics (store-owned queries, scope-gated here).","operationId":"admin_sla_metrics_v1_admin_tickets_metrics_sla_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/SlaMetrics"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tickets/{ticket_id}":{"get":{"tags":["admin-tickets"],"summary":"Admin Get Ticket","description":"Admin: get any ticket detail.","operationId":"admin_get_ticket_v1_admin_tickets__ticket_id__get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin-tickets"],"summary":"Admin Update Ticket","description":"Admin: update any ticket. Rich-text description bodies are sanitized\nto the allow-listed HTML subset before storage (secure-fintech: no\nun-sanitized HTML crosses this boundary).","operationId":"admin_update_ticket_v1_admin_tickets__ticket_id__put","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/UpdateTicketRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-tickets"],"summary":"Admin Delete Ticket","description":"Admin: hard-delete a ticket with its comments, history and\nattachments (one transaction). The admin console's Delete control is\nthe only caller — the CRM surface's staff verbs are merge/close.","operationId":"admin_delete_ticket_v1_admin_tickets__ticket_id__delete","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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"}}}}}}},"/v1/admin/tickets/{ticket_id}/close":{"post":{"tags":["admin-tickets"],"summary":"Admin Force Close","description":"Admin: force-close any ticket.","operationId":"admin_force_close_v1_admin_tickets__ticket_id__close_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}},{"name":"note","in":"query","required":false,"schema":{"type":"string","default":"","title":"Note"}},{"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/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tickets/{ticket_id}/reopen":{"post":{"tags":["admin-tickets"],"summary":"Admin Reopen","description":"Admin: reopen a closed ticket.","operationId":"admin_reopen_v1_admin_tickets__ticket_id__reopen_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}},{"name":"note","in":"query","required":false,"schema":{"type":"string","default":"","title":"Note"}},{"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/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tickets/{ticket_id}/comments":{"post":{"tags":["admin-tickets"],"summary":"Admin Add Comment","description":"Admin: add a comment to any ticket. Rich-text content is sanitized\nto the allow-listed HTML subset; public comments notify the creator,\nsame as the CRM staff path.","operationId":"admin_add_comment_v1_admin_tickets__ticket_id__comments_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/app__adapters__tickets__models__CreateCommentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketComment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tickets/{ticket_id}/comments/{comment_id}":{"put":{"tags":["admin-tickets"],"summary":"Admin Update Comment","description":"Admin: edit a comment on any ticket. The content is sanitized before\nstorage; the edit marks `updated_at` on the comment.","operationId":"admin_update_comment_v1_admin_tickets__ticket_id__comments__comment_id__put","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment 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/UpdateCommentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketComment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-tickets"],"summary":"Admin Delete Comment","description":"Admin: delete a comment from any ticket.","operationId":"admin_delete_comment_v1_admin_tickets__ticket_id__comments__comment_id__delete","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment 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"}}}}}}},"/v1/admin/tickets/{ticket_id}/assign":{"post":{"tags":["admin-tickets"],"summary":"Admin Assign Ticket","description":"Admin: assign any ticket to a staff member. Mirrors the CRM\n`tickets:assign` route with the admin scope — the CRM scope never\nappears on admin tokens, which is why assignment was previously\nimpossible from the admin console.","operationId":"admin_assign_ticket_v1_admin_tickets__ticket_id__assign_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/AssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tickets/{ticket_id}/unassign":{"post":{"tags":["admin-tickets"],"summary":"Admin Unassign Ticket","description":"Admin: clear a ticket's assignment.","operationId":"admin_unassign_ticket_v1_admin_tickets__ticket_id__unassign_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tickets/{ticket_id}/status":{"post":{"tags":["admin-tickets"],"summary":"Admin Change Status","description":"Admin: move any ticket to any status (in_progress, waiting_on_customer,\nresolved, closed, …) with a note, recorded in the status history. The\nforce-close/reopen routes stay for the one-click list actions.","operationId":"admin_change_status_v1_admin_tickets__ticket_id__status_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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/ChangeStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/tickets/{ticket_id}/attachments":{"post":{"tags":["admin-tickets"],"summary":"Admin Upload Attachment","description":"Admin: upload a file attachment to any ticket (image embeds in\nrich-text comments/descriptions reference these).","operationId":"admin_upload_attachment_v1_admin_tickets__ticket_id__attachments_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket 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_admin_upload_attachment_v1_admin_tickets__ticket_id__attachments_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Upload Attachment V1 Admin Tickets  Ticket Id  Attachments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/public":{"post":{"tags":["tickets-public"],"summary":"Public Create Ticket","description":"Create a ticket from the public customer portal.\n\nThe creator is identified by a placeholder UUID derived from the email --\npublic users are not authenticated principals. Rate-limiting should be\napplied at the reverse-proxy / WAF layer.","operationId":"public_create_ticket_v1_tickets_public_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCreateTicketRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/public/{ticket_id}":{"get":{"tags":["tickets-public"],"summary":"Public View Ticket","description":"View a ticket from the public customer portal.\n\nThe caller must provide the email address used when the ticket was created.\nOnly tickets matching that email are returned.\nInternal comments are filtered out — only public-facing comments are shown.","operationId":"public_view_ticket_v1_tickets_public__ticket_id__get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}},{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/public/{ticket_id}/comments":{"get":{"tags":["tickets-public"],"summary":"Public List Comments","description":"List public comments for a ticket. Requires email verification.","operationId":"public_list_comments_v1_tickets_public__ticket_id__comments_get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}},{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{},"title":"Response Public List Comments V1 Tickets Public  Ticket Id  Comments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tickets-public"],"summary":"Public Add Comment","description":"Add a public comment from the customer portal.\n\nThe commenter must match the ticket creator's email.\nComments are always public (not internal).","operationId":"public_add_comment_v1_tickets_public__ticket_id__comments_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PublicAddCommentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Add Comment V1 Tickets Public  Ticket Id  Comments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tickets/inbound-email":{"post":{"tags":["tickets-public"],"summary":"Inbound Email","description":"Accept inbound email webhook. Creates a ticket from the email.\n\nBody shape: { from, to, subject, text_body, html_body, attachments }\n\nRate-limiting should be applied at the reverse-proxy / WAF layer.\nSpam-checked via keyword heuristics.","operationId":"inbound_email_v1_tickets_inbound_email_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Inbound Email V1 Tickets Inbound Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/loyalty/balance":{"get":{"tags":["loyalty"],"summary":"Get Balance","description":"Current loyalty points balance and tier for the authenticated user.","operationId":"get_balance_v1_loyalty_balance_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":"object","additionalProperties":true,"title":"Response Get Balance V1 Loyalty Balance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/loyalty/history":{"get":{"tags":["social"],"summary":"Get Loyalty History","description":"Get points earning/redemption history for the authenticated user.","operationId":"get_loyalty_history_v1_loyalty_history_get","parameters":[{"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":"object","additionalProperties":true,"title":"Response Get Loyalty History V1 Loyalty History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/loyalty/referral-code":{"get":{"tags":["loyalty"],"summary":"Get Referral Code","description":"Get the authenticated user's referral code and stats.","operationId":"get_referral_code_v1_loyalty_referral_code_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":"object","additionalProperties":true,"title":"Response Get Referral Code V1 Loyalty Referral Code Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/loyalty/refer":{"post":{"tags":["loyalty"],"summary":"Create Referral","description":"Create a new referral invitation for a friend by email.","operationId":"create_referral_v1_loyalty_refer_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Referral V1 Loyalty Refer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/loyalty/redeem":{"post":{"tags":["loyalty"],"summary":"Redeem Points","description":"Redeem loyalty points for cashback credited to the user's primary wallet.\n\nRequest body:\n    points: int — number of points to redeem\n\nFlow:\n1. Validate points >= min_redemption from settings\n2. Acquire a per-user redemption lock (F1 fix, workflow-audit\n   loyalty-referral.md — see `_redeem_points_locked`'s docstring for why)\n3. Calculate cashback amount (with tier multiplier)\n4. Post to C-LEDGER: debit loyalty pool, credit user wallet\n5. Deduct points from user balance\n6. Return transaction reference","operationId":"redeem_points_v1_loyalty_redeem_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Redeem Points V1 Loyalty Redeem Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/loyalty/rewards":{"get":{"tags":["loyalty"],"summary":"Get Rewards","description":"Get all referral rewards for the authenticated user.","operationId":"get_rewards_v1_loyalty_rewards_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":"object","additionalProperties":true,"title":"Response Get Rewards V1 Loyalty Rewards Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/loyalty/tiers":{"get":{"tags":["loyalty"],"summary":"Get Tiers","description":"List tier thresholds and benefits (public, unauthenticated).","operationId":"get_tiers_v1_loyalty_tiers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Tiers V1 Loyalty Tiers Get"}}}}}}},"/v1/admin/loyalty/settings":{"get":{"tags":["loyalty"],"summary":"Get Loyalty Settings","description":"Get current loyalty configuration for *country* (admin-only).\n\nQuery params:\n    country: ISO 3166-1 alpha-2 code (e.g. \"KE\"). Defaults to DEFAULT.","operationId":"get_loyalty_settings_v1_admin_loyalty_settings_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"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":true,"title":"Response Get Loyalty Settings V1 Admin Loyalty Settings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["loyalty"],"summary":"Update Loyalty Settings","description":"Update loyalty configuration for a country and reload the engine.\n\nThe request body must include a ``country`` field (ISO 3166-1 alpha-2\nor ``\"DEFAULT\"``). After persisting, the in-memory loyalty engine is\nreloaded so the change takes effect immediately on all subsequent\nrequests for that country.","operationId":"update_loyalty_settings_v1_admin_loyalty_settings_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Loyalty Settings V1 Admin Loyalty Settings Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/loyalty/settings/history":{"get":{"tags":["loyalty"],"summary":"Get Settings History","description":"Get configuration change history (admin-only).\n\nQuery params:\n    country: Filter by country code (optional; omit for all countries).\n    limit:   Max entries (default 20).","operationId":"get_settings_history_v1_admin_loyalty_settings_history_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"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":"object","additionalProperties":true,"title":"Response Get Settings History V1 Admin Loyalty Settings History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/loyalty/settings/countries":{"get":{"tags":["loyalty"],"summary":"List Configured Countries","description":"List all countries that have configured loyalty settings (admin-only).","operationId":"list_configured_countries_v1_admin_loyalty_settings_countries_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":"object","additionalProperties":true,"title":"Response List Configured Countries V1 Admin Loyalty Settings Countries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/payment-requests":{"post":{"tags":["social"],"summary":"Create Payment Request","description":"Create a payment request — ask another user to pay you.\n\nThe authenticated principal is the requester (from_user_id).\nThe `to_handle` field identifies the recipient who will see the request.\n\nIdempotency (AC-7): when the client sends an `Idempotency-Key` (the\nassistant action card's key), it IS the request's id — a retried create\nreplays the stored request, and the same key with a different body is\nan IDEMPOTENCY_CONFLICT. Without the header the id is server-minted\n(legacy clients unaffected). The recipient gets a kind-tagged push.","operationId":"create_payment_request_v1_payment_requests_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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/PaymentRequestCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Payment Request V1 Payment Requests Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["social"],"summary":"List Payment Requests","description":"List incoming payment requests for the authenticated user, including\nany sent to their verified email before they joined.","operationId":"list_payment_requests_v1_payment_requests_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":"object","additionalProperties":true,"title":"Response List Payment Requests V1 Payment Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/payment-requests/{pay_req_id}/pay":{"post":{"tags":["social"],"summary":"Pay Request","description":"Pay a payment request — triggers the actual money transfer.\n\nThe authenticated user is the payer. This marks the request as PAID and\ninitiates a transfer from the payer's wallet to the requester's wallet.","operationId":"pay_request_v1_payment_requests__pay_req_id__pay_post","parameters":[{"name":"pay_req_id","in":"path","required":true,"schema":{"type":"string","title":"Pay Req Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"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":true,"title":"Response Pay Request V1 Payment Requests  Pay Req Id  Pay Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/payment-requests/{pay_req_id}/decline":{"post":{"tags":["social"],"summary":"Decline Request","description":"Decline an incoming payment request.","operationId":"decline_request_v1_payment_requests__pay_req_id__decline_post","parameters":[{"name":"pay_req_id","in":"path","required":true,"schema":{"type":"string","title":"Pay Req 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":true,"title":"Response Decline Request V1 Payment Requests  Pay Req Id  Decline Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/splits":{"post":{"tags":["social"],"summary":"Create Split","description":"Create a bill split group.","operationId":"create_split_v1_splits_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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/BillSplitCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Split V1 Splits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/splits/{split_id}":{"get":{"tags":["social"],"summary":"Get Split","description":"Get bill split details with member statuses.","operationId":"get_split_v1_splits__split_id__get","parameters":[{"name":"split_id","in":"path","required":true,"schema":{"type":"string","title":"Split 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":true,"title":"Response Get Split V1 Splits  Split Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/payment-links":{"post":{"tags":["social"],"summary":"Create Payment Link","description":"Generate a shareable payment link.","operationId":"create_payment_link_v1_payment_links_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/PaymentLinkCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Payment Link V1 Payment Links Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/loyalty/points":{"get":{"tags":["social"],"summary":"Get Loyalty Points","description":"Get the authenticated user's loyalty points balance.","operationId":"get_loyalty_points_v1_loyalty_points_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":"object","additionalProperties":true,"title":"Response Get Loyalty Points V1 Loyalty Points Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/referral/claim":{"post":{"tags":["social"],"summary":"Claim Referral","description":"Claim a referral bonus using a referral code.\n\nCredits bonus points (and optionally cashback) to the new user's loyalty\naccount and awards the referrer their referral bonus.","operationId":"claim_referral_v1_referral_claim_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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/ReferralClaimRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Claim Referral V1 Referral Claim Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/deposit":{"post":{"tags":["agent-banking"],"summary":"Agent Deposit","description":"Agent accepts physical cash and credits the customer's wallet digitally.\n\nThis is a two-phase operation:\n1. Verify the caller is an approved agent.\n2. Resolve the customer handle to a user ID.\n3. Initiate a ledger transfer from the agent's float to the customer's wallet.","operationId":"agent_deposit_v1_agent_deposit_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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/AgentDepositRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agent Deposit V1 Agent Deposit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/float/topup":{"post":{"tags":["agent-banking"],"summary":"Agent Float Topup","description":"Agent tops up their float balance from their own wallet.","operationId":"agent_float_topup_v1_agent_float_topup_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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/AgentFloatTopUpRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agent Float Topup V1 Agent Float Topup Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/float":{"get":{"tags":["agent-banking"],"summary":"Get Agent Float","description":"Get the current float balance for an agent.","operationId":"get_agent_float_v1_agent_float_get","parameters":[{"name":"agent_id","in":"query","required":true,"schema":{"type":"string","description":"Agent ID","title":"Agent Id"},"description":"Agent 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":true,"title":"Response Get Agent Float V1 Agent Float Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/locations":{"post":{"tags":["agent-banking"],"summary":"Register Agent Location","description":"Register or update the caller's own agent storefront location.\n\nProxies C-IDENTITY's `POST /v1/agents/me/locations/` (Wave 54 Phase 1/2)\n— real Postgres persistence + server-side proximity search, replacing\nthe previous restart-losing in-memory dict. The caller's agentId is\nNEVER taken from the request body; C-IDENTITY resolves it server-side\nfrom the caller's own approved AgentProfile, which is the source of\ntruth. `_verify_caller_is_approved_agent` here is defense-in-depth only.","operationId":"register_agent_location_v1_agent_locations_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/AgentLocationRegisterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Agent Location V1 Agent Locations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/locations/search":{"get":{"tags":["agent-banking"],"summary":"Search Agent Locations","description":"Search for agents near a given latitude/longitude.\n\nProxies C-IDENTITY's `GET /v1/agents/locations/search`\n(`AgentLocationRepository.SearchNearbyAsync`), which computes distance\nserver-side in SQL (bounding box + haversine — see Wave 54 Phase 1's\ndeliberate no-PostGIS decision). `distanceKm` — and, for the map view,\nthe raw `latitude`/`longitude` pair used to plot a pin — come from that\nresponse only; this route never computes or re-derives a distance.","operationId":"search_agent_locations_v1_agent_locations_search_get","parameters":[{"name":"latitude","in":"query","required":true,"schema":{"type":"number","maximum":90,"minimum":-90,"title":"Latitude"}},{"name":"longitude","in":"query","required":true,"schema":{"type":"number","maximum":180,"minimum":-180,"title":"Longitude"}},{"name":"radiusKm","in":"query","required":false,"schema":{"type":"number","maximum":100.0,"minimum":0.1,"default":10.0,"title":"Radiuskm"}},{"name":"services","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact service tag filter","title":"Services"},"description":"Exact service tag filter"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"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":"object","additionalProperties":true,"title":"Response Search Agent Locations V1 Agent Locations Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/broadcasts":{"get":{"tags":["broadcasts"],"summary":"List Broadcasts","operationId":"list_broadcasts_v1_admin_broadcasts_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"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":true,"title":"Response List Broadcasts V1 Admin Broadcasts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["broadcasts"],"summary":"Create Broadcast","description":"`{targetKind, targetValue, title, message, channels, templateKey?,\nscheduledAt?}`. The Idempotency-Key derives the broadcast id — a\ndouble-click converges on one row, and the fan-out job's per-member\nkeys derive from it, so replays never double-send.","operationId":"create_broadcast_v1_admin_broadcasts_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Broadcast V1 Admin Broadcasts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/broadcasts/{broadcast_id}":{"get":{"tags":["broadcasts"],"summary":"Get Broadcast","operationId":"get_broadcast_v1_admin_broadcasts__broadcast_id__get","parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast 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":true,"title":"Response Get Broadcast V1 Admin Broadcasts  Broadcast Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["broadcasts"],"summary":"Update Broadcast","operationId":"update_broadcast_v1_admin_broadcasts__broadcast_id__put","parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Broadcast V1 Admin Broadcasts  Broadcast Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["broadcasts"],"summary":"Delete Broadcast","operationId":"delete_broadcast_v1_admin_broadcasts__broadcast_id__delete","parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast 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":true,"title":"Response Delete Broadcast V1 Admin Broadcasts  Broadcast Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users/messages":{"post":{"tags":["user-messages"],"summary":"Send User Message","description":"`{recipient: phone | email | @handle, title, body}` or\n`{groupIds: [...], title, body}` for a fan-out over the members of one or\nmore customer groups (someone in two groups gets one message). The\nIdempotency-Key is the message id (single user) or the fan-out key\n(group), so a double-click sends once.","operationId":"send_user_message_v1_admin_users_messages_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"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":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send User Message V1 Admin Users Messages Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/kyc/applications":{"get":{"tags":["kyc-admin"],"summary":"List Kyc Applications","description":"Proxies to C-IDENTITY GET /v1/admin/kyc/applications.","operationId":"list_kyc_applications_v1_admin_kyc_applications_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","description":"Filter: pending, approved, rejected, in_review","default":"","title":"Status"},"description":"Filter: pending, approved, rejected, in_review"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"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":true,"title":"Response List Kyc Applications V1 Admin Kyc Applications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/kyc/applications/by-reference/{reference_number}":{"get":{"tags":["kyc-admin"],"summary":"Get Kyc Application By Reference","description":"Proxies to C-IDENTITY GET /v1/admin/kyc/applications/by-reference/{referenceNumber}.\n\nSame shape as `app.api.admin.admin.get_transaction_by_reference`\n(C-LEDGER's equivalent lookup): admin-scoped, real proxy, 404 on an\nunresolved reference.","operationId":"get_kyc_application_by_reference_v1_admin_kyc_applications_by_reference__reference_number__get","parameters":[{"name":"reference_number","in":"path","required":true,"schema":{"type":"string","title":"Reference Number"}},{"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":true,"title":"Response Get Kyc Application By Reference V1 Admin Kyc Applications By Reference  Reference Number  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/kyc/applications/{application_id}":{"get":{"tags":["kyc-admin"],"summary":"Get Kyc Application","description":"Proxies to C-IDENTITY GET /v1/admin/kyc/applications/{id}.","operationId":"get_kyc_application_v1_admin_kyc_applications__application_id__get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","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":{"type":"object","additionalProperties":true,"title":"Response Get Kyc Application V1 Admin Kyc Applications  Application Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/kyc/applications/{application_id}/approve":{"post":{"tags":["kyc-admin"],"summary":"Approve Kyc","description":"Proxies to C-IDENTITY POST /v1/admin/kyc/applications/{id}/approve.","operationId":"approve_kyc_v1_admin_kyc_applications__application_id__approve_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Kyc V1 Admin Kyc Applications  Application Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/kyc/applications/{application_id}/reject":{"post":{"tags":["kyc-admin"],"summary":"Reject Kyc","description":"Proxies to C-IDENTITY POST /v1/admin/kyc/applications/{id}/reject.","operationId":"reject_kyc_v1_admin_kyc_applications__application_id__reject_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","title":"Application Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reject Kyc V1 Admin Kyc Applications  Application Id  Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/kyc/metrics":{"get":{"tags":["kyc-admin"],"summary":"Kyc Metrics","description":"Proxies to C-IDENTITY GET /v1/admin/kyc/metrics.","operationId":"kyc_metrics_v1_admin_kyc_metrics_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":"object","additionalProperties":true,"title":"Response Kyc Metrics V1 Admin Kyc Metrics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/business-reviews":{"get":{"tags":["business-review"],"summary":"List Business Reviews","operationId":"list_business_reviews_v1_admin_business_reviews_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","pattern":"^(in_progress|submitted|approved|rejected)$","default":"submitted","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"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":"object","additionalProperties":true,"title":"Response List Business Reviews V1 Admin Business Reviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/business-reviews/{business_id}":{"get":{"tags":["business-review"],"summary":"Get Business Review","operationId":"get_business_review_v1_admin_business_reviews__business_id__get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Business Review V1 Admin Business Reviews  Business Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/business-reviews/{business_id}/approve":{"post":{"tags":["business-review"],"summary":"Approve Business","operationId":"approve_business_v1_admin_business_reviews__business_id__approve_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Approve Business V1 Admin Business Reviews  Business Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/business-reviews/{business_id}/reject":{"post":{"tags":["business-review"],"summary":"Reject Business","description":"`{reasons: [...]}` — closed reason codes only; C-IDENTITY validates them.","operationId":"reject_business_v1_admin_business_reviews__business_id__reject_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reject Business V1 Admin Business Reviews  Business Id  Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/test-accounts":{"get":{"tags":["test-accounts"],"summary":"Test Accounts Status","description":"`{enabled}` — the admin console shows the page only when true.","operationId":"test_accounts_status_v1_admin_test_accounts_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":"object","additionalProperties":true,"title":"Response Test Accounts Status V1 Admin Test Accounts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/test-accounts/business":{"post":{"tags":["test-accounts"],"summary":"Create Test Business","description":"A live business with a \"Main\" workspace and its till. The password\nis in this response only — it is never stored or logged.","operationId":"create_test_business_v1_admin_test_accounts_business_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":true,"title":"Response Create Test Business V1 Admin Test Accounts Business Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/test-accounts/developer":{"post":{"tags":["test-accounts"],"summary":"Create Test Developer","description":"A developer-portal account; the portal's review runs through the\nexisting KYC and developer-account queues.","operationId":"create_test_developer_v1_admin_test_accounts_developer_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":true,"title":"Response Create Test Developer V1 Admin Test Accounts Developer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/team/members":{"get":{"tags":["ops-team"],"summary":"List Team Members","operationId":"list_team_members_v1_ops_team_members_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":"object","additionalProperties":true,"title":"Response List Team Members V1 Ops Team Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/team/members/{user_id}/roles":{"put":{"tags":["ops-team"],"summary":"Update Team Member Roles","operationId":"update_team_member_roles_v1_ops_team_members__user_id__roles_put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Team Member Roles V1 Ops Team Members  User Id  Roles Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/businesses/{business_id}":{"get":{"tags":["admin-businesses"],"summary":"Get Business Detail","operationId":"get_business_detail_v1_admin_businesses__business_id__get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Business Detail V1 Admin Businesses  Business Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/businesses":{"get":{"tags":["ops-businesses"],"summary":"Lookup Businesses","description":"TS-CRM business lookup: name or id search over C-IDENTITY's business\ntable (staff-scoped there), newest first.","operationId":"lookup_businesses_v1_ops_businesses_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Query"}},{"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":true,"title":"Response Lookup Businesses V1 Ops Businesses Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ops/businesses/{business_id}":{"get":{"tags":["ops-businesses"],"summary":"Get Ops Business Detail","operationId":"get_ops_business_detail_v1_ops_businesses__business_id__get","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business 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":true,"title":"Response Get Ops Business Detail V1 Ops Businesses  Business Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/events/replay":{"post":{"tags":["internal"],"summary":"Replay Events","description":"Replay outbox events from Postgres to NATS JetStream.\n\n``dry_run: true`` (the default) only counts matching rows — use it first\nto verify the event count and time range before a real replay.\n\n``dry_run: false`` publishes every matching row via ``EventTransport``,\none per row, in ``seq`` order. The republish is best-effort: any failure\nmid-way through the batch is reported in the response ``errors`` list,\nand the endpoint continues to the next row — a subsequent call with the\nsame range is safe because JetStream deduplication (``Nats-Msg-Id``)\nmakes re-publishing the same event id a no-op.\n\nThe endpoint requires ``admin:events:replay`` scope. See\n``docs/operations/event-replay.md`` for the full procedure.","operationId":"replay_events_internal_events_replay_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/EventReplayRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Replay Events Internal Events Replay Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AgentDepositRequest":{"properties":{"agentId":{"type":"string","format":"uuid","title":"Agentid"},"customerHandle":{"type":"string","maxLength":128,"minLength":1,"title":"Customerhandle"},"amountMinorUnits":{"type":"integer","exclusiveMinimum":0.0,"title":"Amountminorunits"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"KES"},"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"type":"object","required":["agentId","customerHandle","amountMinorUnits"],"title":"AgentDepositRequest","description":"Agent accepts physical cash, credits customer wallet digitally."},"AgentFloatTopUpRequest":{"properties":{"agentId":{"type":"string","format":"uuid","title":"Agentid"},"amountMinorUnits":{"type":"integer","exclusiveMinimum":0.0,"title":"Amountminorunits"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"KES"}},"type":"object","required":["agentId","amountMinorUnits"],"title":"AgentFloatTopUpRequest","description":"Agent tops up their float balance from their own wallet."},"AgentLocationRegisterRequest":{"properties":{"locationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Locationid"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"address":{"type":"string","maxLength":500,"title":"Address","default":""},"latitude":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude"},"longitude":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude"},"hoursOfOperation":{"type":"string","maxLength":500,"title":"Hoursofoperation","default":""},"services":{"items":{"type":"string"},"type":"array","title":"Services"},"phone":{"type":"string","maxLength":30,"title":"Phone","default":""}},"type":"object","required":["name","latitude","longitude"],"title":"AgentLocationRegisterRequest","description":"Input for registering/updating the caller's own agent storefront\nlocation. Deliberately has NO `agent_id` field: C-IDENTITY resolves the\ncaller's agent identity server-side from their bearer token (Wave 54\nPhase 1/2, `AgentLocationService.RegisterOrUpdateAsync`), never trusts a\nrequest-body agentId. `location_id` is None to register a new location,\nor an existing (caller-owned) id to update it in place."},"AssignRequest":{"properties":{"assignedTo":{"type":"string","format":"uuid","title":"Assignedto"},"assignedToName":{"type":"string","title":"Assignedtoname","default":""},"assignedRole":{"type":"string","title":"Assignedrole","default":""}},"type":"object","required":["assignedTo"],"title":"AssignRequest"},"AvailabilityTargetOut":{"properties":{"targetPct":{"type":"number","title":"Targetpct"},"errorBudgetWindowDays":{"type":"integer","title":"Errorbudgetwindowdays"},"fastBurn":{"$ref":"#/components/schemas/BurnRateOut"},"slowBurn":{"$ref":"#/components/schemas/BurnRateOut"}},"type":"object","required":["targetPct","errorBudgetWindowDays","fastBurn","slowBurn"],"title":"AvailabilityTargetOut"},"BillSplitCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"members":{"items":{"$ref":"#/components/schemas/SplitMember"},"type":"array","maxItems":50,"minItems":1,"title":"Members"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"KES"},"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"type":"object","required":["name","members"],"title":"BillSplitCreate","description":"Input for creating a bill split group."},"BlogPost":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","maxLength":256,"minLength":1,"title":"Title"},"slug":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","title":"Slug"},"author":{"type":"string","maxLength":128,"minLength":1,"title":"Author","default":"Sente Team"},"content":{"type":"string","title":"Content","description":"Markdown body","default":""},"excerpt":{"type":"string","title":"Excerpt","description":"Short summary / lede paragraph","default":""},"coverImage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverimage","description":"Optional cover image URL"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"status":{"$ref":"#/components/schemas/PostStatus","default":"draft"},"publishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Publishedat"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","title","slug"],"title":"BlogPost","description":"A single blog post — the canonical wire shape every consumer sees."},"Body_admin_upload_attachment_v1_admin_tickets__ticket_id__attachments_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_admin_upload_attachment_v1_admin_tickets__ticket_id__attachments_post"},"Body_save_draft_v1_admin_assistant_knowledge__article_id__draft_put":{"properties":{"markdown":{"type":"string","maxLength":50000,"minLength":1,"title":"Markdown"}},"type":"object","required":["markdown"],"title":"Body_save_draft_v1_admin_assistant_knowledge__article_id__draft_put"},"Body_send_back_v1_admin_assistant_knowledge__article_id__send_back_post":{"properties":{"note":{"type":"string","maxLength":1000,"minLength":1,"title":"Note"}},"type":"object","required":["note"],"title":"Body_send_back_v1_admin_assistant_knowledge__article_id__send_back_post"},"Body_upload_attachment_v1_tickets__ticket_id__attachments_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_attachment_v1_tickets__ticket_id__attachments_post"},"Body_upload_evidence_document_v1_businesses__business_id__disputes__dispute_id__documents_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_evidence_document_v1_businesses__business_id__disputes__dispute_id__documents_post"},"Body_upload_image_v1_admin_content_images_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_image_v1_admin_content_images_post"},"Body_upload_logo_v1_businesses__business_id__branding_logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_logo_v1_businesses__business_id__branding_logo_post"},"Body_validate_bulk_v1_businesses__business_id__bulk_validate_post":{"properties":{"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"}},"type":"object","title":"Body_validate_bulk_v1_businesses__business_id__bulk_validate_post"},"BurnRateOut":{"properties":{"multiplier":{"type":"number","title":"Multiplier"},"shortWindow":{"type":"string","title":"Shortwindow"},"longWindow":{"type":"string","title":"Longwindow"},"sustainedFor":{"type":"string","title":"Sustainedfor"}},"type":"object","required":["multiplier","shortWindow","longWindow","sustainedFor"],"title":"BurnRateOut"},"CaseComment":{"properties":{"id":{"type":"string","title":"Id"},"caseId":{"type":"string","title":"Caseid"},"authorUserId":{"type":"string","title":"Authoruserid"},"authorName":{"type":"string","maxLength":128,"minLength":1,"title":"Authorname"},"content":{"type":"string","maxLength":8192,"minLength":1,"title":"Content"},"mentions":{"items":{"type":"string"},"type":"array","title":"Mentions","description":"Parsed @mention tokens (without leading @). Stored as JSON array."},"createdAt":{"type":"string","format":"date-time","title":"Createdat"}},"type":"object","required":["id","caseId","authorUserId","authorName","content"],"title":"CaseComment","description":"A single comment on a compliance case — the canonical wire shape."},"CaseModelExplanation":{"properties":{"status":{"type":"string","title":"Status"},"model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Version"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"reasons":{"items":{"$ref":"#/components/schemas/ModelReason"},"type":"array","title":"Reasons","default":[]},"shadow":{"type":"boolean","title":"Shadow","default":true},"case_id":{"type":"string","title":"Case Id"},"decision_id":{"type":"string","title":"Decision Id"}},"type":"object","required":["status","case_id","decision_id"],"title":"CaseModelExplanation"},"CaseTimelineEntry":{"properties":{"kind":{"type":"string","title":"Kind"},"occurredAt":{"type":"string","format":"date-time","title":"Occurredat"},"comment":{"anyOf":[{"$ref":"#/components/schemas/CaseComment"},{"type":"null"}]},"disposition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Disposition"},"assignment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Assignment"}},"type":"object","required":["kind","occurredAt"],"title":"CaseTimelineEntry","description":"One entry in a unified case timeline feed."},"CaseTimelineResponse":{"properties":{"timeline":{"items":{"$ref":"#/components/schemas/CaseTimelineEntry"},"type":"array","title":"Timeline"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["timeline","total"],"title":"CaseTimelineResponse","description":"Unified timeline response."},"ChangeStatusRequest":{"properties":{"status":{"$ref":"#/components/schemas/TicketStatus"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["status"],"title":"ChangeStatusRequest"},"ChatSendRequest":{"properties":{"content":{"type":"string","maxLength":10000,"minLength":1,"title":"Content"},"attachments":{"items":{"type":"string"},"type":"array","title":"Attachments","description":"Attachment URLs or references"}},"type":"object","required":["content"],"title":"ChatSendRequest","description":"Send a chat message on a ticket. Staff messages are always\nuser-facing (is_internal=False)."},"ChatStreamRequest":{"properties":{"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"},"client_message_id":{"type":"string","format":"uuid","title":"Client Message Id"},"message":{"type":"string","maxLength":4000,"minLength":1,"title":"Message"},"locale":{"type":"string","pattern":"^[a-z]{2}(-[A-Z]{2})?$","title":"Locale","default":"en"},"modality":{"type":"string","enum":["text","voice"],"title":"Modality","default":"text"}},"additionalProperties":false,"type":"object","required":["client_message_id","message"],"title":"ChatStreamRequest","description":"Edge-validated inbound shape — mirror of PY-ASSISTANT's own model\n(`app/domain/chat.py`); one contract, validated on both hops."},"CommentListResponse":{"properties":{"comments":{"items":{"$ref":"#/components/schemas/CaseComment"},"type":"array","title":"Comments"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"pageSize":{"type":"integer","title":"Pagesize"}},"type":"object","required":["comments","total","page","pageSize"],"title":"CommentListResponse","description":"Paginated list wrapper for case comments."},"CreatePostRequest":{"properties":{"title":{"type":"string","maxLength":256,"minLength":1,"title":"Title"},"slug":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","title":"Slug"},"author":{"type":"string","maxLength":128,"minLength":1,"title":"Author","default":"Sente Team"},"content":{"type":"string","title":"Content","default":""},"excerpt":{"type":"string","title":"Excerpt","default":""},"coverImage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverimage"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"status":{"$ref":"#/components/schemas/PostStatus","default":"draft"}},"type":"object","required":["title","slug"],"title":"CreatePostRequest","description":"Admin creates a new post — id/slug/timestamps are server-generated."},"CreateTicketRequest":{"properties":{"subject":{"type":"string","maxLength":500,"minLength":1,"title":"Subject"},"description":{"type":"string","maxLength":10000,"title":"Description","default":""},"priority":{"$ref":"#/components/schemas/TicketPriority","default":"medium"},"category":{"$ref":"#/components/schemas/TicketCategory","default":"support"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["subject"],"title":"CreateTicketRequest"},"CryptoBuyRequest":{"properties":{"asset":{"type":"string","maxLength":10,"minLength":1,"title":"Asset"},"fiatAmountMinorUnits":{"type":"integer","minimum":1.0,"title":"Fiatamountminorunits"},"fiatCurrency":{"type":"string","maxLength":3,"minLength":3,"title":"Fiatcurrency"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"ISO country; falls back to the caller's profile"}},"type":"object","required":["asset","fiatAmountMinorUnits","fiatCurrency"],"title":"CryptoBuyRequest"},"CryptoQuoteRequest":{"properties":{"asset":{"type":"string","maxLength":10,"minLength":1,"title":"Asset","description":"Asset symbol (BTC, ETH, USDC)"},"side":{"type":"string","pattern":"^(BUY|SELL)$","title":"Side","description":"BUY or SELL"},"fiatAmountMinorUnits":{"type":"integer","minimum":1.0,"title":"Fiatamountminorunits","description":"Fiat amount in int64 minor units"},"fiatCurrency":{"type":"string","maxLength":3,"minLength":3,"title":"Fiatcurrency","description":"ISO-4217 fiat currency code"}},"type":"object","required":["asset","side","fiatAmountMinorUnits","fiatCurrency"],"title":"CryptoQuoteRequest"},"CryptoSellRequest":{"properties":{"asset":{"type":"string","maxLength":10,"minLength":1,"title":"Asset"},"cryptoAmountMinorUnits":{"type":"integer","minimum":1.0,"title":"Cryptoamountminorunits"},"fiatCurrency":{"type":"string","maxLength":3,"minLength":3,"title":"Fiatcurrency"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"ISO country; falls back to the caller's profile"}},"type":"object","required":["asset","cryptoAmountMinorUnits","fiatCurrency"],"title":"CryptoSellRequest"},"CryptoSendRequest":{"properties":{"asset":{"type":"string","maxLength":10,"minLength":1,"title":"Asset"},"amountMinorUnits":{"type":"integer","minimum":1.0,"title":"Amountminorunits"},"toAddress":{"type":"string","maxLength":256,"minLength":10,"title":"Toaddress"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"ISO country; falls back to the caller's profile"}},"type":"object","required":["asset","amountMinorUnits","toAddress"],"title":"CryptoSendRequest"},"CryptoWalletProxyRequest":{"properties":{"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"ISO country; falls back to the caller's profile"}},"additionalProperties":false,"type":"object","title":"CryptoWalletProxyRequest"},"DecideBody":{"properties":{"approve":{"type":"boolean","title":"Approve"},"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"}},"type":"object","required":["approve","reason"],"title":"DecideBody"},"EventReplayRequest":{"properties":{"from":{"type":"string","format":"date-time","title":"From","description":"Start of the time range (inclusive, ISO 8601)."},"to":{"type":"string","format":"date-time","title":"To","description":"End of the time range (inclusive, ISO 8601)."},"eventTypes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Eventtypes","description":"Optional whitelist of DomainEvent.type strings to replay. When omitted, ALL event types in the time range are replayed."},"dryRun":{"type":"boolean","title":"Dryrun","description":"When true (default), count matching events without publishing. Always do a dry run first to verify the event count before a real replay.","default":true},"limit":{"type":"integer","maximum":5000.0,"minimum":1.0,"title":"Limit","description":"Max rows to fetch/publish in this single call (Wave 34 §7.5). A wide time range with no cap could republish an unbounded number of events synchronously in one HTTP request, risking a gateway request timeout or a NATS publish burst. Page through a larger range using the response's `next_cursor` as the next call's `after_seq`.","default":1000},"afterSeq":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Afterseq","description":"Resume after this outbox_event.seq (exclusive) — pass the previous call's `next_cursor` to continue paging through the same range."}},"type":"object","required":["from","to"],"title":"EventReplayRequest","description":"Request body for ``POST /internal/events/replay``."},"FeedbackRequest":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"turn_id":{"type":"string","format":"uuid","title":"Turn Id"},"rating":{"type":"string","enum":["up","down"],"title":"Rating"}},"additionalProperties":false,"type":"object","required":["conversation_id","turn_id","rating"],"title":"FeedbackRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IssueVirtualCardRequest":{"properties":{"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"ISO-4217 currency code"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","description":"ISO 3166-1 alpha-2 country code"},"walletId":{"type":"string","title":"Walletid","description":"The C-IDENTITY wallet this card draws from (Wave 55 Phase 3a). Must belong to the caller and match `currency` exactly -- C-CARDS rejects at issuance, never at first spend, and never converts."},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"Data-residency zone selecting the P-SECPROXY tokenization region; defaults to `country` when omitted."},"dailyLimitMinor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dailylimitminor","description":"Daily spend limit, int64 minor units as a decimal string. Omitted or \"0\" means the card CANNOT SPEND on this window until a real limit is set via POST /v1/cards/{cardId}/limits -- a deliberate fail-closed default, never \"unlimited\" (see `_parse_limit_minor_units`)."},"monthlyLimitMinor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monthlylimitminor","description":"Monthly spend limit — same string/fail-closed semantics as dailyLimitMinor."}},"type":"object","required":["currency","country","walletId"],"title":"IssueVirtualCardRequest","description":"Wire shape for `POST /v1/cards`. Money fields (`dailyLimitMinor`/\n`monthlyLimitMinor`) are decimal STRINGS of int64 minor units (§1.1) —\nnever a bare JSON number — parsed by `_parse_limit_minor_units` below\nrather than Pydantic's own int coercion, so a malformed value is a\nclean `400` (mirroring `app/api/payments/wallets.py`'s\n`_positive_minor_units` convention) instead of FastAPI's default `422`\non a failed `field_validator`."},"LatencyTargetOut":{"properties":{"percentile":{"type":"integer","title":"Percentile"},"targetMs":{"type":"number","title":"Targetms"},"fastBurn":{"$ref":"#/components/schemas/BurnRateOut"},"slowBurn":{"$ref":"#/components/schemas/BurnRateOut"}},"type":"object","required":["percentile","targetMs","fastBurn","slowBurn"],"title":"LatencyTargetOut"},"MarkReadBody":{"properties":{"id":{"type":"string","title":"Id"}},"type":"object","required":["id"],"title":"MarkReadBody"},"MergeRequest":{"properties":{"targetTicketId":{"type":"string","format":"uuid","title":"Targetticketid"}},"type":"object","required":["targetTicketId"],"title":"MergeRequest"},"ModelReason":{"properties":{"code":{"type":"string","title":"Code"},"text":{"type":"string","title":"Text"}},"type":"object","required":["code","text"],"title":"ModelReason"},"NotificationPreferences":{"properties":{"inApp":{"type":"boolean","title":"Inapp"},"push":{"type":"boolean","title":"Push"},"sms":{"type":"boolean","title":"Sms"},"email":{"type":"boolean","title":"Email"},"events":{"anyOf":[{"additionalProperties":{"additionalProperties":{"type":"boolean"},"type":"object"},"type":"object"},{"type":"null"}],"title":"Events"}},"type":"object","required":["inApp","push","sms","email"],"title":"NotificationPreferences"},"PaymentLinkCreate":{"properties":{"amountMinorUnits":{"type":"integer","exclusiveMinimum":0.0,"title":"Amountminorunits"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"KES"},"description":{"type":"string","maxLength":200,"title":"Description","default":""},"expiryMinutes":{"type":"integer","maximum":10080.0,"minimum":1.0,"title":"Expiryminutes","default":1440}},"type":"object","required":["amountMinorUnits"],"title":"PaymentLinkCreate","description":"Input for generating a shareable payment link."},"PaymentRequestCreate":{"properties":{"fromUserId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Fromuserid"},"toHandle":{"type":"string","maxLength":128,"minLength":1,"title":"Tohandle"},"amountMinorUnits":{"type":"integer","exclusiveMinimum":0.0,"title":"Amountminorunits"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"KES"},"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"type":"object","required":["toHandle","amountMinorUnits"],"title":"PaymentRequestCreate","description":"Input for creating a payment request (request money from another user)."},"PostListResponse":{"properties":{"posts":{"items":{"$ref":"#/components/schemas/BlogPost"},"type":"array","title":"Posts"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"pageSize":{"type":"integer","title":"Pagesize"}},"type":"object","required":["posts","total","page","pageSize"],"title":"PostListResponse","description":"Paginated list wrapper."},"PostStatus":{"type":"string","enum":["draft","published","archived"],"title":"PostStatus"},"ProblemReportBody":{"properties":{"whatHappened":{"type":"string","maxLength":4000,"title":"Whathappened","default":""},"page":{"type":"string","maxLength":300,"minLength":1,"title":"Page"},"httpStatus":{"anyOf":[{"type":"integer","maximum":599.0,"minimum":100.0},{"type":"null"}],"title":"Httpstatus"},"correlationId":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Correlationid"},"businessId":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Businessid"}},"type":"object","required":["page"],"title":"ProblemReportBody"},"ProposeBody":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"ProposeBody"},"PublicCreateTicketRequest":{"properties":{"subject":{"type":"string","maxLength":500,"minLength":1,"title":"Subject"},"description":{"type":"string","maxLength":10000,"title":"Description","default":""},"category":{"$ref":"#/components/schemas/TicketCategory","default":"support"},"createdByName":{"type":"string","maxLength":255,"minLength":1,"title":"Createdbyname"},"createdByEmail":{"type":"string","maxLength":255,"minLength":1,"title":"Createdbyemail"}},"type":"object","required":["subject","createdByName","createdByEmail"],"title":"PublicCreateTicketRequest"},"ReferralClaimRequest":{"properties":{"referralCode":{"type":"string","maxLength":64,"minLength":1,"title":"Referralcode"}},"type":"object","required":["referralCode"],"title":"ReferralClaimRequest","description":"Input for claiming a referral bonus."},"RollbackBody":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"RollbackBody"},"SaturationTargetOut":{"properties":{"warningRatio":{"type":"number","title":"Warningratio"},"warningFor":{"type":"string","title":"Warningfor"},"pageRatio":{"type":"number","title":"Pageratio"},"pageFor":{"type":"string","title":"Pagefor"}},"type":"object","required":["warningRatio","warningFor","pageRatio","pageFor"],"title":"SaturationTargetOut"},"SelfSetDailyLimitRequest":{"properties":{"walletId":{"type":"string","minLength":1,"title":"Walletid"},"amountMinorUnits":{"type":"integer","minimum":0.0,"title":"Amountminorunits"}},"type":"object","required":["walletId","amountMinorUnits"],"title":"SelfSetDailyLimitRequest","description":"Write body for `POST /v1/daily-limits/me`. The ledger account id,\ncountry, and currency are all derived server-side from the owned\nwallet + profile — never accepted from the client."},"ServiceSloOut":{"properties":{"service":{"type":"string","title":"Service"},"target":{"$ref":"#/components/schemas/SloTargetOut"}},"type":"object","required":["service","target"],"title":"ServiceSloOut"},"SetFeatureFlagRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},"type":"object","required":["enabled"],"title":"SetFeatureFlagRequest","description":"MEDIUM-3 fix: `enabled: bool` (required, no default) rather than\n`body.get(\"enabled\", False)` on a bare `dict` — a missing or\nmisspelled field name (e.g. `isEnabled`) used to silently disable a\nlive provider/flag instead of 422ing. Pydantic v2 rejects a\nmissing/malformed `enabled` field outright.\n\n`country` (optional ISO 3166-1 alpha-2) writes a per-country override\ninto the Redis store (`sente:feature-flags:state:{CC}`) instead of the\nglobal hash — added 2026-08-25; the admin console has been sending this\nfield and having it silently dropped since the field predates the\nmodel."},"SetProviderConfigRequest":{"properties":{"values":{"additionalProperties":true,"type":"object","title":"Values"}},"type":"object","required":["values"],"title":"SetProviderConfigRequest","description":"`values: {field_name: value}` (required) — no `actor` field on the\nCLIENT-facing body, same convention as `SetProviderEnabledRequest` (the\nactor is always `principal.user_id` from the authenticated scope, never\nclient-supplied — this is a load-bearing security property, not a\nstylistic choice)."},"SetProviderEnabledRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"SetProviderEnabledRequest","description":"`enabled: bool` (required) — a missing/misspelled field name\n(e.g. `isEnabled`) produces a 422 rather than silently defaulting,\nmatching PY-PRODUCTS' own edge (`SetProviderEnabledRequest` in\n`app/api/providers.py`)."},"SetRateLimitOverrideRequest":{"properties":{"maxRequests":{"type":"integer","title":"Maxrequests"},"windowSeconds":{"type":"integer","title":"Windowseconds"}},"type":"object","required":["maxRequests","windowSeconds"],"title":"SetRateLimitOverrideRequest"},"SetUserScopesRequest":{"properties":{"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["scopes"],"title":"SetUserScopesRequest","description":"HIGH-1 fix (part 3, silent-strip bug): `scopes: list[str]` is\nrequired, with no default — `body.get(\"scopes\", [])` on a bare `dict`\nmeant a missing/typo'd `scopes` field silently WIPED the target's\nscopes down to empty instead of 422ing. Pydantic v2 rejects a\nmissing/malformed `scopes` field outright."},"SlaMetrics":{"properties":{"totalTickets":{"type":"integer","title":"Totaltickets"},"slaMet":{"type":"integer","title":"Slamet"},"slaBreached":{"type":"integer","title":"Slabreached"},"compliancePct":{"type":"number","title":"Compliancepct"},"averageResponseHours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Averageresponsehours"},"averageResolutionHours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Averageresolutionhours"}},"type":"object","required":["totalTickets","slaMet","slaBreached","compliancePct"],"title":"SlaMetrics"},"SloConfigResponse":{"properties":{"version":{"type":"integer","title":"Version"},"services":{"items":{"$ref":"#/components/schemas/ServiceSloOut"},"type":"array","title":"Services"}},"type":"object","required":["version","services"],"title":"SloConfigResponse"},"SloTargetOut":{"properties":{"availability":{"$ref":"#/components/schemas/AvailabilityTargetOut"},"latency":{"$ref":"#/components/schemas/LatencyTargetOut"},"saturation":{"$ref":"#/components/schemas/SaturationTargetOut"}},"type":"object","required":["availability","latency","saturation"],"title":"SloTargetOut"},"SplitMember":{"properties":{"userHandle":{"type":"string","maxLength":128,"minLength":1,"title":"Userhandle"},"amountMinorUnits":{"type":"integer","exclusiveMinimum":0.0,"title":"Amountminorunits"},"status":{"$ref":"#/components/schemas/SplitStatus","default":"PENDING"},"paidAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paidat"}},"type":"object","required":["userHandle","amountMinorUnits"],"title":"SplitMember","description":"A member of a bill split group."},"SplitStatus":{"type":"string","enum":["PENDING","PAID","DECLINED","PARTIAL"],"title":"SplitStatus"},"TicketCategory":{"type":"string","enum":["support","outage","billing","account","compliance","technical","other"],"title":"TicketCategory"},"TicketComment":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"ticketId":{"type":"string","format":"uuid","title":"Ticketid"},"authorId":{"type":"string","format":"uuid","title":"Authorid"},"authorName":{"type":"string","title":"Authorname"},"content":{"type":"string","title":"Content"},"contentText":{"type":"string","title":"Contenttext","default":""},"isInternal":{"type":"boolean","title":"Isinternal"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"}},"type":"object","required":["id","ticketId","authorId","authorName","content","isInternal","createdAt"],"title":"TicketComment"},"TicketDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subject":{"type":"string","title":"Subject"},"status":{"$ref":"#/components/schemas/TicketStatus"},"priority":{"$ref":"#/components/schemas/TicketPriority"},"category":{"$ref":"#/components/schemas/TicketCategory"},"createdBy":{"type":"string","format":"uuid","title":"Createdby"},"createdByName":{"type":"string","title":"Createdbyname"},"createdByEmail":{"type":"string","title":"Createdbyemail"},"assignedTo":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignedto"},"assignedToName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignedtoname"},"assignedRole":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignedrole"},"slaDeadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sladeadline"},"firstResponseAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Firstresponseat"},"resolvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolvedat"},"closedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closedat"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"description":{"type":"string","title":"Description","default":""},"descriptionText":{"type":"string","title":"Descriptiontext","default":""},"internalNotes":{"type":"string","title":"Internalnotes","default":""},"resolutionNote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolutionnote"},"comments":{"items":{"$ref":"#/components/schemas/TicketComment"},"type":"array","title":"Comments"},"statusHistory":{"items":{"$ref":"#/components/schemas/TicketStatusHistory"},"type":"array","title":"Statushistory"}},"type":"object","required":["id","subject","status","priority","category","createdBy","createdByName","createdByEmail","createdAt","updatedAt"],"title":"TicketDetail","description":"Full ticket with description, internal notes, comments, and history."},"TicketListResponse":{"properties":{"tickets":{"items":{"$ref":"#/components/schemas/TicketSummary"},"type":"array","title":"Tickets"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["tickets","total","limit","offset"],"title":"TicketListResponse"},"TicketMetrics":{"properties":{"total":{"type":"integer","title":"Total"},"byStatus":{"additionalProperties":{"type":"integer"},"type":"object","title":"Bystatus"},"byCategory":{"additionalProperties":{"type":"integer"},"type":"object","title":"Bycategory"},"byPriority":{"additionalProperties":{"type":"integer"},"type":"object","title":"Bypriority"},"byStaff":{"additionalProperties":{"type":"integer"},"type":"object","title":"Bystaff"},"averageResolutionHours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Averageresolutionhours"},"slaBreachCount":{"type":"integer","title":"Slabreachcount","default":0}},"type":"object","required":["total","byStatus","byCategory","byPriority","byStaff"],"title":"TicketMetrics"},"TicketPriority":{"type":"string","enum":["low","medium","high","urgent"],"title":"TicketPriority"},"TicketStatus":{"type":"string","enum":["open","in_progress","waiting_on_customer","waiting_on_third_party","resolved","closed"],"title":"TicketStatus"},"TicketStatusHistory":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"ticketId":{"type":"string","format":"uuid","title":"Ticketid"},"fromStatus":{"anyOf":[{"$ref":"#/components/schemas/TicketStatus"},{"type":"null"}]},"toStatus":{"$ref":"#/components/schemas/TicketStatus"},"changedBy":{"type":"string","format":"uuid","title":"Changedby"},"changedByName":{"type":"string","title":"Changedbyname"},"note":{"type":"string","title":"Note","default":""},"createdAt":{"type":"string","format":"date-time","title":"Createdat"}},"type":"object","required":["id","ticketId","toStatus","changedBy","changedByName","createdAt"],"title":"TicketStatusHistory"},"TicketSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subject":{"type":"string","title":"Subject"},"status":{"$ref":"#/components/schemas/TicketStatus"},"priority":{"$ref":"#/components/schemas/TicketPriority"},"category":{"$ref":"#/components/schemas/TicketCategory"},"createdBy":{"type":"string","format":"uuid","title":"Createdby"},"createdByName":{"type":"string","title":"Createdbyname"},"createdByEmail":{"type":"string","title":"Createdbyemail"},"assignedTo":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignedto"},"assignedToName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignedtoname"},"assignedRole":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignedrole"},"slaDeadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sladeadline"},"firstResponseAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Firstresponseat"},"resolvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolvedat"},"closedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closedat"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","subject","status","priority","category","createdBy","createdByName","createdByEmail","createdAt","updatedAt"],"title":"TicketSummary","description":"Lightweight ticket row for list responses."},"UpdateCardLimitsRequest":{"properties":{"dailyLimitMinor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dailylimitminor","description":"Daily spend limit, int64 minor units as a decimal string. Omitted or \"0\" means the card CANNOT SPEND on this window."},"monthlyLimitMinor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monthlylimitminor","description":"Monthly spend limit — same string/fail-closed semantics as dailyLimitMinor."}},"type":"object","title":"UpdateCardLimitsRequest","description":"Wire shape for `POST /v1/cards/{cardId}/limits`. Same decimal-string\nmoney convention as `IssueVirtualCardRequest` above — a bare JSON number\nis never accepted, and parsing goes through `_parse_limit_minor_units`\nso a malformed value is a clean `400`, never an unhandled `ValueError`\n-> 500 (the exact defect this route used to have via a bare\n`int(body.get(\"dailyLimitMinor\", \"0\"))`)."},"UpdateCommentRequest":{"properties":{"content":{"type":"string","maxLength":20000,"minLength":1,"title":"Content"}},"type":"object","required":["content"],"title":"UpdateCommentRequest"},"UpdatePostRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Title"},"slug":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},{"type":"null"}],"title":"Slug"},"author":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Author"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"coverImage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverimage"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"status":{"anyOf":[{"$ref":"#/components/schemas/PostStatus"},{"type":"null"}]}},"type":"object","title":"UpdatePostRequest","description":"Admin updates an existing post — every field is optional (partial update)."},"UpdateTicketRequest":{"properties":{"subject":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Subject"},"description":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Description"},"priority":{"anyOf":[{"$ref":"#/components/schemas/TicketPriority"},{"type":"null"}]},"category":{"anyOf":[{"$ref":"#/components/schemas/TicketCategory"},{"type":"null"}]},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internalnotes"},"assignedToName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignedtoname"},"assignedRole":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignedrole"}},"type":"object","title":"UpdateTicketRequest"},"UptimeDayOut":{"properties":{"date":{"type":"string","title":"Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"uptimePct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Uptimepct"}},"type":"object","required":["date","status","uptimePct"],"title":"UptimeDayOut"},"UptimeHistoryResponse":{"properties":{"days":{"items":{"$ref":"#/components/schemas/UptimeDayOut"},"type":"array","title":"Days"},"requestedDays":{"type":"integer","title":"Requesteddays"},"availableDays":{"type":"integer","title":"Availabledays"},"overallUptimePct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overalluptimepct"}},"type":"object","required":["days","requestedDays","availableDays","overallUptimePct"],"title":"UptimeHistoryResponse"},"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"},"_PublicAddCommentRequest":{"properties":{"authorName":{"type":"string","maxLength":255,"minLength":1,"title":"Authorname"},"authorEmail":{"type":"string","maxLength":255,"minLength":1,"title":"Authoremail"},"content":{"type":"string","maxLength":10000,"minLength":1,"title":"Content"}},"type":"object","required":["authorName","authorEmail","content"],"title":"_PublicAddCommentRequest"},"app__adapters__comments__models__CreateCommentRequest":{"properties":{"content":{"type":"string","maxLength":8192,"minLength":1,"title":"Content"}},"type":"object","required":["content"],"title":"CreateCommentRequest","description":"Submit a new comment. id/case_id/timestamps/mentions are server-generated."},"app__adapters__tickets__models__CreateCommentRequest":{"properties":{"content":{"type":"string","maxLength":20000,"minLength":1,"title":"Content"},"isInternal":{"type":"boolean","title":"Isinternal","default":false}},"type":"object","required":["content"],"title":"CreateCommentRequest"}}}}