# Subscribers
# Add subscriber
# Description
You can use this API to add subscriber.
# Endpoint
POST https://my.textme.co.il/api
# Parameters
Name | Type | Description | Required |
---|---|---|---|
addSub | object | Contains all other elements. | ✔️ |
user | object | Contains the user element. | ✔️ |
username | string | The username of the account by which you are recognized in the system | ✔️ |
userDetails | object | Contains the Details elements for the user that you want to add. | ✔️ |
name | string | Contains the name you want to give the user | ✔️ |
username | string | Contains the username you want to give the user. | ✔️ |
password | string | Contains the password you want to give the user. | ✔️ |
source | string | Contains the default source you want to give the user. | ✔️ |
amount | int | Contains the amount of credits you want to give the user | ✔️ |
otpPhone | string | Phone number for OTP authentication | ➖ |
# Request Example
xml
Copy code
# Response Example
xml
Copy code
Note
Full description of the response status and message can be found in here:
# Update subscribers' wallets
# Description
You can use this API to update the wallet of subscribers.
# Endpoint
POST https://my.textme.co.il/api
# Parameters
Name | Type | Description | Required |
---|---|---|---|
updateAmountSub | object | Contains all other elements. | ✔️ |
user | object | Contains the user element. | ✔️ |
username | string | The username of the account by which you are recognized in the system | ✔️ |
userDetails | object | Contains the elements of the details of the user that you want to update | ✔️ |
username | string | (The internal user name) Contains the username you want to update subscriber. | ✔️ |
amount | int | Contains the amount of credits you want to give the user. | ✔️ |
amount_int | int | If you want to update the amount of money, You should enter amount you want to give the user without amount tag. | ➖ |
# Request Example
xml
Copy code
# Response Example
xml
Copy code
Note
Full description of the response status and message can be found in here:
# Get the balance of all subscribers
# Description
You can use this API to get the balance of all subscribers.
# Endpoint
POST https://my.textme.co.il/api
# Parameters
Name | Type | Description | Required |
---|---|---|---|
getBlanceSubs | object | Contains all other elements. | ✔️ |
user | object | Contains the user element. | ✔️ |
username | string | The username of the account by which you are recognized in the system | ✔️ |
# Request Example
xml
Copy code
# Response Example
xml
Copy code
Note
Full description of the response status and message can be found in here: