# API-Referenz: Abrechnung

> Endpunkte der Gruppe «Abrechnung» der Sendtide API mit Parametern, Request-Body, Antworten und curl-Beispielen. Die Referenz ist auf Englisch.

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

2 Endpunkte der Gruppe «Abrechnung». Die Referenz stammt aus der englischen OpenAPI-Spezifikation und ist nicht übersetzt.
## Plan, usage, payment, invoices and the own IP pool (admin)

GET /v1/billing
### Beispiel

```
curl "https://api.sendtide.ch/v1/billing" \
  -H "Authorization: Bearer sk_test_…"
```
### Antworten
| Status | Beschreibung |
| --- | --- |
| 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
| Feld | Typ | Beschreibung |
| --- | --- | --- |
| stop_at_quota | boolean | |
| budget_chf | number | |
| clear_budget | boolean | |
| billing_email | string | |
| billing_address | object | |
| ip_pool | boolean | |
| dedicated_ips veraltet | integer | |
### Beispiel

```
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}'
```
### Antworten
| Status | Beschreibung |
| --- | --- |
| 200 | Billing Billing |
| 403 | Fehler im üblichen Format, [Fehler und Limits](https://sendtide.ch/docs/fehler-und-limits/) |
| 422 | Fehler im üblichen Format, [Fehler und Limits](https://sendtide.ch/docs/fehler-und-limits/) |
