cybrid-api-bank-python 0.125.49__py3-none-any.whl → 0.125.59__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cybrid-api-bank-python might be problematic. Click here for more details.

Files changed (208) hide show
  1. cybrid_api_bank/__init__.py +1 -1
  2. cybrid_api_bank/api/accounts_bank_api.py +1 -1
  3. cybrid_api_bank/api/assets_bank_api.py +1 -1
  4. cybrid_api_bank/api/banks_bank_api.py +1 -1
  5. cybrid_api_bank/api/counterparties_bank_api.py +1 -1
  6. cybrid_api_bank/api/customers_bank_api.py +1 -1
  7. cybrid_api_bank/api/deposit_addresses_bank_api.py +1 -1
  8. cybrid_api_bank/api/deposit_bank_accounts_bank_api.py +1 -1
  9. cybrid_api_bank/api/executions_bank_api.py +312 -0
  10. cybrid_api_bank/api/external_bank_accounts_bank_api.py +1 -1
  11. cybrid_api_bank/api/external_wallets_bank_api.py +1 -1
  12. cybrid_api_bank/api/files_bank_api.py +1 -1
  13. cybrid_api_bank/api/identity_verifications_bank_api.py +1 -1
  14. cybrid_api_bank/api/invoices_bank_api.py +1 -1
  15. cybrid_api_bank/api/payment_instructions_bank_api.py +1 -1
  16. cybrid_api_bank/api/persona_sessions_bank_api.py +1 -1
  17. cybrid_api_bank/api/plans_bank_api.py +312 -0
  18. cybrid_api_bank/api/prices_bank_api.py +1 -1
  19. cybrid_api_bank/api/quotes_bank_api.py +1 -1
  20. cybrid_api_bank/api/symbols_bank_api.py +1 -1
  21. cybrid_api_bank/api/trades_bank_api.py +2 -2
  22. cybrid_api_bank/api/transfers_bank_api.py +1 -1
  23. cybrid_api_bank/api/workflows_bank_api.py +1 -1
  24. cybrid_api_bank/api_client.py +1 -1
  25. cybrid_api_bank/apis/__init__.py +2 -0
  26. cybrid_api_bank/configuration.py +2 -2
  27. cybrid_api_bank/exceptions.py +1 -1
  28. cybrid_api_bank/model/account.py +1 -1
  29. cybrid_api_bank/model/account_association.py +322 -0
  30. cybrid_api_bank/model/account_list.py +1 -1
  31. cybrid_api_bank/model/account_state.py +1 -1
  32. cybrid_api_bank/model/account_type.py +1 -1
  33. cybrid_api_bank/model/activity_limit.py +1 -1
  34. cybrid_api_bank/model/activity_side.py +1 -1
  35. cybrid_api_bank/model/activity_type.py +1 -1
  36. cybrid_api_bank/model/asset.py +1 -1
  37. cybrid_api_bank/model/asset_list.py +1 -1
  38. cybrid_api_bank/model/asset_types.py +1 -1
  39. cybrid_api_bank/model/bank.py +1 -1
  40. cybrid_api_bank/model/bank_feature.py +1 -1
  41. cybrid_api_bank/model/bank_list.py +1 -1
  42. cybrid_api_bank/model/bank_supported_payout_symbols_inner.py +1 -1
  43. cybrid_api_bank/model/bank_type.py +1 -1
  44. cybrid_api_bank/model/compliance_check.py +1 -1
  45. cybrid_api_bank/model/compliance_check_outcome.py +1 -1
  46. cybrid_api_bank/model/compliance_check_type.py +1 -1
  47. cybrid_api_bank/model/compliance_decision.py +1 -1
  48. cybrid_api_bank/model/compliance_decision_state.py +1 -1
  49. cybrid_api_bank/model/compliance_decision_type.py +1 -1
  50. cybrid_api_bank/model/counterparty.py +1 -1
  51. cybrid_api_bank/model/counterparty_address.py +1 -1
  52. cybrid_api_bank/model/counterparty_aliases_inner.py +1 -1
  53. cybrid_api_bank/model/counterparty_list.py +1 -1
  54. cybrid_api_bank/model/counterparty_name.py +1 -1
  55. cybrid_api_bank/model/counterparty_state.py +1 -1
  56. cybrid_api_bank/model/counterparty_type.py +1 -1
  57. cybrid_api_bank/model/customer.py +1 -1
  58. cybrid_api_bank/model/customer_address.py +1 -1
  59. cybrid_api_bank/model/customer_aliases_inner.py +1 -1
  60. cybrid_api_bank/model/customer_list.py +1 -1
  61. cybrid_api_bank/model/customer_name.py +1 -1
  62. cybrid_api_bank/model/customer_state.py +1 -1
  63. cybrid_api_bank/model/customer_type.py +1 -1
  64. cybrid_api_bank/model/deposit_address.py +1 -1
  65. cybrid_api_bank/model/deposit_address_format.py +1 -1
  66. cybrid_api_bank/model/deposit_address_list.py +1 -1
  67. cybrid_api_bank/model/deposit_address_state.py +1 -1
  68. cybrid_api_bank/model/deposit_bank_account.py +1 -1
  69. cybrid_api_bank/model/deposit_bank_account_account_details_inner.py +1 -1
  70. cybrid_api_bank/model/deposit_bank_account_counterparty_address.py +1 -1
  71. cybrid_api_bank/model/deposit_bank_account_list.py +1 -1
  72. cybrid_api_bank/model/deposit_bank_account_routing_details_inner.py +1 -1
  73. cybrid_api_bank/model/deposit_bank_account_routing_number_type.py +1 -1
  74. cybrid_api_bank/model/deposit_bank_account_state.py +1 -1
  75. cybrid_api_bank/model/error_response.py +1 -1
  76. cybrid_api_bank/model/execution.py +370 -0
  77. cybrid_api_bank/model/execution_travel_rule_info.py +290 -0
  78. cybrid_api_bank/model/external_bank_account.py +1 -1
  79. cybrid_api_bank/model/external_bank_account_balances.py +1 -1
  80. cybrid_api_bank/model/external_bank_account_kind.py +1 -1
  81. cybrid_api_bank/model/external_bank_account_list.py +1 -1
  82. cybrid_api_bank/model/external_bank_account_pii_inner.py +1 -1
  83. cybrid_api_bank/model/external_bank_account_pii_inner_addresses_inner.py +1 -1
  84. cybrid_api_bank/model/external_bank_account_pii_inner_routing_details_inner.py +1 -1
  85. cybrid_api_bank/model/external_bank_account_state.py +1 -1
  86. cybrid_api_bank/model/external_wallet.py +1 -1
  87. cybrid_api_bank/model/external_wallet_environment.py +1 -1
  88. cybrid_api_bank/model/external_wallet_list.py +1 -1
  89. cybrid_api_bank/model/external_wallet_state.py +1 -1
  90. cybrid_api_bank/model/fee_association.py +286 -0
  91. cybrid_api_bank/model/identification_number.py +1 -1
  92. cybrid_api_bank/model/identity_verification.py +1 -1
  93. cybrid_api_bank/model/identity_verification_business_associate.py +1 -1
  94. cybrid_api_bank/model/identity_verification_document.py +1 -1
  95. cybrid_api_bank/model/identity_verification_document_file.py +1 -1
  96. cybrid_api_bank/model/identity_verification_list.py +1 -1
  97. cybrid_api_bank/model/identity_verification_method.py +1 -1
  98. cybrid_api_bank/model/identity_verification_options.py +1 -1
  99. cybrid_api_bank/model/identity_verification_outcome.py +1 -1
  100. cybrid_api_bank/model/identity_verification_persona_state.py +1 -1
  101. cybrid_api_bank/model/identity_verification_state.py +1 -1
  102. cybrid_api_bank/model/identity_verification_type.py +1 -1
  103. cybrid_api_bank/model/identity_verification_with_details.py +1 -1
  104. cybrid_api_bank/model/identity_verification_with_details_pii.py +1 -1
  105. cybrid_api_bank/model/identity_verification_with_details_pii_address.py +1 -1
  106. cybrid_api_bank/model/identity_verification_with_details_pii_aliases_inner.py +1 -1
  107. cybrid_api_bank/model/identity_verification_with_details_pii_name.py +1 -1
  108. cybrid_api_bank/model/invoice.py +1 -1
  109. cybrid_api_bank/model/invoice_list.py +1 -1
  110. cybrid_api_bank/model/list_request_page.py +1 -1
  111. cybrid_api_bank/model/list_request_per_page.py +1 -1
  112. cybrid_api_bank/model/patch_bank.py +1 -1
  113. cybrid_api_bank/model/patch_customer.py +1 -1
  114. cybrid_api_bank/model/patch_external_bank_account.py +1 -1
  115. cybrid_api_bank/model/patch_transfer.py +1 -1
  116. cybrid_api_bank/model/patch_transfer_participant.py +1 -1
  117. cybrid_api_bank/model/payment_instruction.py +1 -1
  118. cybrid_api_bank/model/payment_instruction_list.py +1 -1
  119. cybrid_api_bank/model/persona_session.py +1 -1
  120. cybrid_api_bank/model/plan.py +366 -0
  121. cybrid_api_bank/model/plan_travel_rule_info.py +290 -0
  122. cybrid_api_bank/model/platform_file.py +1 -1
  123. cybrid_api_bank/model/platform_file_list.py +1 -1
  124. cybrid_api_bank/model/post_account.py +1 -1
  125. cybrid_api_bank/model/post_bank.py +1 -1
  126. cybrid_api_bank/model/post_bank_account_details.py +321 -0
  127. cybrid_api_bank/model/post_counterparty.py +1 -1
  128. cybrid_api_bank/model/post_counterparty_address.py +1 -1
  129. cybrid_api_bank/model/post_counterparty_aliases_inner.py +1 -1
  130. cybrid_api_bank/model/post_counterparty_name.py +1 -1
  131. cybrid_api_bank/model/post_customer.py +1 -1
  132. cybrid_api_bank/model/post_customer_address.py +1 -1
  133. cybrid_api_bank/model/post_customer_aliases_inner.py +1 -1
  134. cybrid_api_bank/model/post_customer_name.py +1 -1
  135. cybrid_api_bank/model/post_deposit_address.py +1 -1
  136. cybrid_api_bank/model/post_deposit_bank_account.py +1 -1
  137. cybrid_api_bank/model/post_execution.py +274 -0
  138. cybrid_api_bank/model/post_external_bank_account.py +7 -7
  139. cybrid_api_bank/model/post_external_bank_account_counterparty_address.py +1 -1
  140. cybrid_api_bank/model/post_external_bank_account_counterparty_name.py +1 -1
  141. cybrid_api_bank/model/post_external_wallet.py +1 -1
  142. cybrid_api_bank/model/post_fee.py +1 -1
  143. cybrid_api_bank/model/post_file.py +1 -1
  144. cybrid_api_bank/model/post_identification_number.py +1 -1
  145. cybrid_api_bank/model/post_identity_verification.py +1 -1
  146. cybrid_api_bank/model/post_identity_verification_address.py +1 -1
  147. cybrid_api_bank/model/post_identity_verification_aliases_inner.py +1 -1
  148. cybrid_api_bank/model/post_identity_verification_name.py +1 -1
  149. cybrid_api_bank/model/post_invoice.py +1 -1
  150. cybrid_api_bank/model/post_payment_instruction.py +1 -1
  151. cybrid_api_bank/model/post_persona_session.py +1 -1
  152. cybrid_api_bank/model/post_plan.py +317 -0
  153. cybrid_api_bank/model/post_plan_destination_account.py +278 -0
  154. cybrid_api_bank/model/post_plan_source_account.py +278 -0
  155. cybrid_api_bank/model/{post_external_bank_account_counterparty_bank_account.py → post_plan_travel_rule_info.py} +20 -21
  156. cybrid_api_bank/model/post_quote.py +1 -1
  157. cybrid_api_bank/model/post_quote_entry.py +1 -1
  158. cybrid_api_bank/model/post_supported_payout_symbols.py +1 -1
  159. cybrid_api_bank/model/post_trade.py +1 -1
  160. cybrid_api_bank/model/post_transfer.py +1 -1
  161. cybrid_api_bank/model/post_transfer_participant.py +1 -1
  162. cybrid_api_bank/model/post_ultimate_beneficial_owner.py +1 -1
  163. cybrid_api_bank/model/post_workflow.py +1 -1
  164. cybrid_api_bank/model/quote.py +1 -1
  165. cybrid_api_bank/model/quote_entry.py +1 -1
  166. cybrid_api_bank/model/quote_entry_destination_account.py +1 -1
  167. cybrid_api_bank/model/quote_entry_source_account.py +1 -1
  168. cybrid_api_bank/model/quote_list.py +1 -1
  169. cybrid_api_bank/model/quote_side.py +1 -1
  170. cybrid_api_bank/model/quote_type.py +1 -1
  171. cybrid_api_bank/model/stage.py +328 -0
  172. cybrid_api_bank/model/symbol_price.py +1 -1
  173. cybrid_api_bank/model/symbol_price_response.py +1 -1
  174. cybrid_api_bank/model/symbols.py +1 -1
  175. cybrid_api_bank/model/trade.py +3 -3
  176. cybrid_api_bank/model/trade_failure_code.py +1 -1
  177. cybrid_api_bank/model/trade_list.py +1 -1
  178. cybrid_api_bank/model/trade_side.py +1 -1
  179. cybrid_api_bank/model/trade_state.py +6 -5
  180. cybrid_api_bank/model/trade_type.py +1 -1
  181. cybrid_api_bank/model/transfer.py +1 -1
  182. cybrid_api_bank/model/transfer_account_type.py +1 -1
  183. cybrid_api_bank/model/transfer_destination_account.py +1 -1
  184. cybrid_api_bank/model/transfer_entry.py +1 -1
  185. cybrid_api_bank/model/transfer_entry_destination_account.py +1 -1
  186. cybrid_api_bank/model/transfer_failure_code.py +1 -1
  187. cybrid_api_bank/model/transfer_hold_details.py +1 -1
  188. cybrid_api_bank/model/transfer_list.py +1 -1
  189. cybrid_api_bank/model/transfer_participant.py +1 -1
  190. cybrid_api_bank/model/transfer_side.py +1 -1
  191. cybrid_api_bank/model/transfer_source_account.py +1 -1
  192. cybrid_api_bank/model/transfer_state.py +1 -1
  193. cybrid_api_bank/model/transfer_type.py +1 -1
  194. cybrid_api_bank/model/travel_rule_info_party.py +280 -0
  195. cybrid_api_bank/model/workflow.py +1 -1
  196. cybrid_api_bank/model/workflow_state.py +1 -1
  197. cybrid_api_bank/model/workflow_type.py +1 -1
  198. cybrid_api_bank/model/workflow_with_details.py +1 -1
  199. cybrid_api_bank/model/workflow_with_details_all_of.py +1 -1
  200. cybrid_api_bank/model/workflows_list.py +1 -1
  201. cybrid_api_bank/model_utils.py +1 -1
  202. cybrid_api_bank/models/__init__.py +14 -1
  203. cybrid_api_bank/rest.py +1 -1
  204. {cybrid_api_bank_python-0.125.49.dist-info → cybrid_api_bank_python-0.125.59.dist-info}/METADATA +1 -1
  205. cybrid_api_bank_python-0.125.59.dist-info/RECORD +209 -0
  206. cybrid_api_bank_python-0.125.49.dist-info/RECORD +0 -194
  207. {cybrid_api_bank_python-0.125.49.dist-info → cybrid_api_bank_python-0.125.59.dist-info}/WHEEL +0 -0
  208. {cybrid_api_bank_python-0.125.49.dist-info → cybrid_api_bank_python-0.125.59.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,7 @@
3
3
 
4
4
  # Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our APIs. If you'd like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.production.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Introduction](https://docs.cybrid.xyz/docs/introduction) 2. [Platform Introduction](https://docs.cybrid.xyz/docs/how-is-cybrid-architected) 3. [Testing with Hosted Web Demo App](https://docs.cybrid.xyz/docs/testing-with-hosted-web-demo-app) In [Getting Started in the Cybrid Sandbox](https://docs.cybrid.xyz/docs/how-do-i-get-started-with-the-sandbox), we walk you through how to use the [Cybrid Sandbox](https://id.sandbox.cybrid.app/) to create a test bank and generate API keys. In [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.production.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.production.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.production.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.production.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write bank_applications:execute accounts:read accounts:execute counterparties:read counterparties:pii:read counterparties:write counterparties:execute customers:read customers:pii:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read transfers:write external_bank_accounts:read external_bank_accounts:pii:read external_bank_accounts:write external_bank_accounts:execute external_wallets:read external_wallets:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute deposit_bank_accounts:read deposit_bank_accounts:execute invoices:read invoices:write invoices:execute identity_verifications:read identity_verifications:pii:read identity_verifications:write identity_verifications:execute persona_sessions:execute plans:execute plans:read executions:execute executions:read files:read files:pii:read files:execute\" }' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to 'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:write users:execute counterparties:read counterparties:pii:read customers:read customers:pii:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:write transfers:execute external_bank_accounts:read external_bank_accounts:pii:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute subscription_events:read subscription_events:execute identity_verifications:read identity_verifications:pii:read identity_verifications:execute persona_sessions:execute plans:execute plans:read executions:execute executions:read files:read files:pii:read files:execute' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|--------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Counterparty | counterparties:read (Organization, Bank, Customer) | counterparties:write (Bank, Customer) | counterparties:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | External Wallet | external_wallet:read (Organization, Bank, Customer) | | external_wallet:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | User | users:read (Organization) | | users:execute (Organization) | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Organization, Bank, Customer) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Organization, Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Organization, Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | | Invoice | invoices:read (Organization, Bank, Customer) | invoices:write (Bank, Customer) | invoices:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.production.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.production.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.production.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Identity | Organization | /api/users | Create and list organization users | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | Customer | /api/customers | Create and list customers | | Bank | Counterparty | /api/counterparties | Create and list counterparties | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | ExternalWallet | /api/external_wallets | Create, get, list and delete external wallets, which connect customer wallets to the platform | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Invoice | /api/invoices | Create, get, cancel and list invoices | | Bank | PaymentInstruction | /api/payment_instructions | Create, get and list payment instructions for invoices | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` typically does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC'd) in our system before they can play any part on the platform, which means they must have an associated and a passing `Identity Verification`. See the Identity Verifications section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer. # noqa: E501
5
5
 
6
- The version of the OpenAPI document: v0.125.49
6
+ The version of the OpenAPI document: v0.125.59
7
7
  Contact: support@cybrid.app
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -3,7 +3,7 @@
3
3
 
4
4
  # Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our APIs. If you'd like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.production.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Introduction](https://docs.cybrid.xyz/docs/introduction) 2. [Platform Introduction](https://docs.cybrid.xyz/docs/how-is-cybrid-architected) 3. [Testing with Hosted Web Demo App](https://docs.cybrid.xyz/docs/testing-with-hosted-web-demo-app) In [Getting Started in the Cybrid Sandbox](https://docs.cybrid.xyz/docs/how-do-i-get-started-with-the-sandbox), we walk you through how to use the [Cybrid Sandbox](https://id.sandbox.cybrid.app/) to create a test bank and generate API keys. In [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.production.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.production.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.production.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.production.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write bank_applications:execute accounts:read accounts:execute counterparties:read counterparties:pii:read counterparties:write counterparties:execute customers:read customers:pii:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read transfers:write external_bank_accounts:read external_bank_accounts:pii:read external_bank_accounts:write external_bank_accounts:execute external_wallets:read external_wallets:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute deposit_bank_accounts:read deposit_bank_accounts:execute invoices:read invoices:write invoices:execute identity_verifications:read identity_verifications:pii:read identity_verifications:write identity_verifications:execute persona_sessions:execute plans:execute plans:read executions:execute executions:read files:read files:pii:read files:execute\" }' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to 'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:write users:execute counterparties:read counterparties:pii:read customers:read customers:pii:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:write transfers:execute external_bank_accounts:read external_bank_accounts:pii:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute subscription_events:read subscription_events:execute identity_verifications:read identity_verifications:pii:read identity_verifications:execute persona_sessions:execute plans:execute plans:read executions:execute executions:read files:read files:pii:read files:execute' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|--------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Counterparty | counterparties:read (Organization, Bank, Customer) | counterparties:write (Bank, Customer) | counterparties:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | External Wallet | external_wallet:read (Organization, Bank, Customer) | | external_wallet:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | User | users:read (Organization) | | users:execute (Organization) | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Organization, Bank, Customer) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Organization, Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Organization, Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | | Invoice | invoices:read (Organization, Bank, Customer) | invoices:write (Bank, Customer) | invoices:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.production.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.production.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.production.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Identity | Organization | /api/users | Create and list organization users | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | Customer | /api/customers | Create and list customers | | Bank | Counterparty | /api/counterparties | Create and list counterparties | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | ExternalWallet | /api/external_wallets | Create, get, list and delete external wallets, which connect customer wallets to the platform | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Invoice | /api/invoices | Create, get, cancel and list invoices | | Bank | PaymentInstruction | /api/payment_instructions | Create, get and list payment instructions for invoices | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` typically does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC'd) in our system before they can play any part on the platform, which means they must have an associated and a passing `Identity Verification`. See the Identity Verifications section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer. # noqa: E501
5
5
 
6
- The version of the OpenAPI document: v0.125.49
6
+ The version of the OpenAPI document: v0.125.59
7
7
  Contact: support@cybrid.app
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -3,7 +3,7 @@
3
3
 
4
4
  # Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our APIs. If you'd like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.production.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Introduction](https://docs.cybrid.xyz/docs/introduction) 2. [Platform Introduction](https://docs.cybrid.xyz/docs/how-is-cybrid-architected) 3. [Testing with Hosted Web Demo App](https://docs.cybrid.xyz/docs/testing-with-hosted-web-demo-app) In [Getting Started in the Cybrid Sandbox](https://docs.cybrid.xyz/docs/how-do-i-get-started-with-the-sandbox), we walk you through how to use the [Cybrid Sandbox](https://id.sandbox.cybrid.app/) to create a test bank and generate API keys. In [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.production.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.production.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.production.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.production.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write bank_applications:execute accounts:read accounts:execute counterparties:read counterparties:pii:read counterparties:write counterparties:execute customers:read customers:pii:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read transfers:write external_bank_accounts:read external_bank_accounts:pii:read external_bank_accounts:write external_bank_accounts:execute external_wallets:read external_wallets:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute deposit_bank_accounts:read deposit_bank_accounts:execute invoices:read invoices:write invoices:execute identity_verifications:read identity_verifications:pii:read identity_verifications:write identity_verifications:execute persona_sessions:execute plans:execute plans:read executions:execute executions:read files:read files:pii:read files:execute\" }' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to 'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:write users:execute counterparties:read counterparties:pii:read customers:read customers:pii:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:write transfers:execute external_bank_accounts:read external_bank_accounts:pii:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute subscription_events:read subscription_events:execute identity_verifications:read identity_verifications:pii:read identity_verifications:execute persona_sessions:execute plans:execute plans:read executions:execute executions:read files:read files:pii:read files:execute' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|--------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Counterparty | counterparties:read (Organization, Bank, Customer) | counterparties:write (Bank, Customer) | counterparties:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | External Wallet | external_wallet:read (Organization, Bank, Customer) | | external_wallet:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | User | users:read (Organization) | | users:execute (Organization) | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Organization, Bank, Customer) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Organization, Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Organization, Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | | Invoice | invoices:read (Organization, Bank, Customer) | invoices:write (Bank, Customer) | invoices:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.production.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.production.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.production.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Identity | Organization | /api/users | Create and list organization users | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | Customer | /api/customers | Create and list customers | | Bank | Counterparty | /api/counterparties | Create and list counterparties | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | ExternalWallet | /api/external_wallets | Create, get, list and delete external wallets, which connect customer wallets to the platform | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Invoice | /api/invoices | Create, get, cancel and list invoices | | Bank | PaymentInstruction | /api/payment_instructions | Create, get and list payment instructions for invoices | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` typically does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC'd) in our system before they can play any part on the platform, which means they must have an associated and a passing `Identity Verification`. See the Identity Verifications section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer. # noqa: E501
5
5
 
6
- The version of the OpenAPI document: v0.125.49
6
+ The version of the OpenAPI document: v0.125.59
7
7
  Contact: support@cybrid.app
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -3,7 +3,7 @@
3
3
 
4
4
  # Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our APIs. If you'd like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.production.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Introduction](https://docs.cybrid.xyz/docs/introduction) 2. [Platform Introduction](https://docs.cybrid.xyz/docs/how-is-cybrid-architected) 3. [Testing with Hosted Web Demo App](https://docs.cybrid.xyz/docs/testing-with-hosted-web-demo-app) In [Getting Started in the Cybrid Sandbox](https://docs.cybrid.xyz/docs/how-do-i-get-started-with-the-sandbox), we walk you through how to use the [Cybrid Sandbox](https://id.sandbox.cybrid.app/) to create a test bank and generate API keys. In [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.production.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.production.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.production.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.production.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write bank_applications:execute accounts:read accounts:execute counterparties:read counterparties:pii:read counterparties:write counterparties:execute customers:read customers:pii:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read transfers:write external_bank_accounts:read external_bank_accounts:pii:read external_bank_accounts:write external_bank_accounts:execute external_wallets:read external_wallets:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute deposit_bank_accounts:read deposit_bank_accounts:execute invoices:read invoices:write invoices:execute identity_verifications:read identity_verifications:pii:read identity_verifications:write identity_verifications:execute persona_sessions:execute plans:execute plans:read executions:execute executions:read files:read files:pii:read files:execute\" }' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to 'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:write users:execute counterparties:read counterparties:pii:read customers:read customers:pii:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:write transfers:execute external_bank_accounts:read external_bank_accounts:pii:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute subscription_events:read subscription_events:execute identity_verifications:read identity_verifications:pii:read identity_verifications:execute persona_sessions:execute plans:execute plans:read executions:execute executions:read files:read files:pii:read files:execute' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|--------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Counterparty | counterparties:read (Organization, Bank, Customer) | counterparties:write (Bank, Customer) | counterparties:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | External Wallet | external_wallet:read (Organization, Bank, Customer) | | external_wallet:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | User | users:read (Organization) | | users:execute (Organization) | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Organization, Bank, Customer) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Organization, Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Organization, Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | | Invoice | invoices:read (Organization, Bank, Customer) | invoices:write (Bank, Customer) | invoices:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.production.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.production.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.production.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Identity | Organization | /api/users | Create and list organization users | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | Customer | /api/customers | Create and list customers | | Bank | Counterparty | /api/counterparties | Create and list counterparties | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | ExternalWallet | /api/external_wallets | Create, get, list and delete external wallets, which connect customer wallets to the platform | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Invoice | /api/invoices | Create, get, cancel and list invoices | | Bank | PaymentInstruction | /api/payment_instructions | Create, get and list payment instructions for invoices | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` typically does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC'd) in our system before they can play any part on the platform, which means they must have an associated and a passing `Identity Verification`. See the Identity Verifications section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer. # noqa: E501
5
5
 
6
- The version of the OpenAPI document: v0.125.49
6
+ The version of the OpenAPI document: v0.125.59
7
7
  Contact: support@cybrid.app
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -0,0 +1,317 @@
1
+ """
2
+ Cybrid Bank API
3
+
4
+ # Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our APIs. If you'd like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.production.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Introduction](https://docs.cybrid.xyz/docs/introduction) 2. [Platform Introduction](https://docs.cybrid.xyz/docs/how-is-cybrid-architected) 3. [Testing with Hosted Web Demo App](https://docs.cybrid.xyz/docs/testing-with-hosted-web-demo-app) In [Getting Started in the Cybrid Sandbox](https://docs.cybrid.xyz/docs/how-do-i-get-started-with-the-sandbox), we walk you through how to use the [Cybrid Sandbox](https://id.sandbox.cybrid.app/) to create a test bank and generate API keys. In [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.production.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.production.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.production.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.production.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write bank_applications:execute accounts:read accounts:execute counterparties:read counterparties:pii:read counterparties:write counterparties:execute customers:read customers:pii:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read transfers:write external_bank_accounts:read external_bank_accounts:pii:read external_bank_accounts:write external_bank_accounts:execute external_wallets:read external_wallets:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute deposit_bank_accounts:read deposit_bank_accounts:execute invoices:read invoices:write invoices:execute identity_verifications:read identity_verifications:pii:read identity_verifications:write identity_verifications:execute persona_sessions:execute plans:execute plans:read executions:execute executions:read files:read files:pii:read files:execute\" }' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to 'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:write users:execute counterparties:read counterparties:pii:read customers:read customers:pii:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:write transfers:execute external_bank_accounts:read external_bank_accounts:pii:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute subscription_events:read subscription_events:execute identity_verifications:read identity_verifications:pii:read identity_verifications:execute persona_sessions:execute plans:execute plans:read executions:execute executions:read files:read files:pii:read files:execute' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|--------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Counterparty | counterparties:read (Organization, Bank, Customer) | counterparties:write (Bank, Customer) | counterparties:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | External Wallet | external_wallet:read (Organization, Bank, Customer) | | external_wallet:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | User | users:read (Organization) | | users:execute (Organization) | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Organization, Bank, Customer) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Organization, Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Organization, Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | | Invoice | invoices:read (Organization, Bank, Customer) | invoices:write (Bank, Customer) | invoices:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.production.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.production.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.production.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Identity | Organization | /api/users | Create and list organization users | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | Customer | /api/customers | Create and list customers | | Bank | Counterparty | /api/counterparties | Create and list counterparties | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | ExternalWallet | /api/external_wallets | Create, get, list and delete external wallets, which connect customer wallets to the platform | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Invoice | /api/invoices | Create, get, cancel and list invoices | | Bank | PaymentInstruction | /api/payment_instructions | Create, get and list payment instructions for invoices | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` typically does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC'd) in our system before they can play any part on the platform, which means they must have an associated and a passing `Identity Verification`. See the Identity Verifications section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer. # noqa: E501
5
+
6
+ The version of the OpenAPI document: v0.125.59
7
+ Contact: support@cybrid.app
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from cybrid_api_bank.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from cybrid_api_bank.exceptions import ApiAttributeError
31
+
32
+
33
+ def lazy_import():
34
+ from cybrid_api_bank.model.post_plan_destination_account import PostPlanDestinationAccount
35
+ from cybrid_api_bank.model.post_plan_source_account import PostPlanSourceAccount
36
+ from cybrid_api_bank.model.post_plan_travel_rule_info import PostPlanTravelRuleInfo
37
+ globals()['PostPlanDestinationAccount'] = PostPlanDestinationAccount
38
+ globals()['PostPlanSourceAccount'] = PostPlanSourceAccount
39
+ globals()['PostPlanTravelRuleInfo'] = PostPlanTravelRuleInfo
40
+
41
+
42
+ class PostPlan(ModelNormal):
43
+ """NOTE: This class is auto generated by OpenAPI Generator.
44
+ Ref: https://openapi-generator.tech
45
+
46
+ Do not edit the class manually.
47
+
48
+ Attributes:
49
+ allowed_values (dict): The key is the tuple path to the attribute
50
+ and the for var_name this is (var_name,). The value is a dict
51
+ with a capitalized key describing the allowed value and an allowed
52
+ value. These dicts store the allowed enum values.
53
+ attribute_map (dict): The key is attribute name
54
+ and the value is json key in definition.
55
+ discriminator_value_class_map (dict): A dict to go from the discriminator
56
+ variable value to the discriminator class name.
57
+ validations (dict): The key is the tuple path to the attribute
58
+ and the for var_name this is (var_name,). The value is a dict
59
+ that stores validations for max_length, min_length, max_items,
60
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
61
+ inclusive_minimum, and regex.
62
+ additional_properties_type (tuple): A tuple of classes accepted
63
+ as additional properties values.
64
+ """
65
+
66
+ allowed_values = {
67
+ ('type',): {
68
+ 'REMITTANCE': "remittance",
69
+ },
70
+ }
71
+
72
+ validations = {
73
+ ('bank_guid',): {
74
+ 'max_length': 32,
75
+ 'min_length': 32,
76
+ },
77
+ ('customer_guid',): {
78
+ 'max_length': 32,
79
+ 'min_length': 32,
80
+ },
81
+ }
82
+
83
+ @cached_property
84
+ def additional_properties_type():
85
+ """
86
+ This must be a method because a model may have properties that are
87
+ of type self, this must run after the class is loaded
88
+ """
89
+ lazy_import()
90
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
91
+
92
+ _nullable = False
93
+
94
+ @cached_property
95
+ def openapi_types():
96
+ """
97
+ This must be a method because a model may have properties that are
98
+ of type self, this must run after the class is loaded
99
+
100
+ Returns
101
+ openapi_types (dict): The key is attribute name
102
+ and the value is attribute type.
103
+ """
104
+ lazy_import()
105
+ return {
106
+ 'type': (str,), # noqa: E501
107
+ 'source_account': (PostPlanSourceAccount,), # noqa: E501
108
+ 'destination_account': (PostPlanDestinationAccount,), # noqa: E501
109
+ 'bank_guid': (str, none_type,), # noqa: E501
110
+ 'customer_guid': (str, none_type,), # noqa: E501
111
+ 'travel_rule_info': (PostPlanTravelRuleInfo,), # noqa: E501
112
+ }
113
+
114
+ @cached_property
115
+ def discriminator():
116
+ return None
117
+
118
+
119
+ attribute_map = {
120
+ 'type': 'type', # noqa: E501
121
+ 'source_account': 'source_account', # noqa: E501
122
+ 'destination_account': 'destination_account', # noqa: E501
123
+ 'bank_guid': 'bank_guid', # noqa: E501
124
+ 'customer_guid': 'customer_guid', # noqa: E501
125
+ 'travel_rule_info': 'travel_rule_info', # noqa: E501
126
+ }
127
+
128
+ read_only_vars = {
129
+ }
130
+
131
+ _composed_schemas = {}
132
+
133
+ @classmethod
134
+ @convert_js_args_to_python_args
135
+ def _from_openapi_data(cls, source_account, destination_account, *args, **kwargs): # noqa: E501
136
+ """PostPlan - a model defined in OpenAPI
137
+
138
+ Args:
139
+ source_account (PostPlanSourceAccount):
140
+ destination_account (PostPlanDestinationAccount):
141
+
142
+ Keyword Args:
143
+ type (str): The type of product the plan is for.. defaults to "remittance", must be one of ["remittance", ] # noqa: E501
144
+ _check_type (bool): if True, values for parameters in openapi_types
145
+ will be type checked and a TypeError will be
146
+ raised if the wrong type is input.
147
+ Defaults to True
148
+ _path_to_item (tuple/list): This is a list of keys or values to
149
+ drill down to the model in received_data
150
+ when deserializing a response
151
+ _spec_property_naming (bool): True if the variable names in the input data
152
+ are serialized names, as specified in the OpenAPI document.
153
+ False if the variable names in the input data
154
+ are pythonic names, e.g. snake case (default)
155
+ _configuration (Configuration): the instance to use when
156
+ deserializing a file_type parameter.
157
+ If passed, type conversion is attempted
158
+ If omitted no type conversion is done.
159
+ _visited_composed_classes (tuple): This stores a tuple of
160
+ classes that we have traveled through so that
161
+ if we see that class again we will not use its
162
+ discriminator again.
163
+ When traveling through a discriminator, the
164
+ composed schema that is
165
+ is traveled through is added to this set.
166
+ For example if Animal has a discriminator
167
+ petType and we pass in "Dog", and the class Dog
168
+ allOf includes Animal, we move through Animal
169
+ once using the discriminator, and pick Dog.
170
+ Then in Dog, we will make an instance of the
171
+ Animal class but this time we won't travel
172
+ through its discriminator because we passed in
173
+ _visited_composed_classes = (Animal,)
174
+ bank_guid (str, none_type): The unique identifier for the bank.. [optional] # noqa: E501
175
+ customer_guid (str, none_type): The unique identifier for the customer.. [optional] # noqa: E501
176
+ travel_rule_info (PostPlanTravelRuleInfo): [optional] # noqa: E501
177
+ """
178
+
179
+ type = kwargs.get('type', "remittance")
180
+ _check_type = kwargs.pop('_check_type', True)
181
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
182
+ _path_to_item = kwargs.pop('_path_to_item', ())
183
+ _configuration = kwargs.pop('_configuration', None)
184
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
185
+
186
+ self = super(OpenApiModel, cls).__new__(cls)
187
+
188
+ if args:
189
+ for arg in args:
190
+ if isinstance(arg, dict):
191
+ kwargs.update(arg)
192
+ else:
193
+ raise ApiTypeError(
194
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
195
+ args,
196
+ self.__class__.__name__,
197
+ ),
198
+ path_to_item=_path_to_item,
199
+ valid_classes=(self.__class__,),
200
+ )
201
+
202
+ self._data_store = {}
203
+ self._check_type = _check_type
204
+ self._spec_property_naming = _spec_property_naming
205
+ self._path_to_item = _path_to_item
206
+ self._configuration = _configuration
207
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
208
+
209
+ self.type = type
210
+ self.source_account = source_account
211
+ self.destination_account = destination_account
212
+ for var_name, var_value in kwargs.items():
213
+ if var_name not in self.attribute_map and \
214
+ self._configuration is not None and \
215
+ self._configuration.discard_unknown_keys and \
216
+ self.additional_properties_type is None:
217
+ # discard variable.
218
+ continue
219
+ setattr(self, var_name, var_value)
220
+ return self
221
+
222
+ required_properties = set([
223
+ '_data_store',
224
+ '_check_type',
225
+ '_spec_property_naming',
226
+ '_path_to_item',
227
+ '_configuration',
228
+ '_visited_composed_classes',
229
+ ])
230
+
231
+ @convert_js_args_to_python_args
232
+ def __init__(self, source_account, destination_account, *args, **kwargs): # noqa: E501
233
+ """PostPlan - a model defined in OpenAPI
234
+
235
+ Args:
236
+ source_account (PostPlanSourceAccount):
237
+ destination_account (PostPlanDestinationAccount):
238
+
239
+ Keyword Args:
240
+ type (str): The type of product the plan is for.. defaults to "remittance", must be one of ["remittance", ] # noqa: E501
241
+ _check_type (bool): if True, values for parameters in openapi_types
242
+ will be type checked and a TypeError will be
243
+ raised if the wrong type is input.
244
+ Defaults to True
245
+ _path_to_item (tuple/list): This is a list of keys or values to
246
+ drill down to the model in received_data
247
+ when deserializing a response
248
+ _spec_property_naming (bool): True if the variable names in the input data
249
+ are serialized names, as specified in the OpenAPI document.
250
+ False if the variable names in the input data
251
+ are pythonic names, e.g. snake case (default)
252
+ _configuration (Configuration): the instance to use when
253
+ deserializing a file_type parameter.
254
+ If passed, type conversion is attempted
255
+ If omitted no type conversion is done.
256
+ _visited_composed_classes (tuple): This stores a tuple of
257
+ classes that we have traveled through so that
258
+ if we see that class again we will not use its
259
+ discriminator again.
260
+ When traveling through a discriminator, the
261
+ composed schema that is
262
+ is traveled through is added to this set.
263
+ For example if Animal has a discriminator
264
+ petType and we pass in "Dog", and the class Dog
265
+ allOf includes Animal, we move through Animal
266
+ once using the discriminator, and pick Dog.
267
+ Then in Dog, we will make an instance of the
268
+ Animal class but this time we won't travel
269
+ through its discriminator because we passed in
270
+ _visited_composed_classes = (Animal,)
271
+ bank_guid (str, none_type): The unique identifier for the bank.. [optional] # noqa: E501
272
+ customer_guid (str, none_type): The unique identifier for the customer.. [optional] # noqa: E501
273
+ travel_rule_info (PostPlanTravelRuleInfo): [optional] # noqa: E501
274
+ """
275
+
276
+ type = kwargs.get('type', "remittance")
277
+ _check_type = kwargs.pop('_check_type', True)
278
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
279
+ _path_to_item = kwargs.pop('_path_to_item', ())
280
+ _configuration = kwargs.pop('_configuration', None)
281
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
282
+
283
+ if args:
284
+ for arg in args:
285
+ if isinstance(arg, dict):
286
+ kwargs.update(arg)
287
+ else:
288
+ raise ApiTypeError(
289
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
290
+ args,
291
+ self.__class__.__name__,
292
+ ),
293
+ path_to_item=_path_to_item,
294
+ valid_classes=(self.__class__,),
295
+ )
296
+
297
+ self._data_store = {}
298
+ self._check_type = _check_type
299
+ self._spec_property_naming = _spec_property_naming
300
+ self._path_to_item = _path_to_item
301
+ self._configuration = _configuration
302
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
303
+
304
+ self.type = type
305
+ self.source_account = source_account
306
+ self.destination_account = destination_account
307
+ for var_name, var_value in kwargs.items():
308
+ if var_name not in self.attribute_map and \
309
+ self._configuration is not None and \
310
+ self._configuration.discard_unknown_keys and \
311
+ self.additional_properties_type is None:
312
+ # discard variable.
313
+ continue
314
+ setattr(self, var_name, var_value)
315
+ if var_name in self.read_only_vars:
316
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
317
+ f"class with read only attributes.")