Authorization Code
The first step is to redirect to YouCanPay for getting an authorization code. After the seller answers the authorization popup, they will be redirected to the specified redirect URI (https://test.com/) where you can exchange the authorization code for an access token.
Available Scopes: transactions.management, refunds.management, invoices.management, withdrawals.management, account.management
Request
Endpoint: GET /oauth/authorize
bash
https://youcanpay.com/oauth/authorize?client_id=your_client_id&redirect_uri=test.com&response_type=code&scope[]=*1
Response
Will redirect you to the specified redirect_uri in the request
https://test.com?code=a03849d78399267547d8ac9af639dc61828933791...1