dLocal · Arazzo Workflow

dLocal Create and Resolve KYC Verification

Version 1.0.0

Create a KYC verification, confirm it persisted, then branch on its status to resolve it or list documents.

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

Provider

dlocal

Workflows

create-and-resolve-kyc-verification
Create a KYC verification and either resolve its status or list its documents.
Creates a KYC verification, confirms it, and branches on the verification status to either set an APPROVED or REJECTED decision when PENDING or list its documents when it has already moved on.
4 steps inputs: decision, notificationUrl, orderId, payerCountry, payerDocument, payerEmail, payerName, reason, type outputs: documents, updatedStatus, verificationId
1
createVerification
Submit a KYC verification for the payer.
2
confirmVerification
Retrieve the verification to confirm it persisted and inspect its current status.
3
resolveStatus
Set the pending verification's status to the supplied decision.
4
listDocuments
List the verification documents for a resolved verification for record keeping.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: dLocal Create and Resolve KYC Verification
  summary: Create a KYC verification, confirm it persisted, then branch on its status to resolve it or list documents.
  description: >-
    Drives a KYC verification to a decision point. The workflow creates a
    verification for a client, retrieves it to confirm it persisted, and then
    branches on the verification status: when it is still PENDING it sets the
    APPROVED or REJECTED decision, and when it has moved on it lists the
    verification documents for record keeping. 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: documentsApi
  url: ../openapi/dlocal-documents-api-openapi.yml
  type: openapi
- name: verificationsApi
  url: ../openapi/dlocal-verifications-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-and-resolve-kyc-verification
  summary: Create a KYC verification and either resolve its status or list its documents.
  description: >-
    Creates a KYC verification, confirms it, and branches on the verification
    status to either set an APPROVED or REJECTED decision when PENDING or list
    its documents when it has already moved on.
  inputs:
    type: object
    required:
    - type
    - orderId
    - payerName
    - payerEmail
    properties:
      type:
        type: string
        description: Verification type (PAYOUT_HOLD or REMITTANCE).
      orderId:
        type: string
        description: Merchant order identifier the verification belongs to.
      payerName:
        type: string
        description: Full name of the person being verified.
      payerEmail:
        type: string
        description: Email address of the person being verified.
      payerDocument:
        type: string
        description: National identification document of the person being verified.
      payerCountry:
        type: string
        description: ISO 3166-1 alpha-2 country code of the person being verified.
      notificationUrl:
        type: string
        description: URL to receive asynchronous verification result notifications.
      decision:
        type: string
        description: Status to apply to a pending verification (APPROVED or REJECTED).
      reason:
        type: string
        description: Reason recorded with the decision.
  steps:
  - stepId: createVerification
    description: >-
      Submit a KYC verification for the payer.
    operationId: $sourceDescriptions.verificationsApi.createVerification
    requestBody:
      contentType: application/json
      payload:
        type: $inputs.type
        order_id: $inputs.orderId
        notification_url: $inputs.notificationUrl
        payer:
          name: $inputs.payerName
          email: $inputs.payerEmail
          document: $inputs.payerDocument
          country: $inputs.payerCountry
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      verificationId: $response.body#/id
      status: $response.body#/status
  - stepId: confirmVerification
    description: >-
      Retrieve the verification to confirm it persisted and inspect its current
      status.
    operationId: $sourceDescriptions.verificationsApi.getVerification
    parameters:
    - name: verification_id
      in: path
      value: $steps.createVerification.outputs.verificationId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
    onSuccess:
    - name: stillPending
      type: goto
      stepId: resolveStatus
      criteria:
      - condition: $response.body#/status == 'PENDING'
    - name: resolved
      type: goto
      stepId: listDocuments
      criteria:
      - condition: $response.body#/status != 'PENDING'
  - stepId: resolveStatus
    description: >-
      Set the pending verification's status to the supplied decision.
    operationId: $sourceDescriptions.verificationsApi.updateVerificationStatus
    parameters:
    - name: verification_id
      in: path
      value: $steps.createVerification.outputs.verificationId
    requestBody:
      contentType: application/json
      payload:
        status: $inputs.decision
        reason: $inputs.reason
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      updatedStatus: $response.body#/status
    onSuccess:
    - name: done
      type: end
  - stepId: listDocuments
    description: >-
      List the verification documents for a resolved verification for record
      keeping.
    operationId: $sourceDescriptions.documentsApi.listVerificationDocuments
    parameters:
    - name: verification_id
      in: path
      value: $steps.createVerification.outputs.verificationId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      documents: $response.body#/documents
  outputs:
    verificationId: $steps.createVerification.outputs.verificationId
    updatedStatus: $steps.resolveStatus.outputs.updatedStatus
    documents: $steps.listDocuments.outputs.documents

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-create-and-resolve-kyc-verification-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.