Skip to content

Instantly share code, notes, and snippets.

@radralph
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save radralph/26fa1d13bbcad844b72f to your computer and use it in GitHub Desktop.

Select an option

Save radralph/26fa1d13bbcad844b72f to your computer and use it in GitHub Desktop.
SMS API
Complete and Correct request parameters [normal accounts]
responds with code 201
Complete and Correct request parameters [bypassed acct]
responds with code 201
insufficient dev wallet
error: Insufficient Wallet Balance.
invalid shortcode
Error: invalid shortcode
Missing access_token[normal acct]
Error: Failed to authenticate
Missing address parameter[normal acct]
Error: missing parameters: address (FAILED - 1)
Missing message parameter[normal acct]
Error: missing parameters: message (FAILED - 2)
invalid access_token[normal acct]
Error: Failed to authenticate
invalid app_secret and app_secret[bypassed acct]
Error: Failed to authenticate (FAILED - 3)
Send SMS to unsubscribed user [normal acct]
Error: Invalid acess token
shortcode with prefix
responds with code 201
send sms > 160 characters
responds with code 201
send sms > 320 characters
responds with code 201
CHARGING API
Complete and Correct request parameters [normal account]
responds with code 201
Complete and Correct request parameters [bypassed acct]
responds with code 201
Missing endUserId [normal acct]
Error: Failed to authenticate
Missing amount[normal acct]
Error: missing parameters: amount
Missing referenceCode
Error: missing parameters: referenceCode
Missing transactionOperationStatus
Error: missing parameters: transactionOperationStatus
Unprovisioned rate
Error: Rate not defined
invalid rate
Error: invalid Rate
invalid referenceCode length
Error: Invalid referenceCode length
invalid referenceCode shortcode
Error: Invalid referenceCode shortcode
invalid transactionOperationStatus
Error: transactionOperationStatus must be set to charged
invalid referenceCode sequence
Error: Invalid referenceCode
rate > subscriber load
Error: insufficent load
subscriber load == 0
Error: Failure to check the subscriber's balance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment