Stop the email plan renewing
POST/v1/billing/email_subscription/cancel
The month already paid for runs to its end and is not refunded; nothing renews after it. A plan past due ends at once.
Example
curl -X POST https://api.woyra.io/v1/billing/email_subscription/cancel \
-H "Authorization: Bearer $WOYRA_KEY"Response
200 The plan as it now stands.
| Field | Type | Description |
|---|---|---|
| objectrequired | "email_subscription" | |
| statusrequired | string | past_due: the renewal could not be paid. The account sends on the
free emails until the balance can pay it, and it renews within the
hour of a top-up.One of active, past_due, cancelled. |
| planrequired | EmailPlan | |
| currencyrequired | string | |
| next_plan | EmailPlan | A smaller plan chosen for the next billing month. |
| overagerequired | boolean | |
| cancel_at_period_endrequired | boolean | Cancelled; the plan runs to current_period_end and does not renew. |
| current_period_startrequired | timestamp | |
| current_period_endrequired | timestamp | When the plan renews and its emails reset. |
| started_atrequired | timestamp | |
| cancelled_at | timestamp |
Errors
| Status | Codes |
|---|---|
| 401 | authentication_required, invalid_api_key |
| 404 | not_found, product_not_offered |
Also in Billing
- POST /v1/topups — Add funds by card
- GET /v1/topups/{id} — One top-up
- POST /v1/subscriptions — Start a product subscription
- GET /v1/subscriptions/{product} — Current product subscription
- POST /v1/payments/stripe/webhook — Stripe's webhook
- GET /v1/ledger — The account statement
- GET /v1/billing/payment_options — How this account can pay
- PUT /v1/billing/payment_currency — Choose to pay in birr or in US dollars
- GET /v1/billing/bank_deposits — Recent birr bank deposits
- POST /v1/billing/bank_deposits — Request a birr bank deposit
- POST /v1/billing/bank_deposits/{id}/receipt — Upload the bank receipt for a deposit
- POST /v1/billing/bank_deposits/{id}/cancel — Cancel a deposit that has not been submitted or was returned
- GET /v1/balance — Retrieve account balance
- GET /v1/billing/email_tariff — The email price this account pays
- GET /v1/billing/email_subscription — This account's monthly email plan
- PUT /v1/billing/email_subscription — Take an email plan, or change it
- GET /v1/pricing/email — The published email tariff