Authentication

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

Request

Sample curl request

curl --location --request POST 'https://accounts.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": "eyJraWQiOiJjYXMtcGsiLCJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIxMTQ3NCIsInBhcmVudCI6IlRJTkdHX0NBUkRfREVNTyIsImxldmVsIjoiQ1VTVE9NRVIiLCJpc3MiOiJodHRwOi8vY2FzLWFwaS50ZXN0aW5nOjgwODAvIiwidXR5cGUiOiJBUEkiLCJhdWQiOiIqIiwicGhvbmUiOiIwIiwibmFtZSI6InNhbmRib3hVc2VyIiwiY2xpZW50IjoiUEFZT1VUU0RFTU8iLCJleHAiOjE3NTAwNDk3MDcsImlhdCI6MTc1MDA0NjEwNywiY3VzdF9pZCI6NjEzMiwianRpIjoiZWQ1MjFhYWUtYzhkYi00MGQ1LWFjODMtYjEzN2QyYjk1NWE3MmFmZWY2MTctMGY5Ni00YjRhLWE5MTctZjYwZDE1YzU0YWRhIn0.uM3-KQlyQqUaSod9oWB7_EF7MLFiXoHyFWl_uq3niquDfFUSf2zOma_SUy8U8f02ow5gBS9Zp5iMsZ4MD8RStIfohP_ojoaHpHXBRVZa3Qc0Jk0mgV864WvOLBrZDvqyVupKIVyvQO8GUy_v2hIei945PiTAghPKkfumqPIyHo6hhpPbh3b_B5cbMUPapsVM8vnwdkWOz0fQHlod25vRRzw3Oy-2QaE7dt4wnR82jEqpDK-VJjC2y_Mvar54H5aIEnLbbdnngNUhvzGkIn1KqI9kbMU3mPqxUeJK-6fle0bQwMl6p_EpU4_ZZffx_sqDHTe_3ze6IEM84UVldsSeAQ",
    "refresh_token": "NEkyTnc0MUVGbWxLb0lyTWFoVVUxNE1nSm5zRnBTeXNraFZkek5MeThqVHNaN1p6Y1JJRFYxWUQ0eTEyZkNId0R6WWNvaWt6RjRhMjdiUzZNVzE4U1E9PQ=="
}

Failed response

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