# creditPackages

```graphql
query CreditPackages {
  creditPackages {
    data {
      id
      credits
      priceEur
      available
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
      prev
    }
  }
}
```

List the credit packages an account can buy and their prices before starting a credit checkout; returns the whole catalogue as one page. Requires account.billing.read.

## Responses

| Status | Description                                    |
| ------ | ---------------------------------------------- |
| 200    | The CreditPackageList! in data.creditPackages. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query CreditPackages {\n  creditPackages {\n    data {\n      id\n      credits\n      priceEur\n      available\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n      prev\n    }\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "creditPackages": {
      "data": [
        {
          "id": "string",
          "credits": 0,
          "priceEur": 0,
          "available": false
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string",
        "prev": "string"
      }
    }
  }
}
```
