dLocal · Arazzo Workflow

dLocal Hold and Release Payout

Version 1.0.0

Create a payout, review it, then release or cancel it while it is HELD.

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

Provider

dlocal

Workflows

hold-and-release-payout
Create a payout and release or cancel it while it is HELD.
Creates a payout, retrieves it to check whether dLocal placed it in the HELD state, and then releases or cancels it according to the reviewer's decision. The current payouts API has no request flag that asks for a hold, so a payout that is not HELD ends the workflow untouched.
4 steps inputs: amount, beneficiaryDocument, beneficiaryLastName, beneficiaryName, country, currency, decision, paymentMethodId, purpose, requestId outputs: cancelledStatus, payoutId, releasedStatus
1
requestHeldPayout
Create the payout.
2
reviewPayout
Retrieve the payout and, when it is HELD, release or cancel it according to the decision input.
3
releasePayout
Release the held payout so the funds are disbursed to the beneficiary.
4
cancelPayout
Cancel the held payout when the review determines it should not be disbursed.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: dLocal Hold and Release Payout
  summary: Create a payout, review it, then release or cancel it while it is HELD.
  description: >-
    A controlled disbursement flow for payouts that require manual review. The
    workflow creates a payout, retrieves it to see whether it is HELD, and then
    branches on the reviewer's decision: release the funds or cancel the
    payout. A payout that is not HELD is left alone. 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: payoutsApi
  url: ../openapi/dlocal-payouts-api-openapi.yml
  type: openapi
workflows:
- workflowId: hold-and-release-payout
  summary: Create a payout and release or cancel it while it is HELD.
  description: >-
    Creates a payout, retrieves it to check whether dLocal placed it in the
    HELD state, and then releases or cancels it according to the reviewer's
    decision. The current payouts API has no request flag that asks for a
    hold, so a payout that is not HELD ends the workflow untouched.
  inputs:
    type: object
    required:
    - requestId
    - country
    - amount
    - currency
    - paymentMethodId
    - beneficiaryName
    - beneficiaryDocument
    - decision
    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.
      currency:
        type: string
        description: ISO-4217 currency code.
      paymentMethodId:
        type: string
        description: Payout method identifier.
      purpose:
        type: string
        description: Payout purpose (e.g. REMITTANCES, PAYROLL).
      beneficiaryName:
        type: string
        description: Beneficiary first name.
      beneficiaryLastName:
        type: string
        description: Beneficiary last name.
      beneficiaryDocument:
        type: string
        description: Beneficiary national identification document.
      decision:
        type: string
        description: What to do with a HELD payout, release or cancel.
  steps:
  - stepId: requestHeldPayout
    description: >-
      Create the payout.
    operationId: createPayout
    requestBody:
      contentType: application/json
      payload:
        request_id: $inputs.requestId
        country: $inputs.country
        payment_method_id: $inputs.paymentMethodId
        amount: $inputs.amount
        currency: $inputs.currency
        purpose: $inputs.purpose
        beneficiary:
          name: $inputs.beneficiaryName
          lastname: $inputs.beneficiaryLastName
          document: $inputs.beneficiaryDocument
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      payoutId: $response.body#/id
      status: $response.body#/status
  - stepId: reviewPayout
    description: >-
      Retrieve the payout and, when it is HELD, release or cancel it according
      to the decision input.
    operationId: getPayout
    parameters:
    - name: payout_id
      in: path
      value: $steps.requestHeldPayout.outputs.payoutId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
    onSuccess:
    - name: releaseHeld
      type: goto
      stepId: releasePayout
      criteria:
      - condition: $response.body#/status == 'HELD' && $inputs.decision == 'release'
    - name: cancelHeld
      type: goto
      stepId: cancelPayout
      criteria:
      - condition: $response.body#/status == 'HELD' && $inputs.decision == 'cancel'
    - name: notHeld
      type: end
  - stepId: releasePayout
    description: >-
      Release the held payout so the funds are disbursed to the beneficiary.
    operationId: releasePayout
    parameters:
    - name: payout_id
      in: path
      value: $steps.requestHeldPayout.outputs.payoutId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      releasedStatus: $response.body#/status
    onSuccess:
    - name: done
      type: end
  - stepId: cancelPayout
    description: >-
      Cancel the held payout when the review determines it should not be
      disbursed.
    operationId: cancelPayout
    parameters:
    - name: payout_id
      in: path
      value: $steps.requestHeldPayout.outputs.payoutId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      cancelledStatus: $response.body#/status
  outputs:
    payoutId: $steps.requestHeldPayout.outputs.payoutId
    releasedStatus: $steps.releasePayout.outputs.releasedStatus
    cancelledStatus: $steps.cancelPayout.outputs.cancelledStatus

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-hold-and-release-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.