Saving cards

Securely register a card with dLocal and receive a card_id to use for future payments.

post/secure_cards

Request

  • Base URL
    https://api.dlocal.com
  • URL
    https://api.dlocal.com/secure_cards
  • Auth
    API key in header X-Date and API key in header X-Login and API key in header X-Trans-Key and API key in header Content-Type and API key in header X-Version and API key in header User-Agent and API key in header Authorization

Request body

countrystring required

Payment processing country code. ISO 3166-1 alpha-2 code.

Response

200

holder_namestring
expiration_monthinteger
expiration_yearinteger
brandstring
last4string
card_idstring
countrystring

Example response

{
  "holder_name": "Thiago Gabriel",
  "expiration_month": 10,
  "expiration_year": 2040,
  "brand": "VI",
  "last4": "1111",
  "card_id": "CID-2210908e-6d8e-468d-9eb3-d551e8b541a0",
  "country": "BR"
}

Changes