This guide walks you through the WSO2 Open Banking Accelerator Sandbox.
Sign up as an API consumer
- Click here
to create an account in the portal as an API Consumer(TPP/Data Recipient).
Sign up as a bank customer
- Click here
to create an account in the portal as a bank customer.
Sign in as an API consumer
Try out the flow
This section explains how to complete an entire API flow from creating a DCR application to obtaining account
information using an authorized consent.
Register an application
If you already have a Client ID of a registered application in the portal, skip this section.
- Go to the Dynamic Client Registration API.
- From the left menu pane, select the Try Out option.
- Copy the SSA available here.
- Paste the content copied for the SSA and leave the Software ID input field blank.

- Then generate the payload.
- Select the DCR application POST /register call.
- Paste the previously generated payload as the request body.

- Click Execute.
- From the response, copy the Client ID of the application. You can use the same application
to try out the flow again.
- Save the Client ID for future use, as you cannot retrieve this value later.
Obtain an application access token
- Go to the Token API.
- From the left menu pane, select the Try Out option.
- Enter the Client ID of the application and generate an assertion.

- Select the POST /v1.0.0 call to obtain the access token.
- Fill in the required fields in the form along with the generated assertion.

- Set the grant_type to client_credentials and leave the code input field empty.
- Click Execute.
- From the response, copy the access token value. This is the application access token.
Initiate a consent
- Go to the Account and Transaction API.
- From the left menu pane, select the Try Out option.
- In the Security section, enter the application access token obtained in the previous step.

- Select the POST account-access-consents call.
-
Update the DateTime values in the sample payload to future date and time. Include the below mentioned set of permissions in the Permissions section of the request body to try out all the Account and Transaction APIs.
"ReadAccountsDetail",
"ReadTransactionsDetail",
"ReadBalances"

- Click Execute.
- From the response, copy the Consent ID value.
Authorize the consent
Obtain a user access token
- Go to the Token API.
- From the left menu pane, select the Try Out option.
- Enter the Client ID of the application and generate an assertion.
- Select the POST call to obtain the access token.
- Fill in the required fields in the form along with the generated assertion.
- Click Execute.
- Set the grant_type to authorization_code.
- Use the authorization code obtained from the previous step for the code input field.
- From the response, copy the access token value. This is the user access token.
- Go to the Account and Transaction API.
- From the left menu pane, select the Try Out option.
- In the Security section, enter the user access token obtained in the previous step.
- Select the Get Accounts call.
- Set the Account Id to 1.

- Click Execute.
- The response contains account details.
Retrieve an application
- Follow the Obtain an application access token step and obtain an application access token.
- Go to the Dynamic Client Registration API.
- From the left menu pane, select the Try Out option.
- In the Security section, enter the application access token obtained.
- Select the DCR application GET /register/{ClientId} call.
- Enter the Client ID of the application created.

- Click Execute.
- The response contains the application details.
Update an application
- Follow the Obtain an application access token step and obtain an application access token.
- Go to the Dynamic Client Registration API.
- From the left menu pane, select the Try Out option.
- In the Security section, enter the application access token obtained.
- Follow the Retrieve an application step and obtain the software_id from the response.
- Copy the SSA available here.
- Paste the content copied for the SSA and input the Software ID of the application to update which was obtained by retrieving the application details previously.

- Then generate the payload.
- Select the DCR application PUT /register/{ClientId} call.
- Paste the previously generated payload and enter the Client ID of the application created.

- Click Execute.
- The response contains the updated application details.
Delete an application
- Follow the Obtain an application access token step and obtain an application access token.
- Go to the Dynamic Client Registration API.
- From the left menu pane, select the Try Out option.
- In the Security section, enter the application access token obtained.
- Select the DCR application DELETE /register/{ClientId} call.
- Enter the Client ID of the application created.

- Click Execute.
- The response will be a 204 which confirms that the application was deleted.