# billing

> Spend forecast, thresholds and caps.

Spend forecast, thresholds and caps.

| Method | Path | Operation | Scope | Test mode |
|---|---|---|---|---|
| POST | `/v1/billing/bsp-routing` | `billing_bsp_routing_set`: Easy billing (BSP routing) contingency switch | `billing:write` | - |
| POST | `/v1/billing/checkout` | `billing_checkout_create`: Create a hosted checkout (plan, add-on or top-up) | `billing:write` | - |
| GET | `/v1/billing/checkout/{checkout_id}` | `billing_checkout_get`: Checkout status | `billing:read` | - |
| POST | `/v1/billing/checkout/{checkout_id}/confirm` | `billing_checkout_confirm`: Client confirmation of a checkout | `billing:write` | - |
| PUT | `/v1/billing/country` | `billing_country_set`: Confirm billing country and address | `billing:write` | - |
| GET | `/v1/billing/country-detection` | `billing_country_detection`: Detect the billing country (pre-login: IP only, display) | public | - |
| GET | `/v1/billing/country-detection/current` | `billing_country_detection_current`: Detect the billing country inside checkout (payment method, tax ID, address) | `billing:read` | - |
| GET | `/v1/billing/disputes` | `billing_disputes_list`: Chargebacks and disputes | `billing:read` | - |
| GET | `/v1/billing/meta-cost-estimator` | `billing_meta_cost_estimate`: Meta per-message cost ESTIMATE | `billing:read` | - |
| GET | `/v1/billing/meta-rates` | `billing_meta_rates`: The Meta per-message rate card in force | `billing:read` | - |
| GET | `/v1/billing/meta-service-usage` | `billing_meta_service_usage`: Meta service replies this month against the free allowance | `billing:read` | - |
| GET | `/v1/billing/meta-spend` | `billing_meta_spend`: Reconciled Meta spend ESTIMATE per WABA | `billing:read` | - |
| GET | `/v1/billing/payment-methods` | `billing_payment_methods_list`: Saved payment methods and mandates | `billing:read` | - |
| DELETE | `/v1/billing/payment-methods/{pm_id}` | `billing_payment_methods_delete`: Remove a payment method | `billing:write` | - |
| GET | `/v1/billing/payment-methods/{pm_id}` | `billing_payment_methods_get`: One saved payment method | `billing:read` | - |
| POST | `/v1/billing/payment-methods/setup` | `billing_payment_methods_setup`: Add a payment method or UPI AutoPay mandate (hosted) | `billing:write` | - |
| GET | `/v1/billing/profile` | `billing_profile_get`: Billing profile | `billing:read` | - |
| PATCH | `/v1/billing/profile` | `billing_profile_update`: Update the billing identity | `billing:write` | - |
| GET | `/v1/billing/spend-caps` | `billing_spend_caps_list`: Spend caps and warning thresholds | `billing:read` | - |
| PUT | `/v1/billing/spend-caps` | `billing_spend_cap_set`: Set a spend cap for a category | `billing:write` | - |
| GET | `/v1/billing/spend-forecast` | `billing_spend_forecast`: Running and projected spend for the period | `billing:read` | - |

Request and response schemas: the interactive reference at `https://api.wapitick.com/docs`, or `docs/api/openapi.json`.
