Calculate Price
POST
/post/letters/price
Post Letter
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://rest.clicksend.com/v3/post/letters/price' \
--header 'Content-Type: application/json' \
--data-raw '{
"colour": 1,
"duplex": 0,
"file_url": "http://yourdomain.com/file.pdf",
"priority_post": 0,
"recipients": [
{
"address_city": "CITY",
"address_country": "AU",
"address_line_1": "Address 1",
"address_line_2": "Address 2",
"address_name": "My Home Address",
"address_postal_code": 123456,
"address_state": "State",
"custom_string": "Custom kn0ChLhwn6",
"return_address_id": 1,
"schedule": 1449573604
}
],
"template_used": 1
}'
Response Response Example
{
"data": {
"recipients": [
{
"address_city": "DENVER",
"address_country": "AU",
"address_line_1": "131",
"address_line_2": "Scheuvront Drive",
"address_name": "John Smith",
"address_postal_code": "80202",
"address_state": "CO",
"date_added": 1449662203,
"message_id": "06FAD39C-78FD-4D2F-B606-9846D1979F35",
"post_pages": 3,
"post_price": "1.8700",
"priority_post": 0,
"return_address_id": 1,
"schedule": 1449573604,
"status": "SUCCESS",
"subaccount_id": 1,
"user_id": 1
}
],
"total_cost": 1,
"total_price": 1.87
},
"http_code": 200,
"response_code": "SUCCESS",
"response_msg": "Here are some results."
}
Request
Body Params application/json