Phone Numbers
Preview prorated rental cost for renting a phone number today
Changed onReturns the immediate prorated charge for renting one phone number from today through the end of the current billing cycle, plus the recurring monthly rate. Use this to show a "you'll be charged $X today" preview before calling POST /product/rent-number.
Returns 400 if the organization doesn't have the phone-numbers feature configured (contact support) or if the org is currently locked (e.g. unpaid invoices — call GET /product/unpaid-invoices first to check).
get/product/proration-amount
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/product/proration-amount
- AuthHTTP bearer
Response
Successful response
Example response
{
"status": true,
"data": {
"immediateCharge": 5.3,
"perNumberRecurringAmount": 10,
"monthlyRate": 10,
"prorationAmount": 5.3,
"daysRemaining": 16,
"daysInMonth": 30,
"proratedValue": 0.53
}
}Changes
- info
endpoint added
- info