@cybrid/cybrid-api-bank-typescript 0.121.11 → 0.121.13
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.
- package/README.md +2 -2
- package/dist/apis/AccountsBankApi.d.ts +1 -1
- package/dist/apis/AccountsBankApi.js +1 -1
- package/dist/apis/AssetsBankApi.d.ts +1 -1
- package/dist/apis/AssetsBankApi.js +1 -1
- package/dist/apis/BanksBankApi.d.ts +1 -1
- package/dist/apis/BanksBankApi.js +1 -1
- package/dist/apis/CounterpartiesBankApi.d.ts +1 -1
- package/dist/apis/CounterpartiesBankApi.js +1 -1
- package/dist/apis/CustomersBankApi.d.ts +1 -1
- package/dist/apis/CustomersBankApi.js +1 -1
- package/dist/apis/DepositAddressesBankApi.d.ts +1 -1
- package/dist/apis/DepositAddressesBankApi.js +1 -1
- package/dist/apis/DepositBankAccountsBankApi.d.ts +1 -1
- package/dist/apis/DepositBankAccountsBankApi.js +1 -1
- package/dist/apis/ExternalBankAccountsBankApi.d.ts +1 -1
- package/dist/apis/ExternalBankAccountsBankApi.js +1 -1
- package/dist/apis/ExternalWalletsBankApi.d.ts +1 -1
- package/dist/apis/ExternalWalletsBankApi.js +1 -1
- package/dist/apis/IdentityVerificationsBankApi.d.ts +1 -1
- package/dist/apis/IdentityVerificationsBankApi.js +1 -1
- package/dist/apis/InvoicesBankApi.d.ts +1 -1
- package/dist/apis/InvoicesBankApi.js +1 -1
- package/dist/apis/PaymentInstructionsBankApi.d.ts +1 -1
- package/dist/apis/PaymentInstructionsBankApi.js +1 -1
- package/dist/apis/PricesBankApi.d.ts +1 -1
- package/dist/apis/PricesBankApi.js +1 -1
- package/dist/apis/QuotesBankApi.d.ts +1 -1
- package/dist/apis/QuotesBankApi.js +1 -1
- package/dist/apis/SymbolsBankApi.d.ts +1 -1
- package/dist/apis/SymbolsBankApi.js +1 -1
- package/dist/apis/TradesBankApi.d.ts +1 -1
- package/dist/apis/TradesBankApi.js +1 -1
- package/dist/apis/TransfersBankApi.d.ts +1 -1
- package/dist/apis/TransfersBankApi.js +1 -1
- package/dist/apis/WorkflowsBankApi.d.ts +1 -1
- package/dist/apis/WorkflowsBankApi.js +1 -1
- package/dist/models/AccountBankModel.d.ts +1 -1
- package/dist/models/AccountBankModel.js +1 -1
- package/dist/models/AccountListBankModel.d.ts +1 -1
- package/dist/models/AccountListBankModel.js +1 -1
- package/dist/models/AccountStateBankModel.d.ts +1 -1
- package/dist/models/AccountStateBankModel.js +1 -1
- package/dist/models/AccountTypeBankModel.d.ts +1 -1
- package/dist/models/AccountTypeBankModel.js +1 -1
- package/dist/models/ActivityLimitBankModel.d.ts +1 -1
- package/dist/models/ActivityLimitBankModel.js +1 -1
- package/dist/models/ActivityTypeBankModel.d.ts +1 -1
- package/dist/models/ActivityTypeBankModel.js +1 -1
- package/dist/models/AssetBankModel.d.ts +1 -1
- package/dist/models/AssetBankModel.js +1 -1
- package/dist/models/AssetListBankModel.d.ts +1 -1
- package/dist/models/AssetListBankModel.js +1 -1
- package/dist/models/AssetTypesBankModel.d.ts +1 -1
- package/dist/models/AssetTypesBankModel.js +1 -1
- package/dist/models/BankBankModel.d.ts +1 -1
- package/dist/models/BankBankModel.js +1 -1
- package/dist/models/BankFeatureBankModel.d.ts +1 -1
- package/dist/models/BankFeatureBankModel.js +1 -1
- package/dist/models/BankListBankModel.d.ts +1 -1
- package/dist/models/BankListBankModel.js +1 -1
- package/dist/models/BankTypeBankModel.d.ts +1 -1
- package/dist/models/BankTypeBankModel.js +1 -1
- package/dist/models/ComplianceCheckBankModel.d.ts +1 -1
- package/dist/models/ComplianceCheckBankModel.js +1 -1
- package/dist/models/ComplianceCheckOutcomeBankModel.d.ts +1 -1
- package/dist/models/ComplianceCheckOutcomeBankModel.js +1 -1
- package/dist/models/ComplianceCheckTypeBankModel.d.ts +1 -1
- package/dist/models/ComplianceCheckTypeBankModel.js +1 -1
- package/dist/models/ComplianceDecisionBankModel.d.ts +1 -1
- package/dist/models/ComplianceDecisionBankModel.js +1 -1
- package/dist/models/ComplianceDecisionStateBankModel.d.ts +1 -1
- package/dist/models/ComplianceDecisionStateBankModel.js +1 -1
- package/dist/models/ComplianceDecisionTypeBankModel.d.ts +1 -1
- package/dist/models/ComplianceDecisionTypeBankModel.js +1 -1
- package/dist/models/CounterpartyAddressBankModel.d.ts +2 -2
- package/dist/models/CounterpartyAddressBankModel.js +1 -1
- package/dist/models/CounterpartyAliasesInnerBankModel.d.ts +1 -1
- package/dist/models/CounterpartyAliasesInnerBankModel.js +1 -1
- package/dist/models/CounterpartyBankModel.d.ts +1 -1
- package/dist/models/CounterpartyBankModel.js +1 -1
- package/dist/models/CounterpartyListBankModel.d.ts +1 -1
- package/dist/models/CounterpartyListBankModel.js +1 -1
- package/dist/models/CounterpartyNameBankModel.d.ts +1 -1
- package/dist/models/CounterpartyNameBankModel.js +1 -1
- package/dist/models/CounterpartyStateBankModel.d.ts +1 -1
- package/dist/models/CounterpartyStateBankModel.js +1 -1
- package/dist/models/CounterpartyTypeBankModel.d.ts +1 -1
- package/dist/models/CounterpartyTypeBankModel.js +1 -1
- package/dist/models/CustomerAddressBankModel.d.ts +2 -2
- package/dist/models/CustomerAddressBankModel.js +1 -1
- package/dist/models/CustomerAliasesInnerBankModel.d.ts +1 -1
- package/dist/models/CustomerAliasesInnerBankModel.js +1 -1
- package/dist/models/CustomerBankModel.d.ts +1 -1
- package/dist/models/CustomerBankModel.js +1 -1
- package/dist/models/CustomerListBankModel.d.ts +1 -1
- package/dist/models/CustomerListBankModel.js +1 -1
- package/dist/models/CustomerNameBankModel.d.ts +1 -1
- package/dist/models/CustomerNameBankModel.js +1 -1
- package/dist/models/CustomerStateBankModel.d.ts +1 -1
- package/dist/models/CustomerStateBankModel.js +1 -1
- package/dist/models/CustomerTypeBankModel.d.ts +1 -1
- package/dist/models/CustomerTypeBankModel.js +1 -1
- package/dist/models/DepositAddressBankModel.d.ts +1 -1
- package/dist/models/DepositAddressBankModel.js +1 -1
- package/dist/models/DepositAddressFormatBankModel.d.ts +1 -1
- package/dist/models/DepositAddressFormatBankModel.js +1 -1
- package/dist/models/DepositAddressListBankModel.d.ts +1 -1
- package/dist/models/DepositAddressListBankModel.js +1 -1
- package/dist/models/DepositAddressStateBankModel.d.ts +1 -1
- package/dist/models/DepositAddressStateBankModel.js +1 -1
- package/dist/models/DepositBankAccountAccountDetailsInnerBankModel.d.ts +1 -1
- package/dist/models/DepositBankAccountAccountDetailsInnerBankModel.js +1 -1
- package/dist/models/DepositBankAccountBankModel.d.ts +1 -1
- package/dist/models/DepositBankAccountBankModel.js +1 -1
- package/dist/models/DepositBankAccountCounterpartyAddressBankModel.d.ts +2 -2
- package/dist/models/DepositBankAccountCounterpartyAddressBankModel.js +1 -1
- package/dist/models/DepositBankAccountListBankModel.d.ts +1 -1
- package/dist/models/DepositBankAccountListBankModel.js +1 -1
- package/dist/models/DepositBankAccountRoutingDetailsInnerBankModel.d.ts +1 -1
- package/dist/models/DepositBankAccountRoutingDetailsInnerBankModel.js +1 -1
- package/dist/models/DepositBankAccountRoutingNumberTypeBankModel.d.ts +1 -1
- package/dist/models/DepositBankAccountRoutingNumberTypeBankModel.js +1 -1
- package/dist/models/DepositBankAccountStateBankModel.d.ts +1 -1
- package/dist/models/DepositBankAccountStateBankModel.js +1 -1
- package/dist/models/ErrorResponseBankModel.d.ts +1 -1
- package/dist/models/ErrorResponseBankModel.js +1 -1
- package/dist/models/ExternalBankAccountBalancesBankModel.d.ts +1 -1
- package/dist/models/ExternalBankAccountBalancesBankModel.js +1 -1
- package/dist/models/ExternalBankAccountBankModel.d.ts +1 -1
- package/dist/models/ExternalBankAccountBankModel.js +1 -1
- package/dist/models/ExternalBankAccountKindBankModel.d.ts +1 -1
- package/dist/models/ExternalBankAccountKindBankModel.js +1 -1
- package/dist/models/ExternalBankAccountListBankModel.d.ts +1 -1
- package/dist/models/ExternalBankAccountListBankModel.js +1 -1
- package/dist/models/ExternalBankAccountPiiInnerAddressesInnerBankModel.d.ts +2 -2
- package/dist/models/ExternalBankAccountPiiInnerAddressesInnerBankModel.js +1 -1
- package/dist/models/ExternalBankAccountPiiInnerBankModel.d.ts +1 -1
- package/dist/models/ExternalBankAccountPiiInnerBankModel.js +1 -1
- package/dist/models/ExternalBankAccountPiiInnerRoutingDetailsInnerBankModel.d.ts +1 -1
- package/dist/models/ExternalBankAccountPiiInnerRoutingDetailsInnerBankModel.js +1 -1
- package/dist/models/ExternalBankAccountStateBankModel.d.ts +1 -1
- package/dist/models/ExternalBankAccountStateBankModel.js +1 -1
- package/dist/models/ExternalWalletBankModel.d.ts +1 -1
- package/dist/models/ExternalWalletBankModel.js +1 -1
- package/dist/models/ExternalWalletEnvironmentBankModel.d.ts +1 -1
- package/dist/models/ExternalWalletEnvironmentBankModel.js +1 -1
- package/dist/models/ExternalWalletListBankModel.d.ts +1 -1
- package/dist/models/ExternalWalletListBankModel.js +1 -1
- package/dist/models/ExternalWalletStateBankModel.d.ts +1 -1
- package/dist/models/ExternalWalletStateBankModel.js +1 -1
- package/dist/models/IdentificationNumberBankModel.d.ts +1 -1
- package/dist/models/IdentificationNumberBankModel.js +1 -1
- package/dist/models/IdentityVerificationBankModel.d.ts +1 -1
- package/dist/models/IdentityVerificationBankModel.js +1 -1
- package/dist/models/IdentityVerificationListBankModel.d.ts +1 -1
- package/dist/models/IdentityVerificationListBankModel.js +1 -1
- package/dist/models/IdentityVerificationMethodBankModel.d.ts +1 -1
- package/dist/models/IdentityVerificationMethodBankModel.js +1 -1
- package/dist/models/IdentityVerificationOutcomeBankModel.d.ts +1 -1
- package/dist/models/IdentityVerificationOutcomeBankModel.js +1 -1
- package/dist/models/IdentityVerificationPersonaStateBankModel.d.ts +1 -1
- package/dist/models/IdentityVerificationPersonaStateBankModel.js +1 -1
- package/dist/models/IdentityVerificationStateBankModel.d.ts +1 -1
- package/dist/models/IdentityVerificationStateBankModel.js +1 -1
- package/dist/models/IdentityVerificationTypeBankModel.d.ts +1 -1
- package/dist/models/IdentityVerificationTypeBankModel.js +1 -1
- package/dist/models/IdentityVerificationWithDetailsBankModel.d.ts +1 -1
- package/dist/models/IdentityVerificationWithDetailsBankModel.js +1 -1
- package/dist/models/IdentityVerificationWithDetailsPiiAddressBankModel.d.ts +2 -2
- package/dist/models/IdentityVerificationWithDetailsPiiAddressBankModel.js +1 -1
- package/dist/models/IdentityVerificationWithDetailsPiiBankModel.d.ts +1 -1
- package/dist/models/IdentityVerificationWithDetailsPiiBankModel.js +1 -1
- package/dist/models/IdentityVerificationWithDetailsPiiNameBankModel.d.ts +1 -1
- package/dist/models/IdentityVerificationWithDetailsPiiNameBankModel.js +1 -1
- package/dist/models/InvoiceBankModel.d.ts +1 -1
- package/dist/models/InvoiceBankModel.js +1 -1
- package/dist/models/InvoiceListBankModel.d.ts +1 -1
- package/dist/models/InvoiceListBankModel.js +1 -1
- package/dist/models/PatchBankBankModel.d.ts +6 -5
- package/dist/models/PatchBankBankModel.js +1 -1
- package/dist/models/PatchCustomerBankModel.d.ts +2 -1
- package/dist/models/PatchCustomerBankModel.js +1 -1
- package/dist/models/PatchExternalBankAccountBankModel.d.ts +2 -1
- package/dist/models/PatchExternalBankAccountBankModel.js +1 -1
- package/dist/models/PaymentInstructionBankModel.d.ts +1 -1
- package/dist/models/PaymentInstructionBankModel.js +1 -1
- package/dist/models/PaymentInstructionListBankModel.d.ts +1 -1
- package/dist/models/PaymentInstructionListBankModel.js +1 -1
- package/dist/models/PostAccountBankModel.d.ts +3 -2
- package/dist/models/PostAccountBankModel.js +1 -1
- package/dist/models/PostBankBankModel.d.ts +13 -12
- package/dist/models/PostBankBankModel.js +1 -1
- package/dist/models/PostCounterpartyAddressBankModel.d.ts +2 -1
- package/dist/models/PostCounterpartyAddressBankModel.js +1 -1
- package/dist/models/PostCounterpartyAliasesInnerBankModel.d.ts +2 -2
- package/dist/models/PostCounterpartyAliasesInnerBankModel.js +1 -1
- package/dist/models/PostCounterpartyBankModel.d.ts +8 -7
- package/dist/models/PostCounterpartyBankModel.js +1 -1
- package/dist/models/PostCounterpartyNameBankModel.d.ts +10 -9
- package/dist/models/PostCounterpartyNameBankModel.js +1 -1
- package/dist/models/PostCustomerAddressBankModel.d.ts +11 -10
- package/dist/models/PostCustomerAddressBankModel.js +1 -1
- package/dist/models/PostCustomerBankModel.d.ts +7 -6
- package/dist/models/PostCustomerBankModel.js +1 -1
- package/dist/models/PostCustomerNameBankModel.d.ts +5 -4
- package/dist/models/PostCustomerNameBankModel.js +1 -1
- package/dist/models/PostDepositAddressBankModel.d.ts +2 -1
- package/dist/models/PostDepositAddressBankModel.js +1 -1
- package/dist/models/PostDepositBankAccountBankModel.d.ts +5 -4
- package/dist/models/PostDepositBankAccountBankModel.js +1 -1
- package/dist/models/PostExternalBankAccountBankModel.d.ts +16 -15
- package/dist/models/PostExternalBankAccountBankModel.js +1 -1
- package/dist/models/PostExternalBankAccountCounterpartyAddressBankModel.d.ts +11 -11
- package/dist/models/PostExternalBankAccountCounterpartyAddressBankModel.js +1 -1
- package/dist/models/PostExternalBankAccountCounterpartyBankAccountBankModel.d.ts +8 -8
- package/dist/models/PostExternalBankAccountCounterpartyBankAccountBankModel.js +1 -1
- package/dist/models/PostExternalBankAccountCounterpartyNameBankModel.d.ts +9 -9
- package/dist/models/PostExternalBankAccountCounterpartyNameBankModel.js +1 -1
- package/dist/models/PostExternalWalletBankModel.d.ts +3 -2
- package/dist/models/PostExternalWalletBankModel.js +1 -1
- package/dist/models/PostFeeBankModel.d.ts +6 -5
- package/dist/models/PostFeeBankModel.js +1 -1
- package/dist/models/PostIdentificationNumberBankModel.d.ts +2 -1
- package/dist/models/PostIdentificationNumberBankModel.js +1 -1
- package/dist/models/PostIdentityVerificationAddressBankModel.d.ts +11 -11
- package/dist/models/PostIdentityVerificationAddressBankModel.js +1 -1
- package/dist/models/PostIdentityVerificationBankModel.d.ts +36 -35
- package/dist/models/PostIdentityVerificationBankModel.js +13 -13
- package/dist/models/PostIdentityVerificationNameBankModel.d.ts +6 -6
- package/dist/models/PostIdentityVerificationNameBankModel.js +1 -1
- package/dist/models/PostInvoiceBankModel.d.ts +3 -2
- package/dist/models/PostInvoiceBankModel.js +1 -1
- package/dist/models/PostPaymentInstructionBankModel.d.ts +2 -1
- package/dist/models/PostPaymentInstructionBankModel.js +1 -1
- package/dist/models/PostQuoteBankModel.d.ts +35 -24
- package/dist/models/PostQuoteBankModel.js +13 -2
- package/dist/models/PostTradeBankModel.d.ts +2 -1
- package/dist/models/PostTradeBankModel.js +1 -1
- package/dist/models/PostTransferBankModel.d.ts +45 -28
- package/dist/models/PostTransferBankModel.js +13 -2
- package/dist/models/PostTransferParticipantBankModel.d.ts +3 -2
- package/dist/models/PostTransferParticipantBankModel.js +1 -1
- package/dist/models/PostWorkflowBankModel.d.ts +12 -11
- package/dist/models/PostWorkflowBankModel.js +1 -1
- package/dist/models/QuoteBankModel.d.ts +1 -1
- package/dist/models/QuoteBankModel.js +1 -1
- package/dist/models/QuoteListBankModel.d.ts +1 -1
- package/dist/models/QuoteListBankModel.js +1 -1
- package/dist/models/QuoteSideBankModel.d.ts +1 -1
- package/dist/models/QuoteSideBankModel.js +1 -1
- package/dist/models/QuoteTypeBankModel.d.ts +1 -1
- package/dist/models/QuoteTypeBankModel.js +1 -1
- package/dist/models/SymbolPriceBankModel.d.ts +1 -1
- package/dist/models/SymbolPriceBankModel.js +1 -1
- package/dist/models/TradeBankModel.d.ts +1 -1
- package/dist/models/TradeBankModel.js +1 -1
- package/dist/models/TradeFailureCodeBankModel.d.ts +1 -1
- package/dist/models/TradeFailureCodeBankModel.js +1 -1
- package/dist/models/TradeListBankModel.d.ts +1 -1
- package/dist/models/TradeListBankModel.js +1 -1
- package/dist/models/TradeSideBankModel.d.ts +1 -1
- package/dist/models/TradeSideBankModel.js +1 -1
- package/dist/models/TradeStateBankModel.d.ts +1 -1
- package/dist/models/TradeStateBankModel.js +1 -1
- package/dist/models/TradeTypeBankModel.d.ts +1 -1
- package/dist/models/TradeTypeBankModel.js +1 -1
- package/dist/models/TransferAccountTypeBankModel.d.ts +1 -1
- package/dist/models/TransferAccountTypeBankModel.js +1 -1
- package/dist/models/TransferBankModel.d.ts +1 -1
- package/dist/models/TransferBankModel.js +1 -1
- package/dist/models/TransferDestinationAccountBankModel.d.ts +1 -1
- package/dist/models/TransferDestinationAccountBankModel.js +1 -1
- package/dist/models/TransferFailureCodeBankModel.d.ts +1 -1
- package/dist/models/TransferFailureCodeBankModel.js +1 -1
- package/dist/models/TransferListBankModel.d.ts +1 -1
- package/dist/models/TransferListBankModel.js +1 -1
- package/dist/models/TransferParticipantBankModel.d.ts +1 -1
- package/dist/models/TransferParticipantBankModel.js +1 -1
- package/dist/models/TransferSideBankModel.d.ts +1 -1
- package/dist/models/TransferSideBankModel.js +1 -1
- package/dist/models/TransferSourceAccountBankModel.d.ts +1 -1
- package/dist/models/TransferSourceAccountBankModel.js +1 -1
- package/dist/models/TransferStateBankModel.d.ts +1 -1
- package/dist/models/TransferStateBankModel.js +1 -1
- package/dist/models/TransferTypeBankModel.d.ts +1 -1
- package/dist/models/TransferTypeBankModel.js +1 -1
- package/dist/models/WorkflowBankModel.d.ts +1 -1
- package/dist/models/WorkflowBankModel.js +1 -1
- package/dist/models/WorkflowStateBankModel.d.ts +1 -1
- package/dist/models/WorkflowStateBankModel.js +1 -1
- package/dist/models/WorkflowTypeBankModel.d.ts +1 -1
- package/dist/models/WorkflowTypeBankModel.js +1 -1
- package/dist/models/WorkflowWithDetailsAllOfBankModel.d.ts +1 -1
- package/dist/models/WorkflowWithDetailsAllOfBankModel.js +1 -1
- package/dist/models/WorkflowWithDetailsBankModel.d.ts +1 -1
- package/dist/models/WorkflowWithDetailsBankModel.js +1 -1
- package/dist/models/WorkflowsListBankModel.d.ts +1 -1
- package/dist/models/WorkflowsListBankModel.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cybrid Bank API
|
|
3
3
|
* # 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:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts: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:write identity_verifications: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:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts: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\' ``` <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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: v0.121.
|
|
5
|
+
* The version of the OpenAPI document: v0.121.13
|
|
6
6
|
* Contact: support@cybrid.app
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { PostFeeBankModel } from './';
|
|
13
13
|
/**
|
|
14
|
+
* Request body for quote creation.
|
|
14
15
|
* @export
|
|
15
16
|
* @interface PostQuoteBankModel
|
|
16
17
|
*/
|
|
@@ -34,61 +35,61 @@ export interface PostQuoteBankModel {
|
|
|
34
35
|
*/
|
|
35
36
|
customer_guid?: string | null;
|
|
36
37
|
/**
|
|
37
|
-
* The
|
|
38
|
-
* @type {
|
|
38
|
+
* The amount to be received in base units of the currency: currency is \"asset\" for buy and \"counter_asset\" for sell for trade quotes.
|
|
39
|
+
* @type {number}
|
|
39
40
|
* @memberof PostQuoteBankModel
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
receive_amount?: number | null;
|
|
42
43
|
/**
|
|
43
|
-
* The
|
|
44
|
-
* @type {
|
|
44
|
+
* The amount to be delivered in base units of the currency: currency is \"counter_asset\" for buy and \"asset\" for sell for trade quotes.
|
|
45
|
+
* @type {number}
|
|
45
46
|
* @memberof PostQuoteBankModel
|
|
46
47
|
*/
|
|
47
|
-
|
|
48
|
+
deliver_amount?: number | null;
|
|
48
49
|
/**
|
|
49
|
-
*
|
|
50
|
+
* The asset code the quote was requested for. Required when product_type is lightning_transfer, product_type is book_transfer, product_type is funding, product_type is crypto_transfer, or product_type is inter_account.
|
|
50
51
|
* @type {string}
|
|
51
52
|
* @memberof PostQuoteBankModel
|
|
52
53
|
*/
|
|
53
|
-
|
|
54
|
+
asset?: string | null;
|
|
54
55
|
/**
|
|
55
|
-
* The
|
|
56
|
+
* The network address to pay the invoice to. Required when product_type is lightning_transfer.
|
|
56
57
|
* @type {string}
|
|
57
58
|
* @memberof PostQuoteBankModel
|
|
58
59
|
*/
|
|
59
|
-
|
|
60
|
+
network_address?: string | null;
|
|
60
61
|
/**
|
|
61
|
-
* The
|
|
62
|
-
* @type {
|
|
62
|
+
* The custom fees associated with the quote Optional when product_type is lightning_transfer, product_type is funding, product_type is trading, product_type is crypto_transfer, or product_type is trading_exit.
|
|
63
|
+
* @type {Array<PostFeeBankModel>}
|
|
63
64
|
* @memberof PostQuoteBankModel
|
|
64
65
|
*/
|
|
65
|
-
|
|
66
|
+
fees?: Array<PostFeeBankModel> | null;
|
|
66
67
|
/**
|
|
67
|
-
* The
|
|
68
|
-
* @type {
|
|
68
|
+
* The direction for trade quotes: either \'buy\' or \'sell\'. The direction for funding quotes: either \'deposit\' or \'withdrawal\'. The direction for crypto transfer quotes: \'withdrawal\'. Book transfers do not require a side. They are all \'deposit\'s. Required when product_type is funding, product_type is trading, or product_type is crypto_transfer.
|
|
69
|
+
* @type {string}
|
|
69
70
|
* @memberof PostQuoteBankModel
|
|
70
71
|
*/
|
|
71
|
-
|
|
72
|
+
side?: PostQuoteBankModelSideEnum;
|
|
72
73
|
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {
|
|
74
|
+
* Symbol the quote is being requested for. Format is \"asset-counter_asset\" in uppercase. See the Symbols API for a complete list of cryptocurrencies supported. Required when product_type is trading.
|
|
75
|
+
* @type {string}
|
|
75
76
|
* @memberof PostQuoteBankModel
|
|
76
77
|
*/
|
|
77
|
-
|
|
78
|
+
symbol?: string | null;
|
|
78
79
|
/**
|
|
79
|
-
* The guid of the related trade. Only present on `exit` trades.
|
|
80
|
+
* The guid of the related trade. Only present on `exit` trades. Required when product_type is trading_exit.
|
|
80
81
|
* @type {string}
|
|
81
82
|
* @memberof PostQuoteBankModel
|
|
82
83
|
*/
|
|
83
|
-
reference_trade_guid?: string;
|
|
84
|
+
reference_trade_guid?: string | null;
|
|
84
85
|
/**
|
|
85
|
-
* The source account\'s identifier. Required
|
|
86
|
+
* The source account\'s identifier. Required when product_type is inter_account.
|
|
86
87
|
* @type {string}
|
|
87
88
|
* @memberof PostQuoteBankModel
|
|
88
89
|
*/
|
|
89
90
|
source_account_guid?: string | null;
|
|
90
91
|
/**
|
|
91
|
-
* The destination account\'s identifier. Required
|
|
92
|
+
* The destination account\'s identifier. Required when product_type is inter_account.
|
|
92
93
|
* @type {string}
|
|
93
94
|
* @memberof PostQuoteBankModel
|
|
94
95
|
*/
|
|
@@ -107,3 +108,13 @@ export declare enum PostQuoteBankModelProductTypeEnum {
|
|
|
107
108
|
InterAccount = "inter_account",
|
|
108
109
|
LightningTransfer = "lightning_transfer"
|
|
109
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* @export
|
|
113
|
+
* @enum {string}
|
|
114
|
+
*/
|
|
115
|
+
export declare enum PostQuoteBankModelSideEnum {
|
|
116
|
+
Deposit = "deposit",
|
|
117
|
+
Withdrawal = "withdrawal",
|
|
118
|
+
Buy = "buy",
|
|
119
|
+
Sell = "sell"
|
|
120
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cybrid Bank API
|
|
5
5
|
* # 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:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts: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:write identity_verifications: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:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts: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\' ``` <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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: v0.121.
|
|
7
|
+
* The version of the OpenAPI document: v0.121.13
|
|
8
8
|
* Contact: support@cybrid.app
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.PostQuoteBankModelProductTypeEnum = void 0;
|
|
15
|
+
exports.PostQuoteBankModelSideEnum = exports.PostQuoteBankModelProductTypeEnum = void 0;
|
|
16
16
|
/**
|
|
17
17
|
* @export
|
|
18
18
|
* @enum {string}
|
|
@@ -27,3 +27,14 @@ var PostQuoteBankModelProductTypeEnum;
|
|
|
27
27
|
PostQuoteBankModelProductTypeEnum["InterAccount"] = "inter_account";
|
|
28
28
|
PostQuoteBankModelProductTypeEnum["LightningTransfer"] = "lightning_transfer";
|
|
29
29
|
})(PostQuoteBankModelProductTypeEnum = exports.PostQuoteBankModelProductTypeEnum || (exports.PostQuoteBankModelProductTypeEnum = {}));
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
* @enum {string}
|
|
33
|
+
*/
|
|
34
|
+
var PostQuoteBankModelSideEnum;
|
|
35
|
+
(function (PostQuoteBankModelSideEnum) {
|
|
36
|
+
PostQuoteBankModelSideEnum["Deposit"] = "deposit";
|
|
37
|
+
PostQuoteBankModelSideEnum["Withdrawal"] = "withdrawal";
|
|
38
|
+
PostQuoteBankModelSideEnum["Buy"] = "buy";
|
|
39
|
+
PostQuoteBankModelSideEnum["Sell"] = "sell";
|
|
40
|
+
})(PostQuoteBankModelSideEnum = exports.PostQuoteBankModelSideEnum || (exports.PostQuoteBankModelSideEnum = {}));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cybrid Bank API
|
|
3
3
|
* # 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:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts: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:write identity_verifications: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:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts: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\' ``` <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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: v0.121.
|
|
5
|
+
* The version of the OpenAPI document: v0.121.13
|
|
6
6
|
* Contact: support@cybrid.app
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
+
* Request body for trade creation.
|
|
13
14
|
* @export
|
|
14
15
|
* @interface PostTradeBankModel
|
|
15
16
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cybrid Bank API
|
|
5
5
|
* # 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:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts: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:write identity_verifications: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:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts: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\' ``` <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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: v0.121.
|
|
7
|
+
* The version of the OpenAPI document: v0.121.13
|
|
8
8
|
* Contact: support@cybrid.app
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cybrid Bank API
|
|
3
3
|
* # 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:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts: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:write identity_verifications: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:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts: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\' ``` <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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: v0.121.
|
|
5
|
+
* The version of the OpenAPI document: v0.121.13
|
|
6
6
|
* Contact: support@cybrid.app
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { PostTransferParticipantBankModel } from './';
|
|
13
13
|
/**
|
|
14
|
+
* Request body for transfer creation.
|
|
14
15
|
* @export
|
|
15
16
|
* @interface PostTransferBankModel
|
|
16
17
|
*/
|
|
@@ -28,89 +29,95 @@ export interface PostTransferBankModel {
|
|
|
28
29
|
*/
|
|
29
30
|
transfer_type: PostTransferBankModelTransferTypeEnum;
|
|
30
31
|
/**
|
|
31
|
-
* The customer\'s identifier.
|
|
32
|
+
* The customer\'s \'plaid\' or \'plaid_processor_token\' external bank account\'s identifier. Required when transfer_type is funding or transfer_type is instant_funding.
|
|
32
33
|
* @type {string}
|
|
33
34
|
* @memberof PostTransferBankModel
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
+
external_bank_account_guid?: string | null;
|
|
36
37
|
/**
|
|
37
|
-
* The identifier for the fiat account to use for the transfer. Required if the customer or bank has multiple fiat accounts.
|
|
38
|
+
* The identifier for the fiat account to use for the transfer. Required if the customer or bank has multiple fiat accounts. Optional when transfer_type is funding.
|
|
38
39
|
* @type {string}
|
|
39
40
|
* @memberof PostTransferBankModel
|
|
40
41
|
*/
|
|
41
42
|
fiat_account_guid?: string | null;
|
|
42
43
|
/**
|
|
43
|
-
* The identifier for
|
|
44
|
+
* The deposit bank account\'s identifier. Only valid for withdrawals. The deposit bank account must be owned by the customer or bank initiating the transfer. Optional when transfer_type is funding.
|
|
44
45
|
* @type {string}
|
|
45
46
|
* @memberof PostTransferBankModel
|
|
46
47
|
*/
|
|
47
|
-
|
|
48
|
+
send_as_deposit_bank_account_guid?: string | null;
|
|
48
49
|
/**
|
|
49
|
-
* The
|
|
50
|
+
* The desired payment rail to initiate the transfer for. Optional when transfer_type is funding.
|
|
50
51
|
* @type {string}
|
|
51
52
|
* @memberof PostTransferBankModel
|
|
52
53
|
*/
|
|
53
|
-
|
|
54
|
+
payment_rail?: PostTransferBankModelPaymentRailEnum;
|
|
54
55
|
/**
|
|
55
|
-
* The
|
|
56
|
+
* The memo to send to the counterparty. Optional when transfer_type is funding.
|
|
56
57
|
* @type {string}
|
|
57
58
|
* @memberof PostTransferBankModel
|
|
58
59
|
*/
|
|
59
|
-
|
|
60
|
+
beneficiary_memo?: string | null;
|
|
60
61
|
/**
|
|
61
|
-
* The source participants for the transfer.
|
|
62
|
+
* The source participants for the transfer. Optional when transfer_type is funding, transfer_type is instant_funding, transfer_type is book, transfer_type is crypto, or transfer_type is lightning.
|
|
62
63
|
* @type {Array<PostTransferParticipantBankModel>}
|
|
63
64
|
* @memberof PostTransferBankModel
|
|
64
65
|
*/
|
|
65
66
|
source_participants?: Array<PostTransferParticipantBankModel> | null;
|
|
66
67
|
/**
|
|
67
|
-
* The destination
|
|
68
|
+
* The destination participants for the transfer. Optional when transfer_type is funding, transfer_type is instant_funding, transfer_type is book, transfer_type is crypto, or transfer_type is lightning.
|
|
69
|
+
* @type {Array<PostTransferParticipantBankModel>}
|
|
70
|
+
* @memberof PostTransferBankModel
|
|
71
|
+
*/
|
|
72
|
+
destination_participants?: Array<PostTransferParticipantBankModel> | null;
|
|
73
|
+
/**
|
|
74
|
+
* The optional expected error to simulate transfer failure. Optional when transfer_type is funding, transfer_type is instant_funding, transfer_type is book, transfer_type is crypto, transfer_type is inter_account, or transfer_type is lightning.
|
|
68
75
|
* @type {string}
|
|
69
76
|
* @memberof PostTransferBankModel
|
|
70
77
|
*/
|
|
71
|
-
|
|
78
|
+
expected_error?: string | null;
|
|
72
79
|
/**
|
|
73
|
-
* The
|
|
74
|
-
* @type {
|
|
80
|
+
* The identifier for the fiat account to use for the transfer. Required if the bank has multiple fiat accounts. Optional when transfer_type is instant_funding or transfer_type is lightning.
|
|
81
|
+
* @type {string}
|
|
75
82
|
* @memberof PostTransferBankModel
|
|
76
83
|
*/
|
|
77
|
-
|
|
84
|
+
bank_fiat_account_guid?: string | null;
|
|
78
85
|
/**
|
|
79
|
-
* The customer
|
|
86
|
+
* The identifier for the fiat account to use for the transfer. Required if the customer has multiple fiat accounts. Optional when transfer_type is instant_funding or transfer_type is lightning.
|
|
80
87
|
* @type {string}
|
|
81
88
|
* @memberof PostTransferBankModel
|
|
82
89
|
*/
|
|
83
|
-
|
|
90
|
+
customer_fiat_account_guid?: string | null;
|
|
84
91
|
/**
|
|
85
|
-
* The
|
|
92
|
+
* The source account\'s identifier. Required when transfer_type is book or transfer_type is inter_account.
|
|
86
93
|
* @type {string}
|
|
87
94
|
* @memberof PostTransferBankModel
|
|
88
95
|
*/
|
|
89
|
-
|
|
96
|
+
source_account_guid?: string | null;
|
|
90
97
|
/**
|
|
91
|
-
* The
|
|
98
|
+
* The destination account\'s identifier. Required when transfer_type is book or transfer_type is inter_account.
|
|
92
99
|
* @type {string}
|
|
93
100
|
* @memberof PostTransferBankModel
|
|
94
101
|
*/
|
|
95
|
-
|
|
102
|
+
destination_account_guid?: string | null;
|
|
96
103
|
/**
|
|
97
|
-
* The
|
|
104
|
+
* The customer\'s external wallet\'s identifier. Required when transfer_type is crypto.
|
|
98
105
|
* @type {string}
|
|
99
106
|
* @memberof PostTransferBankModel
|
|
100
107
|
*/
|
|
101
|
-
|
|
108
|
+
external_wallet_guid?: string | null;
|
|
102
109
|
/**
|
|
103
|
-
* The
|
|
110
|
+
* The customer\'s identifier. Required when transfer_type is lightning.
|
|
104
111
|
* @type {string}
|
|
105
112
|
* @memberof PostTransferBankModel
|
|
106
113
|
*/
|
|
107
|
-
|
|
114
|
+
customer_guid?: string | null;
|
|
108
115
|
/**
|
|
109
|
-
* The
|
|
116
|
+
* The network fee account\'s identifier. Required for network fee transfers. Must be the identifier for the customer\'s or bank\'s fiat or trading account. For customer\'s to pay the network fees, include the customer\'s fiat or trading account guid. For bank\'s to pay the network fees, include the bank\'s fiat or trading account guid. Required when transfer_type is lightning.
|
|
110
117
|
* @type {string}
|
|
111
118
|
* @memberof PostTransferBankModel
|
|
112
119
|
*/
|
|
113
|
-
|
|
120
|
+
network_fee_account_guid?: string | null;
|
|
114
121
|
/**
|
|
115
122
|
* The labels associated with the transfer.
|
|
116
123
|
* @type {Array<string>}
|
|
@@ -130,3 +137,13 @@ export declare enum PostTransferBankModelTransferTypeEnum {
|
|
|
130
137
|
InterAccount = "inter_account",
|
|
131
138
|
Lightning = "lightning"
|
|
132
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* @export
|
|
142
|
+
* @enum {string}
|
|
143
|
+
*/
|
|
144
|
+
export declare enum PostTransferBankModelPaymentRailEnum {
|
|
145
|
+
Ach = "ach",
|
|
146
|
+
Eft = "eft",
|
|
147
|
+
Wire = "wire",
|
|
148
|
+
Rtp = "rtp"
|
|
149
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Cybrid Bank API
|
|
5
5
|
* # 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:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts: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:write identity_verifications: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:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts: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\' ``` <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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: v0.121.
|
|
7
|
+
* The version of the OpenAPI document: v0.121.13
|
|
8
8
|
* Contact: support@cybrid.app
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.PostTransferBankModelTransferTypeEnum = void 0;
|
|
15
|
+
exports.PostTransferBankModelPaymentRailEnum = exports.PostTransferBankModelTransferTypeEnum = void 0;
|
|
16
16
|
/**
|
|
17
17
|
* @export
|
|
18
18
|
* @enum {string}
|
|
@@ -26,3 +26,14 @@ var PostTransferBankModelTransferTypeEnum;
|
|
|
26
26
|
PostTransferBankModelTransferTypeEnum["InterAccount"] = "inter_account";
|
|
27
27
|
PostTransferBankModelTransferTypeEnum["Lightning"] = "lightning";
|
|
28
28
|
})(PostTransferBankModelTransferTypeEnum = exports.PostTransferBankModelTransferTypeEnum || (exports.PostTransferBankModelTransferTypeEnum = {}));
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
* @enum {string}
|
|
32
|
+
*/
|
|
33
|
+
var PostTransferBankModelPaymentRailEnum;
|
|
34
|
+
(function (PostTransferBankModelPaymentRailEnum) {
|
|
35
|
+
PostTransferBankModelPaymentRailEnum["Ach"] = "ach";
|
|
36
|
+
PostTransferBankModelPaymentRailEnum["Eft"] = "eft";
|
|
37
|
+
PostTransferBankModelPaymentRailEnum["Wire"] = "wire";
|
|
38
|
+
PostTransferBankModelPaymentRailEnum["Rtp"] = "rtp";
|
|
39
|
+
})(PostTransferBankModelPaymentRailEnum = exports.PostTransferBankModelPaymentRailEnum || (exports.PostTransferBankModelPaymentRailEnum = {}));
|