POST
/
v1
/
sms
/
routing
/
plans
/
{plan}
/
simulate
/
country
cURL
curl --request POST \
  --url https://api.comm.com/api/v1/sms/routing/plans/{plan}/simulate/country \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "country_id": 123,
  "network_id": 123,
  "counter": 1
}'
{
  "data": {
    "contacts_count": 123,
    "resource": {
      "to_send": true,
      "fail_reason": "No route found",
      "status": {},
      "selected_method": {},
      "selected_action": {},
      "selected_rule_id": "<string>",
      "selected_route": "<string>",
      "costs": {
        "cost_platform_customer": 123,
        "cost_route_vendor": 123,
        "cost_route_seller": 0,
        "cost_platform_seller": 0,
        "sms_route_rate_id": "<string>"
      }
    },
    "country_ids": [
      "<string>"
    ],
    "network_ids": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

plan
string<uuid>
required

The plan ID

Body

application/json

Response

200
application/json

The response is of type object.