WINSMS
  1. credits
WINSMS
  • credits
    • Get your current WinSMS credit balance
      GET
    • Transfer credits between main and sub accounts.
      POST
  • shortcode
    • Get a list of incoming short/long code messages
      GET
  • sms
    • Get a list of incoming SMS messages
      GET
    • Get a list of incoming opt-out SMS messages
      GET
    • Send SMS messages
      POST
    • Send multiple different SMS messages
      POST
    • Get SMS delivery statuses
      POST
    • Get a list of scheduled SMS messages
      GET
    • Delete scheduled SMS messages and refund credits
      POST
  • subaccounts
    • Get a list of all Sub Accounts.
      GET
  1. credits

Transfer credits between main and sub accounts.

POST
/credits/transfer
credits
Transfer credits between accounts.
From Main account to Sub account.
From Sub account to Main account.
From Sub account to another Sub account.
Your WinSMS account number and sub account number/s can be obtained by logging in to the WinSMS Client Zone (www.winsms.co.za/cz) with the main account's credentials.
The main account number is on the home tab and the sub account numbers are under the sub accounts tab.
Account numbers should be submitted as integers. Do not add the 'W' prefix.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.winsms.co.za/api/rest/v1/credits/transfer' \
--header 'Content-Type: application/json' \
--data-raw '{
    "receivingAccountNumber": 10345,
    "sendingAccountNumber": 7564,
    "transferQuantity": 100
}'
Response Response Example
200 - Example 1
{
    "statusCode": 200,
    "timeStamp": "20170120152253515",
    "transferSuccessful": true,
    "version": "1.0"
}

Request

Body Params application/json
receivingAccountNumber
integer 
required
The WinSMS account number of the account to which credits will be added.
Example:
10345
sendingAccountNumber
integer 
required
The WinSMS account number of the account from which credits will be deducted.
Example:
7564
transferQuantity
integer 
required
The number of credits to transfer from the sending account to the receiving account.
Example:
100
Examples

Responses

🟢200OK
application/json
Body
statusCode
integer 
optional
The http status code returned - reflected in the body for convenience
timeStamp
string 
optional
The date/time the request was processed, in the format YYYYMMDDhhmmssSSS
transferSuccessful
boolean 
optional
A boolean value indictating whether the credits were successfully transfered from the sending account into the receiving account.
version
string 
optional
The current version of the API of the endpoint that was called
🟠400Bad Request
🟠401Unauthorized
🟠404Not found
🟠405Method Not Allowed
🟠413Payload Too Large
🟠415Unsupported Media Type
🟠422Unprocessable Entity
🔴500Internal Server Error
Modified at 2023-08-15 09:05:19
Previous
Get your current WinSMS credit balance
Next
Get a list of incoming short/long code messages
Built with