Checkout link and customer redirection
After creating the checkout, use the ID returned by the API to build the checkout link and redirect your customer.
Build the checkout link
- Create the checkout via the API.
- Copy the
idreturned in the successful request's response.
{
"id": "c7b1c696-b27b-4d3d-80b9-d1c018e387f8"
}- Replace
ID_RETORNADOwith the checkout ID in this format:
https://asaas.com/checkoutSession/show?id=ID_RETORNADO- Redirect the customer to the generated URL or send the link directly.

The checkout screen will be displayed according to the information defined in the request's body.
Link example
https://asaas.com/checkoutSession/show?id=c7b1c696-b27b-4d3d-80b9-d1c018e387f8This is the link you can send to the customer or integrate into your website.
Optional: Automatically fill in customer data
If customerData is sent in the request, the identification and address fields will be filled in automatically.

Updated 24 days ago
Did this page help you?
