Checkout for Pix

Example of a simple checkout with Pix:

{
  "billingTypes": ["PIX"],
  "chargeTypes": ["DETACHED"],
  "minutesToExpire": 60,
  "callback": {
    "cancelUrl": "https://mywebsite.com/canceled",
    "expiredUrl": "https://mywebsite.com/expired",
    "successUrl": "https://mywebsite.com/success"
  },
  "items": [
    {
      "name": "Marketing Course",
      "description": "Complete digital marketing course",
      "quantity": 1,
      "value": 297.00
    }
  ]
}

This example creates a checkout with:

  • Payment via Pix
  • Link valid for 1 hour
  • Product named "Marketing Course" priced at R$ 297.00
  • Redirection back to your website

🚧

Important

  • The items field is required and defines what you are selling.
  • If you want to pre-fill customer data automatically, you can include the customerData field.
  • If you are using subscriptions or installments, there are additional specific fields for those scenarios.