Skip to content

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: view-account, view-transactions, view-refunds, create-refund, view-withdrawals, view-webhooks, create-webhook, update-webhook, delete-webhook, view-webhook-history-events

Request ​

Endpoint: GET /oauth/authorize

bash
https://youcanpay.com/oauth/authorize?client_id=your_client_id&redirect_uri=test.com&response_type=code&scope[]=*

Response ​

Will redirect you to the specified redirect_uri in the request ​

https://test.com?code=a03849d78399267547d8ac9af639dc61828933791...