Create a new charge
Creates a payment charge for a merchant with the specified amount, currency, and payment method.
Authorizations
HTTP Basic authentication. Use your secret key as the username and an empty string as password. The API key should be base64 encoded in the format 'username:' when sending the Authorization header.
Body
The amount to charge in the currency unit, not cents. (e.g., 10 for 10 BRL)
x >= 110
The ISO 4217 currency code. (e.g., BRL, USD, EUR)
"USD"
Customer data. Provide id to reference an existing customer (all other
fields become optional), or provide name + email (or phone) to
create/look up a customer inline.
- Credit Card
- Credit Card (with saved card)
- Credit Card (with Apple Pay wallet)
- Pix
- Pix Open Finance
- PSE
- Voucher
- Bank Transfer
- Rapipago
- Khipu
- QRCode
List of charge items.
Shipping address details. Required for merchants selling physical goods.
Shipping tracking details.
Additional metadata to store with the charge.
{
"order_id": "ORD-123",
"product_id": "PROD-456"
}Optional URL that receives asynchronous webhook notifications for the charge's lifecycle events AFTER creation. This URL is NOT used for the synchronous create response.
Events delivered to this URL:
- PIX charges:
charge.pending(QR code created),charge.paid - Credit card charges:
charge.paid,charge.refunded,charge.updated
The payload format is identical to the registered webhook endpoint
format (id, event, livemode, data with the full charge object).
Retry logic applies the same exponential backoff as endpoint webhooks.
"https://merchant.com/webhooks/charge-status"
Array of merchants and percentages participating in Split
Response
The charge has been successfully created
The unique identifier of the created charge
"2vorkDcXyvzifL63YX09S9VqcnI"
The status of the charge
paid, pending, refused, failed "pending"
Additional payment details specific to the payment method
- Credit Card
- Rapipago
- Khipu
- Pix
- QRCode
The reason for charge status (especially for refused charges)
"Insufficient funds"