---
title: "Start a subscription through the Payment Element"
method: POST
path: "/billing/checkout-intent"
tags: ["Billing"]
---

# Start a subscription through the Payment Element

`POST /billing/checkout-intent`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/billing/checkout-intent`
- Auth: HTTP bearer

`mode` tells the client which confirm call to make, and `trialDays` is 0 when no trial applies, so it can say so without asking again.

## Request body

- CheckoutIntentRequest
  - `locale` string

## Response `200`

OK

- object
  - `data` object, required
    - `clientSecret` string, required
    - `publishableKey` string, required
    - `locale` string, required
    - `mode` string, required
    - `trialDays` integer, required
    - `country` string, required
  - `meta` object, required
    - `requestId` string, required

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
