User
Info about user(s)
Get user info
GET
https://switchapi3.azurewebsites.net/user
This endpoint allows you to get user info
Headers
Authorization
string
The format of `Authorization` is `Bearer token_string`
Get user balance
GET
https://switchapi3.azurewebsites.net/user/balance
This endpoint retrieves the user's balance.
Headers
Authorization
string
The format for Authorization is Bearer token_string
Change password
POST
https://switchapi3.azurewebsites.net/user/update_password
Change user password
Headers
auth_token
string
Format of auth_token is Bearer token_string
Request Body
password_confirmation
string
password confirmation
password
string
The new password
current_password
string
The user's current password
Get Wallet Balance
GET
https://switchapi3.azurewebsites.net/user/balance/wallet
This endpoint retrieves wallet balance.
Headers
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token.
Get Savings Account Balance
GET
https://switchapi3.azurewebsites.net/user/balance/account
This endpoint retrieves the user's savings account balance.
Headers
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token
Get Dom Account Balance
GET
https://switchapi3.azurewebsites.net/user/balance/dom_accounts
This endpoint retrieves the balances of all the user's dom accounts.
Headers
SWI-CID
string
Client ID
Authorization
string
Format is Bearer token.
Last updated
Was this helpful?