# createBillingPortalSession

```graphql
mutation CreateBillingPortalSession {
  createBillingPortalSession {
    url
  }
}
```

Open a Stripe billing portal session where a person changes payment methods, tax details or the renewal of an account; returns the portal URL. Requires account.billing.manage.

## Responses

| Status | Description                                                   |
| ------ | ------------------------------------------------------------- |
| 200    | The BillingPortalSession! in data.createBillingPortalSession. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation CreateBillingPortalSession {\n  createBillingPortalSession {\n    url\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "createBillingPortalSession": {
      "url": "https://example.com"
    }
  }
}
```
