> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doglytdc.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a checkout

> In DoglyTdc Pay, creating a product already creates the checkout. Learn about the flow and the payment link.

![Screenshot: Products in DoglyTdc Pay](https://mintcdn.com/dogly-tdc/qOnot79kPtISSKbW/images/pay/pay-products.png?fit=max\&auto=format\&n=qOnot79kPtISSKbW\&q=85\&s=f52027da00f5add478ab16a782480c7b)

Products in DoglyTdc Pay

## How it works

Every active DoglyTdc Pay product already has a **hosted checkout** with PIX and Balance. You do not need to create a separate checkout.

**1. Create the product**

In **DoglyTdc Pay › Products › New product**: name, price, currency (BRL or USD), and type (one-time or subscription).

**2. Get the ID**

Use [List Products](https://docs.doglytdc.dev/en/pay/api-reference/products/list.md) to find the `id`.

**3. Request the link**

Call [Create Payment Link](https://docs.doglytdc.dev/en/pay/api-reference/payment-links/create.md) with the `product_id`.

**4. Approve**

The API responds with `202 approval_required`. Approve in **Integrations › MCP**; the link becomes ready in Pay.

```bash theme={null}
curl -X POST https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/payment-links \
  -u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"PRODUCT_UUID"}'
```

> [!NOTE]
>
> Coupons and affiliates are applied directly in the checkout, along with PIX.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.