Checkout with Subscription (Recurring)

If you want the charge to be recurring (for example, every month), use the RECURRENT type:

{
    "billingTypes": [
        "CREDIT_CARD"
    ],
    "chargeTypes": [
        "RECURRENT"
    ],
    "minutesToExpire": 100,
    "callback": {
        "cancelUrl": "https://google.com/cancel",
        "expiredUrl": "https://google.com/expired",
        "successUrl": "https://google.com/success"
    },
    "items": [
        {
            "description": "White T-Shirt",
            "imageBase64": "{{image1}}",
            "name": "test2",
            "quantity": 2,
            "value": 100.00
        }
    ],
    "customerData": {
        "address": "Avenida Rolf Wiest",
        "addressNumber": "277",
        "city": 13660,
        "complement": "complement",
        "cpfCnpj": "92593962046",
        "email": "[email protected]",
        "name": "Teste Novo Pagador",
        "phone": "49999009999",
        "postalCode": "89223005",
        "province": "Bom Retiro"
    },
    "subscription": {
        "cycle": "MONTHLY",
        "endDate": "2025-10-31 15:02:38",
        "nextDueDate": "2024-10-31 15:02:38"
    }
}

In this example, the checkout will display the option for credit card payment, and once completed, Asaas will create a subscription with automatic monthly charges (or the selected cycle) between the specified dates. The customer will be billed without having to repeat the payment process.