Billing & Balances
List prepaid SMS packs
Returns the sellable prepaid credit packs. What a pack buys is amount_mad of credit; sms is an ESTIMATE of how many messages that becomes at price_per_sms_mad, for a single-segment Moroccan message on the default sender. A custom sender ID bills at the sms_custom rate, and longer messages cost more than one segment, so the real count is usually lower. sms_estimated is always true — never treat sms as an entitlement. Completing a pack top-up also updates the account to the matching volume tier. min_topup_mad is the floor for a custom-amount top-up on POST /billing/topups.
get/billing/packs
Request
- Base URL: https://api.envoisms.ma/v1
- URL: https://api.envoisms.ma/v1/billing/packs
- Auth: HTTP bearer
Response
SMS pack rows
Example response
{
"data": [
{
"id": "sms-1000",
"sms": 1000,
"sms_estimated": true,
"amount_eur": 34.55,
"amount_mad": 380,
"price_per_sms_mad": 0.38,
"volume_tier": "business"
}
],
"min_topup_mad": 275
}Changes
No recorded changes to this operation across all 1 revision of this API.