Skip to main content

Rating MCC/MNC Response Object

The Rating MCC/MNC Response object defines the pricing details for a message (SMS or MMS) based on the mobile network operator identified by its MCC (Mobile Country Code) and MNC (Mobile Network Code).

It specifies:

  • The direction of the message (inbound or outbound),
  • The rate per segment,
  • The total price, calculated based on the number of segments, and
  • The segment count, which is always 1 for MMS messages.

This response enables partners to estimate or validate message delivery costs before or after transmission, according to the applicable carrier rates.

Rating MCC/MNC Response Object Attributes

The fields listed in the table below will be returned in a JSON object when a successful request has been made.

AttributeData TypeDescription
direction
read only
stringThe message direction. Values accepted in this field are:
  • inbound for receiving the message from the destination phone number.
  • outbound for sending the message to the destination phone number.
price
read only
numberThe price of the message depending on the message segment rate and segments number.
rate
read only
numberThe rate for the message segment depending on the MCC/MNC used to send the message.
segments
read only
numberThe number of the message segments used to calculate the total message price. This field value is always set to 1 for multimedia messages (MMS).

Sample Rating MCC/MNC Response Object

{
"direction": "outbound",
"price": "0.01000",
"rate": "0.01000",
"segments": "1"
}