AbacatePay icon

AbacatePay

Integration with AbacatePay API

Actions11

PIX QR Code → Create

AI-generated

Summary

Create a PIX QR Code charge

Inputs

  • amount (required) — Charge amount in cents (e.g., 2000 = R$ 20.00)
  • description — Message that will appear when paying the PIX (max 140 characters)
  • expiresIn — Charge expiration time in seconds
  • customer — Customer data (optional)
  • metadata — Optional metadata for the charge

Output shape

a single record representing the created PIX charge

Returns the created charge object; on failure may return an error envelope.

Examples

Example 1: Create a charge for a R$ 25.00 item

amount=2500, description='Order #123', expiresIn=3600, customer empty, metadata empty

Example 2: Create a charge with customer details

amount=1500, description='Subscription', customer.name='John Doe', customer.cellphone='+551199999999', customer.email='john@example.com', expiresIn=7200

Example 3: Create a charge with external metadata

amount=500, description='Donation', metadata.externalId='DON-001', expiresIn=86400

Discussion