Learn how to manage your clients and reseller accounts via API.
Unfortunately, our reseller dashboard, white-label and reseller API are only available to customers who were approved as resellers before 1st Jan, 2024. If you were not approved as a reseller before 1st Jan, 2024, you may still earn profits by adding a mark-up on your client rates when reselling ClickSend through our standard messaging endpoints.
Get list of reseller accounts
Parameter | In | Type | Required | Description |
---|---|---|---|---|
page | query | integer(int32) | false | Page number |
limit | query | integer(int32) | false | Number of records per page |
Refer to Status Codes for definitions of HTTP status code responses.
Successful response
curl --include \ --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \ 'https://rest.clicksend.com/v3/reseller/accounts'
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "Here are you data.",
- "data": {
- "total": 2,
- "per_page": 15,
- "current_page": 1,
- "last_page": 1,
- "next_page_url": null,
- "prev_page_url": null,
- "from": 1,
- "to": 2,
- "data": [
- {
- "user_id": 117,
- "username": "johndoe2",
- "user_email": "johndoe2@awesome.com",
- "active": 0,
- "banned": 0,
- "balance": "0.000000",
- "user_phone": 15184811002,
- "reply_to": "originalemail",
- "delivery_to": null,
- "user_first_name": "John",
- "user_last_name": "Doe",
- "account": 0,
- "account_name": "The Awesome Company",
- "account_billing_email": "johndoe2@awesome.com",
- "account_billing_mobile": 15184811002,
- "country": "US",
- "default_country_sms": "US",
- "auto_recharge": 0,
- "auto_recharge_amount": "20.00",
- "low_credit_amount": "0.00",
- "setting_unicode_sms": 0,
- "setting_email_sms_subject": 0,
- "setting_fix_sender_id": 0,
- "setting_sms_message_char_limit": 6,
- "old_dashboard": 0,
- "balance_commission": "0.299954",
- "timezone": "Australia/Melbourne"
}
], - "_currency": {
- "currency_name_short": "AUD",
- "currency_prefix_d": "$",
- "currency_prefix_c": "c",
- "currency_name_long": "Australian Dollars"
}, - "_subaccount": {
- "subaccount_id": 126,
- "api_username": "johndoe1",
- "email": "johndoe1@awesome.com",
- "phone_number": "+15184811001",
- "first_name": "John",
- "last_name": "Doe",
- "api_key": "F3702045-EB2C-0091-C211-7728048DCAE2",
- "access_users": 1,
- "access_billing": 1,
- "access_reporting": 1,
- "access_contacts": 1,
- "access_settings": 1,
- "access_sms": 1,
- "access_email": 1,
- "access_voice": 1,
- "access_fax": 1,
- "access_post": 1,
- "access_reseller": 1,
- "access_mms": 1,
- "share_campaigns": 0,
- "notes": null
}
}
}
Create reseller account
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
username | string | true | none | Account username |
password | string | true | none | Account password (unhashed) |
user_email | string | true | none | Account email |
user_phone | string | true | none | Account phone number |
user_first_name | string | true | none | Account owner first name |
user_last_name | string | true | none | Account owner last name |
account_name | string | true | none | Account name (usually company name) |
country | string | true | none | Country of account holder |
Refer to Status Codes for definitions of HTTP status code responses.
Successful response
{- "country": "country",
- "password": "password",
- "user_email": "user_email",
- "user_first_name": "user_first_name",
- "user_last_name": "user_last_name",
- "account_name": "account_name",
- "user_phone": "user_phone",
- "username": "username"
}
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "New reseller has been added.",
- "data": {
- "user_id": 117,
- "username": "johndoe2",
- "user_email": "johndoe2@awesome.com",
- "active": 0,
- "banned": 0,
- "balance": "0.000000",
- "user_phone": 15184811002,
- "reply_to": "originalemail",
- "delivery_to": null,
- "user_first_name": "John",
- "user_last_name": "Doe",
- "account": 0,
- "account_name": "The Awesome Company",
- "account_billing_email": "johndoe2@awesome.com",
- "account_billing_mobile": 15184811002,
- "country": "US",
- "default_country_sms": "US",
- "auto_recharge": 0,
- "auto_recharge_amount": "20.00",
- "low_credit_amount": "0.00",
- "setting_unicode_sms": 0,
- "setting_email_sms_subject": 0,
- "setting_fix_sender_id": 0,
- "setting_sms_message_char_limit": 6,
- "old_dashboard": 0,
- "balance_commission": "0.299954",
- "timezone": "Australia/Melbourne",
- "_currency": {
- "currency_name_short": "AUD",
- "currency_prefix_d": "$",
- "currency_prefix_c": "c",
- "currency_name_long": "Australian Dollars"
}, - "_subaccount": {
- "subaccount_id": 126,
- "api_username": "johndoe1",
- "email": "johndoe1@awesome.com",
- "phone_number": "+15184811001",
- "first_name": "John",
- "last_name": "Doe",
- "api_key": "F3702045-EB2C-0091-C211-7728048DCAE2",
- "access_users": 1,
- "access_billing": 1,
- "access_reporting": 1,
- "access_contacts": 1,
- "access_settings": 1,
- "access_sms": 1,
- "access_email": 1,
- "access_voice": 1,
- "access_fax": 1,
- "access_post": 1,
- "access_reseller": 1,
- "access_mms": 1,
- "share_campaigns": 0,
- "notes": null
}
}
}
Get Reseller clients Account
Parameter | In | Type | Required | Description |
---|---|---|---|---|
client_user_id | path | integer(int32) | true | User ID of client |
Refer to Status Codes for definitions of HTTP status code responses.
Successful response
curl --include \ --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \ 'https://rest.clicksend.com/v3/reseller/accounts/{client_user_id}'
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "Here are your data.",
- "data": {
- "user_id": 117,
- "username": "johndoe2",
- "user_email": "johndoe2@awesome.com",
- "active": 0,
- "banned": 0,
- "balance": "0.000000",
- "user_phone": 15184811002,
- "reply_to": "originalemail",
- "delivery_to": null,
- "user_first_name": "John",
- "user_last_name": "Doe",
- "account": 0,
- "account_name": "The Awesome Company",
- "account_billing_email": "johndoe2@awesome.com",
- "account_billing_mobile": 15184811002,
- "country": "US",
- "default_country_sms": "US",
- "auto_recharge": 0,
- "auto_recharge_amount": "20.00",
- "low_credit_amount": "0.00",
- "setting_unicode_sms": 0,
- "setting_email_sms_subject": 0,
- "setting_fix_sender_id": 0,
- "setting_sms_message_char_limit": 6,
- "old_dashboard": 0,
- "balance_commission": "0.299954",
- "timezone": "Australia/Melbourne",
- "_currency": {
- "currency_name_short": "AUD",
- "currency_prefix_d": "$",
- "currency_prefix_c": "c",
- "currency_name_long": "Australian Dollars"
}, - "_subaccount": {
- "subaccount_id": 126,
- "api_username": "johndoe1",
- "email": "johndoe1@awesome.com",
- "phone_number": "+15184811001",
- "first_name": "John",
- "last_name": "Doe",
- "api_key": "F3702045-EB2C-0091-C211-7728048DCAE2",
- "access_users": 1,
- "access_billing": 1,
- "access_reporting": 1,
- "access_contacts": 1,
- "access_settings": 1,
- "access_sms": 1,
- "access_email": 1,
- "access_voice": 1,
- "access_fax": 1,
- "access_post": 1,
- "access_reseller": 1,
- "access_mms": 1,
- "share_campaigns": 0,
- "notes": null
}
}
}
Update Reseller clients Account
Parameter | In | Type | Required | Description |
---|---|---|---|---|
client_user_id | path | integer(int32) | true | User ID of client |
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
username | string | true | none | Account username |
password | string | true | none | Account password (unhashed) |
user_email | string | true | none | Account email |
user_phone | string | true | none | Account phone number |
user_first_name | string | true | none | Account owner first name |
user_last_name | string | true | none | Account owner last name |
account_name | string | true | none | Account name (usually company name) |
country | string | true | none | Country of account holder |
Refer to Status Codes for definitions of HTTP status code responses.
Successful response
{- "number": "number",
- "expiry_month": 0,
- "cvc": 1,
- "name": "name",
- "bank_name": "bank_name",
- "expiry_year": 6
}
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "Reseller account has been updated.",
- "data": {
- "user_id": 117,
- "username": "johndoe2",
- "user_email": "johndoe2@awesome.com",
- "active": 0,
- "banned": 0,
- "balance": "199.997000",
- "user_phone": "518-481-1002",
- "reply_to": "originalemail",
- "delivery_to": null,
- "user_first_name": "John",
- "user_last_name": "Doe",
- "account": 0,
- "account_name": "The Awesome Company",
- "account_billing_email": "johndoe2@awesome.com",
- "account_billing_mobile": "+15184811002",
- "country": "US",
- "default_country_sms": "US",
- "auto_recharge": 0,
- "auto_recharge_amount": "20.00",
- "low_credit_amount": "0.00",
- "setting_unicode_sms": 0,
- "setting_email_sms_subject": 0,
- "setting_fix_sender_id": 0,
- "setting_sms_message_char_limit": 6,
- "old_dashboard": 0,
- "balance_commission": "0.299954",
- "timezone": "Australia/Melbourne",
- "_currency": {
- "currency_name_short": "USD",
- "currency_prefix_d": "$",
- "currency_prefix_c": "¢",
- "currency_name_long": "US Dollars"
}, - "_subaccount": null
}
}
Transfer Credit
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
client_user_id | integer(int32) | true | none | User ID of client |
balance | integer(int32) | true | none | Balance to transfer |
currency | string | true | none | Currency of balance to transfer |
Refer to Status Codes for definitions of HTTP status code responses.
Successful response
{- "number": "number",
- "expiry_month": 0,
- "cvc": 1,
- "name": "name",
- "bank_name": "bank_name",
- "expiry_year": 6
}
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "Your balance has been successfully transferred.",
- "data": {
- "user_id": 117,
- "username": "johndoe2",
- "user_email": "johndoe2@awesome.com",
- "active": 0,
- "banned": 0,
- "balance": "0.000000",
- "user_phone": 15184811002,
- "reply_to": "originalemail",
- "delivery_to": null,
- "user_first_name": "John",
- "user_last_name": "Doe",
- "account": 0,
- "account_name": "The Awesome Company",
- "account_billing_email": "johndoe2@awesome.com",
- "account_billing_mobile": 15184811002,
- "country": "US",
- "default_country_sms": "US",
- "auto_recharge": 0,
- "auto_recharge_amount": "20.00",
- "low_credit_amount": "0.00",
- "setting_unicode_sms": 0,
- "setting_email_sms_subject": 0,
- "setting_fix_sender_id": 0,
- "setting_sms_message_char_limit": 6,
- "old_dashboard": 0,
- "balance_commission": "0.299954",
- "timezone": "Australia/Melbourne",
- "_currency": {
- "currency_name_short": "AUD",
- "currency_prefix_d": "$",
- "currency_prefix_c": "c",
- "currency_name_long": "Australian Dollars"
}, - "_subaccount": {
- "subaccount_id": 126,
- "api_username": "johndoe1",
- "email": "johndoe1@awesome.com",
- "phone_number": "+15184811001",
- "first_name": "John",
- "last_name": "Doe",
- "api_key": "F3702045-EB2C-0091-C211-7728048DCAE2",
- "access_users": 1,
- "access_billing": 1,
- "access_reporting": 1,
- "access_contacts": 1,
- "access_settings": 1,
- "access_sms": 1,
- "access_email": 1,
- "access_voice": 1,
- "access_fax": 1,
- "access_post": 1,
- "access_reseller": 1,
- "access_mms": 1,
- "share_campaigns": 0,
- "notes": null
}
}
}