# Payments

> Payments taken through Stripe. 1 endpoint in the Unvop API.

Payments taken through Stripe.

## List payments

`GET /v1/sites/{siteId}/payments`

Scope: `payments:read`.

Payments and subscriptions taken through Stripe on the site, newest first (up to 500). Amounts are in minor units (cents).

### Path parameters

- `siteId` (string, required): The site’s id.

### Response 200

- `items` (array of objects, required)
  - `id` (string, required)
  - `amount` (number, required): In minor units (cents).
  - `currency` (string, required)
  - `status` (string, required)
  - `mode` (string, required): One of `payment`, `subscription`.
  - `contactEmail` (string)
  - `createdAt` (string, required): An ISO 8601 timestamp.
- `cursor` (string, nullable): Pass as ?cursor= to get the next page. Null when there are no more.
- `total` (integer): How many there are in all, when the list knows.

### Errors

- `401`: No key, or the key isn’t valid.
- `403`: The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- `404`: Not found, or not reachable with this key.
- `429`: Too many requests; wait for RateLimit-Reset seconds.

### Example

```sh
curl https://api.unvop.com/v1/sites/site_123/payments \
  -H "Authorization: Bearer $UNVOP_KEY"
```
