openapi: 3.0.0 info: title: Ebury API description: | Ebury API allows customers: to retrieve accounts, balances, beneficiaries, and transactions; to get buy/sell estimates and quotes, book trades and retrieve trade history; to allocate payments to a trade and beneficiary, and to submit payments in bulk; to download documents such as trade receipt, payment instruction and payment receipt; to manage the authorised persons on their account. The Metadata API allows applications to clarify some parts of the Ebury API that are impractical to express schematically. version: '0.1' termsOfService: https://docs.ebury.io/#terms-of-use x-api-status-urls: - https://api.ebury.io x-konfig-ignore: object-with-no-properties: true servers: - url: https://{environment}.ebury.io variables: environment: default: api enum: - api - sandbox type: string tags: - name: Multi Payments - name: OAuth2.0 - name: Payments - name: Beneficiaries - name: Account details - name: Transactions - name: Contacts - name: Trades - name: Accounts - name: Balances - name: Metadata - name: Ping - name: Quotes - name: Webhooks - name: Statements Create - name: Statement Fetch - name: Currencies - name: Clients - name: Documents - name: TrustedAuthentication paths: /account-details: get: tags: - Account details summary: Get the list of account details of the referred client operationId: AccountDetails_getList description: > Retrieve the account details of the client, possibly filtered by some criteria parameters: - description: The access token name: Authorization in: header required: true schema: type: string - description: ID of the client that owns the account details name: client_id in: query required: true schema: type: string minLength: 1 - description: Filter by the type of the account details name: account_details_type in: query required: false schema: type: string enum: - dedicated - pooled - description: Filter by the unique ID of the account name: account_id in: query required: false schema: type: string minLength: 36 maxLength: 36 - description: Filter by the country of the account details (ISO Code 2) name: country in: query required: false schema: type: string minLength: 2 maxLength: 2 pattern: '[A-Z]{2}' - description: Filter by the currency of the account details name: currency in: query required: false schema: type: string minLength: 3 maxLength: 3 pattern: '[A-Z]{3}' - description: |- Filter by the user-friendly alias of the account details. Only dedicated accounts can be filtered by alias. name: alias in: query required: false schema: type: string minLength: 1 maxLength: 50 - description: Page number to retrieve name: page in: query required: false schema: type: integer minimum: 1 - description: Maximum number of items to include in each page name: page_size in: query required: false schema: type: integer minimum: 1 responses: '200': description: Account details headers: x-total-count: description: Total number of available entries schema: type: integer content: application/json: schema: $ref: >- #/components/schemas/GetAccountDetailsDomesticInternationalResponse '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '429': description: Too many requests /account-details-beta: {} /account-details/{account_details_id}: patch: tags: - Account details summary: Update the alias of an account details operationId: AccountDetails_updateAlias description: >- Change the alias of the referred account details. Only dedicated accounts can be patched, trying to patch a pooled account will return an error. parameters: - description: The access token name: Authorization in: header required: true schema: type: string - description: Unique ID of account details name: account_details_id in: path required: true schema: type: string - description: ID of the client that owns the account name: client_id in: query required: true schema: type: string minLength: 1 requestBody: description: Payload to patch the referred account details content: application/json: schema: $ref: '#/components/schemas/PatchAccountDetailsRequest' required: true responses: '200': description: Account details updated content: application/json: schema: $ref: >- #/components/schemas/AccountDetailsDomesticInternationalResponse '401': description: Access denied due to authentication failure '404': description: Account details not found content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '405': description: Cannot patch pooled account content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '422': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '429': description: Too many requests /account-details/{account_details_id}/make-default: post: tags: - Account details summary: Mark the account as primary (default) for its holder and currency operationId: AccountDetails_markAsPrimary description: > Mark the account as primary (default) for its holder and currency. Only dedicated accounts can be set as primary, trying this operation for a pooled account will return an error. parameters: - description: The access token name: Authorization in: header required: true schema: type: string - description: Unique ID of account details name: account_details_id in: path required: true schema: type: string format: uuid - description: ID of the client that owns the account name: client_id in: query required: true schema: type: string minLength: 1 responses: '204': description: Account details marked as primary '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: | Missing client_id Access token not valid for the requested client_id content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Account details not found content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '405': description: Cannot make default a pooled account content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '409': description: | Account details not active. Invalid client ID. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '429': description: Too many requests /accounts: get: tags: - Accounts summary: Retrieve a list of accounts operationId: Accounts_listRetrieve description: > Retrieve a list of accounts for a given client ID and a list of currencies parameters: - description: A comma-separated list of currencies in: query name: currencies required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '200': description: Accounts retrieved content: application/json: schema: $ref: '#/components/schemas/AccountsListRetrieveResponse' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID not found '409': description: >- Could not update contact due to data constraint or conflict with contact status. Refer to error message for additional details '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Accounts /accounts/{account_id}: get: tags: - Accounts summary: Get an account operationId: Accounts_getAccount description: Get an account with a specific UUID parameters: - description: Account UUID in: path name: account_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '200': description: Returns the requested account content: application/json: schema: $ref: '#/components/schemas/AccountData' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID or account UUID not found '409': description: >- Could not update contact due to data constraint or conflict with contact status. Refer to error message for additional details '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Accounts /accounts/{account_id}/balances: get: tags: - Balances summary: Get a balance for a single account operationId: Balances_getSingleAccountBalance description: Retrieve all balances for a single account by account ID parameters: - description: The UUID of the account in: path name: account_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The balance types to be retrieved in: query name: balance_types required: false schema: type: string default: InterimAvailable enum: - RequiredFunds - InterimAvailable - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '200': description: Returns the requested balance content: application/json: schema: $ref: '#/components/schemas/BalancesGetSingleAccountBalanceResponse' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID or account UUID not found '409': description: >- Could not update contact due to data constraint or conflict with contact status. Refer to error message for additional details '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Balances /accounts/{account_id}/statements/file: post: tags: - Statements Create summary: Create statement file for an account operationId: StatementsCreate_statementFile description: >- Generate a statement asynchronously in PDF, CSV or MT940 format for a given account. parameters: - description: Account UUID in: path name: account_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string - description: The format of the statement to generate in: query name: format required: false schema: type: string default: pdf requestBody: description: Request Payload content: application/json: schema: $ref: '#/components/schemas/NewStatement' required: true responses: '202': description: Statement processing started content: application/json: schema: $ref: '#/components/schemas/StatementFileData' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID not found '409': description: >- Could not update contact due to data constraint or conflict with contact status. Refer to error message for additional details '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Accounts /accounts/{account_id}/statements/{statement_id}/file: get: tags: - Statement Fetch summary: Get an account operationId: StatementFetch_byUuidFile description: Get a statement for a given account by UUID parameters: - description: Account UUID in: path name: account_id required: true schema: type: string - description: Statement UUID in: path name: statement_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '200': description: Returns the requested statement file '202': description: Returns the current status of the statement content: application/json: schema: $ref: '#/components/schemas/StatementFileStatus' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID or account UUID not found '409': description: >- Could not update contact due to data constraint or conflict with contact status. Refer to error message for additional details '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Statements /accounts/{account_id}/transactions: get: tags: - Transactions summary: Get transactions for a single account operationId: Transactions_getByAccountId description: >- Retrieve all transactions for a single account by account ID, optionally filtered by value date and time with pagination support parameters: - description: The UUID of the account in: path name: account_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: Filter transactions by debit/credit type in: query name: credit_debit_indicator required: false schema: type: string enum: - credit - debit - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string - description: >- Only return transactions with value date and time after this UTC date and time. YYYY-MM-DDThh:mm format in: query name: from_value_datetime schema: type: string - description: >- Only return transactions with value date and time before this UTC date and time. YYYY-MM-DDThh:mm format in: query name: to_value_datetime schema: type: string - description: The desired page number for pagination in: query name: page schema: type: integer default: 1 - description: The number of items per page for pagination in: query name: page_size schema: type: integer default: 50 - $ref: '#/components/parameters/TransactionTypeFilter' responses: '200': description: Returns the requested transactions headers: x-total-count: description: Total number of available entries schema: type: integer content: application/json: schema: $ref: '#/components/schemas/TransactionsGetByAccountIdResponse' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID or account UUID not found '409': description: >- Could not update contact due to data constraint or conflict with contact status. Refer to error message for additional details '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '504': description: Timeout error. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Transactions /accounts/{account_id}/transactions/{transaction_id}: get: tags: - Transactions summary: Get a single transactions for an account operationId: Transactions_getSingleTransaction description: >- Retrieve a single transaction for an account by account id and transaction id parameters: - description: The UUID of the account in: path name: account_id required: true schema: type: string - description: The UUID of the transaction in: path name: transaction_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: true schema: type: string responses: '200': description: Returns the requested transactions content: application/json: schema: $ref: '#/components/schemas/TransactionData' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID or account UUID not found '409': description: >- Could not update contact due to data constraint or conflict with contact status. Refer to error message for additional details '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '504': description: Timeout error. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Transactions /authenticate: get: tags: - OAuth2.0 summary: Authenticate operationId: OAuth20_getLoginTemplate description: Retrieve the login template parameters: - description: >- The OAuth 2.0 scope parameter. Must include the value openid. No other values required. name: scope in: query required: true schema: type: string - description: >- The response type required from the Authorization Server. This must be set to code name: response_type in: query required: true schema: type: string enum: - code - description: >- Your Authorization Client ID, identifies your application to the Authorisation Server name: client_id in: query required: true schema: type: string - description: >- The redirect URL that is registered for your application. This must match the value we hold. name: redirect_uri in: query required: true schema: type: string - description: The OAuth 2.0 state parameter. name: state in: query required: true schema: type: string responses: '200': description: HTML login template content: application/json: schema: $ref: '#/components/schemas/OAuth20GetLoginTemplateResponse' text/html: schema: $ref: '#/components/schemas/OAuth20GetLoginTemplate200Response' '400': description: >- Formatting or schema validation error or invalid data.See error message for further details. content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' text/html: schema: $ref: '#/components/schemas/AuthErrorMessage' '429': description: Too many requests content: {} '495': description: Certificate Error content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' text/html: schema: $ref: '#/components/schemas/AuthErrorMessage' post: tags: - OAuth2.0 summary: Authenticate operationId: OAuth20_getLoginTemplate description: Retrieve the login template requestBody: description: The OAuth 2.0 state parameter. content: '*/*': schema: description: >- WARNING: Missing schema in media type object. Missing schema has been filled with this AnyType schema. required: true responses: '200': description: HTML login template content: application/json: schema: $ref: '#/components/schemas/OAuth20GetLoginTemplate200Response' text/html: schema: $ref: '#/components/schemas/OAuth20GetLoginTemplate200Response' '400': description: >- Formatting or schema validation error or invalid data.See error message for further details. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' text/html: schema: $ref: '#/components/schemas/ErrorMessage' '429': description: Too many requests content: {} '495': description: Certificate Error content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' text/html: schema: $ref: '#/components/schemas/ErrorMessage' x-codegen-request-body-name: state /balances: get: tags: - Balances summary: Retrieve a list of the client's balances operationId: Balances_getList description: >- Retrieve a list of the client's balances, optionally filtered by currency parameters: - description: A comma-separated list of currency codes compliant to ISO 4217 in: query name: currencies required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The balance types to be retrieved in: query name: balance_types required: false schema: type: string default: InterimAvailable enum: - RequiredFunds - InterimAvailable - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '200': description: A list with the client's balances. content: application/json: schema: $ref: '#/components/schemas/BalancesGetListResponse' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID not found '409': description: >- Could not update contact due to data constraint or conflict with contact status. Refer to error message for additional details '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Balances /currencies: get: tags: - Currencies summary: Retrieve a list of the client's currencies operationId: Currencies_getList description: >- Retrieve a list of the client's currencies, optionally filtered by trade_type parameters: - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The trade types to be retrieved in: query name: trade_type required: false schema: type: string default: spot enum: - spot - forward responses: '200': description: A list with the client's currencies. content: application/json: schema: $ref: '#/components/schemas/CurrenciesGetListResponse' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID not found '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Currencies /beneficiaries: parameters: - $ref: '#/components/parameters/ClientId' - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XContactID' get: tags: - Beneficiaries summary: Get beneficiaries operationId: beneficiaries_get description: Get all beneficiaries for a given client. parameters: - description: The ID of the client in: query name: client_id required: true schema: type: string - description: Filter. The account number of the beneficiary you want to search. in: query name: account_number required: false schema: type: string - description: >- Filter. The iban of the account of the beneficiary you want to search. in: query name: iban required: false schema: type: string - description: >- Filter. The bank identifier of the account of the beneficiary you want to search. in: query name: bank_identifier required: false schema: type: string - description: The desired page number for pagination. By default is 1. in: query name: page required: false schema: type: integer format: int32 - description: The number of items per page for pagination. By default is 50. in: query name: page_size required: false schema: type: integer format: int32 - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '200': $ref: '#/components/responses/BeneficiaryList' '400': $ref: '#/components/responses/ValidationError' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ClientNotFound' '502': $ref: '#/components/responses/IntegrationError' post: tags: - Beneficiaries summary: Create a new beneficiary operationId: beneficiaries_post description: >- Create a new beneficiary. Beneficiary will require verification before payments can be made. requestBody: description: Request payload. content: application/json: schema: $ref: '#/components/schemas/NewBeneficiary' required: true responses: '201': $ref: '#/components/responses/BeneficiaryCreated' '400': $ref: '#/components/responses/ValidationError' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ClientNotFound' '409': $ref: '#/components/responses/Conflict' '502': $ref: '#/components/responses/IntegrationError' /beneficiaries/{beneficiary_id}: parameters: - $ref: '#/components/parameters/BeneficiaryId' - $ref: '#/components/parameters/ClientId' - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XContactID' delete: tags: - Beneficiaries summary: Delete a beneficiary operationId: beneficiary_delete description: Delete a beneficiary by beneficiary's identifier. responses: '204': $ref: '#/components/responses/BeneficiaryDeleted' '400': $ref: '#/components/responses/ValidationError' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BeneficiaryOrClientNotFound' '502': $ref: '#/components/responses/IntegrationError' get: tags: - Beneficiaries summary: Get a beneficiary operationId: beneficiary_get description: Get a beneficiary by beneficiary's identifier. responses: '200': $ref: '#/components/responses/Beneficiary' '400': $ref: '#/components/responses/ValidationError' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BeneficiaryOrClientNotFound' '502': $ref: '#/components/responses/IntegrationError' patch: tags: - Beneficiaries summary: Update a beneficiary operationId: beneficiary_patch description: Update a beneficiary by beneficiary's identifier. requestBody: description: List of field names and values for update an existing beneficiary. content: application/json: schema: $ref: '#/components/schemas/UpdateBeneficiary' required: true responses: '204': $ref: '#/components/responses/BeneficiaryUpdated' '400': $ref: '#/components/responses/ValidationError' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BeneficiaryOrClientNotFound' '409': $ref: '#/components/responses/Forbidden' '502': $ref: '#/components/responses/IntegrationError' /clients: parameters: - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XContactID' get: tags: - Clients summary: Get clients operationId: clients_get description: Get all clients for a contact. responses: '200': $ref: '#/components/responses/ClientList' '401': $ref: '#/components/responses/Unauthorized' '429': description: Too many requests '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' /contacts: parameters: - $ref: '#/components/parameters/ClientId' - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XContactID' get: tags: - Contacts summary: Get contacts operationId: contacts_get description: Get all contacts for a given client. responses: '200': $ref: '#/components/responses/ContactList' '400': $ref: '#/components/responses/ValidationError' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ClientNotFound' '502': $ref: '#/components/responses/IntegrationError' /contacts/{contact_id}: parameters: - $ref: '#/components/parameters/ContactId' - $ref: '#/components/parameters/ClientId' - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XContactID' get: tags: - Contacts summary: Get a contact operationId: contact_get description: Get a contact by contact's identifier. responses: '200': $ref: '#/components/responses/Contact' '400': $ref: '#/components/responses/ValidationError' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ContactOrClientNotFound' '502': $ref: '#/components/responses/IntegrationError' patch: tags: - Contacts summary: Update a contact operationId: contact_patch description: Update a contact by contact's identifier. requestBody: description: List of field names and values for update an existing contact. content: application/json: schema: $ref: '#/components/schemas/ContactUpdateableData' required: true responses: '204': $ref: '#/components/responses/ContactUpdated' '400': $ref: '#/components/responses/ValidationError' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ContactOrClientNotFound' '409': $ref: '#/components/responses/Conflict' '502': $ref: '#/components/responses/IntegrationError' /documents: parameters: - $ref: '#/components/parameters/Type' - $ref: '#/components/parameters/Id' - $ref: '#/components/parameters/ClientId' - $ref: '#/components/parameters/Authorization' - $ref: '#/components/parameters/XContactID' get: tags: - Documents summary: Get a document operationId: document_get description: Get a document for a given client. responses: '200': $ref: '#/components/responses/Document' '400': $ref: '#/components/responses/ValidationError' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/DocumentOrClientNotFound' '502': $ref: '#/components/responses/IntegrationError' /info/available-contacts: get: tags: - OAuth2.0 summary: Available contacts operationId: OAuth20_getAvailableContacts description: Get the available contacts of a client parameters: - description: >- Where credentials is a Base64 encoded string of auth_client_id:auth_client_secret name: Authorization in: header required: true schema: type: string responses: '200': description: Listf of contacts IDs that are from the given client content: application/json: schema: $ref: '#/components/schemas/ContactsList' '400': description: >- Formatting or schema validation error or invalid data.See error message for further details. content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' '429': description: Too many requests content: {} '495': description: Certificate Error content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' /login: post: tags: - OAuth2.0 summary: Login operationId: OAuth20_loginTemplateRetrieve description: Retrieve the login template parameters: - description: Your password name: password in: query required: true schema: type: string enum: - code requestBody: description: The OAuth 2.0 state parameter. content: '*/*': schema: description: >- WARNING: Missing schema in media type object. Missing schema has been filled with this AnyType schema. required: true responses: '200': description: HTML 2FA template content: application/json: schema: $ref: '#/components/schemas/OAuth20LoginTemplateRetrieveResponse' text/html: schema: $ref: '#/components/schemas/OAuth20LoginTemplateRetrieve200Response' '302': description: Redirect to your redirect_url content: application/json: schema: $ref: '#/components/schemas/OAuth20LoginTemplateRetrieve302Response' text/html: schema: $ref: '#/components/schemas/OAuth20LoginTemplateRetrieve302Response' '400': description: >- Formatting or schema validation error or invalid data.See error message for further details. content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' text/html: schema: $ref: '#/components/schemas/AuthErrorMessage' '401': description: Unauthorized. See error message for further details. content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' text/html: schema: $ref: '#/components/schemas/AuthErrorMessage' '429': description: Too many requests content: {} '495': description: Certificate Error content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' text/html: schema: $ref: '#/components/schemas/AuthErrorMessage' x-codegen-request-body-name: state /metadata/beneficiary: get: tags: - Metadata summary: Get beneficiary metadata operationId: Metadata_describeNewBeneficiary description: Describe a new beneficiary. responses: '200': $ref: '#/components/responses/BeneficiaryMetadata' '400': $ref: '#/components/responses/ValidationError' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '502': $ref: '#/components/responses/IntegrationError' /metadata/currency: parameters: - $ref: '#/components/parameters/DataOnly' get: tags: - Metadata summary: Get currency metadata operationId: Metadata_getCurrencyMetadata description: Describe a currency. responses: '200': $ref: '#/components/responses/CurrencyMetadata' '400': $ref: '#/components/responses/ValidationError' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '502': $ref: '#/components/responses/IntegrationError' /multipayments: post: tags: - Multi Payments summary: Create a multi payment instruction operationId: MultiPayments_createInstruction description: >- Create a new multi payment instruction. Requires either a sell currency or existing trade ID to create the instruction parameters: - description: The ID of the client in: query name: client_id required: true schema: type: string - description: >- Trade ID to book payments against. Omit if trade should be executed to fund payments in: query name: trade_id required: false schema: type: string - description: If trade_id omitted, a sell currency must be supplied in: query name: sell_currency required: false schema: type: string - description: >- Accept a partially successful instruction. If true, send successful instructions for payment. If false, reject the entire instruction in: query name: accept_partial required: false schema: type: boolean default: true - description: Set to true. Accept quote immediately, do not require confirmation in: query name: accept_immediately required: true schema: type: boolean - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string requestBody: description: Request Payload content: application/json: schema: $ref: '#/components/schemas/NewMultiPayment' required: true responses: '201': description: Multi payment created, see response body for status content: application/json: schema: $ref: '#/components/schemas/MultiPaymentResponse' '202': description: Multi payment accepted with errors, see response body for status content: application/json: schema: $ref: '#/components/schemas/MultiPaymentResponse' '400': description: >- Formatting or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID not found '409': description: >- All payments invalid or partial instruction not allowed, see response body for details content: application/json: schema: $ref: '#/components/schemas/MultiPaymentErrorMessage' '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Multi Payments /multipayments/{multipayment_id}: delete: tags: - Multi Payments summary: Rejects a multi payment operationId: MultiPayments_rejectMultiPayment description: Rejects a multi payment trade and cancels the payments parameters: - description: The multi payment ID in: path name: multipayment_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '204': description: Multi payment rejected '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Multi payment or client ID not found '409': description: Multi payment already rejected '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Multi Payments patch: tags: - Multi Payments summary: Accept a multi payment operationId: MultiPayments_acceptMultiPayment description: Accept a multi payment generated trade and book in payments parameters: - description: The multi payment ID in: path name: multipayment_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '200': description: >- Multi payment accepted and payments booked (pending back office operations) content: application/json: schema: $ref: '#/components/schemas/BankAccountCoreData' '400': description: >- Formatting or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Multi payment or client ID not found '409': description: Multi payment already accepted or rejected '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Multi Payments /mass-payments: get: tags: - Multi Payments summary: Fetch payment instructions of a mass payment operationId: MultiPayments_getPaymentInstructions description: Fetch payment instructions of a mass payment parameters: - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the multipayment in: query name: mass_payment_id required: false schema: type: string - description: The external reference of the multipayment in: query name: external_reference_id required: false schema: type: string - description: The sell currency of the multipayment in: query name: sell_currency required: false schema: type: string - description: The desired page number for pagination. By default is 1. in: query name: page required: false schema: type: integer format: int32 - description: The number of items per page for pagination. By default is 50. in: query name: page_size required: false schema: type: integer format: int32 responses: '200': description: List of payment instructions headers: x-total-count: description: Total number of payment instructions available schema: type: integer content: application/json: schema: $ref: '#/components/schemas/GetMassPaymentsResponse' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '409': description: Invalid mass payment id '429': description: Too many requests '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Multi Payments post: tags: - Multi Payments summary: Create a mass payment instruction operationId: MultiPayments_createInstruction description: >- Submit mass payment request in async mode. Requires either a sell currency or existing trade ID to create the instruction parameters: - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string requestBody: description: Request Payload content: application/json: schema: $ref: '#/components/schemas/NewMassPayment' required: true responses: '202': description: Masspayment request accepted, see response body for status content: application/json: schema: $ref: '#/components/schemas/MultiPaymentsCreateInstructionResponse' '400': description: >- Formatting or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID not found '502': description: Internal integration error. Contact support, content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Multi Payments /mass-payments/$mass_payment_id/confirm: post: tags: - Multi Payments summary: Confirm multi payment instructions operationId: MultiPayments_confirmInstruction description: >- Confirm (commit) mass payment instructions, which can be hold because `auto_commit` was false, or because there were some errors. parameters: - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '202': description: Masspayment confirmation accepted, see response body for status content: application/json: schema: $ref: '#/components/schemas/MultiPaymentsConfirmInstructionResponse' '400': description: >- Formatting or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID not found '502': description: Internal integration error. Contact support, content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Multi Payments /mass-payments/{mass_payment_id}/payments-received: get: tags: - Multi Payments summary: Fetch the payment instructions submitted for a mass payment operationId: MultiPayments_getPaymentInstructions description: Fetch the payment instructions submitted for a mass payment parameters: - description: The mass payment ID in: path name: mass_payment_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The desired page number for pagination. By default is 1. in: query name: page required: false schema: type: integer format: int32 - description: The number of items per page for pagination. By default is 50. in: query name: page_size required: false schema: type: integer format: int32 responses: '200': description: List of payment instructions headers: x-total-count: description: Total number of payment instructions available schema: type: integer content: application/json: schema: $ref: '#/components/schemas/MassPaymentPaymentsReceivedResponse' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '409': description: Invalid mass payment id '429': description: Too many requests '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Multi Payments /mass-payments/{mass_payment_id}/errors: get: tags: - Multi Payments summary: Fetch the payment instructions with errors for a mass payment operationId: MultiPayments_getPaymentInstructionsWithErrors description: Fetch the payment instructions with errors for a mass payment parameters: - description: The mass payment ID in: path name: mass_payment_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The desired page number for pagination. By default is 1. in: query name: page required: false schema: type: integer format: int32 - description: The number of items per page for pagination. By default is 50. in: query name: page_size required: false schema: type: integer format: int32 - description: Filter by payment currency in: query name: payment_currency required: false schema: type: string responses: '200': description: List of payment instructions with errors headers: x-total-count: description: Total number of payment instructions with errors available schema: type: integer content: application/json: schema: $ref: '#/components/schemas/MassPaymentErrorsResponse' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '409': description: Invalid mass payment id '429': description: Too many requests '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Multi Payments /payments: get: tags: - Payments summary: Search or retrieve payments operationId: Payments_getAllForClient description: Search or retrieve all payments for a given client ID parameters: - description: The ID of the client in: query name: client_id required: true schema: type: string - description: Filter by related mass payment's uuid. in: query name: mass_payment_id required: false schema: type: string - description: Filter by related mass payment's external reference. in: query name: mass_payment_external_reference_id required: false schema: type: string - description: Filter by payment currency in: query name: payment_currency required: false schema: type: string - description: The desired page number for pagination. By default is 1. in: query name: page required: false schema: type: integer format: int32 - description: The number of items per page for pagination. By default is 50. in: query name: page_size required: false schema: type: integer format: int32 - description: Filter payments by reference. in: query name: reference required: false schema: type: string - description: Filter payments by trade_id. in: query name: trade_id required: false schema: type: string - description: Filter payments by from_payment_date. in: query name: from_payment_date required: false schema: type: string format: date - description: Filter payments by to_payment_date. in: query name: to_payment_date required: false schema: type: string format: date - description: Filter payments by from_created_date. in: query name: from_created_date required: false schema: type: string format: date - description: Filter payments by to_created_date. in: query name: to_created_date required: false schema: type: string format: date - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '200': description: Client payments headers: x-total-count: description: Total number of available entries schema: type: integer content: application/json: schema: $ref: '#/components/schemas/Payments' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID not found '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Payments post: tags: - Payments summary: Create one or more payments operationId: Payments_createPayments description: >- Create one or more payments with an existing trade_id, beneficiary ID and account ID. Payment processing can be made asynchronous by setting the async flag in the request body. parameters: - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string requestBody: description: Request Payload content: application/json: schema: $ref: '#/components/schemas/NewPayment' required: true responses: '201': description: Payment(s) created synchronously content: application/json: schema: $ref: '#/components/schemas/PaymentsCreatePaymentsResponse' '204': description: Payment(s) processing started (asynchronously) content: application/json: schema: $ref: '#/components/schemas/PaymentsCreatePayments204Response' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: >- Trade, beneficiary or account ID not found. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '409': description: >- Payment instruction could not be completed due to issues with input data. See error message for further details. NB if multiple payments were sent all will fail content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Payments /payments/{payment_id}: delete: tags: - Payments summary: Delete a payment operationId: Payments_deletePaymentById description: Delete a payment with a given payment ID parameters: - description: Unique idenifier for payment in: path name: payment_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '204': description: Payment successfully deleted '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Payment or client ID not found '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Payments get: tags: - Payments summary: Retrieve a payment operationId: Payments_getPaymentById description: Retrieve a payment with a given payment ID parameters: - description: Unique idenifier for payment in: path name: payment_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '200': description: The client payment content: application/json: schema: $ref: '#/components/schemas/Payment' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client or payment ID not found '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Payments patch: tags: - Payments summary: Authorise or reject a payment operationId: Payments_authorisePayment description: > Authorise or reject a payment with a given payment ID (the requirement to authorise or reject payments depends on your account configuration) Note that a **different** Contact ID to needs to be used to authorise payments parameters: - description: Unique idenifier for payment in: path name: payment_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The action to take (authorise or reject) in: query name: action required: true schema: type: string enum: - authorise - reject - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '204': description: Payment successfully authorised or rejected '400': description: >- Formatting or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Payment or client ID not found '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Payments /payments/fees: get: tags: - Payments summary: Get the fee of payments operationId: Payments_getFee description: Retrieve the payment fee for sending a payment parameters: - description: The ID of the client name: client_id in: query required: true schema: type: string - description: The ID of the beneficiary name: beneficiary_id in: query required: true schema: type: string - description: The access token name: Authorization in: header required: true schema: type: string - description: The amount of the payment name: payment_amount in: query required: true schema: type: number format: float responses: '200': description: The payment estimate fee content: application/json: schema: $ref: '#/components/schemas/PaymentFee' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: Forbidden '404': description: Client ID not found '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Payments /payments/fees_estimate: get: tags: - Payments summary: Get the estimate fee of payments operationId: Payments_estimateFee description: Retrieve the potential payment fee for sending a payment parameters: - description: The ID of the client name: client_id in: query required: true schema: type: string - description: The access token name: Authorization in: header required: true schema: type: string - description: The ID of the contact name: X-Contact-ID in: header required: true schema: type: string - description: The amount of the payment name: payment_amount in: query required: true schema: type: number format: float - description: The currency of the payment name: payment_currency in: query required: true schema: type: string - description: The destination country of the payment name: payment_country in: query required: false schema: type: string - description: boolean flag to filter by Ebury intra payments or not name: payment_intra_Ebury in: query required: false schema: type: boolean responses: '200': description: The list of payment estimate fee content: application/json: schema: $ref: '#/components/schemas/PaymentFeeEstimate' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID not found '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Payments /ping: get: tags: - Ping summary: Test connectivity operationId: Ping_connectivityTest description: Get a successful response, to test connectivity responses: '200': description: Everything is right x-tags: - tag: Ping post: tags: - Ping summary: Test connectivity operationId: Ping_connectivityTest description: Get a successful response, to test connectivity responses: '200': description: Everything is right x-tags: - tag: Ping /quotes: post: tags: - Quotes summary: Get an estimate or firm quote operationId: Quotes_createFirmQuote description: > Get an estimate or firm quote. An estimate is as it's described: * The current rates on offer within the Ebury platform with no firm quote. * A firm quote returns a reference than can be used to book a trade. parameters: - description: >- The quote type. A quote_type of quote returns a quote ID which a trade can be booked against in: query name: quote_type required: true schema: type: string enum: - estimate - quote - description: The ID of the client this quote is for in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string requestBody: description: Request Payload content: application/json: schema: $ref: '#/components/schemas/QuoteRequest' required: true responses: '200': description: Estimated rates response content: application/json: schema: $ref: '#/components/schemas/EstimateOrQuoteResponse' '201': description: Quote created content: application/json: schema: $ref: '#/components/schemas/EstimateOrQuoteResponse' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID not found '409': description: Requested quote causes a conflict, see response body for details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Quotes /quotes/fx-availability: get: tags: - Quotes summary: Get the availability for FX markets operationId: Quotes_getFxAvailability description: | Get if the FX markets are available at this time or not * True if the FX market is available for creating quote and trades * False if the FX market is not available. parameters: - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '200': description: Get if the FX markets are available at the time or not content: application/json: schema: $ref: '#/components/schemas/FxAvailability' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID not found '409': description: Requested quote causes a conflict, see response body for details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Quotes /token: post: tags: - OAuth2.0 summary: Token operationId: OAuth20_tokenAccess description: >- Get an access token or refresh an existing one. The access token is passed in the Authorization header parameter in endpoints that require authentication. parameters: - description: >- Where credentials is a Base64 encoded string of auth_client_id:auth_client_secret name: Authorization in: header required: true schema: type: string requestBody: description: One of the last 10 refresh tokens, issued within the last 28 days. content: '*/*': schema: description: >- WARNING: Missing schema in media type object. Missing schema has been filled with this AnyType schema. required: false responses: '200': description: Listf of contacts IDs that are from the given client content: application/json: schema: $ref: '#/components/schemas/PostTokenResponse' '400': description: >- Formatting or schema validation error or invalid data.See error message for further details. content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' '401': description: Unauthorized. See error message for further details. content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' '429': description: Too many requests content: {} '495': description: Certificate Error content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' x-codegen-request-body-name: refresh_token /token/{contact_id}: post: tags: - TrustedAuthentication summary: Token for a Contact operationId: TrustedAuthentication_tokenForContact description: >- Get an access token or refresh an existing one. The access token is passed in the Authorization header parameter in endpoints that require authentication. parameters: - description: >- Where credentials is a Base64 encoded string of auth_client_id:auth_client_secret name: Authorization in: header required: true schema: type: string - description: The id of the contact name: contact_id in: path required: true schema: type: string responses: '200': description: Listf of contacts IDs that are from the given client content: application/json: schema: $ref: '#/components/schemas/PostTokenForContactResponse' '400': description: >- Formatting or schema validation error or invalid data.See error message for further details. content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' '401': description: Unauthorized. See error message for further details. content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' '429': description: Too many requests content: {} '495': description: Certificate Error content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' '496': description: No Cert. There was not certificate provided. content: {} '497': description: HTTP to HTTPS. The connection was made using HTTP instead of HTTPS. content: {} /trades: get: tags: - Trades summary: Get all trades operationId: Trades_getAllForClient description: Get all the trades for a given client ID parameters: - description: The ID of the client in: query name: client_id required: true schema: type: string - description: >- The trade type. The list will be filtered to include only trades with a matching trade type. in: query name: trade_type required: false style: form explode: false schema: type: array items: enum: - spot - forward - window_forward - drawdown - ndf type: string - description: Parent identifier for drawdown trades in: query name: parent_trade_id required: false schema: type: string - description: The desired page number for pagination. By default is 1. in: query name: page required: false schema: type: integer format: int32 - description: The number of items per page for pagination. By default is 50. in: query name: page_size required: false schema: type: integer format: int32 - description: Filter by payment level's external_reference_id. in: query name: external_reference_id required: false schema: type: string - description: Filter by related mass payment's uuid. in: query name: mass_payment_id required: false schema: type: string - description: Filter by related mass payment's external reference. in: query name: mass_payment_external_reference_id required: false schema: type: string - description: Filter by the buy currency in: query name: buy_currency required: false schema: type: string - description: Filter trades by comma separated statuses in: query name: status required: false schema: type: array items: enum: - Created - Funds In Partially - Funds In Full - Funds Out Partially Allocated - Closed - Cancelled type: string example: Funds In Full,Closed - description: Filter by the API external reference id in: query name: external_reference_id required: false schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '200': description: List of trades headers: x-total-count: description: Total number of available entries schema: type: integer content: application/json: schema: $ref: '#/components/schemas/TradesGetAllForClientResponse' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client or quote ID not found '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Trades post: tags: - Trades summary: Create a Trade operationId: Trades_createTrade description: | Initiate a new trade. You need to have an existing quote_id to do this parameters: - description: The identifier of the quote in: query name: quote_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string requestBody: description: Request Payload content: application/json: schema: $ref: '#/components/schemas/NewTrade' required: true responses: '201': description: Trade created content: application/json: schema: $ref: '#/components/schemas/ConfirmedTrade' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client or quote ID not found '409': description: >- Requested trade causes a conflict that can be corrected, see response body for details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Trades /trades/{trade_id}: get: tags: - Trades summary: Get a trade operationId: Trades_getTradeById description: Get a trade with a specific trade_id parameters: - description: Trade identifier in: path name: trade_id required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string responses: '200': description: Returns a BookedTrade model content: application/json: schema: $ref: '#/components/schemas/BookedTrade' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client or trade ID not found '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Trades /transactions: get: tags: - Transactions summary: Get transactions for all client accounts operationId: Transactions_getAll description: >- Retrieve a list of the client's transactions, optionally filtered by currency and value date and time with pagination support parameters: - description: A comma-separated list of currency codes compliant to ISO 4217 in: query name: currencies required: true schema: type: string - description: The ID of the client in: query name: client_id required: true schema: type: string - description: Filter transactions by debit/credit type in: query name: credit_debit_indicator required: false schema: type: string enum: - credit - debit - description: The access token in: header name: Authorization required: true schema: type: string - description: The ID of the contact in: header name: X-Contact-ID required: false schema: type: string - description: >- Only return transactions with value date and time after this UTC date and time. YYYY-MM-DDThh:mm format in: query name: from_value_datetime schema: type: string - description: >- Only return transactions with value date and time before this UTC date and time. YYYY-MM-DDThh:mm format in: query name: to_value_datetime schema: type: string - description: The desired page number for pagination in: query name: page schema: type: integer minimum: 1 default: 1 - description: The number of items per page for pagination in: query name: page_size schema: type: integer minimum: 1 default: 50 - $ref: '#/components/parameters/TransactionTypeFilter' responses: '200': description: A list with the client's transactions. headers: x-total-count: description: Total number of available entries schema: type: integer content: application/json: schema: $ref: '#/components/schemas/TransactionsGetAllResponse' '400': description: >- Formatting, parameter or schema validation error. See error message for further details content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '404': description: Client ID not found '409': description: >- Could not update contact due to data constraint or conflict with contact status. Refer to error message for additional details '502': description: Internal integration error. Contact support content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' '504': description: Timeout error. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' x-tags: - tag: Transactions /verify: post: tags: - OAuth2.0 summary: Verify operationId: OAuth20_verify2faCode description: Validate 2FA code parameters: - description: >- Where credentials is a Base64 encoded string of auth_client_id:auth_client_secret name: Authorization in: header required: true schema: type: string - description: >- Your Authorization Client ID, identifies your application to the Authorisation Server name: client_id in: query required: true schema: type: string - description: >- Your Authorization Client ID, identifies your application to the Authorisation Server name: code in: query required: true schema: type: string - description: >- The redirect URL that is registered for your application. This must match the value we hold. name: redirect_uri in: query required: true schema: type: string requestBody: description: 2FA code to verify content: '*/*': schema: description: >- WARNING: Missing schema in media type object. Missing schema has been filled with this AnyType schema. required: true responses: '200': description: OK '302': description: Redirect to your redirect_url content: application/json: schema: $ref: '#/components/schemas/OAuth20Verify2FaCodeResponse' text/html: schema: $ref: '#/components/schemas/OAuth20Verify2FaCode302Response' '400': description: >- Formatting or schema validation error or invalid data.See error message for further details. content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' text/html: schema: $ref: '#/components/schemas/AuthErrorMessage' '401': description: Unauthorized. See error message for further details. content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' text/html: schema: $ref: '#/components/schemas/AuthErrorMessage' '429': description: Too many requests content: {} '495': description: Certificate Error content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' text/html: schema: $ref: '#/components/schemas/AuthErrorMessage' x-codegen-request-body-name: verify /send-verification-code: post: tags: - OAuth2.0 summary: Send verification code operationId: OAuth20_sendVerificationCode description: >- Send 2fa verification code in case the user did not recived the past ones parameters: - description: >- Where credentials is a Base64 encoded string of auth_client_id:auth_client_secret name: Authorization in: header required: true schema: type: string - description: >- Your Authorization Client ID, identifies your application to the Authorisation Server name: client_id in: query required: true schema: type: string - description: >- Your Authorization Client ID, identifies your application to the Authorisation Server name: code in: query required: true schema: type: string responses: '204': description: Verification code has been resended correctly. '400': description: >- Formatting or schema validation error or invalid data.See error message for further details. content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' text/html: schema: $ref: '#/components/schemas/AuthErrorMessage' '401': description: Unauthorized. See error message for further details. content: application/json: schema: $ref: '#/components/schemas/AuthErrorMessage' text/html: schema: $ref: '#/components/schemas/AuthErrorMessage' /webhooks/graphql: post: tags: - Webhooks summary: Execute a GraphQL query over the webhooks API operationId: Webhooks_executeGraphqlQuery description: Execute a GraphQL query over the webhooks API parameters: - description: The ID of the client in: query name: client_id required: true schema: type: string requestBody: description: Request Payload content: application/json: schema: $ref: '#/components/schemas/WebhooksRequest' required: true responses: '200': description: Query was executed and the result is in the body '400': description: Invalid request '401': description: Access denied due to authentication failure x-tags: - tag: Webhooks /webhooks/ping/{subscription_id}: post: tags: - Webhooks summary: Ping a subscription operationId: Webhooks_pingSubscription description: >- Ping a subscription to get a realistic notification in the configured URL parameters: - description: The UUID of the subscription in: path name: subscription_id required: true schema: type: string responses: '204': description: Ping was successful '401': description: Access denied due to authentication failure '403': description: >- Could not complete action due to data constraints. Refer to error message for additional details x-tags: - tag: Webhooks components: parameters: Authorization: description: The access token. in: header name: Authorization required: true schema: type: string BeneficiaryId: description: The identifier of a beneficiary. in: path name: beneficiary_id required: true schema: type: string ClientId: description: The identifier of a client. in: query name: client_id required: true schema: type: string ContactId: description: The identifier of a contact. in: path name: contact_id required: true schema: type: string DataOnly: description: Used to generate a flat array. in: query name: data_only required: false schema: type: boolean Id: description: >- The ID of the entity that generated this document e.g. payment, trade, etc. in: query name: id required: true schema: type: string TransactionTypeFilter: description: Only return transactions of the specified transaction type. in: query name: transaction_type schema: type: string enum: - credit - debit - incoming - margin - payment_returned Type: description: >- The document type: pi (payment instruction), pr (payment receipt), tr (trade receipt). in: query name: type required: true schema: type: string enum: - pi - pr - tr XContactID: description: The identifier of a contact. in: header name: X-Contact-ID required: false schema: type: string responses: Beneficiary: description: The data of a beneficiary. content: application/json: schema: $ref: '#/components/schemas/BeneficiaryCoreData' BeneficiaryCreated: description: Beneficiary created. content: application/json: schema: $ref: '#/components/schemas/BeneficiaryCoreData' BeneficiaryDeleted: description: Beneficiary deleted. BeneficiaryList: description: Will successfully list the requested beneficiaries headers: x-total-count: description: Total number of available entries schema: type: integer content: application/json: schema: $ref: '#/components/schemas/BeneficiariesGetResponse' BeneficiaryMetadata: description: Beneficiary metadata. content: application/json: schema: $ref: '#/components/schemas/BeneficiaryMetadata' BeneficiaryOrClientNotFound: description: Beneficiary or client identifier not found. BeneficiaryUpdated: description: Beneficiary updated. ClientList: description: List of clients content: application/json: schema: $ref: '#/components/schemas/ClientsGetResponse' ClientNotFound: description: Client identifier not found. Conflict: description: >- Request invalid due to beneficiary management rules. Refer to error message for additional details. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' Contact: description: The data of a contact. content: application/json: schema: $ref: '#/components/schemas/Contact' ContactList: description: List of contacts. content: application/json: schema: $ref: '#/components/schemas/ContactsGetResponse' ContactOrClientNotFound: description: Contact or client identifier not found. ContactUpdated: description: Contact updated. CurrencyMetadata: description: Currency metadata content: application/json: schema: $ref: '#/components/schemas/CurrencyMetadata' Document: description: Base 64 encoded document content. content: application/json: schema: $ref: '#/components/schemas/DocumentGetResponse' DocumentOrClientNotFound: description: Document or client identifier not found. Forbidden: description: >- Could not complete action due to data constraints. Refer to error message for additional details. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' IntegrationError: description: Internal integration error. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' Unauthorized: description: Access denied due to authentication failure. ValidationError: description: >- Formatting, parameter or schema validation error. See error message for further details. content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' securitySchemes: api_key: description: An API Key. in: header name: x-api-key type: apiKey schemas: AccountData: properties: account_details: description: The list of `AccountDetail`s for this `currency` items: $ref: '#/components/schemas/AccountDetails' type: array account_id: description: The UUID of the account type: string account_subtype: $ref: '#/components/schemas/AccountSubType' account_type: $ref: '#/components/schemas/AccountType' currency: description: Identification of the currency in which the account is held type: string status: $ref: '#/components/schemas/AccountStatus' required: - currency - account_details - status - account_id - account_type - account_subtype type: object AccountDetails: properties: account_address: description: The address of the account type: string account_name: description: >- The name or names of the account owner(s) represented at an account level type: string account_number: description: The number of the account type: string account_number_type: $ref: '#/components/schemas/AccountNumberType' bank_identifier: description: The identifier of the bank type: string bank_identifier_type: $ref: '#/components/schemas/BankIdentifierType' required: - account_address - account_name - account_number - account_number_type - bank_identifier - bank_identifier_type type: object AccountDetailsResponse: type: object required: - account_id - account_detail_id - account_details_type - bank_account_number - bank_identifier - bank_identifier_type - bic - country - currency - financial_institution_name - financial_institution_address - holder_address - holder_name - iban - reference_for_payment - status properties: account_id: description: | Unique ID of the currency account these details belong to. Can be null for pooled accounts. type: string format: uuid minLength: 36 maxLength: 36 nullable: true account_detail_id: description: Unique ID of the account details type: string format: uuid minLength: 36 maxLength: 36 account_details_type: description: Type of account details type: string enum: - dedicated - pooled alias: description: | User-friendly alias for the account details. Only present (and mandatory) for dedicated accounts. type: string minLength: 1 maxLength: 50 bank_account_number: description: Domestic account number type: string minLength: 1 maxLength: 50 pattern: '[A-Z0-9]{1,50}' nullable: true bank_identifier: description: Domestic bank identifier type: string minLength: 1 maxLength: 11 pattern: ^[A-Z0-9]{1,11}$ nullable: true bank_identifier_type: description: Type of domestic bank identifier example: USABA type: string minLength: 1 maxLength: 5 pattern: '[A-Z]{1,5}' nullable: true bic: description: Bank international code type: string minLength: 8 maxLength: 11 pattern: '[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}(?:[A-Z0-9]{3})?' nullable: true country: description: Country of the account details (ISO Code 2) example: GB type: string minLength: 2 maxLength: 2 pattern: '[A-Z]{2}' nullable: true currency: description: Currency of the account details (ISO Code 3) example: GBP type: string minLength: 3 maxLength: 3 pattern: '[A-Z]{3}' financial_institution_name: description: Name of the underlying financial institution type: string minLength: 1 maxLength: 255 nullable: true financial_institution_address: description: Address of the underlying financial institution type: string minLength: 1 maxLength: 4000 nullable: true holder_name: description: Name of the holder of the account details type: string minLength: 1 maxLength: 1500 nullable: true holder_address: description: Address of the holder of the account details type: string minLength: 0 maxLength: 4000 nullable: true iban: description: International account number type: string maxLength: 34 nullable: true primary: description: | Primary (default) account. Only present (and mandatory) for dedicated accounts. type: boolean reference_for_payment: description: >- Reference that a client should use to transfer money to this account details type: string status: description: Status of the account details type: string enum: - pending - confirmed - failed AccountDetailsDomesticInternationalResponse: type: object required: - account_id - account_details_id - account_details_type - country - currency - status - domestic - international properties: account_id: description: |- Unique ID of the account these details belong to. Can be null for pooled accounts. type: string format: uuid minLength: 36 maxLength: 36 account_details_id: description: Unique ID of the account details type: string format: uuid minLength: 36 maxLength: 36 account_details_type: description: Type of account details type: string enum: - dedicated - pooled alias: description: |- User-friendly alias for the account details. Only present (and mandatory) for dedicated accounts. type: string minLength: 1 maxLength: 50 nullable: true country: description: Country of the account details (ISO Code 2) example: GB type: string minLength: 2 maxLength: 2 pattern: '[A-Z]{2}' nullable: true currency: description: Currency of the account details example: GBP type: string minLength: 3 maxLength: 3 pattern: '[A-Z]{3}' nullable: true financial_institution_name: description: Name of the underlying financial institution type: string minLength: 1 maxLength: 255 nullable: true financial_institution_address: description: Address of the underlying financial institution type: string minLength: 1 maxLength: 4000 nullable: true account_holder_name: description: Name of the holder of the account details type: string minLength: 1 maxLength: 1500 nullable: true account_holder_address: description: Address of the holder of the account details type: string minLength: 0 maxLength: 4000 nullable: true primary: description: |- Primary (default) account. Only present (and mandatory) for dedicated accounts. type: boolean status: description: Status of the account details type: string enum: - pending - confirmed - failed created: description: Datetime of creation. Only on dedicated account details. type: string nullable: true modified: description: Datetime of last modification. Only on dedicated account details. type: string nullable: true domestic: description: Domestic information of the account allOf: - $ref: '#/components/schemas/DomesticInternationalAccountData' type: object nullable: true international: description: International information of the account allOf: - $ref: '#/components/schemas/DomesticInternationalAccountData' type: object nullable: true GetCapabilitiesResponse: type: array items: $ref: '#/components/schemas/Capability' AccountNumberType: description: The type of the account number. enum: - IBAN - BBAN type: string AccountStatus: description: The status of the account. enum: - Enabled - Disabled - Deleted type: string AccountSubType: description: The sub-type of the account. enum: - EMoney type: string AccountType: description: The type of the account. enum: - Personal - Business type: string Amount: properties: amount: description: The amount of the transaction. type: string currency: description: The ISO 4217 code of the transaction currency type: string required: - amount - currency type: object AuthErrorMessage: description: An error message. type: object properties: error: description: The code for the error. type: string error_description: description: A short description of the cause of the error. type: string BalanceAmount: properties: amount: description: The amount of the balance. type: string currency: description: The ISO 4217 code of the balance currency type: string required: - amount - currency type: object BalanceData: properties: account_id: description: The UUID of the account. type: string amount: $ref: '#/components/schemas/BalanceAmount' credit_debit_indicator: $ref: '#/components/schemas/CreditDebitIndicator' datetime: description: The date and time when the balance was calculated. type: string type: $ref: '#/components/schemas/BalanceType' required: - account_id - amount - credit_debit_indicator - datetime - type type: object BalanceType: description: This is an enumeration of the balance types of an account. enum: - InterimAvailable - RequiredFunds type: string BankAccountCoreData: description: >- The data of the bank account. Refer to the Metadata API for valid field combinations. properties: account_number: description: The account number of the bank account. type: string bank_address_line_1: description: The first address line of the bank. type: string bank_country_code: description: The ISO 3166-1 alpha-2 code of the bank's country. pattern: '[A-Z]{2}' type: string bank_currency_code: description: The ISO 4217 code of the bank account's currency. pattern: '[A-Z]{3}' type: string bank_identifier: description: The identifier of the bank. type: string bank_name: description: Name of the bank account holder. type: string correspondent_account: description: The account for the correspondant account of the bank. type: string correspondent_swift_code: description: The SWIFT code for the correspondant account of the bank. type: string iban: description: The IBAN of the bank account. type: string inn: description: The INN of the bank account. type: string kbk: description: The KBK of the bank account. type: string kio: description: The KIO of the bank account. type: string kpp: description: The KPP of the bank account. type: string purpose_of_payment: description: >- Text explaining the purpose of payment. Required by the Central Bank for all payments sent to China (CHN) in the Chinese Renminbi (CNY) currency or United Arab Emirates in any currency (GDE to RDA) [Coming soon]. enum: - /CGODDR/ - /CGODDR/PART/ - /CGODDR/RETN/ - /CSTRDR/ - /CSTRDR/PART/ - /CSTRDR/RETN/ - /COCADR/ - /COCADR/RTN/ - /CCTFDR/ - /CCTFDR/PART/ - /CCTFDR/RETN/ - /CCDNDR/ - /CCDNDR/RTN/ - GDE - GDI - GMS - STS - ATS - OTS - STR - SCO - INS - FIS - IPC - TCS - ITS - IFS - RDS - PMS - TTS - PRS - GOS - SAL - IGD - IID - PIP - PRR - DOE - ISH - ISL - ISS - IOL - IOD - GRI - CHC - EDU - ALW - AES - LAS - OVT - TKT - SAA - COP - COM - EOS - BON - PEN - UTL - DCP - LND - LIP - IPO - POR - RNT - LNC - EMI - DIV - ACM - CCP - POS - MCR - CIN - TOF - IGT - OAT - SVI - SVO - SVP - MWI - MWO - MWP - PRP - PRW - IRP - IRW - CEA - PPA - DSF - DLF - FSA - FIA - DSA - DLA - FDA - AFA - SLA - LLA - LEA - RFS - TCR - CEL - PPL - LDS - LDL - FSL - FIL - DSL - DLL - FDL - AFL - SLL - LLL - LEL - RLS - TCP - TAX - REL - RDL - REA - RDA type: string reason_for_trade: description: The reason for trade of the bank account. type: string reference_information: description: The reference information of the bank account. type: string russian_central_bank_account: description: The Russian central account number of the bank account. type: string swift_code: description: The SWIFT code of the bank account. type: string vo: description: The VO of the bank account. type: string required: - bank_country_code - bank_currency_code type: object BankIdentifierType: description: >- The type of the bank identifier, to comply with ISO20022 `code`s related to [Clearing System Identification](https://www.iso20022.org/sites/default/files/2020-05/ExternalCodeSets_1Q2020_February2020_v1.xls), with the addition of `SWBIC` for swift international payments. type: string BeneficiaryCoreData: description: The core data of a beneficiary. properties: address_line_1: description: The first address line of the beneficiary. type: string beneficiary_reference: description: The reference for the beneficiary. type: string country_code: description: The ISO 3166-1 alpha-2 code of the beneficiary's country. pattern: '[A-Z]{2}' type: string email_addresses: description: The list of beneficiary's email addresses. items: format: email type: string type: array email_notification: description: >- Whether the beneficiary should receive email notification of payments. type: boolean name: description: The name of the beneficiary. type: string post_code: description: The post code of the beneficiary. type: string type: object BeneficiaryMetadata: items: $ref: '#/components/schemas/BeneficiaryMetadataItem' type: array BeneficiaryMetadataItem: properties: country: description: The country, expressed as an ISO 3166-1 alpha-2 value. type: string currencies: description: The requirements for a given currency for this country. items: properties: currency: description: >- The currency code, expressed as an ISO 4217 alpha code. The value 'default' means the requirements for any currency not otherwise listed for this country. type: string mandatory_data: description: >- The data that must provided to provision a beneficiary for the country and currency, provided in groups i.e. one of the groups must be matched to provision a beneficiary for the country/currency combination. items: description: >- A list of field names. Additional context available where | then a value is included in the definition e.g. bank_identifier|Sort Code. items: type: string type: array type: array optional_data: description: >- Data that can optionally be included to provision a beneficiary. Additional context available where then a value is included in the definition e.g. bank_identifierSort Code. items: type: string type: array type: object type: array reason_required: description: >- Whether or not a reason for trade for the country needs to be supplied. type: boolean type: object BookedTrade: properties: buy_amount: description: Buy amount format: float type: number buy_currency: description: Buy currency code type: string fee_amount: description: Fee amount format: float type: number fee_currency: description: Fee currency type: string maturity_date: description: Limit date and time (UTC) in which funds must be received by Ebury format: date type: string order_date: description: Order date format: date type: string parent_trade_id: description: Parent trade ID (not null for drawdown deals) type: string rate: description: Booked rate format: float type: number rate_symbol: description: The symbol of booked rate type: string reference: description: 'Additional trade reference. Example: Invoice number.' type: string sell_amount: description: Sell amount format: float type: number sell_currency: description: Sell currency code type: string status: $ref: '#/components/schemas/TradeStatus' synthetic: description: Identifies as a synthetic future contracts format: boolean type: boolean trade_id: description: Trade identifier type: string trade_receipt: description: The URL to get the trade receipt format: uri type: string trade_type: description: Trade type type: string required: - buy_amount - buy_currency - fee_amount - fee_currency - maturity_date - order_date - parent_trade_id - rate - rate_symbol - sell_amount - sell_currency - status - trade_id - trade_type - synthetic type: object Capability: description: Virtual account creation capability type: object required: - auto_create - country - currency properties: auto_create: description: The account can be created and assigned automatically type: boolean country: description: Country for the account type: string minLength: 2 maxLength: 2 pattern: '[A-Z]{2}' currency: description: Currency for the account type: string minLength: 3 maxLength: 3 pattern: '[A-Z]{3}' Client: properties: address_line_1: description: The first address line of a client. type: string address_line_2: description: The second address line of a client. type: string city: description: The city name of a client. type: string client_id: description: Identifier of the client. type: string client_name: description: Name of the client. type: string post_code: description: The post code of the client. type: string state_province: description: The state or province of the client. type: string status: description: Status of the client. enum: - Active - Inactive - Closed - Blocked type: string brand_name: description: Brand name of the client. type: string required: - client_id - client_name - status - brand_name type: object ConfirmedTrade: properties: bank_account: description: An existing bank account properties: account_number: type: string bank_address_line_1: type: string bank_address_line_2: type: string bank_city: type: string bank_identifier: type: string bank_identifier_type: type: string bank_name: type: string bank_post_code: type: string iban: type: string swift_code: type: string required: - account_number - iban - swift_code - bank_identifier - bank_identifier_type - bank_address_line_1 - bank_address_line_2 - bank_city - bank_post_code type: object initial_margin_amount: description: Only for forwards. Trade's deposit amount. format: double type: number initial_margin_due_date: description: >- Only for forwards. Date on or before which deposit must be received by Ebury. Date and time are in UTC. format: date type: string maturity_date: description: Limit date and time (UTC) in which funds must be received by Ebury format: date type: string trade_id: description: Trade identifier type: string required: - trade_id - bank_account - maturity_date type: object Contact: description: The data of a contact. allOf: - $ref: '#/components/schemas/ContactData' - $ref: '#/components/schemas/ContactUpdateableData' properties: contact_id: description: The identifier of the contact. type: string required: - contact_id type: object ContactData: description: The data of a contact. properties: address_line_1: description: The first address line of a contact. type: string address_line_2: description: The second address line of a contact. type: string city: description: The city name of a contact. type: string country_code: description: The ISO 3166-1 alpha-2 code of the contact's country. pattern: '[A-Z]{2}' type: string country_name: description: The name of the contact's country. type: string email_address: description: The email address of a contact. format: email type: string first_name: description: The first name of the contact. type: string home_contact_number: description: The home contact number of a contact. type: string last_name: description: The last name of the contact. type: string mobile_contact_number: description: The mobile contact number of a contact. type: string name: description: The full name of a contact. type: string password_reset_required: description: True if contact needs to reset his password, False otherwise. type: boolean post_code: description: The post code of the contact. type: string work_contact_number: description: The work contact number of a contact. type: string required: - email_address type: object ContactsList: description: A contact list type: object properties: data: description: The code for the error. type: array items: type: string ContactUpdateableData: description: The data of a contact which can be updated. properties: can_authorise_payments: description: True if contact can authorise payments, False otherwise. type: boolean can_make_same_currency_payments: description: >- True if contact can create trades and assign same currency payments, False otherwise. type: boolean can_manage_beneficiaries: description: True if contact can manage beneficiaries, False otherwise. type: boolean can_manage_beneficiaries_groups: description: True if can manage beneficiaries groups, False otherwise. type: boolean can_manage_contacts: description: True if contact can manage contacts, False otherwise. type: boolean can_manage_fix_forwards: description: True if contact can manage fixed forwards, False otherwise. type: boolean can_manage_multipayments: description: True if contact can manage multipayments, False otherwise. type: boolean can_manage_payments: description: True if contact can manage payments, False otherwise. type: boolean can_manage_permissions: description: True if contact can manage permissions, False otherwise. type: boolean can_trade: description: True if contact can execute trades, False otherwise. type: boolean has_online_access: description: True if contact has access to Ebury Online, False otherwise. type: boolean language: description: The ISO 639-1:2002 code of the contact's language. pattern: '[a-z]{2}' type: string locale: description: The ISO 639-1:2002 code of the contact's locale. pattern: '[a-z]{2}' type: string time_zone: description: The time zone of the contact. type: string type: object CreditDebitIndicator: description: Whether the balance is credit or debit enum: - Credit - Debit type: string CreditorDebtorAccount: properties: account_name: description: The name of the account's owner type: string account_number: description: Account number type: string bank_identifier: description: Account bank identifier type: string bank_identifier_code: description: Account bank identifier code (UK sort code, US ABA/FedWire, etc.) type: string iban: description: Account IBAN type: string swift: description: Account SWIFT code type: string type: object CurrencyMetadata: items: $ref: '#/components/schemas/CurrencyMetadataItem' type: array CurrencyMetadataItem: properties: buy: $ref: '#/components/schemas/CutOffItem' currency: description: The currency code, expressed as an ISO 4217 alpha code. type: string invalid_value_dates: $ref: '#/components/schemas/InvalidValueDateItem' reason_required: description: >- Whether or not a reason for trade for the currency needs to be supplied. type: boolean sell: $ref: '#/components/schemas/CutOffItem' type: object CutOffItem: properties: cutoff_days: description: >- The cutoff T+n days, expressed as an integer. The value '0' means there is not cutoff day for this currency. type: integer cutoff_time: description: >- The cutoff time, expressed as an string. The value 'null' means there is not cutoff time for this currency. type: string type: object CurrencyInfo: type: object properties: currency: description: Currency symbol type: string available_for_trading: description: Is this currency available to trade type: boolean credit_limit: description: Limit of the credit type: string default: description: Is this default currency of the client type: boolean holidays: description: List of holidays in a format ISO-8601 type: array items: type: string currency_limit: description: Limit of the currency type: string decimals: description: Decimal settings of the client for the currency type: integer cutoff: type: object properties: day: description: >- Cutoff days for the currency. The value 0 means there is not cutoff day for this currency. type: integer time: description: Cutoff time for the currency. Includes TZ data in ISO format type: string buy_allowed: description: Is client allowed to buy this currency type: boolean sell_allowed: description: Is client allowed to sell this currency type: boolean DomesticInternationalAccountData: type: object required: - account_number - bank_identifier - bank_identifier_type - account_number_type properties: account_number: description: Account number type: string minLength: 1 maxLength: 50 bank_identifier: description: Bank identifier type: string minLength: 1 maxLength: 11 pattern: ^[A-Z0-9]{1,11}$ bank_identifier_type: description: Type of bank identifier example: USABA type: string minLength: 1 maxLength: 5 pattern: '[A-Z]{1,5}' account_number_type: description: Type of Account number type: string EnumMassPaymentStatus: description: This is an enumeration of the status of a MassPayment enum: - Queued for processing - Processing - Processed - Queued for creating - Creating - Created - Cancelled - Failed type: string ErrorMessage: description: An error message. properties: code: description: The code for the error. type: string details: description: Error details type: string message: description: A short description of the cause of the error. type: string required: - code - message - details type: object EstimateResponse: properties: estimated_rate: description: The estimated rate format: double type: number estimated_rate_symbol: description: The symbol of estimated rate type: string fee_amount: description: Fee amount format: float type: number fee_currency: description: Fee currency type: string inverse_rate: description: Inverse rate format: double type: number inverse_rate_symbol: description: The symbol of inverse rate type: string value_date: description: Date on which quote is requested format: date type: string warning: description: >- A warning is only returned if the requested value date was not valid and the next available date has been returned. type: string required: - estimated_rate - estimated_rate_symbol - inverse_rate - inverse_rate_symbol - fee_amount - fee_currency - value_date type: object GetAccountDetailsDomesticInternationalResponse: type: array items: $ref: '#/components/schemas/AccountDetailsDomesticInternationalResponse' GetAccountDetailsResponse: type: array items: $ref: '#/components/schemas/AccountDetailsResponse' GetMassPaymentItem: properties: mass_payment_id: description: The UUID of the MassPayment type: string format: uuid external_reference_id: description: External reference of the mass payment type: string error: $ref: '#/components/schemas/ErrorMessage' mass_payment_status: $ref: '#/components/schemas/EnumMassPaymentStatus' sell_currency: description: Sell currency type: string sell_amount: description: Sell amount type: string trades_created: description: Number of trades created type: number payments_summary: $ref: '#/components/schemas/PaymentsSummaryGetMassPaymentItem' links: $ref: '#/components/schemas/LinksGetMassPaymentItem' type: object GetMassPaymentsResponse: items: $ref: '#/components/schemas/GetMassPaymentItem' type: array InvalidValueDateItem: properties: YYYY-MM-DD: description: Reason of invalid trading date. type: string type: object LinksGetMassPaymentItem: properties: payments_errored_href: description: Payments errored URL type: string payments_created_href: description: Payments created URL type: string trades_href: description: Payment trades URL type: string funding_account_href: description: Funding account URL type: string type: object MultiPaymentError: allOf: - $ref: '#/components/schemas/NewPayment' - items: properties: code: description: The exception label type: string message: description: The exception message type: string required: - code - message type: object type: array MultiPaymentErrorMessage: items: $ref: '#/components/schemas/MultiPaymentError' type: array MultiPaymentResponse: example: account_details: - account_number: 99999999 bank_identifier: 999999 bank_identifier_type: SC UK Sort Code iban: GB82TEST9999999999999999 swift_code: TESTGB99 multipayment_id: 1 trade_details: - buy_amount: 32 buy_currency: EUR client_rate: 0.814273 client_rate_symbol: EURGBP inverse_rate: 1.228089 inverse_rate_symbol: GBPEUR sell_amount: 26.06 sell_currency: GBP value_date: '2016-04-18T00:00:00.000Z' - buy_amount: 110 buy_currency: NZD client_rate: 2.013132 client_rate_symbol: GBPNZD inverse_rate: 0.496738 inverse_rate_symbol: NZDGBP sell_amount: 54.64 sell_currency: GBP value_date: '2016-04-18T00:00:00.000Z' properties: account_details: $ref: '#/components/schemas/BankAccountCoreData' invalid_payments: items: $ref: '#/components/schemas/MultiPaymentError' type: array multipayment_id: description: The multipayment ID format: int32 type: integer trade_details: items: properties: buy_amount: format: float type: number buy_currency: type: string client_rate: format: float type: number client_rate_symbol: type: string inverse_rate: format: float type: number inverse_rate_symbol: type: string sell_amount: format: float type: number sell_currency: type: string value_date: format: date type: string type: object type: array required: - multipayment_id type: object x-konfig-properties: account_details: type: object MassPaymentResponse: properties: mass_payment_id: description: The UUID of the MassPayment just created type: string format: uuid external_reference_id: description: The external reference for the MassPayment, if supplied type: string mass_payment_status: $ref: '#/components/schemas/EnumMassPaymentStatus' MassPaymentConfirmResponse: properties: mass_payment_status: $ref: '#/components/schemas/EnumMassPaymentStatus' MassPaymentPaymentsReceivedResponse: items: $ref: '#/components/schemas/NewMultiPaymentItem' type: array MassPaymentErrorsResponse: items: $ref: '#/components/schemas/PaymentInstructionWithErrors' type: array NewBeneficiary: description: The data to create a new beneficiary. allOf: - $ref: '#/components/schemas/BankAccountCoreData' - $ref: '#/components/schemas/BeneficiaryCoreData' required: - country_code - name - email_notification type: object NewMassPayment: required: - auto_commit - payment_instructions type: object properties: external_reference_id: description: >- The external reference: unique ID supplied by customer which can be used later to filter. type: string default: '' auto_commit: description: >- If true, send successful instructions for payment. If false, hold until customer hits commit endpoint. type: boolean sell_currency: description: If `trade_id` omitted, `sell_currency` must be supplied. type: string trade_id: description: >- Trade ID to book payments against. If customer wants the trade to be auto booked then this parameter should not be supplied. type: string payment_instructions: description: Array of multiple payment instruction given by the customer. type: array items: $ref: '#/components/schemas/NewMultiPaymentItem' NewMultiPayment: example: - account_number: 9999999999 bank_address: 1 Test Street bank_code: 999999 bank_country: 'N' bank_name: Test Bank 1 beneficiary_address: 2 Test Street beneficiary_country: NZ beneficiary_name: Functional Test New Zealand beneficiary_reference: Beneficiary bank direction: buy iban: null inn: null kio: null payment_amount: 110.01 payment_currency: NZD payment_reference: MULTIPAYMENTSTEST purpose_of_payment: null reason_for_trade: Execute payments russian_central_bank_account: null swift_code: TESTNZ99 trade_type: spot value_date: '2016-04-18T00:00:00.000Z' vo: null - account_number: null bank_address: 1 Test Street bank_code: null bank_country: ES, bank_name: Test Bank 2 beneficiary_address: 2 Test Street beneficiary_country: GB beneficiary_name: Test beneficiary beneficiary_reference: null direction: buy iban: ES6710067038260971665568 inn: null kio: null payment_amount: 32.02 payment_currency: EUR payment_reference: MULTIPAYMENTSTEST purpose_of_payment: null reason_for_trade: Execute payments russian_central_bank_account: null swift_code: TESTES99 trade_type: spot value_date: '2016-04-18T00:00:00.000Z' vo: null items: $ref: '#/components/schemas/NewMultiPaymentItem' type: array NewMultiPaymentItem: required: - account_number - bank_address - bank_code - bank_country - bank_name - beneficiary_address - beneficiary_country - beneficiary_name - direction - iban - payment_amount - payment_currency - reason_for_trade - swift_code - trade_type - value_date properties: account_number: description: Destination account number type: string nullable: true bank_address: description: Destination bank address type: string nullable: true bank_code: description: Destination bank code type: string nullable: true bank_country: description: Destination bank country type: string minLength: 1 bank_name: description: Destination bank name type: string nullable: true beneficiary_address: description: Address of beneficiary type: string nullable: true beneficiary_name: description: Name of beneficiary type: string nullable: true beneficiary_country: description: Country of beneficiary type: string nullable: true direction: description: Type of payment, 'buy' or 'sell' type: string enum: - buy - sell iban: description: IBAN of the destination account type: string nullable: true payment_currency: description: Destination currency type: string minLength: 1 payment_amount: description: Amount to be paid type: number format: float minimum: 0 reason_for_trade: description: Reason for trade type: string nullable: true payment_reference: description: Reference of payment type: string nullable: true swift_code: description: SWIFT code of destination bank type: string nullable: true trade_type: description: Type of trade. 'spot' is the only supported value at the moment type: string enum: - spot value_date: description: Date when the transaction will be performed type: string nullable: true beneficiary_reference: description: Reference of beneficiary type: string nullable: true purpose_of_payment: description: Text describing the purpose of the payment type: string nullable: true reference: description: Payment reference type: string nullable: true inn: description: The INN of the bank account type: string pattern: ^[0-9]{10}([0-9]{2})?$ nullable: true vo: description: The VO of the bank account type: string nullable: true kio: description: The KIO of the bank account type: string nullable: true russian_central_bank_account: description: Russian central bank account type: string nullable: true type: object NewPayment: description: A list of payments with known beneficiary/bank account IDs. properties: async: description: >- Create the payment(s) asynchronously. Payments are created synchronously by default. type: boolean payments: description: A list of payments items: properties: account_id: description: The ID of the beneficiary's bank account type: string amount: description: The payment amount format: float type: number beneficiary_id: description: The ID of the beneficiary type: string email_beneficiary: description: Whether the beneficiary should receive and email on payment default: false type: boolean payment_date: description: The date on which payment is required format: date type: string reference: description: Payment reference type: string required: - beneficiary_id - account_id - amount - payment_date - reference type: object type: array trade_id: description: Unique identifier of the trade the payment is allocated to type: string type: object NewPaymentItem: properties: fee_amount: description: Fee amount format: float type: number fee_currency: description: Fee currency type: string payment_id: description: The payment identifier type: string payment_instruction: description: URI to download payment instruction format: uri type: string payment_receipt: description: URI to download payment receipt format: uri type: string reference: description: Payment reference type: string status: description: The current status of the payment enum: - Need more beneficiary information - Validating beneficiary information - Waiting for payment date - Payment complete - Executing Payment - Payment pending of authorization - Payment rejected - Payment cancelled type: string warning: description: >- A warning is only returned if the requested value date was not valid and the next available date has been returned. type: string type: object NewStatement: properties: from_value_datetime: description: >- Only return transactions with value date after this date. Time ignored, considered always to be the start of the day. YYYY-MM-DDThh:mm format type: string to_value_datetime: description: >- Only return transactions with value date before this date. Time ignored, considered always to be the end of the day. YYYY-MM-DDThh:mm format type: string required: - from_value_datetime type: object NewTrade: properties: reason: description: >- Reason for trade. The 'not_related_to_goods_or_services' reason is only for spot type. enum: - charitable_aid - payment_for_goods - capital_investment - payment_for_services - repatriation_of_goods - repatriation_of_services - property_purchase - mortage_repayment - property_rental_or_maintenance - salary_payroll - travel_costs - living_costs - repayment_of_loan - balance_hedging - repatriation_from_investment - portfolio_netting - not_related_to_goods_or_services - other type: string reference: description: Reference for the trade. type: string trade_type: description: Currently ignored (DEPRECATED) type: string external_reference_id: description: API external reference id type: string required: - reason type: object PatchAccountDetailsRequest: type: object required: - alias properties: alias: description: New alias for the account details type: string Payment: example: amount: 32 authorisation_workflow: 4-eyes authorised_by: TAICON99999 authorised_date: '2016-04-28T00:00:00.000Z' beneficiary_name: Test beneficiary cancelled_by: TAICON99999 cancelled_date: '2016-04-28T00:00:00.000Z' contact_id: TAICON99999 created_date: '2016-04-28T00:00:00.000Z' iban: GB99TEST999999999999 payment_currency: GBP payment_date: '2016-04-28T00:00:00.000Z' payment_id: PI186294 payment_instruction: /documents?client_id=TAICLI99999&type=pi&reference=PI186294 reference: My payment reference rejected_by: TAICON99999 rejected_date: '2016-04-28T00:00:00.000Z' status: Validating beneficiary information swift_code: TESTES99 trade_id: EBPOTR372760 properties: account_number: type: string amount: description: Payment amount format: float type: number authorisation_workflow: description: The authorisation workflow of the payment enum: - simple - 4-eyes type: string authorised_by: description: The user who authorised the payment type: string authorised_date: description: The date when payment was authorised format: date type: string bank_identifier: type: string beneficiary_name: description: Name of the beneficiary type: string cancelled_by: description: The user who cancelled the payment type: string cancelled_date: description: The date when payment was cancelled format: date type: string contact_id: description: Unique identifier of the contact who booked the payment type: string created_date: description: Payment instruction created date format: date type: string fee_amount: description: Fee amount format: float type: number fee_currency: description: Fee currency type: string iban: type: string invoice_required: description: Whether or not the payment requires an invoice type: boolean payment_currency: description: Currency the payment was made in type: string payment_date: description: Target payment date format: date type: string payment_id: description: Unique identifier for the payment type: string payment_instruction: description: URI to download payment instruction format: uri type: string payment_receipt: description: URI to download payment receipt format: uri type: string reference: description: Payment reference type: string rejected_by: description: The user who rejected the payment type: string rejected_date: description: The date when payment was rejected format: date type: string status: $ref: '#/components/schemas/PaymentStatus' swift_code: type: string trade_id: description: Unique identifier of the trade the payment is allocated to type: string required: - payment_id - contact_id - trade_id type: object PaymentInstructionWithErrors: allOf: - $ref: '#/components/schemas/NewMultiPaymentItem' - type: object properties: errors: items: properties: code: description: A short code for the error type: string message: description: The detailed explanation of the error type: string required: - code - message type: object type: array type: object PaymentStatus: description: The current status of the payment enum: - Need more beneficiary information - Validating beneficiary information - Waiting for payment date - Payment complete - Executing Payment - Payment pending of authorization - Payment rejected - Payment cancelled type: string Payments: items: $ref: '#/components/schemas/Payment' type: array PaymentsSummaryGetMassPaymentItem: properties: payments_received: description: Payments received count type: number payments_processed: description: Payments processed count type: number payments_errored: description: Payment errored count type: number payments_created: description: Funding created count type: number type: object PaymentFee: description: This model is a representation of a payment fee. type: object properties: fee_amount: description: Fee amount type: number format: float fee_currency: description: Fee currency type: string payment_amount: description: Payment amount type: number format: float payment_currency: description: Currency the payment was made in type: string payment_country: description: The destination country of the payment type: string beneficiary_id: description: Beneficiary identifier type: string payment_is_intra: description: True if payment is Ebury intra payments, False otherwise type: boolean required: - fee_amount - fee_currency - payment_currency - payment_country - beneficiary_id PaymentFeeEstimate: description: This model is a representation of a payment fee estimate. type: object properties: fee_amount: description: Fee amount type: number format: float fee_currency: description: Fee currency type: string payment_amount: description: Payment amount type: number format: float payment_currency: description: Currency the payment was made in type: string payment_country: description: The destination country of the payment type: string payment_instruction: description: payment instruction type: string payment_is_intra: description: True if payment is Ebury intra payments, False otherwise type: boolean required: - fee_amount - fee_currency - payment_currency - payment_country - payment_instruction PostTokenForContactResponse: description: Access token data type: object properties: access_token: description: An OAuth access token that can be used to call the API type: string token_type: description: >- The Authorization header scheme to use when making requests, will be Bearer. type: string enum: - Bearer expires_in: description: >- Expiry period in seconds from time token returned, currently returns 3600 (1 hour). type: string id_token: description: >- A signed, base 64 encoded JSON Web Token that provides verification of the identity that authorized the request. The token includes the client identifier, which is a required parameter on the majority of API calls. type: string PostTokenResponse: description: Access token and refresh token data type: object properties: access_token: description: An OAuth access token that can be used to call the API type: string token_type: description: >- The Authorization header scheme to use when making requests, will be Bearer. type: string enum: - Bearer refresh_token: description: >- An OAuth refresh token that can be used to get a new access token when when the last expires. type: string expires_in: description: >- Expiry period in seconds from time token returned, currently returns 3600 (1 hour). type: string id_token: description: >- A signed, base 64 encoded JSON Web Token that provides verification of the identity that authorized the request. The token includes the client identifier, which is a required parameter on the majority of API calls. type: string QuoteRequest: properties: amount: description: Amount format: double type: number buy_currency: description: Buy currency type: string operation: description: Operation (buy or sell) enum: - buy - sell type: string sell_currency: description: Sell currency type: string trade_type: description: The trade type enum: - spot - forward type: string value_date: description: > Value date for the trade. If the value date is not valid then the quote will be returned for next available value date. If the value date is not provided, then the quote will be returned for the next available valid value date. format: date type: string required: - amount - buy_currency - operation - sell_currency - trade_type type: object FxAvailability: properties: fx_available: description: True if FX markets are available at this time, False otherwise. type: boolean required: - fx_available type: object EstimateOrQuoteResponse: properties: book_trade: description: >- Call this endpoint to book the trade (refer to Trades documentation for required payload) format: uri type: string buy_amount: description: Buy amount format: double type: number buy_currency: description: Buy currency type: string inverse_rate: description: The inverse rate format: double type: number inverse_rate_symbol: description: The symbol of inverse rate type: string quote_id: description: Quote identifier. Used to create book a trade at the Trades endpoint type: string quoted_rate: description: The rate quoted format: double type: number quoted_rate_symbol: description: The symbol of rate quoted type: string sell_amount: description: Sell amount format: double type: number sell_currency: description: Sell currency type: string estimated_rate: description: The estimated rate format: double type: number estimated_rate_symbol: description: The symbol of estimated rate type: string fee_amount: description: Fee amount format: float type: number fee_currency: description: Fee currency type: string value_date: description: Date on which quote is requested format: date type: string warning: description: >- A warning is only returned if the requested value date was not valid and the next available date has been returned. type: string required: - inverse_rate - inverse_rate_symbol - value_date type: object QuoteResponse: properties: book_trade: description: >- Call this endpoint to book the trade (refer to Trades documentation for required payload) format: uri type: string buy_amount: description: Buy amount format: double type: number buy_currency: description: Buy currency type: string inverse_rate: description: The inverse rate format: double type: number inverse_rate_symbol: description: The symbol of inverse rate type: string quote_id: description: Quote identifier. Used to create book a trade at the Trades endpoint type: string quoted_rate: description: The rate quoted format: double type: number quoted_rate_symbol: description: The symbol of rate quoted type: string sell_amount: description: Sell amount format: double type: number sell_currency: description: Sell currency type: string value_date: description: Date on which trade active format: date type: string warning: description: >- A warning is only returned if the requested value date was not valid and the next available date has been returned. type: string required: - buy_amount - buy_currency - inverse_rate - inverse_rate_symbol - quote_id - quoted_rate - quoted_rate_symbol - sell_amount - sell_currency - value_date type: object StatementFileData: properties: url: description: >- The url needed to retrieve the statement. It contains two UUID values, the first one (from the left) is the account id and the second one is the statement id. type: string required: - url type: object StatementFileStatus: properties: status: $ref: '#/components/schemas/StatementStatus' type: object StatementStatus: description: The status of the statement. enum: - Pending - Failed type: string TradeStatus: description: Status of the trade enum: - Created - Funds In Partially - Funds in Full - Funds Out Partially Allocated - Funds Out Full Allocated - Closed - Cancelled type: string TransactionData: properties: account_id: description: The UUID of the account. type: string additional_transaction_information: description: Additional information for the transaction. type: string amount: $ref: '#/components/schemas/Amount' balance: $ref: '#/components/schemas/BalanceData' booking_datetime: description: Date and time (UTC) when the transaction was booked type: string client_id: description: Identifier of the client. type: string credit_debit_indicator: $ref: '#/components/schemas/CreditDebitIndicator' creditor_account: $ref: '#/components/schemas/CreditorDebtorAccount' creditor_name: description: Name of the creditor type: string debtor_account: $ref: '#/components/schemas/CreditorDebtorAccount' debtor_name: description: Name of the debtor type: string status: $ref: '#/components/schemas/TransactionStatus' transaction_id: description: The UUID of the transaction. type: string transaction_information: description: Basic information for the transaction type: string transaction_reference: description: Reference for the transaction type: string transaction_type: description: Type of the transaction type: string enum: - credit - debit - incoming - margin - payment_returned value_datetime: description: Value date and time (UTC) of the transaction type: string required: - account_id - additional_transaction_information - amount - balance - booking_datetime - client_id - credit_debit_indicator - status - transaction_id - transaction_information - transaction_reference - transaction_type - value_datetime type: object TransactionStatus: description: This is an enumeration of the types of status for a transaction. enum: - Booked type: string UpdateBeneficiary: description: >- The data to update a beneficiary. After a beneficiary has received a payment, the only fields available for modification are email_addresses, email_notification and beneficiary_reference. allOf: - $ref: '#/components/schemas/BankAccountCoreData' - $ref: '#/components/schemas/BeneficiaryCoreData' type: object WebhooksRequest: description: The GraphQL query to execute properties: query: description: The GraphQL query type: string variables: description: The GraphQL variables type: string required: - query type: object AccountsListRetrieveResponse: items: $ref: '#/components/schemas/AccountData' type: array BalancesGetSingleAccountBalanceResponse: type: array items: $ref: '#/components/schemas/BalanceData' TransactionsGetByAccountIdResponse: items: $ref: '#/components/schemas/TransactionData' type: array OAuth20GetLoginTemplateResponse: type: string OAuth20GetLoginTemplate200Response: type: string BalancesGetListResponse: items: $ref: '#/components/schemas/BalanceData' type: array CurrenciesGetListResponse: items: $ref: '#/components/schemas/CurrencyInfo' type: array BeneficiariesGetResponse: items: $ref: '#/components/schemas/BeneficiaryCoreData' type: array ClientsGetResponse: items: $ref: '#/components/schemas/Client' type: array ContactsGetResponse: items: $ref: '#/components/schemas/Contact' type: array DocumentGetResponse: format: byte type: string OAuth20LoginTemplateRetrieveResponse: type: string OAuth20LoginTemplateRetrieve200Response: type: string OAuth20LoginTemplateRetrieve302Response: type: string MultiPaymentsCreateInstructionResponse: type: object properties: {} example: {} MultiPaymentsConfirmInstructionResponse: type: object properties: {} example: {} PaymentsCreatePaymentsResponse: items: $ref: '#/components/schemas/NewPaymentItem' type: array PaymentsCreatePayments204Response: items: $ref: '#/components/schemas/NewPaymentItem' type: array TradesGetAllForClientResponse: items: $ref: '#/components/schemas/BookedTrade' type: array TransactionsGetAllResponse: items: $ref: '#/components/schemas/TransactionData' type: array OAuth20Verify2FaCodeResponse: type: string OAuth20Verify2FaCode302Response: type: string security: - api_key: []