Stripe's webhook
POST/v1/payments/stripe/webhook
Not for customers. Stripe posts checkout events here; the Stripe-Signature header is verified against the endpoint secret (five-minute tolerance) before the body is read. checkout.session.completed with payment_status: paid credits the ledger exactly once; expiry and failure close the payment. An amount that does not match what was asked for is refused rather than credited.
Example
curl -X POST https://api.woyra.io/v1/payments/stripe/webhook \
-H "Authorization: Bearer $WOYRA_KEY"Response
200 Applied, duplicate, or ignored.
Errors
| Status | Codes |
|---|---|
| 401 | authentication_required, invalid_api_key |
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
- 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
- POST /v1/billing/email_subscription/cancel — Stop the email plan renewing
- GET /v1/pricing/email — The published email tariff