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.
-
Have your access key (
access_token
)
First, you must be authenticated to use the API. This is done with youraccess_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. -
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).
Updated about 9 hours ago