Rawi

API reference · Billing & payment gateway

Notify me when online payment is available

post/billing/notify-me
AuthenticationCustomer token (Bearer)
AccessFree user · Pro user

Customer token (Bearer) — free and paid users

Records interest (payment_notify_requested) when no gateway is enabled. As soon as an online (Toman) gateway the user can pay with is enabled — when an admin switches one on, or at the next rawi:notify-payment-available run (every 15 minutes) — the user gets the email email once (the payment_available SMS for phone-only accounts). email is transactional: the user asked for it, so the Reminders / SMS notification toggles do not block it. Idempotent: pressing it again before the notice is not logged twice (the app calls it after /signup?notify=pro). The answer is marked with a payment_notify_sent event; asking again later queues a new notice.

Responses

204 — No content

401 — Missing/invalid token, or a token of the wrong owner (admin token on a user route or vice versa): {"message":"…","code":"unauthenticated"} (message in the request language)

FieldType
message*string
codestring
json
{
  "message": "Please sign in to continue; your session has ended or is not valid.",
  "code": "unauthenticated"
}

curl example

bash
curl -X POST 'http://127.0.0.1:8010/api/billing/notify-me' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $RAWI_USER_TOKEN"

Try it in the console