## Collect Customer Tax IDs with Checkout

This document explains how to collect VAT and other customer tax IDs using Stripe Checkout.

### Hosted Page and Embedded Page

Checkout offers two integration types: a hosted page and an embedded form.

### Enabling Tax ID Collection

When you enable tax ID collection, Checkout dynamically displays a tax ID collection form based on the customer's location. If the customer is in a supported region, a checkbox appears, allowing them to indicate if they are purchasing as a business. Checking this box reveals fields for entering the tax ID and legal entity name. Checkout determines the customer's location using their shipping address if available, otherwise it uses their billing address. Customers can enter only one tax ID.

### New Customers

To enable tax ID collection for new customers, set `tax_id_collection[enabled]` to `true` when creating a Checkout session.

**Example using cURL:**

```bash
curl https://api.stripe.com/v1/checkout/sessions \
  -u "sk_test_RXHltS2OKzISvxWQ7NmRN57i001oa6x7o4:" \
  -d "line_items[0][price_data][unit_amount]=1000" \
  -d "line_items[0][price_data][product_data][name]=T-shirt" \
  -d "line_items[0][price_data][currency]=eur" \
  -d "line_items[0][quantity]=2" \
  -d "tax_id_collection[enabled]=true" \
  -d mode=payment \
  --data-urlencode "success_url=https://example.com/success"
```