Billing
Create on-demand top-up invoice
Changed onRequest an on-demand top-up invoice.. Requires drawdown billing to be enabled. Only one unpaid top-up invoice is allowed at a time.
post/api/v1/billing/drawdown/topup
Request
- Base URLhttps://staging.api.rye.com
- URLhttps://staging.api.rye.com/api/v1/billing/drawdown/topup
- AuthAPI key in header Authorization
Request body
Example request
{
"amountSubunits": 500000
}Response
Created
Example response
{
"url": "https://invoice.stripe.com/i/acct_xxx/test_xxx",
"amount": {
"currencyCode": "USD",
"amountSubunits": 1500
},
"id": "in_abc123"
}Changes
- info
the security scope
billing:writewas added to the endpoint's security schemebearerAuth
- info