Skip to main content
POST
/
oauth
/
token
Generate Token
curl --request POST \
  --url https://api.stag.songhaiexchange.io/oauth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'username=<string>' \
  --data 'password=<string>' \
  --data grant_type=password
{
  "status": "SUCCESS",
  "message": "<string>",
  "errorCode": 123,
  "data": {
    "accountNumber": "<string>",
    "accountName": "<string>",
    "accountCurrency": "<string>",
    "receiverMobileNumber": "<string>"
  }
}

Body

application/x-www-form-urlencoded
username
string
required

Your username

password
string
required

Your password

grant_type
enum<string>
default:password
required
Available options:
password

Response

200 - application/json

Token generated successfully

status
enum<string>
Available options:
SUCCESS,
ERROR
message
string
errorCode
integer
data
object