{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/finance:modern-treasury/list-account-collection-flows":{"get":{"operationId":"finance_modern_treasury_list_account_collection_flows","summary":"list account_collection_flows","description":"GET /api/account_collection_flows","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"client_token","in":"query","required":false,"schema":{"type":"string"}},{"name":"counterparty_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"external_account_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"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:modern-treasury/get-account-collection-flow":{"get":{"operationId":"finance_modern_treasury_get_account_collection_flow","summary":"get account_collection_flow","description":"GET /api/account_collection_flows/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}},{"name":"Idempotency-Key","in":"query","required":false,"description":"This key should be something unique, preferably something like an UUID.","schema":{"type":"string","description":"This key should be something unique, preferably something like an UUID."}}],"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:modern-treasury/update-account-collection-flow":{"post":{"operationId":"finance_modern_treasury_update_account_collection_flow","summary":"update account_collection_flow","description":"PATCH /api/account_collection_flows/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/list-bulk-requests":{"get":{"operationId":"finance_modern_treasury_list_bulk_requests","summary":"list bulk_requests","description":"GET /api/bulk_requests","tags":["finance"],"parameters":[{"name":"action_type","in":"query","required":false,"description":"One of create, or update.","schema":{"type":"string","enum":["create","update","delete"],"description":"One of create, or update."}},{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"resource_type","in":"query","required":false,"description":"One of payment_order, expected_payment, or ledger_transaction.","schema":{"type":"string","enum":["payment_order","ledger_account","ledger_transaction","expected_payment","transaction","transaction_line_item"],"description":"One of payment_order, expected_payment, or ledger_transaction."}},{"name":"status","in":"query","required":false,"description":"One of pending, processing, or completed.","schema":{"type":"string","enum":["pending","processing","completed"],"description":"One of pending, processing, or completed."}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-bulk-request":{"post":{"operationId":"finance_modern_treasury_create_bulk_request","summary":"create bulk_request","description":"POST /api/bulk_requests","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-bulk-request":{"get":{"operationId":"finance_modern_treasury_get_bulk_request","summary":"get bulk_request","description":"GET /api/bulk_requests/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/list-bulk-results":{"get":{"operationId":"finance_modern_treasury_list_bulk_results","summary":"list bulk_results","description":"GET /api/bulk_results","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","required":false,"description":"Unique identifier for the result entity object.","schema":{"type":"string","description":"Unique identifier for the result entity object."}},{"name":"entity_type","in":"query","required":false,"description":"The type of the request that created this result. bulk_request is the only supported `request_type`","schema":{"type":"string","enum":["payment_order","ledger_account","ledger_transaction","expected_payment","transaction","transaction_line_item","bulk_error"],"description":"The type of the request that created this result. bulk_request is the only supported `request_type`"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"request_id","in":"query","required":false,"description":"Unique identifier for the request that created this bulk result. This is the ID of the bulk request when `request_type` is bulk_request","schema":{"type":"string","description":"Unique identifier for the request that created this bulk result. This is the ID of the bulk request when `request_type` is bulk_request"}},{"name":"request_type","in":"query","required":false,"description":"The type of the request that created this result. bulk_request is the only supported `request_type`","schema":{"type":"string","enum":["bulk_request"],"description":"The type of the request that created this result. bulk_request is the only supported `request_type`"}},{"name":"status","in":"query","required":false,"description":"One of successful or failed.","schema":{"type":"string","enum":["pending","successful","failed"],"description":"One of successful or failed."}}],"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:modern-treasury/get-bulk-result":{"get":{"operationId":"finance_modern_treasury_get_bulk_result","summary":"get bulk_result","description":"GET /api/bulk_results/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/list-cases":{"get":{"operationId":"finance_modern_treasury_list_cases","summary":"list cases","description":"GET /api/cases","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"description":"The status of the case.","schema":{"type":"string","enum":["open","resolved"],"description":"The status of the case."}},{"name":"subject_id","in":"query","required":false,"description":"The ID of the object the case is about.","schema":{"type":"string","description":"The ID of the object the case is about."}},{"name":"subject_type","in":"query","required":false,"description":"The type of the object the case is about.","schema":{"type":"string","enum":["legal_entity"],"description":"The type of the object the case is about."}}],"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:modern-treasury/get-case":{"get":{"operationId":"finance_modern_treasury_get_case","summary":"get case","description":"GET /api/cases/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/list-connection-legal-entities":{"get":{"operationId":"finance_modern_treasury_list_connection_legal_entities","summary":"list connection_legal_entities","description":"GET /api/connection_legal_entities","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"connection_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"legal_entity_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["completed","denied","failed","processing","suspended"]}}],"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:modern-treasury/create-connection-legal-entity":{"post":{"operationId":"finance_modern_treasury_create_connection_legal_entity","summary":"create connection_legal_entity","description":"POST /api/connection_legal_entities","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-connection-legal-entity":{"get":{"operationId":"finance_modern_treasury_get_connection_legal_entity","summary":"get connection_legal_entity","description":"GET /api/connection_legal_entities/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The id of an existing connection legal entity.","schema":{"type":"string","description":"The id of an existing connection legal entity."}},{"name":"Idempotency-Key","in":"query","required":false,"description":"This key should be something unique, preferably something like an UUID.","schema":{"type":"string","description":"This key should be something unique, preferably something like an UUID."}}],"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:modern-treasury/update-connection-legal-entity":{"post":{"operationId":"finance_modern_treasury_update_connection_legal_entity","summary":"update connection_legal_entity","description":"PATCH /api/connection_legal_entities/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The id of an existing connection legal entity."},"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:modern-treasury/list-connections":{"get":{"operationId":"finance_modern_treasury_list_connections","summary":"list connections","description":"GET /api/connections","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"entity","in":"query","required":false,"description":"A string code representing the vendor (i.e. bank).","schema":{"type":"string","description":"A string code representing the vendor (i.e. bank)."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"vendor_customer_id","in":"query","required":false,"description":"An identifier assigned by the vendor to your organization.","schema":{"type":"string","description":"An identifier assigned by the vendor to your organization."}}],"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:modern-treasury/list-counterparties":{"get":{"operationId":"finance_modern_treasury_list_counterparties","summary":"list counterparties","description":"GET /api/counterparties","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"created_at_lower_bound","in":"query","required":false,"description":"Used to return counterparties created after some datetime.","schema":{"type":"string","description":"Used to return counterparties created after some datetime."}},{"name":"created_at_upper_bound","in":"query","required":false,"description":"Used to return counterparties created before some datetime.","schema":{"type":"string","description":"Used to return counterparties created before some datetime."}},{"name":"email","in":"query","required":false,"description":"Performs a partial string match of the email field. This is also case insensitive.","schema":{"type":"string","description":"Performs a partial string match of the email field. This is also case insensitive."}},{"name":"external_id","in":"query","required":false,"description":"An optional user-defined 180 character unique identifier.","schema":{"type":"string","description":"An optional user-defined 180 character unique identifier."}},{"name":"legal_entity_id","in":"query","required":false,"description":"Filters for counterparties with the given legal entity ID.","schema":{"type":"string","description":"Filters for counterparties with the given legal entity ID."}},{"name":"name","in":"query","required":false,"description":"Performs a partial string match of the name field. This is also case insensitive.","schema":{"type":"string","description":"Performs a partial string match of the name field. This is also case insensitive."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-counterparty":{"post":{"operationId":"finance_modern_treasury_create_counterparty","summary":"create counterparty","description":"POST /api/counterparties","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-counterparty":{"get":{"operationId":"finance_modern_treasury_get_counterparty","summary":"show counterparty","description":"GET /api/counterparties/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The id of an existing counterparty.","schema":{"type":"string","description":"The id of an existing counterparty."}}],"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:modern-treasury/update-counterparty":{"post":{"operationId":"finance_modern_treasury_update_counterparty","summary":"update counterparty","description":"PATCH /api/counterparties/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The id of an existing counterparty."},"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:modern-treasury/delete-counterparty":{"post":{"operationId":"finance_modern_treasury_delete_counterparty","summary":"delete counterparty","description":"DELETE /api/counterparties/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The id of an existing counterparty."}}}}}},"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:modern-treasury/collect-account-details":{"post":{"operationId":"finance_modern_treasury_collect_account_details","summary":"collect account details","description":"POST /api/counterparties/{id}/collect_account","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"id":{"type":"string","description":"counterparty id"},"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:modern-treasury/list-documents":{"get":{"operationId":"finance_modern_treasury_list_documents","summary":"list documents","description":"GET /api/documents","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"documentable_id","in":"query","required":false,"description":"The unique identifier for the associated object.","schema":{"type":"string","description":"The unique identifier for the associated object."}},{"name":"documentable_type","in":"query","required":false,"description":"The type of the associated object. Currently can be one of `connection`, `counterparty`, `expected_payment`, `identification`,…","schema":{"type":"string","enum":["connection","counterparty","expected_payment","identification","incoming_payment_detail","internal_account","legal_entity","payment_order","return","transaction"],"description":"The type of the associated object. Currently can be one of `connection`, `counterparty`, `expected_payment`, `identification`,…"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}}],"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:modern-treasury/create-document":{"post":{"operationId":"finance_modern_treasury_create_document","summary":"create document","description":"POST /api/documents","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"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:modern-treasury/get-document":{"get":{"operationId":"finance_modern_treasury_get_document","summary":"get document","description":"GET /api/documents/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The ID of the document.","schema":{"type":"string","description":"The ID of the document."}}],"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:modern-treasury/download-document":{"get":{"operationId":"finance_modern_treasury_download_document","summary":"download document","description":"GET /api/documents/{id}/download","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The ID of the document.","schema":{"type":"string","description":"The ID of the document."}}],"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:modern-treasury/list-embeddable-flows":{"get":{"operationId":"finance_modern_treasury_list_embeddable_flows","summary":"list embeddable_flows","description":"GET /api/embeddable_flows","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"template","in":"query","required":false,"schema":{"type":"string","enum":["legal_entity_onboarding","account_collection","payment"]}}],"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:modern-treasury/create-embeddable-flow":{"post":{"operationId":"finance_modern_treasury_create_embeddable_flow","summary":"create embeddable_flow","description":"POST /api/embeddable_flows","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-embeddable-flow":{"get":{"operationId":"finance_modern_treasury_get_embeddable_flow","summary":"get embeddable_flow","description":"GET /api/embeddable_flows/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}},{"name":"Idempotency-Key","in":"query","required":false,"description":"This key should be something unique, preferably something like an UUID.","schema":{"type":"string","description":"This key should be something unique, preferably something like an UUID."}}],"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:modern-treasury/update-embeddable-flow":{"post":{"operationId":"finance_modern_treasury_update_embeddable_flow","summary":"update embeddable_flow","description":"PATCH /api/embeddable_flows/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","body"],"properties":{"id":{"type":"string","description":"id"},"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/list-events":{"get":{"operationId":"finance_modern_treasury_list_events","summary":"list events","description":"GET /api/events","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"entity_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"event_name","in":"query","required":false,"schema":{"type":"string"}},{"name":"event_time_end","in":"query","required":false,"description":"An inclusive upper bound for when the event occurred","schema":{"type":"string","description":"An inclusive upper bound for when the event occurred"}},{"name":"event_time_start","in":"query","required":false,"description":"An inclusive lower bound for when the event occurred","schema":{"type":"string","description":"An inclusive lower bound for when the event occurred"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"resource","in":"query","required":false,"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:modern-treasury/get-event":{"get":{"operationId":"finance_modern_treasury_get_event","summary":"get event","description":"GET /api/events/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"event id","schema":{"type":"string","description":"event id"}}],"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:modern-treasury/list-expected-payments":{"get":{"operationId":"finance_modern_treasury_list_expected_payments","summary":"list expected_payments","description":"GET /api/expected_payments","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"counterparty_id","in":"query","required":false,"description":"Specify counterparty_id to see expected_payments for a specific account.","schema":{"type":"string","description":"Specify counterparty_id to see expected_payments for a specific account."}},{"name":"created_at_lower_bound","in":"query","required":false,"description":"Used to return expected payments created after some datetime","schema":{"type":"string","description":"Used to return expected payments created after some datetime"}},{"name":"created_at_upper_bound","in":"query","required":false,"description":"Used to return expected payments created before some datetime","schema":{"type":"string","description":"Used to return expected payments created before some datetime"}},{"name":"direction","in":"query","required":false,"description":"One of credit, debit","schema":{"type":"string","enum":["credit","debit"],"description":"One of credit, debit"}},{"name":"external_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"internal_account_id","in":"query","required":false,"description":"Specify internal_account_id to see expected_payments for a specific account.","schema":{"type":"string","description":"Specify internal_account_id to see expected_payments for a specific account."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"description":"One of unreconciled, reconciled, or archived.","schema":{"type":"string","enum":["archived","partially_reconciled","reconciled","unreconciled"],"description":"One of unreconciled, reconciled, or archived."}},{"name":"type","in":"query","required":false,"description":"One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire","schema":{"type":"string","enum":["ach","au_becs","bacs","book","card","chats","check","cross_border","dk_nets","eft","gb_fps","masav","mx_ccen","neft","nics","nz_becs","pl_elixir","rtp","se_bankgirot","sepa","sg_giro","sic","stablecoin","wire","zengin"],"description":"One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire"}},{"name":"updated_at_lower_bound","in":"query","required":false,"description":"Used to return expected payments updated after some datetime","schema":{"type":"string","description":"Used to return expected payments updated after some datetime"}},{"name":"updated_at_upper_bound","in":"query","required":false,"description":"Used to return expected payments updated before some datetime","schema":{"type":"string","description":"Used to return expected payments updated before some datetime"}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-expected-payment":{"post":{"operationId":"finance_modern_treasury_create_expected_payment","summary":"create expected payment","description":"POST /api/expected_payments","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-expected-payment":{"get":{"operationId":"finance_modern_treasury_get_expected_payment","summary":"get expected payment","description":"GET /api/expected_payments/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/update-expected-payment":{"post":{"operationId":"finance_modern_treasury_update_expected_payment","summary":"update expected payment","description":"PATCH /api/expected_payments/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"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:modern-treasury/delete-expected-payment":{"post":{"operationId":"finance_modern_treasury_delete_expected_payment","summary":"delete expected payment","description":"DELETE /api/expected_payments/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"}}}}}},"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:modern-treasury/list-external-accounts":{"get":{"operationId":"finance_modern_treasury_list_external_accounts","summary":"list external accounts","description":"GET /api/external_accounts","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"counterparty_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"external_id","in":"query","required":false,"description":"An optional user-defined 180 character unique identifier.","schema":{"type":"string","description":"An optional user-defined 180 character unique identifier."}},{"name":"party_name","in":"query","required":false,"description":"Searches the ExternalAccount's party_name AND the Counterparty's party_name","schema":{"type":"string","description":"Searches the ExternalAccount's party_name AND the Counterparty's party_name"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-external-account":{"post":{"operationId":"finance_modern_treasury_create_external_account","summary":"create external account","description":"POST /api/external_accounts","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-external-account":{"get":{"operationId":"finance_modern_treasury_get_external_account","summary":"show external account","description":"GET /api/external_accounts/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"external account id","schema":{"type":"string","description":"external account id"}}],"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:modern-treasury/update-external-account":{"post":{"operationId":"finance_modern_treasury_update_external_account","summary":"update external account","description":"PATCH /api/external_accounts/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"external account id"},"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:modern-treasury/delete-external-account":{"post":{"operationId":"finance_modern_treasury_delete_external_account","summary":"delete external account","description":"DELETE /api/external_accounts/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"external account id"}}}}}},"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:modern-treasury/complete-verification-external-account":{"post":{"operationId":"finance_modern_treasury_complete_verification_external_account","summary":"complete verification of external account","description":"POST /api/external_accounts/{id}/complete_verification","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"id":{"type":"string","description":"external account id"},"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:modern-treasury/verify-external-account":{"post":{"operationId":"finance_modern_treasury_verify_external_account","summary":"verify external account","description":"POST /api/external_accounts/{id}/verify","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"id":{"type":"string","description":"external account id"},"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:modern-treasury/list-quotes":{"get":{"operationId":"finance_modern_treasury_list_quotes","summary":"list foreign_exchange_quotes","description":"GET /api/foreign_exchange_quotes","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"base_currency","in":"query","required":false,"description":"Currency to convert, often called the \"sell\" currency.","schema":{"type":"string","description":"Currency to convert, often called the \"sell\" currency."}},{"name":"effective_at_end","in":"query","required":false,"description":"An inclusive upper bound for searching effective_at","schema":{"type":"string","description":"An inclusive upper bound for searching effective_at"}},{"name":"effective_at_start","in":"query","required":false,"description":"An inclusive lower bound for searching effective_at","schema":{"type":"string","description":"An inclusive lower bound for searching effective_at"}},{"name":"expires_at","in":"query","required":false,"description":"The timestamp until which the quote must be booked by.","schema":{"type":"string","description":"The timestamp until which the quote must be booked by."}},{"name":"internal_account_id","in":"query","required":false,"description":"The ID for the `InternalAccount` this quote is associated with.","schema":{"type":"string","description":"The ID for the `InternalAccount` this quote is associated with."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"target_currency","in":"query","required":false,"description":"Currency to convert the `base_currency` to, often called the \"buy\" currency.","schema":{"type":"string","description":"Currency to convert the `base_currency` to, often called the \"buy\" currency."}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-quote":{"post":{"operationId":"finance_modern_treasury_create_quote","summary":"create foreign_exchange_quote","description":"POST /api/foreign_exchange_quotes","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-quote":{"get":{"operationId":"finance_modern_treasury_get_quote","summary":"get foreign_exchange_quote","description":"GET /api/foreign_exchange_quotes/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/list-holds":{"get":{"operationId":"finance_modern_treasury_list_holds","summary":"list holds","description":"GET /api/holds","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"description":"Only return holds for a specific status.","schema":{"type":"string","enum":["active","resolved"],"description":"Only return holds for a specific status."}},{"name":"target_id","in":"query","required":false,"description":"Only return holds for a specific target ID.","schema":{"type":"string","description":"Only return holds for a specific target ID."}},{"name":"target_type","in":"query","required":false,"description":"Only return holds for a specific target type.","schema":{"type":"string","enum":["payment_order"],"description":"Only return holds for a specific target type."}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-hold":{"post":{"operationId":"finance_modern_treasury_create_hold","summary":"create hold","description":"POST /api/holds","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/show-hold":{"get":{"operationId":"finance_modern_treasury_show_hold","summary":"show hold","description":"GET /api/holds/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"hold id","schema":{"type":"string","description":"hold id"}}],"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:modern-treasury/update-hold":{"post":{"operationId":"finance_modern_treasury_update_hold","summary":"update hold","description":"PATCH /api/holds/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"hold id"},"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:modern-treasury/create-identification":{"post":{"operationId":"finance_modern_treasury_create_identification","summary":"create identification","description":"POST /api/identifications","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-identification":{"get":{"operationId":"finance_modern_treasury_get_identification","summary":"get identification","description":"GET /api/identifications/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The id of an existing identification.","schema":{"type":"string","description":"The id of an existing identification."}}],"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:modern-treasury/update-identification":{"post":{"operationId":"finance_modern_treasury_update_identification","summary":"update identification","description":"PATCH /api/identifications/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The id of an existing identification."},"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:modern-treasury/list-incoming-payment-details":{"get":{"operationId":"finance_modern_treasury_list_incoming_payment_details","summary":"list incoming payment_details","description":"GET /api/incoming_payment_details","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"as_of_date_end","in":"query","required":false,"description":"Filters incoming payment details with an as_of_date starting on or before the specified date (YYYY-MM-DD).","schema":{"type":"string","description":"Filters incoming payment details with an as_of_date starting on or before the specified date (YYYY-MM-DD)."}},{"name":"as_of_date_start","in":"query","required":false,"description":"Filters incoming payment details with an as_of_date starting on or after the specified date (YYYY-MM-DD).","schema":{"type":"string","description":"Filters incoming payment details with an as_of_date starting on or after the specified date (YYYY-MM-DD)."}},{"name":"direction","in":"query","required":false,"description":"One of `credit` or `debit`.","schema":{"type":"string","enum":["credit","debit"],"description":"One of `credit` or `debit`."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"description":"The current status of the incoming payment order. One of `pending`, `completed`, `returned`, `failed`, or `held`.","schema":{"type":"string","enum":["completed","failed","held","pending","returned"],"description":"The current status of the incoming payment order. One of `pending`, `completed`, `returned`, `failed`, or `held`."}},{"name":"subtype","in":"query","required":false,"description":"An additional layer of classification for the type of incoming payment detail. For example, a `type` of `stablecoin` may have a `subtype`…","schema":{"type":"string","description":"An additional layer of classification for the type of incoming payment detail. For example, a `type` of `stablecoin` may have a `subtype`…"}},{"name":"type","in":"query","required":false,"description":"One of: `ach`, `book`, `check`, `eft`, `rtp`, `sepa`, or `wire`.","schema":{"type":"string","enum":["ach","au_becs","bacs","book","check","eft","neft","nz_becs","rtp","sepa","stablecoin","wire","zengin"],"description":"One of: `ach`, `book`, `check`, `eft`, `rtp`, `sepa`, or `wire`."}},{"name":"virtual_account_id","in":"query","required":false,"description":"If the incoming payment detail is in a virtual account, the ID of the Virtual Account.","schema":{"type":"string","description":"If the incoming payment detail is in a virtual account, the ID of the Virtual Account."}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/get-incoming-payment-detail":{"get":{"operationId":"finance_modern_treasury_get_incoming_payment_detail","summary":"get incoming payment detail","description":"GET /api/incoming_payment_details/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The unique identifier of the incoming payment detail.","schema":{"type":"string","description":"The unique identifier of the incoming payment detail."}}],"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:modern-treasury/update-incoming-payment-detail":{"post":{"operationId":"finance_modern_treasury_update_incoming_payment_detail","summary":"update incoming payment detail","description":"PATCH /api/incoming_payment_details/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The unique identifier of the incoming payment detail."},"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:modern-treasury/list-internal-accounts":{"get":{"operationId":"finance_modern_treasury_list_internal_accounts","summary":"list internal accounts","description":"GET /api/internal_accounts","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"counterparty_id","in":"query","required":false,"description":"Only return internal accounts associated with this counterparty.","schema":{"type":"string","description":"Only return internal accounts associated with this counterparty."}},{"name":"currency","in":"query","required":false,"description":"Only return internal accounts with this currency.","schema":{"type":"string","description":"Only return internal accounts with this currency."}},{"name":"external_id","in":"query","required":false,"description":"An optional user-defined 180 character unique identifier.","schema":{"type":"string","description":"An optional user-defined 180 character unique identifier."}},{"name":"legal_entity_id","in":"query","required":false,"description":"Only return internal accounts associated with this legal entity.","schema":{"type":"string","description":"Only return internal accounts associated with this legal entity."}},{"name":"payment_direction","in":"query","required":false,"description":"Only return internal accounts that can originate payments with this direction.","schema":{"type":"string","enum":["credit","debit"],"description":"Only return internal accounts that can originate payments with this direction."}},{"name":"payment_type","in":"query","required":false,"description":"Only return internal accounts that can make this type of payment.","schema":{"type":"string","enum":["ach","au_becs","bacs","book","card","chats","check","cross_border","dk_nets","eft","gb_fps","masav","mx_ccen","neft","nics","nz_becs","pl_elixir","rtp","se_bankgirot","sepa","sg_giro","sic","stablecoin","wire","zengin"],"description":"Only return internal accounts that can make this type of payment."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"description":"Only return internal accounts with this status.","schema":{"type":"string","enum":["active","pending_activation","suspended","pending_closure","closed"],"description":"Only return internal accounts with this status."}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-internal-account":{"post":{"operationId":"finance_modern_treasury_create_internal_account","summary":"create internal account","description":"POST /api/internal_accounts","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-internal-account":{"get":{"operationId":"finance_modern_treasury_get_internal_account","summary":"get internal account","description":"GET /api/internal_accounts/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"Unique identifier for the account.","schema":{"type":"string","description":"Unique identifier for the account."}}],"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:modern-treasury/update-internal-account":{"post":{"operationId":"finance_modern_treasury_update_internal_account","summary":"update internal account","description":"PATCH /api/internal_accounts/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier for the account."},"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:modern-treasury/update-account-capability":{"post":{"operationId":"finance_modern_treasury_update_account_capability","summary":"update account_capability","description":"PATCH /api/internal_accounts/{internal_account_id}/account_capabilities/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","internal_account_id"],"properties":{"id":{"type":"string","description":"Unique identifier for the account capability."},"internal_account_id":{"type":"string","description":"Unique identifier for the internal account."},"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:modern-treasury/list-balance-reports":{"get":{"operationId":"finance_modern_treasury_list_balance_reports","summary":"list balance_reports","description":"GET /api/internal_accounts/{internal_account_id}/balance_reports","tags":["finance"],"parameters":[{"name":"internal_account_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"as_of_date","in":"query","required":false,"description":"The date of the balance report in local time.","schema":{"type":"string","description":"The date of the balance report in local time."}},{"name":"balance_report_type","in":"query","required":false,"description":"The specific type of balance report. One of `intraday`, `previous_day`, `real_time`, or `other`.","schema":{"type":"string","enum":["intraday","other","previous_day","real_time"],"description":"The specific type of balance report. One of `intraday`, `previous_day`, `real_time`, or `other`."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}}],"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:modern-treasury/create-balance-report":{"post":{"operationId":"finance_modern_treasury_create_balance_report","summary":"create balance reports","description":"POST /api/internal_accounts/{internal_account_id}/balance_reports","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["internal_account_id"],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"internal_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:modern-treasury/get-balance-report":{"get":{"operationId":"finance_modern_treasury_get_balance_report","summary":"get balance_report","description":"GET /api/internal_accounts/{internal_account_id}/balance_reports/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"Either the unique identifier of the balance report or 'latest' for the latest balance report.","schema":{"type":"string","description":"Either the unique identifier of the balance report or 'latest' for the latest balance report."}},{"name":"internal_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:modern-treasury/delete-balance-report":{"post":{"operationId":"finance_modern_treasury_delete_balance_report","summary":"delete balance_report","description":"DELETE /api/internal_accounts/{internal_account_id}/balance_reports/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","internal_account_id"],"properties":{"id":{"type":"string","description":"Either the unique identifier of the balance report or 'latest' for the latest balance report."},"internal_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:modern-treasury/list-invoices":{"get":{"operationId":"finance_modern_treasury_list_invoices","summary":"list invoices","description":"GET /api/invoices","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"counterparty_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"created_at_end","in":"query","required":false,"description":"An inclusive upper bound for searching created_at","schema":{"type":"string","description":"An inclusive upper bound for searching created_at"}},{"name":"created_at_start","in":"query","required":false,"description":"An inclusive lower bound for searching created_at","schema":{"type":"string","description":"An inclusive lower bound for searching created_at"}},{"name":"due_date_end","in":"query","required":false,"description":"An inclusive upper bound for searching due_date","schema":{"type":"string","description":"An inclusive upper bound for searching due_date"}},{"name":"due_date_start","in":"query","required":false,"description":"An inclusive lower bound for searching due_date","schema":{"type":"string","description":"An inclusive lower bound for searching due_date"}},{"name":"expected_payment_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"number","in":"query","required":false,"description":"A unique record number assigned to each invoice that is issued.","schema":{"type":"string","description":"A unique record number assigned to each invoice that is issued."}},{"name":"originating_account_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"payment_order_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","paid","partially_paid","payment_pending","unpaid","voided"]}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-invoice":{"post":{"operationId":"finance_modern_treasury_create_invoice","summary":"create invoice","description":"POST /api/invoices","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-invoice":{"get":{"operationId":"finance_modern_treasury_get_invoice","summary":"get invoice","description":"GET /api/invoices/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/update-invoice":{"post":{"operationId":"finance_modern_treasury_update_invoice","summary":"update invoice","description":"PATCH /api/invoices/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"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:modern-treasury/add-payment-order-to-invoice":{"post":{"operationId":"finance_modern_treasury_add_payment_order_to_invoice","summary":"add payment_order_id to invoice","description":"PUT /api/invoices/{id}/payment_orders/{payment_order_id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","payment_order_id"],"properties":{"id":{"type":"string","description":"id"},"payment_order_id":{"type":"string","description":"payment_order_id"}}}}}},"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:modern-treasury/list-invoice-line-items":{"get":{"operationId":"finance_modern_treasury_list_invoice_line_items","summary":"list invoice_line_items","description":"GET /api/invoices/{invoice_id}/invoice_line_items","tags":["finance"],"parameters":[{"name":"invoice_id","in":"query","required":true,"description":"invoice_id","schema":{"type":"string","description":"invoice_id"}},{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}}],"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:modern-treasury/create-invoice-line-item":{"post":{"operationId":"finance_modern_treasury_create_invoice_line_item","summary":"create invoice_line_item","description":"POST /api/invoices/{invoice_id}/invoice_line_items","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["invoice_id"],"properties":{"invoice_id":{"type":"string","description":"invoice_id"},"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-invoice-line-item":{"get":{"operationId":"finance_modern_treasury_get_invoice_line_item","summary":"get invoice_line_item","description":"GET /api/invoices/{invoice_id}/invoice_line_items/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}},{"name":"invoice_id","in":"query","required":true,"description":"invoice_id","schema":{"type":"string","description":"invoice_id"}}],"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:modern-treasury/update-invoice-line-item":{"post":{"operationId":"finance_modern_treasury_update_invoice_line_item","summary":"update invoice_line_item","description":"PATCH /api/invoices/{invoice_id}/invoice_line_items/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","invoice_id"],"properties":{"id":{"type":"string","description":"id"},"invoice_id":{"type":"string","description":"invoice_id"},"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:modern-treasury/delete-invoice-line-item":{"post":{"operationId":"finance_modern_treasury_delete_invoice_line_item","summary":"delete invoice_line_item","description":"DELETE /api/invoices/{invoice_id}/invoice_line_items/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","invoice_id"],"properties":{"id":{"type":"string","description":"id"},"invoice_id":{"type":"string","description":"invoice_id"}}}}}},"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:modern-treasury/list-journal-entries":{"get":{"operationId":"finance_modern_treasury_list_journal_entries","summary":"list journal_entries","description":"GET /api/journal_entries","tags":["finance"],"parameters":[{"name":"journal_report_id","in":"query","required":true,"description":"The ID of the journal report","schema":{"type":"string","description":"The ID of the journal report"}},{"name":"page","in":"query","required":false,"description":"Page number for pagination","schema":{"type":"integer","description":"Page number for pagination"}},{"name":"per_page","in":"query","required":false,"description":"Number of items per page","schema":{"type":"integer","description":"Number of items per page"}}],"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:modern-treasury/get-journal-entry":{"get":{"operationId":"finance_modern_treasury_get_journal_entry","summary":"show journal_entry","description":"GET /api/journal_entries/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The ID of the journal entry","schema":{"type":"string","description":"The ID of the journal entry"}}],"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:modern-treasury/list-journal-reports":{"get":{"operationId":"finance_modern_treasury_list_journal_reports","summary":"list journal_reports","description":"GET /api/journal_reports","tags":["finance"],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","published","ready"]}}],"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:modern-treasury/get-journal-report":{"get":{"operationId":"finance_modern_treasury_get_journal_report","summary":"show journal_report","description":"GET /api/journal_reports/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The ID of the journal report","schema":{"type":"string","description":"The ID of the journal report"}}],"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:modern-treasury/update-journal-report":{"post":{"operationId":"finance_modern_treasury_update_journal_report","summary":"update journal_report","description":"PATCH /api/journal_reports/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The ID of the journal report"},"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:modern-treasury/list-journal-sources":{"get":{"operationId":"finance_modern_treasury_list_journal_sources","summary":"list journal_sources","description":"GET /api/journal_sources","tags":["finance"],"parameters":[{"name":"journal_entry_id","in":"query","required":false,"description":"The ID of the journal entry","schema":{"type":"string","description":"The ID of the journal entry"}},{"name":"journal_report_id","in":"query","required":false,"description":"The ID of the journal report","schema":{"type":"string","description":"The ID of the journal report"}},{"name":"page","in":"query","required":false,"description":"Page number for pagination","schema":{"type":"integer","description":"Page number for pagination"}},{"name":"per_page","in":"query","required":false,"description":"Number of items per page","schema":{"type":"integer","description":"Number of items per page"}},{"name":"source_id","in":"query","required":false,"description":"The ID of the source object","schema":{"type":"string","description":"The ID of the source object"}},{"name":"source_type","in":"query","required":false,"description":"The type of the source object","schema":{"type":"string","description":"The type of the source object"}}],"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:modern-treasury/get-journal-source":{"get":{"operationId":"finance_modern_treasury_get_journal_source","summary":"show journal_source","description":"GET /api/journal_sources/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The ID of the journal source","schema":{"type":"string","description":"The ID of the journal source"}}],"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:modern-treasury/list-ledger-account-balance-monitors":{"get":{"operationId":"finance_modern_treasury_list_ledger_account_balance_monitors","summary":"list ledger_account_balance_monitors","description":"GET /api/ledger_account_balance_monitors","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledger_account_id","in":"query","required":false,"description":"Query the balance monitors for a single ledger account.","schema":{"type":"string","description":"Query the balance monitors for a single ledger account."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"id[]","in":"query","required":false,"description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…","schema":{"type":"array","description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…"}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-ledger-account-balance-monitor":{"post":{"operationId":"finance_modern_treasury_create_ledger_account_balance_monitor","summary":"create ledger_account_balance_monitor","description":"POST /api/ledger_account_balance_monitors","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-ledger-account-balance-monitor":{"get":{"operationId":"finance_modern_treasury_get_ledger_account_balance_monitor","summary":"get ledger_account_balance_monitor","description":"GET /api/ledger_account_balance_monitors/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/update-ledger-account-balance-monitor":{"post":{"operationId":"finance_modern_treasury_update_ledger_account_balance_monitor","summary":"update ledger_account_balance_monitor","description":"PATCH /api/ledger_account_balance_monitors/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"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:modern-treasury/delete-ledger-account-balance-monitor":{"post":{"operationId":"finance_modern_treasury_delete_ledger_account_balance_monitor","summary":"delete ledger_account_balance_monitor","description":"DELETE /api/ledger_account_balance_monitors/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"}}}}}},"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:modern-treasury/list-ledger-account-categories":{"get":{"operationId":"finance_modern_treasury_list_ledger_account_categories","summary":"list ledger_account_categories","description":"GET /api/ledger_account_categories","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"balances","in":"query","required":false,"description":"For example, if you want the balances as of a particular time (ISO8601), the encoded query string would be…","schema":{"type":"object","description":"For example, if you want the balances as of a particular time (ISO8601), the encoded query string would be…"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string"}},{"name":"external_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledger_account_id","in":"query","required":false,"description":"Query categories which contain a ledger account directly or through child categories.","schema":{"type":"string","description":"Query categories which contain a ledger account directly or through child categories."}},{"name":"ledger_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"parent_ledger_account_category_id","in":"query","required":false,"description":"Query categories that are nested underneath a parent category","schema":{"type":"string","description":"Query categories that are nested underneath a parent category"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"id[]","in":"query","required":false,"description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…","schema":{"type":"array","description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…"}},{"name":"name[]","in":"query","required":false,"description":"If you have specific names to retrieve in bulk, you can pass them as query parameters delimited with `name[]=`, for example…","schema":{"type":"array","description":"If you have specific names to retrieve in bulk, you can pass them as query parameters delimited with `name[]=`, for example…"}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-ledger-account-category":{"post":{"operationId":"finance_modern_treasury_create_ledger_account_category","summary":"create ledger_account_category","description":"POST /api/ledger_account_categories","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-ledger-account-category":{"get":{"operationId":"finance_modern_treasury_get_ledger_account_category","summary":"get ledger_account_category","description":"GET /api/ledger_account_categories/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}},{"name":"balances","in":"query","required":false,"description":"For example, if you want the balances as of a particular time (ISO8601), the encoded query string would be…","schema":{"type":"object","description":"For example, if you want the balances as of a particular time (ISO8601), the encoded query string would be…"}}],"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:modern-treasury/update-ledger-account-category":{"post":{"operationId":"finance_modern_treasury_update_ledger_account_category","summary":"update ledger_account_category","description":"PATCH /api/ledger_account_categories/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"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:modern-treasury/delete-ledger-account-category":{"post":{"operationId":"finance_modern_treasury_delete_ledger_account_category","summary":"delete ledger_account_category","description":"DELETE /api/ledger_account_categories/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"}}}}}},"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:modern-treasury/add-ledger-account-category-to-ledger-account-category":{"post":{"operationId":"finance_modern_treasury_add_ledger_account_category_to_ledger_account_category","summary":"add ledger_account_category to ledger_account_category","description":"PUT /api/ledger_account_categories/{id}/ledger_account_categories/{sub_category_id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","sub_category_id"],"properties":{"id":{"type":"string","description":"id"},"sub_category_id":{"type":"string","description":"sub_category_id"}}}}}},"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:modern-treasury/delete-ledger-account-category-from-ledger-account-category":{"post":{"operationId":"finance_modern_treasury_delete_ledger_account_category_from_ledger_account_category","summary":"delete ledger_account_category from ledger_account_category","description":"DELETE /api/ledger_account_categories/{id}/ledger_account_categories/{sub_category_id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","sub_category_id"],"properties":{"id":{"type":"string","description":"id"},"sub_category_id":{"type":"string","description":"sub_category_id"}}}}}},"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:modern-treasury/add-ledger-account-to-ledger-account-category":{"post":{"operationId":"finance_modern_treasury_add_ledger_account_to_ledger_account_category","summary":"add ledger_account to ledger_account_category","description":"PUT /api/ledger_account_categories/{id}/ledger_accounts/{ledger_account_id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","ledger_account_id"],"properties":{"id":{"type":"string","description":"id"},"ledger_account_id":{"type":"string","description":"ledger_account_id"}}}}}},"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:modern-treasury/remove-ledger-account-from-ledger-account-category":{"post":{"operationId":"finance_modern_treasury_remove_ledger_account_from_ledger_account_category","summary":"remove ledger_account from ledger_account_category","description":"DELETE /api/ledger_account_categories/{id}/ledger_accounts/{ledger_account_id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","ledger_account_id"],"properties":{"id":{"type":"string","description":"id"},"ledger_account_id":{"type":"string","description":"ledger_account_id"}}}}}},"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:modern-treasury/list-ledger-account-settlements":{"get":{"operationId":"finance_modern_treasury_list_ledger_account_settlements","summary":"list ledger_account_settlements","description":"GET /api/ledger_account_settlements","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"created_at","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the created at timestamp. For example, for all times after Jan 1…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the created at timestamp. For example, for all times after Jan 1…"}},{"name":"ledger_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledger_transaction_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"settled_ledger_account_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"settlement_entry_direction","in":"query","required":false,"schema":{"type":"string"}},{"name":"updated_at","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the updated at timestamp. For example, for all times after Jan 1…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the updated at timestamp. For example, for all times after Jan 1…"}},{"name":"id[]","in":"query","required":false,"description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…","schema":{"type":"array","description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…"}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-ledger-account-settlement":{"post":{"operationId":"finance_modern_treasury_create_ledger_account_settlement","summary":"create ledger_account_settlement","description":"POST /api/ledger_account_settlements","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-ledger-account-settlement":{"get":{"operationId":"finance_modern_treasury_get_ledger_account_settlement","summary":"get ledger_account_settlement","description":"GET /api/ledger_account_settlements/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/update-ledger-account-settlement":{"post":{"operationId":"finance_modern_treasury_update_ledger_account_settlement","summary":"update ledger_account_settlement","description":"PATCH /api/ledger_account_settlements/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"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:modern-treasury/patch-ledger-account-settlement-entries":{"post":{"operationId":"finance_modern_treasury_patch_ledger_account_settlement_entries","summary":"patch ledger_account_settlement_entries","description":"PATCH /api/ledger_account_settlements/{id}/ledger_entries","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"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:modern-treasury/delete-ledger-account-settlement-entries":{"post":{"operationId":"finance_modern_treasury_delete_ledger_account_settlement_entries","summary":"delete ledger_account_settlement_entries","description":"DELETE /api/ledger_account_settlements/{id}/ledger_entries","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"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:modern-treasury/create-ledger-account-statement":{"post":{"operationId":"finance_modern_treasury_create_ledger_account_statement","summary":"create ledger_account_statement","description":"POST /api/ledger_account_statements","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-ledger-account-statement":{"get":{"operationId":"finance_modern_treasury_get_ledger_account_statement","summary":"get ledger_account_statement","description":"GET /api/ledger_account_statements/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/list-ledger-accounts":{"get":{"operationId":"finance_modern_treasury_list_ledger_accounts","summary":"list ledger_accounts","description":"GET /api/ledger_accounts","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"available_balance_amount","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to filter by balance amount.","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to filter by balance amount."}},{"name":"balances","in":"query","required":false,"description":"Use `balances[effective_at_lower_bound]` and `balances[effective_at_upper_bound]` to get the balances change between the two timestamps.…","schema":{"type":"object","description":"Use `balances[effective_at_lower_bound]` and `balances[effective_at_upper_bound]` to get the balances change between the two timestamps.…"}},{"name":"created_at","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the created at timestamp. For example, for all times after Jan 1…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the created at timestamp. For example, for all times after Jan 1…"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string"}},{"name":"external_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledger_account_category_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledger_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"normal_balance","in":"query","required":false,"schema":{"type":"string","enum":["credit","debit"]}},{"name":"pending_balance_amount","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to filter by balance amount.","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to filter by balance amount."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"posted_balance_amount","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to filter by balance amount.","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), `eq` (=), or `not_eq` (!=) to filter by balance amount."}},{"name":"updated_at","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the updated at timestamp. For example, for all times after Jan 1…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the updated at timestamp. For example, for all times after Jan 1…"}},{"name":"id[]","in":"query","required":false,"description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…","schema":{"type":"array","description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…"}},{"name":"name[]","in":"query","required":false,"description":"If you have specific names to retrieve in bulk, you can pass them as query parameters delimited with `name[]=`, for example…","schema":{"type":"array","description":"If you have specific names to retrieve in bulk, you can pass them as query parameters delimited with `name[]=`, for example…"}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-ledger-account":{"post":{"operationId":"finance_modern_treasury_create_ledger_account","summary":"create ledger_account","description":"POST /api/ledger_accounts","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-ledger-account":{"get":{"operationId":"finance_modern_treasury_get_ledger_account","summary":"get ledger_account","description":"GET /api/ledger_accounts/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The ledger account id (UUID) or external_id","schema":{"type":"string","description":"The ledger account id (UUID) or external_id"}},{"name":"balances","in":"query","required":false,"description":"Use `balances[effective_at_lower_bound]` and `balances[effective_at_upper_bound]` to get the balances change between the two timestamps.…","schema":{"type":"object","description":"Use `balances[effective_at_lower_bound]` and `balances[effective_at_upper_bound]` to get the balances change between the two timestamps.…"}}],"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:modern-treasury/update-ledger-account":{"post":{"operationId":"finance_modern_treasury_update_ledger_account","summary":"update ledger_account","description":"PATCH /api/ledger_accounts/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The ledger account id (UUID)"},"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:modern-treasury/delete-ledger-account":{"post":{"operationId":"finance_modern_treasury_delete_ledger_account","summary":"delete ledger_account","description":"DELETE /api/ledger_accounts/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The ledger account id (UUID)"}}}}}},"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:modern-treasury/list-ledger-entries":{"get":{"operationId":"finance_modern_treasury_list_ledger_entries","summary":"list ledger_entries","description":"GET /api/ledger_entries","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"amount","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount."}},{"name":"as_of_lock_version","in":"query","required":false,"description":"Shows all ledger entries that were present on a ledger account at a particular `lock_version`. You must also specify `ledger_account_id`.","schema":{"type":"integer","description":"Shows all ledger entries that were present on a ledger account at a particular `lock_version`. You must also specify `ledger_account_id`."}},{"name":"direction","in":"query","required":false,"description":"If true, response will include ledger entries that were deleted. When you update a ledger transaction to specify a new set of entries, the…","schema":{"type":"string","enum":["credit","debit"],"description":"If true, response will include ledger entries that were deleted. When you update a ledger transaction to specify a new set of entries, the…"}},{"name":"effective_at","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the transaction's effective time. Format ISO8601","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the transaction's effective time. Format ISO8601"}},{"name":"effective_date","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the transaction's effective date. Format YYYY-MM-DD","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the transaction's effective date. Format YYYY-MM-DD"}},{"name":"ledger_account_category_id","in":"query","required":false,"description":"Get all ledger entries that match the direction specified. One of `credit`, `debit`.","schema":{"type":"string","description":"Get all ledger entries that match the direction specified. One of `credit`, `debit`."}},{"name":"ledger_account_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledger_account_lock_version","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the lock_version of a ledger account. For example, for all…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the lock_version of a ledger account. For example, for all…"}},{"name":"ledger_account_payout_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledger_account_settlement_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledger_account_statement_id","in":"query","required":false,"description":"Get all ledger entries that are included in the ledger account statement.","schema":{"type":"string","description":"Get all ledger entries that are included in the ledger account statement."}},{"name":"ledger_transaction_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"order_by","in":"query","required":false,"description":"Order by `created_at` or `effective_at` in `asc` or `desc` order. For example, to order by `effective_at asc`, use…","schema":{"type":"object","description":"Order by `created_at` or `effective_at` in `asc` or `desc` order. For example, to order by `effective_at asc`, use…"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"show_balances","in":"query","required":false,"description":"If true, response will include the balances attached to the ledger entry. If there is no balance available, null will be returned instead.","schema":{"type":"boolean","description":"If true, response will include the balances attached to the ledger entry. If there is no balance available, null will be returned instead."}},{"name":"show_deleted","in":"query","required":false,"description":"If true, response will include ledger entries that were deleted. When you update a ledger transaction to specify a new set of entries, the…","schema":{"type":"boolean","description":"If true, response will include ledger entries that were deleted. When you update a ledger transaction to specify a new set of entries, the…"}},{"name":"status","in":"query","required":false,"description":"Get all ledger entries that match the status specified. One of `pending`, `posted`, or `archived`. For multiple statuses, use…","schema":{"type":"string","enum":["pending","posted","archived"],"description":"Get all ledger entries that match the status specified. One of `pending`, `posted`, or `archived`. For multiple statuses, use…"}},{"name":"status[]","in":"query","required":false,"description":"Get all ledger entries that match the status specified. One of `pending`, `posted`, or `archived`. For multiple statuses, use…","schema":{"type":"array","description":"Get all ledger entries that match the status specified. One of `pending`, `posted`, or `archived`. For multiple statuses, use…"}},{"name":"updated_at","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the posted at timestamp. For example, for all times after Jan 1…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the posted at timestamp. For example, for all times after Jan 1…"}},{"name":"id[]","in":"query","required":false,"description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…","schema":{"type":"array","description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…"}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/get-ledger-entry":{"get":{"operationId":"finance_modern_treasury_get_ledger_entry","summary":"get ledger_entry","description":"GET /api/ledger_entries/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}},{"name":"show_balances","in":"query","required":false,"description":"If true, response will include the balances attached to the ledger entry. If there is no balance available, null will be returned instead.","schema":{"type":"boolean","description":"If true, response will include the balances attached to the ledger entry. If there is no balance available, null will be returned instead."}}],"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:modern-treasury/update-ledger-entry":{"post":{"operationId":"finance_modern_treasury_update_ledger_entry","summary":"update ledger_entry","description":"PATCH /api/ledger_entries/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"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:modern-treasury/list-ledger-transaction-versions":{"get":{"operationId":"finance_modern_treasury_list_ledger_transaction_versions","summary":"list ledger_transaction_versions","description":"GET /api/ledger_transaction_versions","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"created_at","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the created_at timestamp. For example, for all dates after Jan 1…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the created_at timestamp. For example, for all dates after Jan 1…"}},{"name":"ledger_account_statement_id","in":"query","required":false,"description":"Get all ledger transaction versions that are included in the ledger account statement.","schema":{"type":"string","description":"Get all ledger transaction versions that are included in the ledger account statement."}},{"name":"ledger_transaction_id","in":"query","required":false,"description":"Get all the ledger transaction versions corresponding to the ID of a ledger transaction.","schema":{"type":"string","description":"Get all the ledger transaction versions corresponding to the ID of a ledger transaction."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"version","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the version. For example, for all versions after 2, use…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the version. For example, for all versions after 2, use…"}}],"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:modern-treasury/list-ledger-transactions":{"get":{"operationId":"finance_modern_treasury_list_ledger_transactions","summary":"list ledger_transactions","description":"GET /api/ledger_transactions","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"amount","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount."}},{"name":"effective_at","in":"query","required":false,"description":"Use \"gt\" (>), \"gte\" (>=), \"lt\" (<), \"lte\" (<=), or \"eq\" (=) to filter by effective at. For example, for all transactions after Jan 1 2000,…","schema":{"type":"object","description":"Use \"gt\" (>), \"gte\" (>=), \"lt\" (<), \"lte\" (<=), or \"eq\" (=) to filter by effective at. For example, for all transactions after Jan 1 2000,…"}},{"name":"effective_date","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by effective date. For example, for all dates after Jan 1 2000, use…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by effective date. For example, for all dates after Jan 1 2000, use…"}},{"name":"external_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledger_account_category_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledger_account_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledger_account_settlement_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledger_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledgerable_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ledgerable_type","in":"query","required":false,"schema":{"type":"string","enum":["expected_payment","incoming_payment_detail","payment_order","return","reversal"]}},{"name":"order_by","in":"query","required":false,"description":"Order by `created_at` or `effective_at` in `asc` or `desc` order. For example, to order by `effective_at asc`, use…","schema":{"type":"object","description":"Order by `created_at` or `effective_at` in `asc` or `desc` order. For example, to order by `effective_at asc`, use…"}},{"name":"partially_posts_ledger_transaction_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"posted_at","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the posted at timestamp. For example, for all times after Jan 1…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the posted at timestamp. For example, for all times after Jan 1…"}},{"name":"reverses_ledger_transaction_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"updated_at","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the posted at timestamp. For example, for all times after Jan 1…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the posted at timestamp. For example, for all times after Jan 1…"}},{"name":"id[]","in":"query","required":false,"description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…","schema":{"type":"array","description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…"}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-ledger-transaction":{"post":{"operationId":"finance_modern_treasury_create_ledger_transaction","summary":"create ledger_transaction","description":"POST /api/ledger_transactions","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-ledger-transaction":{"get":{"operationId":"finance_modern_treasury_get_ledger_transaction","summary":"get ledger_transaction","description":"GET /api/ledger_transactions/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The ledger transaction id (UUID) or external_id. If using external_id, only non-archived Ledger Transactions will be returned.","schema":{"type":"string","description":"The ledger transaction id (UUID) or external_id. If using external_id, only non-archived Ledger Transactions will be returned."}}],"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:modern-treasury/update-ledger-transaction":{"post":{"operationId":"finance_modern_treasury_update_ledger_transaction","summary":"update ledger_transaction","description":"PATCH /api/ledger_transactions/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The ledger transaction id (UUID)"},"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:modern-treasury/create-ledger-transaction-partial-post":{"post":{"operationId":"finance_modern_treasury_create_ledger_transaction_partial_post","summary":"create ledger_transaction partial post","description":"POST /api/ledger_transactions/{id}/partial_post","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The ID of the ledger transaction to partially post."},"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:modern-treasury/create-ledger-transaction-reversal":{"post":{"operationId":"finance_modern_treasury_create_ledger_transaction_reversal","summary":"create ledger_transaction reversal","description":"POST /api/ledger_transactions/{id}/reversal","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The id of ledger transaction to reverse."},"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:modern-treasury/list-ledger-transaction-versions-nested":{"get":{"operationId":"finance_modern_treasury_list_ledger_transaction_versions_nested","summary":"list ledger_transaction versions","description":"GET /api/ledger_transactions/{id}/versions","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}},{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"created_at","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the created_at timestamp. For example, for all dates after Jan 1…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the created_at timestamp. For example, for all dates after Jan 1…"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"version","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the version. For example, for all versions after 2, use…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the version. For example, for all versions after 2, use…"}},{"name":"id[]","in":"query","required":false,"description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…","schema":{"type":"array","description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…"}}],"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:modern-treasury/list-ledgers":{"get":{"operationId":"finance_modern_treasury_list_ledgers","summary":"list ledgers","description":"GET /api/ledgers","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"updated_at","in":"query","required":false,"description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the posted at timestamp. For example, for all times after Jan 1…","schema":{"type":"object","description":"Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the posted at timestamp. For example, for all times after Jan 1…"}},{"name":"id[]","in":"query","required":false,"description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…","schema":{"type":"array","description":"If you have specific IDs to retrieve in bulk, you can pass them as query parameters delimited with `id[]=`, for example…"}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-ledger":{"post":{"operationId":"finance_modern_treasury_create_ledger","summary":"create ledger","description":"POST /api/ledgers","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-ledger":{"get":{"operationId":"finance_modern_treasury_get_ledger","summary":"get ledger","description":"GET /api/ledgers/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/update-ledger":{"post":{"operationId":"finance_modern_treasury_update_ledger","summary":"update ledger","description":"PATCH /api/ledgers/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"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:modern-treasury/delete-ledger":{"post":{"operationId":"finance_modern_treasury_delete_ledger","summary":"delete ledger","description":"DELETE /api/ledgers/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"}}}}}},"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:modern-treasury/list-legal-entities":{"get":{"operationId":"finance_modern_treasury_list_legal_entities","summary":"list legal_entities","description":"GET /api/legal_entities","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"external_id","in":"query","required":false,"description":"An optional user-defined 180 character unique identifier.","schema":{"type":"string","description":"An optional user-defined 180 character unique identifier."}},{"name":"legal_entity_type","in":"query","required":false,"schema":{"type":"string","enum":["business","individual"]}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"show_deleted","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","draft","active","suspended","denied"]}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-legal-entity":{"post":{"operationId":"finance_modern_treasury_create_legal_entity","summary":"create legal_entity","description":"POST /api/legal_entities","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-legal-entity":{"get":{"operationId":"finance_modern_treasury_get_legal_entity","summary":"get legal_entity","description":"GET /api/legal_entities/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}},{"name":"Idempotency-Key","in":"query","required":false,"description":"This key should be something unique, preferably something like an UUID.","schema":{"type":"string","description":"This key should be something unique, preferably something like an UUID."}}],"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:modern-treasury/update-legal-entity":{"post":{"operationId":"finance_modern_treasury_update_legal_entity","summary":"update legal entity","description":"PATCH /api/legal_entities/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"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:modern-treasury/create-legal-entity-association":{"post":{"operationId":"finance_modern_treasury_create_legal_entity_association","summary":"create legal_entity_association","description":"POST /api/legal_entity_associations","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/delete-legal-entity-association":{"post":{"operationId":"finance_modern_treasury_delete_legal_entity_association","summary":"delete legal_entity_association","description":"DELETE /api/legal_entity_associations/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The id of an existing legal entity association."}}}}}},"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:modern-treasury/list-payment-actions":{"get":{"operationId":"finance_modern_treasury_list_payment_actions","summary":"list payment_actions","description":"GET /api/payment_actions","tags":["finance"],"parameters":[{"name":"actionable_id","in":"query","required":false,"description":"The ID of the associated actionable object.","schema":{"type":"string","description":"The ID of the associated actionable object."}},{"name":"actionable_type","in":"query","required":false,"description":"The type of the associated actionable object. One of `payment_order`, `expected_payment`.","schema":{"type":"string","description":"The type of the associated actionable object. One of `payment_order`, `expected_payment`."}},{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"created_at","in":"query","required":false,"description":"Filter by `created_at` using comparison operators like `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the created at…","schema":{"type":"object","description":"Filter by `created_at` using comparison operators like `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the created at…"}},{"name":"internal_account_id","in":"query","required":false,"description":"The ID of one of your internal accounts.","schema":{"type":"string","description":"The ID of one of your internal accounts."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"description":"Filter by payment actions of a specific status.","schema":{"type":"string","enum":["pending","processable","processing","sent","acknowledged","failed","cancelled"],"description":"Filter by payment actions of a specific status."}},{"name":"type","in":"query","required":false,"description":"The type of payment action.","schema":{"type":"string","enum":["stop","issue"],"description":"The type of payment action."}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-payment-action":{"post":{"operationId":"finance_modern_treasury_create_payment_action","summary":"create payment_action","description":"POST /api/payment_actions","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-payment-action":{"get":{"operationId":"finance_modern_treasury_get_payment_action","summary":"get payment_action","description":"GET /api/payment_actions/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/update-payment-action":{"post":{"operationId":"finance_modern_treasury_update_payment_action","summary":"update payment_action","description":"PATCH /api/payment_actions/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"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:modern-treasury/list-payment-flows":{"get":{"operationId":"finance_modern_treasury_list_payment_flows","summary":"list payment_flows","description":"GET /api/payment_flows","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"client_token","in":"query","required":false,"schema":{"type":"string"}},{"name":"counterparty_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"originating_account_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"payment_order_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"receiving_account_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"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:modern-treasury/get-payment-flow":{"get":{"operationId":"finance_modern_treasury_get_payment_flow","summary":"get payment_flow","description":"GET /api/payment_flows/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}},{"name":"Idempotency-Key","in":"query","required":false,"description":"This key should be something unique, preferably something like an UUID.","schema":{"type":"string","description":"This key should be something unique, preferably something like an UUID."}}],"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:modern-treasury/update-payment-flow":{"post":{"operationId":"finance_modern_treasury_update_payment_flow","summary":"update payment_flow","description":"PATCH /api/payment_flows/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"},"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/list-payment-orders":{"get":{"operationId":"finance_modern_treasury_list_payment_orders","summary":"list payment orders","description":"GET /api/payment_orders","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"counterparty_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"created_at_end","in":"query","required":false,"description":"An inclusive upper bound for searching created_at","schema":{"type":"string","description":"An inclusive upper bound for searching created_at"}},{"name":"created_at_start","in":"query","required":false,"description":"An inclusive lower bound for searching created_at","schema":{"type":"string","description":"An inclusive lower bound for searching created_at"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","enum":["credit","debit"]}},{"name":"effective_date_end","in":"query","required":false,"description":"An inclusive upper bound for searching effective_date","schema":{"type":"string","description":"An inclusive upper bound for searching effective_date"}},{"name":"effective_date_start","in":"query","required":false,"description":"An inclusive lower bound for searching effective_date","schema":{"type":"string","description":"An inclusive lower bound for searching effective_date"}},{"name":"external_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"originating_account_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"priority","in":"query","required":false,"description":"Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-day ACH or EFT transfer, respectively. For check payments,…","schema":{"type":"string","enum":["high","normal"],"description":"Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-day ACH or EFT transfer, respectively. For check payments,…"}},{"name":"process_after_end","in":"query","required":false,"description":"An inclusive upper bound for searching process_after","schema":{"type":"string","description":"An inclusive upper bound for searching process_after"}},{"name":"process_after_start","in":"query","required":false,"description":"An inclusive lower bound for searching process_after","schema":{"type":"string","description":"An inclusive lower bound for searching process_after"}},{"name":"reference_number","in":"query","required":false,"description":"Query for records with the provided reference number","schema":{"type":"string","description":"Query for records with the provided reference number"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["approved","cancelled","completed","denied","failed","held","needs_approval","pending","processing","returned","reversed","sent","stopped"]}},{"name":"transaction_id","in":"query","required":false,"description":"The ID of a transaction that the payment order has been reconciled to.","schema":{"type":"string","description":"The ID of a transaction that the payment order has been reconciled to."}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["ach","au_becs","bacs","book","card","chats","check","cross_border","dk_nets","eft","gb_fps","masav","mx_ccen","neft","nics","nz_becs","pl_elixir","rtp","se_bankgirot","sepa","sg_giro","sic","stablecoin","wire","zengin"]}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-payment-order":{"post":{"operationId":"finance_modern_treasury_create_payment_order","summary":"create payment order","description":"POST /api/payment_orders","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/create-async-payment-order":{"post":{"operationId":"finance_modern_treasury_create_async_payment_order","summary":"create async payment order","description":"POST /api/payment_orders/create_async","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-payment-order":{"get":{"operationId":"finance_modern_treasury_get_payment_order","summary":"get payment order","description":"GET /api/payment_orders/{id}","tags":["finance"],"parameters":[{"name":"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:modern-treasury/update-payment-order":{"post":{"operationId":"finance_modern_treasury_update_payment_order","summary":"update payment order","description":"PATCH /api/payment_orders/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"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:modern-treasury/list-reversals":{"get":{"operationId":"finance_modern_treasury_list_reversals","summary":"list reversals","description":"GET /api/payment_orders/{payment_order_id}/reversals","tags":["finance"],"parameters":[{"name":"payment_order_id","in":"query","required":true,"description":"The ID of the relevant Payment Order.","schema":{"type":"string","description":"The ID of the relevant Payment Order."}},{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}}],"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:modern-treasury/create-reversal":{"post":{"operationId":"finance_modern_treasury_create_reversal","summary":"create reversal","description":"POST /api/payment_orders/{payment_order_id}/reversals","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["payment_order_id"],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"payment_order_id":{"type":"string","description":"The ID of the relevant Payment Order."},"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:modern-treasury/get-reversal":{"get":{"operationId":"finance_modern_treasury_get_reversal","summary":"show reversal","description":"GET /api/payment_orders/{payment_order_id}/reversals/{reversal_id}","tags":["finance"],"parameters":[{"name":"payment_order_id","in":"query","required":true,"description":"The id of the payment order being reversed.","schema":{"type":"string","description":"The id of the payment order being reversed."}},{"name":"reversal_id","in":"query","required":true,"description":"The ID of the reversal.","schema":{"type":"string","description":"The ID of the reversal."}}],"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:modern-treasury/list-payment-references":{"get":{"operationId":"finance_modern_treasury_list_payment_references","summary":"list payment_references","description":"GET /api/payment_references","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"reference_number","in":"query","required":false,"description":"The actual reference number assigned by the bank.","schema":{"type":"string","description":"The actual reference number assigned by the bank."}},{"name":"referenceable_id","in":"query","required":false,"description":"The id of the referenceable to search for. Must be accompanied by the referenceable_type or will return an error.","schema":{"type":"string","description":"The id of the referenceable to search for. Must be accompanied by the referenceable_type or will return an error."}},{"name":"referenceable_type","in":"query","required":false,"description":"One of the referenceable types. This must be accompanied by the id of the referenceable or will return an error.","schema":{"type":"string","enum":["payment_order","return","reversal","incoming_payment_detail","transaction"],"description":"One of the referenceable types. This must be accompanied by the id of the referenceable or will return an error."}}],"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:modern-treasury/get-payment-reference":{"get":{"operationId":"finance_modern_treasury_get_payment_reference","summary":"get payment_reference","description":"GET /api/payment_references/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/ping-api":{"get":{"operationId":"finance_modern_treasury_ping_api","summary":"ping api","description":"GET /api/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:modern-treasury/list-returns":{"get":{"operationId":"finance_modern_treasury_list_returns","summary":"list returns","description":"GET /api/returns","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"counterparty_id","in":"query","required":false,"description":"Specify `counterparty_id` if you wish to see returns that occurred with a specific counterparty.","schema":{"type":"string","description":"Specify `counterparty_id` if you wish to see returns that occurred with a specific counterparty."}},{"name":"internal_account_id","in":"query","required":false,"description":"Specify `internal_account_id` if you wish to see returns to/from a specific account.","schema":{"type":"string","description":"Specify `internal_account_id` if you wish to see returns to/from a specific account."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"returnable_id","in":"query","required":false,"description":"The ID of a valid returnable. Must be accompanied by `returnable_type`.","schema":{"type":"string","description":"The ID of a valid returnable. Must be accompanied by `returnable_type`."}},{"name":"returnable_type","in":"query","required":false,"description":"One of `payment_order`, `reversal`, or `incoming_payment_detail`. Must be accompanied by `returnable_id`.","schema":{"type":"string","enum":["incoming_payment_detail","payment_order","return","reversal"],"description":"One of `payment_order`, `reversal`, or `incoming_payment_detail`. Must be accompanied by `returnable_id`."}}],"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:modern-treasury/create-return":{"post":{"operationId":"finance_modern_treasury_create_return","summary":"create return","description":"POST /api/returns","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-return":{"get":{"operationId":"finance_modern_treasury_get_return","summary":"show return","description":"GET /api/returns/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The ID of an existing return.","schema":{"type":"string","description":"The ID of an existing return."}}],"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:modern-treasury/create-async-incoming-payment-detail":{"post":{"operationId":"finance_modern_treasury_create_async_incoming_payment_detail","summary":"create async incoming payment detail","description":"POST /api/simulations/incoming_payment_details/create_async","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/update-legal-entity-status":{"post":{"operationId":"finance_modern_treasury_update_legal_entity_status","summary":"update legal entity status","description":"PATCH /api/simulations/legal_entities/{id}/update_status","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Legal entity ID"},"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:modern-treasury/list-transaction-line-items":{"get":{"operationId":"finance_modern_treasury_list_transaction_line_items","summary":"list transaction_line_items","description":"GET /api/transaction_line_items","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"type":"object"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"transaction_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["originating","receiving"]}}],"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:modern-treasury/create-transaction-line-item":{"post":{"operationId":"finance_modern_treasury_create_transaction_line_item","summary":"create transaction line items","description":"POST /api/transaction_line_items","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"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:modern-treasury/list-transaction-line-item":{"get":{"operationId":"finance_modern_treasury_list_transaction_line_item","summary":"get transaction line item","description":"GET /api/transaction_line_items/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"id","schema":{"type":"string","description":"id"}}],"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:modern-treasury/delete-transaction-line-item":{"post":{"operationId":"finance_modern_treasury_delete_transaction_line_item","summary":"delete transaction line item","description":"DELETE /api/transaction_line_items/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"id"}}}}}},"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:modern-treasury/list-transactions":{"get":{"operationId":"finance_modern_treasury_list_transactions","summary":"list transactions","description":"GET /api/transactions","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"as_of_date_end","in":"query","required":false,"description":"Filters transactions with an `as_of_date` starting on or before the specified date (YYYY-MM-DD).","schema":{"type":"string","description":"Filters transactions with an `as_of_date` starting on or before the specified date (YYYY-MM-DD)."}},{"name":"as_of_date_start","in":"query","required":false,"description":"Filters transactions with an `as_of_date` starting on or after the specified date (YYYY-MM-DD).","schema":{"type":"string","description":"Filters transactions with an `as_of_date` starting on or after the specified date (YYYY-MM-DD)."}},{"name":"counterparty_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"description","in":"query","required":false,"description":"Filters for transactions including the queried string in the description.","schema":{"type":"string","description":"Filters for transactions including the queried string in the description."}},{"name":"direction","in":"query","required":false,"schema":{"type":"string"}},{"name":"internal_account_id","in":"query","required":false,"description":"Specify `internal_account_id` if you wish to see transactions to/from a specific account.","schema":{"type":"string","description":"Specify `internal_account_id` if you wish to see transactions to/from a specific account."}},{"name":"payment_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"posted","in":"query","required":false,"description":"Either `true` or `false`.","schema":{"type":"boolean","description":"Either `true` or `false`."}},{"name":"transactable_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"vendor_id","in":"query","required":false,"description":"Filters for transactions including the queried vendor id (an identifier given to transactions by the bank).","schema":{"type":"string","description":"Filters for transactions including the queried vendor id (an identifier given to transactions by the bank)."}},{"name":"virtual_account_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-transaction":{"post":{"operationId":"finance_modern_treasury_create_transaction","summary":"create transaction","description":"POST /api/transactions","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-transaction":{"get":{"operationId":"finance_modern_treasury_get_transaction","summary":"get transaction","description":"GET /api/transactions/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"Transaction ID","schema":{"type":"string","description":"Transaction ID"}}],"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:modern-treasury/update-transaction":{"post":{"operationId":"finance_modern_treasury_update_transaction","summary":"update transaction","description":"PATCH /api/transactions/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Transaction ID"},"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:modern-treasury/delete-transaction":{"post":{"operationId":"finance_modern_treasury_delete_transaction","summary":"delete transaction","description":"DELETE /api/transactions/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Transaction ID"}}}}}},"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:modern-treasury/validate-routing-number":{"get":{"operationId":"finance_modern_treasury_validate_routing_number","summary":"validate routing numbers","description":"GET /api/validations/routing_numbers","tags":["finance"],"parameters":[{"name":"routing_number","in":"query","required":true,"description":"The routing number that is being validated.","schema":{"type":"string","description":"The routing number that is being validated."}},{"name":"routing_number_type","in":"query","required":true,"description":"The type of routing number. See https://docs.moderntreasury.com/platform/reference/routing-detail-object for more details. In sandbox mode…","schema":{"type":"string","enum":["aba","au_bsb","br_codigo","ca_cpa","chips","cnaps","dk_interbank_clearing_code","gb_sort_code","hk_interbank_clearing_code","il_bank_code","in_ifsc","jp_zengin_code","mx_bank_identifier","my_branch_code","nz_national_clearing_code","pl_national_clearing_code","se_bankgiro_clearing_code","sg_interbank_clearing_code","swift","vasp","za_national_clearing_code"],"description":"The type of routing number. See https://docs.moderntreasury.com/platform/reference/routing-detail-object for more details. In sandbox mode…"}}],"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:modern-treasury/list-virtual-account-settings":{"get":{"operationId":"finance_modern_treasury_list_virtual_account_settings","summary":"list virtual_account_settings","description":"GET /api/virtual_account_settings","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"external_id","in":"query","required":false,"description":"A user-defined identifier for the virtual account setting.","schema":{"type":"string","description":"A user-defined identifier for the virtual account setting."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}}],"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:modern-treasury/create-virtual-account-setting":{"post":{"operationId":"finance_modern_treasury_create_virtual_account_setting","summary":"create virtual_account_setting","description":"POST /api/virtual_account_settings","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"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:modern-treasury/list-virtual-accounts":{"get":{"operationId":"finance_modern_treasury_list_virtual_accounts","summary":"list virtual_accounts","description":"GET /api/virtual_accounts","tags":["finance"],"parameters":[{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"counterparty_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"external_id","in":"query","required":false,"description":"Only return virtual accounts with this external ID.","schema":{"type":"string","description":"Only return virtual accounts with this external ID."}},{"name":"internal_account_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"metadata","in":"query","required":false,"description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…","schema":{"type":"object","description":"For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`.…"}}],"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:modern-treasury/create-virtual-account":{"post":{"operationId":"finance_modern_treasury_create_virtual_account","summary":"create virtual_account","description":"POST /api/virtual_accounts","tags":["finance"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"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:modern-treasury/get-virtual-account":{"get":{"operationId":"finance_modern_treasury_get_virtual_account","summary":"get virtual_account","description":"GET /api/virtual_accounts/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"Virtual Acccount ID","schema":{"type":"string","description":"Virtual Acccount ID"}}],"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:modern-treasury/update-virtual-account":{"post":{"operationId":"finance_modern_treasury_update_virtual_account","summary":"update virtual_account","description":"PATCH /api/virtual_accounts/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Virtual Acccount ID"},"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:modern-treasury/delete-virtual-account":{"post":{"operationId":"finance_modern_treasury_delete_virtual_account","summary":"delete virtual_account","description":"DELETE /api/virtual_accounts/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Virtual Acccount ID"}}}}}},"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:modern-treasury/list-account-details":{"get":{"operationId":"finance_modern_treasury_list_account_details","summary":"list account_details","description":"GET /api/{accounts_type}/{account_id}/account_details","tags":["finance"],"parameters":[{"name":"account_id","in":"query","required":true,"description":"The ID of the account.","schema":{"type":"string","description":"The ID of the account."}},{"name":"accounts_type","in":"query","required":true,"schema":{"type":"string","enum":["external_accounts","internal_accounts"]}},{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}}],"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:modern-treasury/create-account-detail":{"post":{"operationId":"finance_modern_treasury_create_account_detail","summary":"create account_detail","description":"POST /api/{accounts_type}/{account_id}/account_details","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["account_id","accounts_type"],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"account_id":{"type":"string","description":"The ID of the account."},"accounts_type":{"type":"string","enum":["external_accounts"]},"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:modern-treasury/get-account-detail":{"get":{"operationId":"finance_modern_treasury_get_account_detail","summary":"get account_detail","description":"GET /api/{accounts_type}/{account_id}/account_details/{id}","tags":["finance"],"parameters":[{"name":"account_id","in":"query","required":true,"description":"The ID of the account.","schema":{"type":"string","description":"The ID of the account."}},{"name":"accounts_type","in":"query","required":true,"schema":{"type":"string","enum":["external_accounts","internal_accounts"]}},{"name":"id","in":"query","required":true,"description":"The ID of the account detail.","schema":{"type":"string","description":"The ID of the account detail."}}],"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:modern-treasury/delete-account-detail":{"post":{"operationId":"finance_modern_treasury_delete_account_detail","summary":"delete account_detail","description":"DELETE /api/{accounts_type}/{account_id}/account_details/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["account_id","accounts_type","id"],"properties":{"account_id":{"type":"string","description":"The ID of the account."},"accounts_type":{"type":"string","enum":["external_accounts"]},"id":{"type":"string","description":"The ID of the account detail."}}}}}},"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:modern-treasury/list-routing-details":{"get":{"operationId":"finance_modern_treasury_list_routing_details","summary":"list routing_details","description":"GET /api/{accounts_type}/{account_id}/routing_details","tags":["finance"],"parameters":[{"name":"account_id","in":"query","required":true,"description":"The ID of the account.","schema":{"type":"string","description":"The ID of the account."}},{"name":"accounts_type","in":"query","required":true,"schema":{"type":"string","enum":["external_accounts","internal_accounts"]}},{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}}],"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:modern-treasury/create-routing-detail":{"post":{"operationId":"finance_modern_treasury_create_routing_detail","summary":"create routing_detail","description":"POST /api/{accounts_type}/{account_id}/routing_details","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["account_id","accounts_type"],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"account_id":{"type":"string","description":"The ID of the account."},"accounts_type":{"type":"string","enum":["external_accounts"]},"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:modern-treasury/get-routing-detail":{"get":{"operationId":"finance_modern_treasury_get_routing_detail","summary":"get routing_detail","description":"GET /api/{accounts_type}/{account_id}/routing_details/{id}","tags":["finance"],"parameters":[{"name":"account_id","in":"query","required":true,"description":"The ID of the account.","schema":{"type":"string","description":"The ID of the account."}},{"name":"accounts_type","in":"query","required":true,"schema":{"type":"string","enum":["external_accounts","internal_accounts"]}},{"name":"id","in":"query","required":true,"description":"The ID of the routing detail.","schema":{"type":"string","description":"The ID of the routing detail."}}],"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:modern-treasury/delete-routing-detail":{"post":{"operationId":"finance_modern_treasury_delete_routing_detail","summary":"delete routing_detail","description":"DELETE /api/{accounts_type}/{account_id}/routing_details/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["account_id","accounts_type","id"],"properties":{"account_id":{"type":"string","description":"The ID of the account."},"accounts_type":{"type":"string","enum":["external_accounts"]},"id":{"type":"string","description":"The ID of the routing detail."}}}}}},"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:modern-treasury/list-documents-nested":{"get":{"operationId":"finance_modern_treasury_list_documents_nested","summary":"list documents - nested path (legacy)","description":"GET /api/{documentable_type}/{documentable_id}/documents","tags":["finance"],"parameters":[{"name":"documentable_id","in":"query","required":true,"description":"The unique identifier for the associated object.","schema":{"type":"string","description":"The unique identifier for the associated object."}},{"name":"documentable_type","in":"query","required":true,"description":"The type of the associated object. Currently can be one of `connection`, `counterparty`, `expected_payment`, `identification`,…","schema":{"type":"string","enum":["connections","counterparties","expected_payments","identifications","incoming_payment_details","internal_accounts","legal_entities","payment_orders","returns","transactions"],"description":"The type of the associated object. Currently can be one of `connection`, `counterparty`, `expected_payment`, `identification`,…"}},{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"document_type","in":"query","required":false,"description":"A category given to the document, can be `null`.","schema":{"type":"string","description":"A category given to the document, can be `null`."}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}}],"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:modern-treasury/create-document-nested":{"post":{"operationId":"finance_modern_treasury_create_document_nested","summary":"create document - nested path (legacy)","description":"POST /api/{documentable_type}/{documentable_id}/documents","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["documentable_id","documentable_type"],"properties":{"Idempotency-Key":{"type":"string","description":"This key should be something unique, preferably something like an UUID."},"documentable_id":{"type":"string","description":"The unique identifier for the associated object."},"documentable_type":{"type":"string","enum":["connections","counterparties","expected_payments","identifications","incoming_payment_details","internal_accounts","legal_entities","payment_orders","returns","transactions"],"description":"The type of the associated object. Currently can be one of `connection`, `counterparty`, `expected_payment`, `identification`,…"},"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"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:modern-treasury/get-document-nested":{"get":{"operationId":"finance_modern_treasury_get_document_nested","summary":"get document - nested path (legacy)","description":"GET /api/{documentable_type}/{documentable_id}/documents/{id}","tags":["finance"],"parameters":[{"name":"documentable_id","in":"query","required":true,"description":"The unique identifier for the associated object.","schema":{"type":"string","description":"The unique identifier for the associated object."}},{"name":"documentable_type","in":"query","required":true,"description":"The type of the associated object. Currently can be one of `connection`, `counterparty`, `expected_payment`, `identification`,…","schema":{"type":"string","enum":["connections","counterparties","expected_payments","identifications","incoming_payment_details","internal_accounts","legal_entities","payment_orders","returns","transactions"],"description":"The type of the associated object. Currently can be one of `connection`, `counterparty`, `expected_payment`, `identification`,…"}},{"name":"id","in":"query","required":true,"description":"The ID of the document.","schema":{"type":"string","description":"The ID of the document."}}],"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:modern-treasury/download-document-nested":{"get":{"operationId":"finance_modern_treasury_download_document_nested","summary":"download document - nested path (legacy)","description":"GET /api/{documentable_type}/{documentable_id}/documents/{id}/download","tags":["finance"],"parameters":[{"name":"documentable_id","in":"query","required":true,"description":"The unique identifier for the associated object.","schema":{"type":"string","description":"The unique identifier for the associated object."}},{"name":"documentable_type","in":"query","required":true,"description":"The type of the associated object. Currently can be one of `connection`, `counterparty`, `expected_payment`, `identification`,…","schema":{"type":"string","enum":["connections","counterparties","expected_payments","identifications","incoming_payment_details","internal_accounts","legal_entities","payment_orders","returns","transactions"],"description":"The type of the associated object. Currently can be one of `connection`, `counterparty`, `expected_payment`, `identification`,…"}},{"name":"id","in":"query","required":true,"description":"The ID of the document.","schema":{"type":"string","description":"The ID of the document."}}],"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:modern-treasury/list-line-items":{"get":{"operationId":"finance_modern_treasury_list_line_items","summary":"list line items","description":"GET /api/{itemizable_type}/{itemizable_id}/line_items","tags":["finance"],"parameters":[{"name":"itemizable_id","in":"query","required":true,"description":"The ID of the payment order or expected payment.","schema":{"type":"string","description":"The ID of the payment order or expected payment."}},{"name":"itemizable_type","in":"query","required":true,"description":"One of `payment_orders` or `expected_payments`.","schema":{"type":"string","enum":["expected_payments","payment_orders"],"description":"One of `payment_orders` or `expected_payments`."}},{"name":"after_cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}}],"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:modern-treasury/get-line-item":{"get":{"operationId":"finance_modern_treasury_get_line_item","summary":"get line item","description":"GET /api/{itemizable_type}/{itemizable_id}/line_items/{id}","tags":["finance"],"parameters":[{"name":"id","in":"query","required":true,"description":"The ID of the line item.","schema":{"type":"string","description":"The ID of the line item."}},{"name":"itemizable_id","in":"query","required":true,"description":"The ID of the payment order or expected payment.","schema":{"type":"string","description":"The ID of the payment order or expected payment."}},{"name":"itemizable_type","in":"query","required":true,"description":"One of `payment_orders` or `expected_payments`.","schema":{"type":"string","enum":["expected_payments","payment_orders"],"description":"One of `payment_orders` or `expected_payments`."}}],"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:modern-treasury/update-line-item":{"post":{"operationId":"finance_modern_treasury_update_line_item","summary":"update line item","description":"PATCH /api/{itemizable_type}/{itemizable_id}/line_items/{id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","itemizable_id","itemizable_type"],"properties":{"id":{"type":"string","description":"The ID of the line item."},"itemizable_id":{"type":"string","description":"The ID of the payment order or expected payment."},"itemizable_type":{"type":"string","enum":["expected_payments","payment_orders"],"description":"One of `payment_orders` or `expected_payments`."},"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"}}},"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"}}}}}}}