# Start buying a paid tier

`POST /public/subscriptions/{tierId}/checkout` · Rivier · content

Start buying a paid tier: a pending membership and a hosted checkout address. The membership starts when the payment succeeds.

- Scope: content:read
- Sdk: content.plan.checkout
- Cli: content plan checkout
- Publishable: yes

## Parameters

- `tierId` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "format": "email"
    },
    "name": {
      "type": "string",
      "maxLength": 200
    }
  },
  "required": [
    "email"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/public/subscriptions/{tierId}/checkout' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "name@example.com"
}'
```
