Home › Reference & Tools
Calculate Send SMS Cost — FarazSMS SMS web service
POST https://api.iranpayamak.com/ws/v1/sms/calculate-cost
Purpose: Estimate the cost of a send (e.g. a postal-code send) before you run it.
This API used for calculate cost for this SMS Type: Simple | Sample | PostalCode | Pattern
Authentication
This endpoint requires the Api-Key header — get the key from the FarazSMS panel. The header name is case-sensitive and the key must never travel in a query string.
Request fields
text(string) — requiredreceiver_count(integer) — requiredline_number(string) — requirednumber_format(string) — required
Notes for this endpoint
- Postal-code send/estimate with filters.
- Get line_id from “Postal available lines”.
- Check the receiver count first via “Get Receiver Counts”.
Responses
401
Related endpoints in Reference & Tools
GET /cities— Get Cities List of ProvincesGET /provinces— Get Provinces ListGET /ws/v1/number_bank— Get List of Avalibale BanksGET /ws/v1/number_bank/{number_bank_id}— Get Number Bank DetailsGET /ws/v1/sms/postal/get-available-lines— Get Available LinesGET /ws/v1/sms/postal/get-genders— Get Genders ListGET /ws/v1/sms/postal/get-receiver-count— Get Receiver Counts