Top up the credit
A Stripe payment page for a top-up. The credit goes up when Stripe tells Shako that it is paid.
POST /v1/tenants/{tenant}/credit/top-up
curl -X POST "https://api.shako.dev/v1/tenants/acme/credit/top-up" \
-H "Authorization: Bearer $SHAKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount":10}'201 (excerpt)
{
"url": "https://checkout.stripe.com/c/pay/cs_live_...",
"amount": "10.00"
}Authenticate with Authorization: Bearer <API key> on https://api.shako.dev. Role: owner.
Path parameters
tenantstringrequired- The tenant's name, from GET /v1/tenants.
Request body
amountinteger, 5 to 50required- The US dollars to add: 5, 10, 25, 50.
Response
201 with the top-up object.
The errors. All the endpoints of Billing.