Authentication

This section describes how authentication is handled when making a payout request.

This section describes how authentication is handled when making a payout request.

Request

Sample curl request

curl --location --request POST 'https://accounts.uat.tingg.africa/api/v1/oauth/token?grant_type=password&client_id=customers&username=your_username&password=your_password'

Response

Successful response

{
    "token_type": "bearer",
    "expires_in": 3600,
    "access_token": "eyJraWQiOiJjYXMtcGsiLCJhbGMU3mPqxUeJK-6fle0bQwMl6p_EpU4_ZZffx_sqDHTe_3ze6IEM84UVldsSeAQ",
    "refresh_token": "NEkyTnc0MUVGbWxLb0lyTWFoVVUxeThqVHNaN1p6Y1JJRFYxWUQ0eTEyZkNId0R6WWNvaWt6RjRhMjdiUzZNVzE4U1E9PQ=="
}

Failed response

{
    "error": "invalid_request",
    "error_description": "Invalid credentials"
}
{
    "error": "missing parameters",
    "error_description": "username is required"
}
Language
Click Try It! to start a request and see the response here!