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

# Subscriptions

> Subscription creation and query endpoints

Use these endpoints to create and query subscriptions.

<CardGroup cols={2}>
  <Card title="Create Pix subscription" href="/endpoints/subscriptions/pix.mdx">
    Create a recurring subscription charged through Pix.
  </Card>

  <Card title="Create card subscription" href="/endpoints/subscriptions/card.mdx">
    Create a recurring subscription charged through card.
  </Card>

  <Card title="Create crypto subscription" href="/endpoints/subscriptions/crypto.mdx">
    Create a recurring subscription charged through crypto.
  </Card>

  <Card title="Search subscriptions" href="/endpoints/subscriptions/search.mdx">
    Query subscriptions created through the API.
  </Card>
</CardGroup>

## Common creation payload

```json theme={null}
{
  "identifier": "assinatura-123",
  "amount": 97,
  "client": {
    "name": "João da Silva",
    "email": "joao@email.com",
    "phone": "(11) 99999-9999",
    "document": "123.456.789-00"
  },
  "product": {
    "id": "plano-mensal",
    "name": "Plano mensal",
    "price": 97
  },
  "subscription": {
    "periodicityType": "MONTHS",
    "periodicity": 1,
    "firstChargeIn": 0
  },
  "callbackUrl": "https://example.com/webhooks/payment"
}
```

## Periodicity

```text theme={null}
DAYS
WEEKS
MONTHS
YEARS
```
