Account
Get credit purchase options
GET /v1/account/billing/purchase-options- Permission
read:account- Tokens
- API key, CLI user token, Session token
Read the smallest, largest, and suggested credit purchases, in millicents, and the platform fee. The fee is added to the credit amount and never reduces the credit granted.
{
"fee_fraction": float,
"max_amount": int,
"min_amount": int,
}
1
import os
2
3
from ellipsis import Ellipsis
4
5
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
6
7
result = client.account.billing.purchase_options()
8
print(result)
1
import { Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
const result = await client.account.billing.purchaseOptions();
8
console.log(result);
1
curl "https://api.ellipsis.dev/v1/account/billing/purchase-options" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
Response
fee_fractionnumberrequired
Platform fee added to purchased credit.
max_amountintegerrequired
min_amountintegerrequired
preset_amountsarray<integer>required
Suggested purchase amounts.