arazzo: 1.0.1
info:
title: dLocal Manage Account Bank Accounts
summary: Add a bank account to a sub-merchant, list the account's bank accounts, then remove it.
description: >-
Lifecycle management of the bank accounts attached to a platform
sub-merchant. The workflow adds a bank account, lists all bank accounts on
the sub-merchant, and finally removes the account it added. The current
bank-accounts API offers no single-account read and no disable operation,
so the account is read from the list and removed rather than disabled.
Every step spells out its request inline so the flow can be read and
executed without opening the underlying OpenAPI description.
version: 1.0.0
sourceDescriptions:
- name: bankaccountsApi
url: ../openapi/dlocal-bank-accounts-api-openapi.yml
type: openapi
workflows:
- workflowId: manage-account-bank-accounts
summary: Add, list, and remove a sub-merchant's bank account.
description: >-
Adds a bank account to the sub-merchant, lists its bank accounts, and
removes the bank account that was added.
inputs:
type: object
required:
- accountId
- bankAccount
properties:
accountId:
type: string
description: Sub-merchant account identifier.
bankAccount:
type: object
description: >-
Bank account payload to attach to the sub-merchant (type, number,
bank_code, and optionally agency, holder_name, document).
steps:
- stepId: addBankAccount
description: >-
Attach a new bank account to the sub-merchant account.
operationId: addBankAccount
parameters:
- name: account_id
in: path
value: $inputs.accountId
requestBody:
contentType: application/json
payload: $inputs.bankAccount
successCriteria:
- condition: $statusCode == 200
outputs:
bankAccountId: $response.body#/id
status: $response.body#/status
- stepId: listBankAccounts
description: >-
List all bank accounts attached to the sub-merchant account.
operationId: listBankAccounts
parameters:
- name: account_id
in: path
value: $inputs.accountId
successCriteria:
- condition: $statusCode == 200
outputs:
bankAccounts: $response.body#/bank_accounts
- stepId: removeBankAccount
description: >-
Remove the bank account added in the first step from the sub-merchant
account.
operationId: deleteBankAccount
parameters:
- name: account_id
in: path
value: $inputs.accountId
- name: bank_account_id
in: path
value: $steps.addBankAccount.outputs.bankAccountId
successCriteria:
- condition: $statusCode == 200
outputs:
bankAccounts: $steps.listBankAccounts.outputs.bankAccounts
removedBankAccountId: $steps.addBankAccount.outputs.bankAccountId
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.