Introduction

Learn more about Asaas Checkout

To start creating an Asaas Checkout, first follow the authentication instructions to obtain your access_token.

How to create a Checkout using the Asaas API?

If you want to create checkouts automatically, Asaas Checkout allows you to set up everything via code — from the type of charge to redirecting the customer after payment.

  1. Have your access key (access_token)
    First, you must be authenticated to use the API. This is done with your access_token, which works like your password for API requests.
    If you don’t have one yet, log in to your Asaas dashboard and go to Integrations > API Keys > Generate API Key.

  2. Build the request to create the checkout
    The checkout is created with a POST request to the following endpoint:
    https://api.asaas.com/v3/checkouts

In the request body, you define the checkout details, such as:

  • Payment method: Pix, credit card, or both.
  • Charge type: one-time payment, installment plan, or recurring (subscriptions).
  • Products or services being sold.
  • Expiration time for the payment link.
  • Where the customer will be redirected after purchase (success, error, or expiration URLs).
  • Customer data (optional).
  • Payment split (optional, if you want to split the amount with other accounts).