فراز اس ام اس مستندات وب‌سرویس

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) — required
  • receiver_count (integer) — required
  • line_number (string) — required
  • number_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

All FarazSMS web services · llms.txt · OpenAPI