Get a receipt link
A short-lived link to the receipt PDF of one paid order (an id from the receipts list).
API key minted via POST /v1/api-keys (format mk_live_...)
In: header
Path Parameters
The order id from GET /v1/billing/invoices.
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.mentio.dev/v1/billing/invoices/string/url"{
"url": "string"
}{
"error": {
"code": "unauthorized",
"message": "string",
"requestId": "string",
"retryAfterSeconds": 0
}
}{
"error": {
"code": "unauthorized",
"message": "string",
"requestId": "string",
"retryAfterSeconds": 0
}
}{
"error": {
"code": "unauthorized",
"message": "string",
"requestId": "string",
"retryAfterSeconds": 0
}
}Create a top-up checkout POST
Returns a hosted checkout URL with `amountCents` prefilled (editable there, $20 to $5,000). The balance is credited when the payment lands, within a minute, and tracking the wallet had paused resumes at once. Nothing is charged by this call itself. `successUrl` must be on an origin this deployment trusts; omit it for the dashboard's billing page.
Get the wallet GET
The prepaid balance in full: ledger, pending mention charges and the effective balance the stop rule reads, the daily burn and the days it buys, how many keywords run and how many the wallet paused, what a day costs and what a resume needs, the welcome credit, the newest top-up, the top-up bounds and the auto-recharge settings. `GET /v1/usage` is the short form.