# API reference: Billing

> Endpoints of the Billing group of the Sendtide API with parameters, request body, responses and curl examples.

URL: https://sendtide.ch/en/docs/api/billing/

2 endpoints of the Billing group.
## Plan, usage, payment, invoices and the own IP pool (admin)

GET /v1/billing
### Example

```
curl "https://api.sendtide.ch/v1/billing" \
  -H "Authorization: Bearer sk_test_…"
```
### Responses
| Status | Description |
| --- | --- |
| 200 | Billing Billing |
## Billing settings and the own IP pool (admin)

PATCH /v1/billing
ip_pool switches «Eigener IP-Pool» on or off: an SES managed dedicated IP pool for the account (Scale plan only, 403 plan_limit otherwise; 422 feature_unavailable while the platform has it off). CHF 149 a month flat including 1'000'000 mails sent through the pool, above that CHF 0.15 per 1'000 started, billed per day the pool was held. The state is in ip_pool.state: provisioning, warming (SES allocates and warms the IPs itself, mail already goes through the pool), active, removing, failed. Deprecated: dedicated_ips (a count): more than 0 means ip_pool: true; answers carry the Deprecation and Sunset headers.
billing_address keys: company, addition, street, zip, city, country (ISO 3166-1 alpha-2; an older country name is converted), vat_id, reference. The VAT number is checked for its format (CH, LI, the EU countries, GB, NO; any other country takes letters and digits) and stored in its canonical form: 422 validation_error on billing_address.vat_id when it is malformed. With VIES_CHECK on, an EU number is looked up at VIES; the result is in vat.status. Outside Switzerland and Liechtenstein Sendtide sells to businesses only: 422 business_details_required when ip_pool is switched on (and on POST /v1/billing/plan for a paid plan) while company, country and a VAT number are missing or the number was found invalid.
### Request body application/json
| Field | Type | Description |
| --- | --- | --- |
| stop_at_quota | boolean | |
| budget_chf | number | |
| clear_budget | boolean | |
| billing_email | string | |
| billing_address | object | |
| ip_pool | boolean | |
| dedicated_ips deprecated | integer | |
### Example

```
curl -X PATCH "https://api.sendtide.ch/v1/billing" \
  -H "Authorization: Bearer sk_test_…" \
  -H "Content-Type: application/json" \
  -d '{"stop_at_quota":true,"budget_chf":100}'
```
### Responses
| Status | Description |
| --- | --- |
| 200 | Billing Billing |
| 403 | Error in the usual format, [errors and limits](https://sendtide.ch/en/docs/errors-and-limits/) |
| 422 | Error in the usual format, [errors and limits](https://sendtide.ch/en/docs/errors-and-limits/) |
