Calculate Price
POST
/sms/price
SMS
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://rest.clicksend.com/v3/sms/price' \
--header 'Content-Type: application/json' \
--data-raw '{
"messages": [
{
"body": "Jelly liquorice marshmallow candy carrot cake 4Eyffjs1vL.",
"custom_string": "this is a test",
"from": "sendmobile",
"schedule": 1436874701,
"source": "php",
"to": "+61411111111"
},
{
"body": "Chocolate bar icing icing oat cake carrot cake jelly cotton MWEvciEPIr.",
"custom_string": "this is a test",
"from": "sendlist",
"list_id": 428,
"schedule": 1436876011,
"source": "php"
}
]
}'
Response Response Example
{
"data": {
"messages": [
{
"body": "Jelly liquorice marshmallow candy carrot cake 4Eyffjs1vL.",
"country": "AU",
"custom_string": "this is a test",
"from": "sendmobile",
"message_parts": 1,
"message_price": "0.0566",
"schedule": 1436874701,
"status": "SUCCESS",
"to": "+61411111111"
},
{
"body": "Chocolate bar icing icing oat cake carrot cake jelly cotton MWEvciEPIr.",
"country": "AU",
"custom_string": "this is a test",
"from": "sendlist",
"message_parts": 1,
"message_price": "0.0566",
"schedule": 1436876011,
"status": "SUCCESS",
"to": "+61411111111"
},
{
"body": "Chocolate bar icing icing oat cake carrot cake jelly cotton MWEvciEPIr.",
"country": "US",
"custom_string": "this is a test",
"from": "sendlist",
"message_parts": 1,
"message_price": "0.0566",
"schedule": 1436876011,
"status": "SUCCESS",
"to": "+16783270696"
},
{
"body": "Chocolate bar icing icing oat cake carrot cake jelly cotton MWEvciEPIr.",
"country": "US",
"custom_string": "this is a test",
"from": "sendlist",
"message_parts": 1,
"message_price": "0.0566",
"schedule": 1436876011,
"status": "SUCCESS",
"to": "+16783275492"
}
],
"queued_count": 4,
"total_count": 4,
"total_price": 0.2264
},
"http_code": 200,
"response_code": "SUCCESS",
"response_msg": "Here are your data."
}
Request
Body Params application/json