Request payout access token
Flow
- Create a Fintecture account
- Register a client application and get the credentials (i.e the
app_idandapp_secret) associated to it. A payout application is registered with thepayoutscope and a beneficiary bank account of typepayout - Encode your credentials using Base64 (
Basic base64({app_id}:{app_secret})) to generate theAuthorizationheader - Request an access token using your credentials, the
payoutscope and theAuthorizationheader - Extract following information from provided response body:
access_tokenis to be used for endpoints' callsexpires_inallows you to know token's duration validity
- Use
access_tokenfor every payout endpoint requiring Bearer - Check regularly
expires_inand before access token's expiration, ask for a new one
What the token grants
A payout application holds the payout scope together with the pis scope, because a payout is initiated on the payment session endpoints. The access token of such an application always carries payout, whether or not you requested it.
A token carrying payout grants:
- Request for payout — sending money out
- Read access to the application's own payment sessions: list them, fetch one and list its refunds
The other payment session operations — status update, debtor retrieval, event simulations, payment creation and refunds — require the pis scope, so request it explicitly (scope=pis payout, scopes being space-separated) when you need them. A request made with a token that lacks the scope an endpoint requires is rejected with invalid_scopes and the detail no_<scope>_scope.
Updated 41 minutes ago
Did this page help you?