Get API authorization code for transaction
Get an authorization code for the Transaction API.
Test Base URL
https://api-staging.providusbank.com
Production Base URL
HTTP Request
GET /transaction/oauth/authorize/
Authorization Code.
GET
https://api-staging.providusbank.com/v1 /account/NIP
Get API authorization code for transaction.
Headers
Name
Type
Description
Content-Type
String
Request content type ( application/x-www-form-urlencoded )
Request Body
Name
Type
Description
response_type*
String
Response type. Value is code
client_id
String
The OAuth client id
redirect_uri
string
The OAuth client redirect URI ( must be URL encoded )
Sample Implementation
curl --location --request POST 'https://mgw-staging.providusbank.com/transaction/oauth/authorize/' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic NGNlMjQ5YmIzMTFmNGFlZWFmYzNlNDA2OTBjNzc4ZGM6WkRjMVlUbGxNRGd0WVdKa1lpMDBOalJqTFdKak5qUXROV0poTVRnMU16aGpZV1Zt' \
--data-urlencode 'grant_type=authorization_code' \
--data-urlencode 'client_id=091ddd8ca61c488aafcd078f2989eee0' \
--data-urlencode 'code=ZDc1YTllMDgtYWJkYi00NjRjLWJjNjQtNWJhMTg1MzhjYWVm' \
--data-urlencode 'redirect_uri=http%3A%2F%2F192.81.212.28%3A4003%2Foauth'
The above command returns JSON structured like this:
Last updated