dLocal · Arazzo Workflow

dLocal Quote and Request Payout

Version 1.0.0

Check balance, lock an FX quote, request a payout against the quote, then confirm its status.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub PaymentsEmerging MarketsPay-InPayoutsFintechLatin AmericaAfricaAsiaLocal Payment MethodsPayment ProcessingCross-Border PaymentsArazzoWorkflows

Provider

dlocal

Workflows

quote-and-request-payout
Lock an FX quote and disburse a payout to a beneficiary.
Checks the balance in the source currency, creates an FX quote, creates a payout that references the quote and beneficiary, and confirms the resulting payout status.
4 steps inputs: amount, beneficiaryDocument, beneficiaryLastName, beneficiaryName, country, currency, currencyToPay, notificationUrl, paymentMethodId, purpose, requestId outputs: finalStatus, payoutId
1
checkBalance
Retrieve the merchant's balance in the source currency to confirm sufficient funds before disbursing.
2
createQuote
Generate an FX quote that locks the exchange rate for the disbursement amount.
3
requestPayout
Create a payout to the beneficiary that references the locked FX quote.
4
confirmPayout
Retrieve the payout to confirm its current status after the request.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: dLocal Quote and Request Payout
  summary: Check balance, lock an FX quote, request a payout against the quote, then confirm its status.
  description: >-
    The full payouts disbursement flow. The workflow first checks the merchant
    payout balance, locks in an FX quote for the disbursement amount, requests a
    payout that references the locked quote and the beneficiary, and finally
    retrieves the payout to confirm its status. 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: balanceApi
  url: ../openapi/dlocal-balance-api-openapi.yml
  type: openapi
- name: currencyApi
  url: ../openapi/dlocal-currency-api-openapi.yml
  type: openapi
- name: payoutsApi
  url: ../openapi/dlocal-payouts-api-openapi.yml
  type: openapi
workflows:
- workflowId: quote-and-request-payout
  summary: Lock an FX quote and disburse a payout to a beneficiary.
  description: >-
    Checks the balance in the source currency, creates an FX quote, creates a
    payout that references the quote and beneficiary, and confirms the
    resulting payout status.
  inputs:
    type: object
    required:
    - requestId
    - country
    - amount
    - currency
    - currencyToPay
    - paymentMethodId
    - beneficiaryName
    - beneficiaryDocument
    properties:
      requestId:
        type: string
        description: Merchant-provided unique payout identifier.
      country:
        type: string
        description: Destination country ISO 3166-1 alpha-2 code.
      amount:
        type: number
        description: Payout amount in the source currency.
      currency:
        type: string
        description: ISO-4217 source currency code.
      currencyToPay:
        type: string
        description: Currency the beneficiary is paid in.
      paymentMethodId:
        type: string
        description: Payout method identifier.
      purpose:
        type: string
        description: Payout purpose (e.g. REMITTANCES, PAYROLL, SUPPLIER_PAYMENT).
      beneficiaryName:
        type: string
        description: Beneficiary first name.
      beneficiaryLastName:
        type: string
        description: Beneficiary last name.
      beneficiaryDocument:
        type: string
        description: Beneficiary national identification document.
      notificationUrl:
        type: string
        description: URL to receive asynchronous payout notifications.
  steps:
  - stepId: checkBalance
    description: >-
      Retrieve the merchant's balance in the source currency to confirm
      sufficient funds before disbursing.
    operationId: $sourceDescriptions.balanceApi.getBalance
    parameters:
    - name: currency
      in: query
      value: $inputs.currency
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      availableBalance: $response.body#/balances/0/available_amount
      balanceCurrency: $response.body#/balances/0/currency
  - stepId: createQuote
    description: >-
      Generate an FX quote that locks the exchange rate for the disbursement
      amount.
    operationId: $sourceDescriptions.currencyApi.createFxQuote
    requestBody:
      contentType: application/json
      payload:
        from_currency: $inputs.currency
        to_currency: $inputs.currencyToPay
        amount: $inputs.amount
        country: $inputs.country
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      quoteId: $response.body#/id
      exchangeRate: $response.body#/rate
  - stepId: requestPayout
    description: >-
      Create a payout to the beneficiary that references the locked FX quote.
    operationId: $sourceDescriptions.payoutsApi.createPayout
    requestBody:
      contentType: application/json
      payload:
        request_id: $inputs.requestId
        country: $inputs.country
        payment_method_id: $inputs.paymentMethodId
        amount: $inputs.amount
        currency: $inputs.currency
        fx_quote_id: $steps.createQuote.outputs.quoteId
        purpose: $inputs.purpose
        notification_url: $inputs.notificationUrl
        beneficiary:
          name: $inputs.beneficiaryName
          lastname: $inputs.beneficiaryLastName
          document: $inputs.beneficiaryDocument
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      payoutId: $response.body#/id
      status: $response.body#/status
  - stepId: confirmPayout
    description: >-
      Retrieve the payout to confirm its current status after the request.
    operationId: $sourceDescriptions.payoutsApi.getPayout
    parameters:
    - name: payout_id
      in: path
      value: $steps.requestPayout.outputs.payoutId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      finalStatus: $response.body#/status
      statusDetail: $response.body#/status_detail
  outputs:
    payoutId: $steps.requestPayout.outputs.payoutId
    finalStatus: $steps.confirmPayout.outputs.finalStatus

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/dlocal-quote-and-request-payout-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

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.

A second provider on the same verified email joins the account you already have.