{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/finance:griffin/navigation-global-paths-fetch":{"get":{"operationId":"finance_griffin_navigation_global_paths_fetch","summary":"Index","description":"GET /v0/index","tags":["finance"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/connectivity-check-connection":{"get":{"operationId":"finance_griffin_connectivity_check_connection","summary":"Ping","description":"GET /v0/ping","tags":["finance"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/payments-get-admission":{"get":{"operationId":"finance_griffin_payments_get_admission","summary":"Get payment admission","description":"GET /v0/admissions/{admission-id}","tags":["finance"],"parameters":[{"name":"admission-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/api-keys-get-key-details":{"get":{"operationId":"finance_griffin_api_keys_get_key_details","summary":"Get API key","description":"GET /v0/api-keys/{api-key-id}","tags":["finance"],"parameters":[{"name":"api-key-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/api-keys-remove-api-key":{"post":{"operationId":"finance_griffin_api_keys_remove_api_key","summary":"Delete API key","description":"DELETE /v0/api-keys/{api-key-id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["api-key-id"],"properties":{"api-key-id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/bank-accounts-get-account":{"get":{"operationId":"finance_griffin_bank_accounts_get_account","summary":"Get bank account","description":"GET /v0/bank/accounts/{bank-account-id}","tags":["finance"],"parameters":[{"name":"bank-account-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/bank-accounts-update-bank-account":{"post":{"operationId":"finance_griffin_bank_accounts_update_bank_account","summary":"Update a bank account","description":"PATCH /v0/bank/accounts/{bank-account-id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["bank-account-id","body"],"properties":{"bank-account-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/bank-accounts-close-account":{"post":{"operationId":"finance_griffin_bank_accounts_close_account","summary":"Close a bank account","description":"POST /v0/bank/accounts/{bank-account-id}/actions/close","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["bank-account-id"],"properties":{"bank-account-id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/payments-list-bank-account-admissions":{"get":{"operationId":"finance_griffin_payments_list_bank_account_admissions","summary":"List bank account admissions","description":"GET /v0/bank/accounts/{bank-account-id}/admissions","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"filter[created-at][lte]","in":"query","required":false,"description":"Return only resources with a created-at less than or equal to the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at less than or equal to the given timestamp."}},{"name":"filter[created-at][lt]","in":"query","required":false,"description":"Return only resources with a created-at less than the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at less than the given timestamp."}},{"name":"filter[created-at][gte]","in":"query","required":false,"description":"Return only resources with a created-at greater than or equal to the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at greater than or equal to the given timestamp."}},{"name":"filter[created-at][gt]","in":"query","required":false,"description":"Return only resources with a created-at greater than the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at greater than the given timestamp."}},{"name":"filter[admission-status][in]","in":"query","required":false,"schema":{"type":"array"}},{"name":"bank-account-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/pooled-account-membership-list-legal-persons":{"get":{"operationId":"finance_griffin_pooled_account_membership_list_legal_persons","summary":"List legal person in a pooled account membership","description":"GET /v0/bank/accounts/{bank-account-id}/membership","tags":["finance"],"parameters":[{"name":"include","in":"query","required":false,"description":"For each member returned, include its legal person details, latest verification (if one exists), and/or latest risk rating (if one exists)…","schema":{"type":"array","description":"For each member returned, include its legal person details, latest verification (if one exists), and/or latest risk rating (if one exists)…"}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"bank-account-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/pooled-account-membership-manage-legal-persons":{"post":{"operationId":"finance_griffin_pooled_account_membership_manage_legal_persons","summary":"Manage pooled account members","description":"POST /v0/bank/accounts/{bank-account-id}/membership-updates","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["bank-account-id","body"],"properties":{"bank-account-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/payments-get-bank-account-payments":{"get":{"operationId":"finance_griffin_payments_get_bank_account_payments","summary":"List bank account payments","description":"GET /v0/bank/accounts/{bank-account-id}/payments","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"filter[created-at][lte]","in":"query","required":false,"description":"Return only resources with a created-at less than or equal to the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at less than or equal to the given timestamp."}},{"name":"filter[created-at][lt]","in":"query","required":false,"description":"Return only resources with a created-at less than the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at less than the given timestamp."}},{"name":"filter[created-at][gte]","in":"query","required":false,"description":"Return only resources with a created-at greater than or equal to the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at greater than or equal to the given timestamp."}},{"name":"filter[created-at][gt]","in":"query","required":false,"description":"Return only resources with a created-at greater than the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at greater than the given timestamp."}},{"name":"bank-account-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/payments-create-request":{"post":{"operationId":"finance_griffin_payments_create_request","summary":"Create payment","description":"POST /v0/bank/accounts/{bank-account-id}/payments","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["bank-account-id","body"],"properties":{"bank-account-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/payments-list-submissions":{"get":{"operationId":"finance_griffin_payments_list_submissions","summary":"List bank account submissions","description":"GET /v0/bank/accounts/{bank-account-id}/submissions","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"filter[submission-status][in]","in":"query","required":false,"schema":{"type":"array"}},{"name":"filter[created-at][lte]","in":"query","required":false,"description":"Return only resources with a created-at less than or equal to the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at less than or equal to the given timestamp."}},{"name":"filter[created-at][lt]","in":"query","required":false,"description":"Return only resources with a created-at less than the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at less than the given timestamp."}},{"name":"filter[created-at][gte]","in":"query","required":false,"description":"Return only resources with a created-at greater than or equal to the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at greater than or equal to the given timestamp."}},{"name":"filter[created-at][gt]","in":"query","required":false,"description":"Return only resources with a created-at greater than the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at greater than the given timestamp."}},{"name":"bank-account-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/transactions-list-balance-changes":{"get":{"operationId":"finance_griffin_transactions_list_balance_changes","summary":"List transactions","description":"GET /v0/bank/accounts/{bank-account-id}/transactions","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"include","in":"query","required":false,"description":"For each transaction returned, include its payment (if one exists) in the response under the `included` attribute.","schema":{"type":"string","enum":["payment"],"description":"For each transaction returned, include its payment (if one exists) in the response under the `included` attribute."}},{"name":"filter[post-datetime][lte]","in":"query","required":false,"description":"Return only resources with a created-at less than or equal to the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at less than or equal to the given timestamp."}},{"name":"filter[post-datetime][lt]","in":"query","required":false,"description":"Return only resources with a created-at less than the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at less than the given timestamp."}},{"name":"filter[post-datetime][gte]","in":"query","required":false,"description":"Return only resources with a created-at greater than or equal to the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at greater than or equal to the given timestamp."}},{"name":"filter[post-datetime][gt]","in":"query","required":false,"description":"Return only resources with a created-at greater than the given timestamp.","schema":{"type":"string","description":"Return only resources with a created-at greater than the given timestamp."}},{"name":"bank-account-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/transactions-get-transaction-by-id":{"get":{"operationId":"finance_griffin_transactions_get_transaction_by_id","summary":"Get transaction","description":"GET /v0/bank/transactions/{transaction-id}","tags":["finance"],"parameters":[{"name":"transaction-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/companies-house-get-company-details":{"get":{"operationId":"finance_griffin_companies_house_get_company_details","summary":"Lookup company","description":"GET /v0/companies-house/companies/{company-number}","tags":["finance"],"parameters":[{"name":"company-number","in":"query","required":true,"description":"UK Companies House company number","schema":{"type":"string","description":"UK Companies House company number"},"example":"10842931"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/events-get-event":{"get":{"operationId":"finance_griffin_events_get_event","summary":"Get an event","description":"GET /v0/events/{event-id}","tags":["finance"],"parameters":[{"name":"event-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/legal-persons-get-legal-person":{"get":{"operationId":"finance_griffin_legal_persons_get_legal_person","summary":"Get legal person","description":"GET /v0/legal-persons/{legal-person-id}","tags":["finance"],"parameters":[{"name":"legal-person-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/legal-persons-update-legal-person":{"post":{"operationId":"finance_griffin_legal_persons_update_legal_person","summary":"Update legal person","description":"PUT /v0/legal-persons/{legal-person-id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["legal-person-id","body"],"properties":{"legal-person-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/payees-list-legal-person-payees":{"get":{"operationId":"finance_griffin_payees_list_legal_person_payees","summary":"List legal person payees","description":"GET /v0/legal-persons/{legal-person-id}/bank/payees","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"legal-person-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/payees-register-new-payee":{"post":{"operationId":"finance_griffin_payees_register_new_payee","summary":"Create payee","description":"POST /v0/legal-persons/{legal-person-id}/bank/payees","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["legal-person-id","body"],"properties":{"legal-person-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/claims-get-all-claims":{"get":{"operationId":"finance_griffin_claims_get_all_claims","summary":"List claims","description":"GET /v0/legal-persons/{legal-person-id}/claims","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"legal-person-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/claims-create-new-claim":{"post":{"operationId":"finance_griffin_claims_create_new_claim","summary":"Create claim","description":"POST /v0/legal-persons/{legal-person-id}/claims","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["legal-person-id","body"],"properties":{"legal-person-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/decisions-list-for-legal-person":{"get":{"operationId":"finance_griffin_decisions_list_for_legal_person","summary":"List decisions","description":"GET /v0/legal-persons/{legal-person-id}/decisions","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"legal-person-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/decisions-create-decision":{"post":{"operationId":"finance_griffin_decisions_create_decision","summary":"Create decision","description":"POST /v0/legal-persons/{legal-person-id}/decisions","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["legal-person-id","body"],"properties":{"legal-person-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/legal-person-history-list-events":{"get":{"operationId":"finance_griffin_legal_person_history_list_events","summary":"Lists history of events for the given legal person.","description":"GET /v0/legal-persons/{legal-person-id}/history","tags":["finance"],"parameters":[{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"legal-person-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/verifications-list-for-legal-person":{"get":{"operationId":"finance_griffin_verifications_list_for_legal_person","summary":"List verifications for a legal person","description":"GET /v0/legal-persons/{legal-person-id}/verifications","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"legal-person-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/verifications-initiate-verification":{"post":{"operationId":"finance_griffin_verifications_initiate_verification","summary":"Perform verification of a legal person","description":"POST /v0/legal-persons/{legal-person-id}/verifications","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["legal-person-id","body"],"properties":{"legal-person-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/memberships-get-membership-info":{"get":{"operationId":"finance_griffin_memberships_get_membership_info","summary":"Get membership","description":"GET /v0/memberships/{membership-id}","tags":["finance"],"parameters":[{"name":"membership-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/memberships-remove-member":{"post":{"operationId":"finance_griffin_memberships_remove_member","summary":"Delete membership","description":"DELETE /v0/memberships/{membership-id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["membership-id"],"properties":{"membership-id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/roles-get-membership-roles":{"get":{"operationId":"finance_griffin_roles_get_membership_roles","summary":"List membership roles","description":"GET /v0/memberships/{membership-id}/roles","tags":["finance"],"parameters":[{"name":"membership-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/roles-assign-membership-roles":{"post":{"operationId":"finance_griffin_roles_assign_membership_roles","summary":"Update role","description":"PUT /v0/memberships/{membership-id}/roles","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["membership-id","body"],"properties":{"membership-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/reliance-onboarding-get-application":{"get":{"operationId":"finance_griffin_reliance_onboarding_get_application","summary":"Get onboarding application","description":"GET /v0/onboarding/applications/{onboarding-application-id}","tags":["finance"],"parameters":[{"name":"onboarding-application-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/organizations-get-details":{"get":{"operationId":"finance_griffin_organizations_get_details","summary":"Get organization","description":"GET /v0/organizations/{organization-id}","tags":["finance"],"parameters":[{"name":"organization-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/api-keys-list-active-keys":{"get":{"operationId":"finance_griffin_api_keys_list_active_keys","summary":"List API keys","description":"GET /v0/organizations/{organization-id}/api-keys","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"organization-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/api-keys-create-key":{"post":{"operationId":"finance_griffin_api_keys_create_key","summary":"Create API Key","description":"POST /v0/organizations/{organization-id}/api-keys","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["organization-id","body"],"properties":{"organization-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/bank-accounts-list":{"get":{"operationId":"finance_griffin_bank_accounts_list","summary":"List bank accounts","description":"GET /v0/organizations/{organization-id}/bank/accounts","tags":["finance"],"parameters":[{"name":"filter[beneficiary][eq]","in":"query","required":false,"description":"Link to the [legal person](http://docs.griffin.com) that represents the [beneficiary](http://docs.griffin.com) of the account.","schema":{"type":"string","description":"Link to the [legal person](http://docs.griffin.com) that represents the [beneficiary](http://docs.griffin.com) of the account."},"example":"/v0/legal-persons/lp.IGxlZ2FsLXBlcnNvbi1pZA"},{"name":"filter[owner][eq]","in":"query","required":false,"description":"Link to the [legal person](http://docs.griffin.com) that represents the [owner](http://docs.griffin.com) of the account.","schema":{"type":"string","description":"Link to the [legal person](http://docs.griffin.com) that represents the [owner](http://docs.griffin.com) of the account."},"example":"/v0/legal-persons/lp.IGxlZ2FsLXBlcnNvbi1pZA"},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"include","in":"query","required":false,"description":"For each bank account returned, include its owner and/or beneficiary in the response under the `included.legal-persons` attribute.","schema":{"type":"array","description":"For each bank account returned, include its owner and/or beneficiary in the response under the `included.legal-persons` attribute."}},{"name":"filter[account-status][in][]","in":"query","required":false,"schema":{"type":"array"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","display-name","created-at","-display-name"]}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"filter[account-restricted][in][]","in":"query","required":false,"description":"Specifies whether the bank account has restrictions applied by Griffin.","schema":{"type":"boolean","description":"Specifies whether the bank account has restrictions applied by Griffin."}},{"name":"filter[pooled-funds][eq]","in":"query","required":false,"description":"Specifies whether the bank account holds funds belonging to multiple beneficiaries.","schema":{"type":"boolean","description":"Specifies whether the bank account holds funds belonging to multiple beneficiaries."}},{"name":"filter[bank-product-type][in][]","in":"query","required":false,"schema":{"type":"array"}},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"organization-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/bank-accounts-create-new-account":{"post":{"operationId":"finance_griffin_bank_accounts_create_new_account","summary":"Open bank account","description":"POST /v0/organizations/{organization-id}/bank/accounts","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["organization-id","body"],"properties":{"organization-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/events-get-all-organization-events":{"get":{"operationId":"finance_griffin_events_get_all_organization_events","summary":"List all events for an organization","description":"GET /v0/organizations/{organization-id}/events","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"filter[event-type][eq]","in":"query","required":false,"description":"The type of webhook event. Usually has the form {resource}-{operation}, e.g. payment-updated","schema":{"type":"string","enum":["decision-created","payment-created","transaction-created","verification-updated","admission-updated","verification-created","account-status-updated","submission-created","test-event","admission-created","account-status-created","submission-updated"],"description":"The type of webhook event. Usually has the form {resource}-{operation}, e.g. payment-updated"}},{"name":"filter[created-at][lte]","in":"query","required":false,"description":"Return only events with a created-at less than or equal to the given timestamp.","schema":{"type":"string","description":"Return only events with a created-at less than or equal to the given timestamp."}},{"name":"filter[created-at][lt]","in":"query","required":false,"description":"Return only events with a created-at less than the given timestamp.","schema":{"type":"string","description":"Return only events with a created-at less than the given timestamp."}},{"name":"filter[created-at][gte]","in":"query","required":false,"description":"Return only events with a created-at greater than or equal to the given timestamp.","schema":{"type":"string","description":"Return only events with a created-at greater than or equal to the given timestamp."}},{"name":"filter[created-at][gt]","in":"query","required":false,"description":"Return only events with a created-at greater than the given timestamp.","schema":{"type":"string","description":"Return only events with a created-at greater than the given timestamp."}},{"name":"organization-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/invitations-send-email":{"post":{"operationId":"finance_griffin_invitations_send_email","summary":"Create invitation","description":"POST /v0/organizations/{organization-id}/invitations","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["organization-id","body"],"properties":{"organization-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/legal-persons-list-legal-persons":{"get":{"operationId":"finance_griffin_legal_persons_list_legal_persons","summary":"List legal persons","description":"GET /v0/organizations/{organization-id}/legal-persons","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-status-changed-at","status-changed-at","-created-at","created-at"]}},{"name":"include","in":"query","required":false,"description":"For each legal person returned, include its latest verification (if one exists), and/or its latest risk rating (if one exists) in the…","schema":{"type":"array","description":"For each legal person returned, include its latest verification (if one exists), and/or its latest risk rating (if one exists) in the…"}},{"name":"filter[application-status][eq]","in":"query","required":false,"description":"Return only legal persons with the given application-status.","schema":{"type":"string","enum":["referred","errored","declined","submitted","accepted"],"description":"Return only legal persons with the given application-status."}},{"name":"filter[has][]","in":"query","required":false,"description":"Return only legal persons with the given attributes.","schema":{"type":"array","description":"Return only legal persons with the given attributes."}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"organization-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/legal-persons-create-new-legal-person":{"post":{"operationId":"finance_griffin_legal_persons_create_new_legal_person","summary":"Create legal person","description":"POST /v0/organizations/{organization-id}/legal-persons","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["organization-id","body"],"properties":{"organization-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/memberships-list-organization-memberships":{"get":{"operationId":"finance_griffin_memberships_list_organization_memberships","summary":"List organization memberships","description":"GET /v0/organizations/{organization-id}/memberships","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"organization-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/reliance-onboarding-create-application":{"post":{"operationId":"finance_griffin_reliance_onboarding_create_application","summary":"Create an onboarding application","description":"POST /v0/organizations/{organization-id}/onboarding/applications","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["organization-id","body"],"properties":{"organization-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/webhooks-get-all":{"get":{"operationId":"finance_griffin_webhooks_get_all","summary":"Get all webhooks for the organization","description":"GET /v0/organizations/{organization-id}/webhooks","tags":["finance"],"parameters":[{"name":"organization-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/webhooks-create-webhook":{"post":{"operationId":"finance_griffin_webhooks_create_webhook","summary":"Create a webhook","description":"POST /v0/organizations/{organization-id}/webhooks","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["organization-id","body"],"properties":{"organization-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/workflows-list-organization-workflows":{"get":{"operationId":"finance_griffin_workflows_list_organization_workflows","summary":"List organization workflows","description":"GET /v0/organizations/{organization-id}/workflows","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"organization-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/payees-get-details":{"get":{"operationId":"finance_griffin_payees_get_details","summary":"Get payee","description":"GET /v0/payees/{payee-id}","tags":["finance"],"parameters":[{"name":"payee-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/payees-update-payee":{"post":{"operationId":"finance_griffin_payees_update_payee","summary":"Update payee","description":"PATCH /v0/payees/{payee-id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["payee-id","body"],"properties":{"payee-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/payments-get-details":{"get":{"operationId":"finance_griffin_payments_get_details","summary":"Get payment","description":"GET /v0/payments/{payment-id}","tags":["finance"],"parameters":[{"name":"payment-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/payments-list-admissions":{"get":{"operationId":"finance_griffin_payments_list_admissions","summary":"List payment admissions","description":"GET /v0/payments/{payment-id}/admissions","tags":["finance"],"parameters":[{"name":"payment-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/payments-list-submissions-2":{"get":{"operationId":"finance_griffin_payments_list_submissions_2","summary":"List payment submissions","description":"GET /v0/payments/{payment-id}/submissions","tags":["finance"],"parameters":[{"name":"payment-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/payments-submit-payment-submission":{"post":{"operationId":"finance_griffin_payments_submit_payment_submission","summary":"Submit payment","description":"POST /v0/payments/{payment-id}/submissions","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["payment-id","body"],"properties":{"payment-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/roles-list-all-roles":{"get":{"operationId":"finance_griffin_roles_list_all_roles","summary":"List roles","description":"GET /v0/roles","tags":["finance"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/roles-get-role":{"get":{"operationId":"finance_griffin_roles_get_role","summary":"Get role","description":"GET /v0/roles/{role-id}","tags":["finance"],"parameters":[{"name":"role-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/payments-get-submission":{"get":{"operationId":"finance_griffin_payments_get_submission","summary":"Get payment submission","description":"GET /v0/submissions/{submission-id}","tags":["finance"],"parameters":[{"name":"submission-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/users-get-user-resource":{"get":{"operationId":"finance_griffin_users_get_user_resource","summary":"Get user","description":"GET /v0/users/{user-id}","tags":["finance"],"parameters":[{"name":"user-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/api-keys-list-active-keys-2":{"get":{"operationId":"finance_griffin_api_keys_list_active_keys_2","summary":"List API keys","description":"GET /v0/users/{user-id}/api-keys","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"user-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/memberships-list-user-memberships":{"get":{"operationId":"finance_griffin_memberships_list_user_memberships","summary":"List user memberships","description":"GET /v0/users/{user-id}/memberships","tags":["finance"],"parameters":[{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["-created-at","created-at"]}},{"name":"page[size]","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page[after]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"page[before]","in":"query","required":false,"description":"A base64 encoded opaque string returned in paginated responses.","schema":{"type":"string","description":"A base64 encoded opaque string returned in paginated responses."},"example":"djE6NL0DfDTSUk67KJKCi-L5Zg"},{"name":"user-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/verifications-get-verification":{"get":{"operationId":"finance_griffin_verifications_get_verification","summary":"Get verification","description":"GET /v0/verifications/{verification-id}","tags":["finance"],"parameters":[{"name":"verification-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/webhooks-get-webhook":{"get":{"operationId":"finance_griffin_webhooks_get_webhook","summary":"Fetch a webhook","description":"GET /v0/webhooks/{webhook-id}","tags":["finance"],"parameters":[{"name":"webhook-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/webhooks-update-webhook":{"post":{"operationId":"finance_griffin_webhooks_update_webhook","summary":"Update a webhook","description":"PATCH /v0/webhooks/{webhook-id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhook-id","body"],"properties":{"webhook-id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/webhooks-delete-webhook":{"post":{"operationId":"finance_griffin_webhooks_delete_webhook","summary":"Delete a webhook","description":"DELETE /v0/webhooks/{webhook-id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhook-id"],"properties":{"webhook-id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/webhooks-activate-action":{"post":{"operationId":"finance_griffin_webhooks_activate_action","summary":"Activate a webhook","description":"POST /v0/webhooks/{webhook-id}/actions/activate","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhook-id"],"properties":{"webhook-id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/webhooks-deactivate-action":{"post":{"operationId":"finance_griffin_webhooks_deactivate_action","summary":"Deactivate a webhook","description":"POST /v0/webhooks/{webhook-id}/actions/deactivate","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhook-id"],"properties":{"webhook-id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/webhooks-get-latest-test-status":{"get":{"operationId":"finance_griffin_webhooks_get_latest_test_status","summary":"Get the status of the latest test event","description":"GET /v0/webhooks/{webhook-id}/actions/test","tags":["finance"],"parameters":[{"name":"webhook-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:griffin/webhooks-send-test-event":{"post":{"operationId":"finance_griffin_webhooks_send_test_event","summary":"Send a test event to the webhook","description":"POST /v0/webhooks/{webhook-id}/actions/test","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhook-id"],"properties":{"webhook-id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:griffin/workflows-get-workflow":{"get":{"operationId":"finance_griffin_workflows_get_workflow","summary":"Get workflow","description":"GET /v0/workflows/{workflow-id}","tags":["finance"],"parameters":[{"name":"workflow-id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}