Create a file payment consent
Create a file payment consent described in the Open Banking API documentation: Account and Transaction API Specification.
File Payments are available only for Revolut Business users.
Currently only the text/csv
file type is supported for File Payments.
When you make the API call, ensure that you pass the corresponding JSON Web Signature (JWS) in the x-jws-signature
request header. Note:
- The JWS is generated from the request body with the TPP signing key that is specified in the JWS header.
- The JWS consists of a header and a signature in the
<jws_header>..<jws_signature>
format.
To see how to create a JWS, see the guide: Work with JSON Web Signatures.
For more information, see Tutorials: Create a file payment.
Authorization
Each Open Banking API must contain an authorization header in the following format to make a call: Bearer <yourAccessToken>
.
Before you start, ensure that you've got an access token with the correct scope
using the /token
endpoint.
You need to get the authorization code first and exchange it for an access token.
Never share your access_token
with anyone, as it can be used to access the banking data that you have access to and initiate transactions.
For more information, see Tutorial: Get account and transaction information and Tutorial: Initiate your first payment as examples.
x-jws-signature
Open Banking API Payment requests additionally require a JSON Web Signature (JWS) which needs to be added to the header of the request. The JWS signature must be obtained using the full content of the payload.
Request
Default
Response
File Payment Consents Created