dLocal · Arazzo Workflow

dLocal Tokenize Card and Charge

Version 1.0.0

Tokenize a card, then charge the token in a card payment.

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

Provider

dlocal

Workflows

tokenize-card-and-charge
Tokenize a card and use the token to create a card payment.
Creates a card token from the supplied card and then charges the token in a new card payment. The current API has no token read, so the token is used directly.
2 steps inputs: amount, cardNumber, country, currency, cvv, expirationMonth, expirationYear, holderName, orderId, payerDocument, payerEmail, payerName outputs: cardToken, paymentId, status
1
createCard
Tokenize the supplied card for use in a payment, returning a token in place of the raw card number.
2
chargeCard
Create a DIRECT card payment that references the stored card token so the raw card number is never re-sent.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: dLocal Tokenize Card and Charge
  summary: Tokenize a card, then charge the token in a card payment.
  description: >-
    Tokenizes a card and immediately uses the resulting token to create a card
    payment. The workflow tokenizes the raw card via the Tokens API and then
    creates a DIRECT card payment referencing the token so no raw PAN is sent on the
    charge. 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: tokensApi
  url: ../openapi/dlocal-tokens-api-openapi.yml
  type: openapi
- name: paymentsApi
  url: ../openapi/dlocal-payments-api-openapi.yml
  type: openapi
workflows:
- workflowId: tokenize-card-and-charge
  summary: Tokenize a card and use the token to create a card payment.
  description: >-
    Creates a card token from the supplied card and then charges the token in
    a new card payment. The current API has no token read, so the token is
    used directly.
  inputs:
    type: object
    required:
    - country
    - currency
    - amount
    - orderId
    - holderName
    - cardNumber
    - expirationMonth
    - expirationYear
    - cvv
    - payerName
    - payerEmail
    - payerDocument
    properties:
      country:
        type: string
        description: ISO 3166-1 alpha-2 country code (e.g. BR).
      currency:
        type: string
        description: ISO-4217 three-letter currency code (e.g. BRL).
      amount:
        type: number
        description: Transaction amount in the specified currency.
      orderId:
        type: string
        description: Merchant-provided order identifier.
      holderName:
        type: string
        description: Cardholder name as printed on the card.
      cardNumber:
        type: string
        description: Primary account number of the card to tokenize.
      expirationMonth:
        type: integer
        description: Card expiration month (1-12).
      expirationYear:
        type: integer
        description: Card expiration year (four digits).
      cvv:
        type: string
        description: Card verification value.
      payerName:
        type: string
        description: Full name of the payer.
      payerEmail:
        type: string
        description: Email address of the payer.
      payerDocument:
        type: string
        description: National identification document of the payer.
  steps:
  - stepId: createCard
    description: >-
      Tokenize the supplied card for use in a payment, returning a token in
      place of the raw card number.
    operationId: $sourceDescriptions.tokensApi.createToken
    requestBody:
      contentType: application/json
      payload:
        holder_name: $inputs.holderName
        number: $inputs.cardNumber
        expiration_month: $inputs.expirationMonth
        expiration_year: $inputs.expirationYear
        cvv: $inputs.cvv
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      cardToken: $response.body#/token
      brand: $response.body#/brand
      last4: $response.body#/last4
  - stepId: chargeCard
    description: >-
      Create a DIRECT card payment that references the stored card token so the
      raw card number is never re-sent.
    operationId: $sourceDescriptions.paymentsApi.createPayment
    requestBody:
      contentType: application/json
      payload:
        amount: $inputs.amount
        currency: $inputs.currency
        country: $inputs.country
        payment_method_id: CARD
        payment_method_flow: DIRECT
        order_id: $inputs.orderId
        payer:
          name: $inputs.payerName
          email: $inputs.payerEmail
          document: $inputs.payerDocument
        card:
          token: $steps.createCard.outputs.cardToken
          capture: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      paymentId: $response.body#/id
      status: $response.body#/status
  outputs:
    cardToken: $steps.createCard.outputs.cardToken
    paymentId: $steps.chargeCard.outputs.paymentId
    status: $steps.chargeCard.outputs.status

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-tokenize-card-and-charge-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.