Get the price of a package for a line
GET
/credits/quote/read Read: looks, changes nothing. Scopes
What you would pay to put this package on a new line, or to extend line with it, and whether you may: refused says why not.
Query parameters
linestring (uuid)The line to extend; leave out for a new line.
packagestring (uuid)requiredThe package.
Response
200 OK
pricestring (decimal)requiredWhat the package costs this account.
own_pricebooleanrequiredThe price is one set for this account.
sourcestringrequiredWhere the price comes from.
own- Your own priceparent- A price the reseller above you setlist- The package's price
balancestring (decimal)requiredbalance_afterstring (decimal)requiredunlimitedbooleanrequiredoperatorbooleanrequiredA panel operator: pays nothing.
enoughbooleanrequiredThe balance covers the price.
missingstring (decimal)requiredWhat the balance lacks; "0.00" when it is enough.
trialobjectrequiredcan be nullFor a trial package on a new line; null otherwise.
leftintegerrequiredcan be nullTrial lines left in the period; null: no limit.
refusedstringrequiredcan be nullWhy it would be refused, in words; null: it would not.
refused_fieldstringrequiredcan be nullWhat the refusal is about.
package- packagecredits- credits
next_atstring (date-time)requiredcan be nullWhen a trial limit refusal lifts.
Errors
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.