How this account can pay
GET/v1/billing/payment_options
Every account is billed in USD. Accounts in Ethiopia may also pay in birr by bank deposit; a deposit is credited in USD at the rate Woyra sets, fixed when the deposit is requested. currency is the account's current choice, which can be changed at any time.
Example
curl https://api.woyra.io/v1/billing/payment_options \
-H "Authorization: Bearer $WOYRA_KEY"Response
200 The payment options.
| Field | Type | Description |
|---|---|---|
| objectrequired | "payment_options" | |
| currencyrequired | string | How the account currently chooses to pay. One of ETB, USD. |
| currenciesrequired | array of string | |
| bank | object | Present for accounts that may pay in birr. |
| bank.enabled | boolean | |
| bank.bank_name | string | |
| bank.account_name | string | |
| bank.account_number | string | |
| bank.etb_per_usd_micros | integer | |
| bank.minimum_amount_micros | integer | |
| bank.maximum_amount_micros | integer |
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
- 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
- POST /v1/billing/email_subscription/cancel — Stop the email plan renewing
- GET /v1/pricing/email — The published email tariff