Create payment

Creates a new payment using any of the available payment methods.

Handling card payments

  • For payments with credit card information (e.g., card number, expiration date, CVV), use https://api.dlocal.com/secure_payments.
  • For card payments with a card_id or token, use https://api.dlocal.com/payments.

Body Params
float
required

Transaction amount (in the currency specified in the currency field).
Decimals may vary by country.

Length: 10,2 (e.g., 99999999.99).

string
required

Three-letter ISO-4217 currency code, in uppercase.

string

Payment method code chosen to make the payment, or the keyword CARD. Required for DIRECT payment method flow.

Length: 4. For example: CARD, VI, VD, MC.

string
required

Payment method flow, can DIRECT or REDIRECT.

string
required

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

payer
object
required
card
object

Required only for CARD payment type.

string
required

ID given by the merchant in their system.

Length: 125.

string

For payment retries. ID given by the merchant in their system for the original transaction that was rejected and needs to be retried.

Length: 125.

string

Payment description.

Length: 200.

string

URL where dlocal will send notifications associated to changes to this payment.

Length: 200.

string

URL where dLocal does the final redirect. Required only for REDIRECT payment flow.

Length: 200.

additional_risk_data
object

Additional information for fraud prevention, see Fraud Prevention - Additional Risk Data Object documentation.

splits
array of objects

Allows to split a transaction between one or more accounts.

splits
Response

Language
Credentials
Request
Choose an example:
application/json
中文
Powered by Localize
English