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

  1. Create the checkout via the API.
  2. Copy the id returned in the successful request's response.
   {
     "id": "c7b1c696-b27b-4d3d-80b9-d1c018e387f8"
   }
  1. Replace ID_RETORNADO with the checkout ID in this format:
   https://asaas.com/checkoutSession/show?id=ID_RETORNADO
  1. Redirect the customer to the generated URL or send the link directly.
Checkout screen displayed to the customer

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-d1c018e387f8

This 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.

Checkout screen with customer data automatically filled in


Did this page help you?