customerToken

The customerToken is used in the frontend part of your application and it will allow you to make authenticated requests to the Notabene backend when using txValidate without exposing your accessToken.

To generate this token you need to use the accessToken as the authorization header and provide your vaspDID together with a string that identifies your customer that is requsting the withdrawal:

{
    "vaspDID": "{{vaspDID}}",
    "customerRef": "SG123456789"
}

📘

Where do I find the vaspDID?

Check out our Decentralized Identifiers DIDs page

The customerToken that you get in the response is valid for 5 minutes:

{
    "hash": "021ab74615e2e21c646ab9fe81fd8da56c51b8c463b5f51fe91fc25cd7ca972674b8b017917e4abf2148bfca9a75d602d2422a3be6ed4a2ab85455d436319308c",
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciO3iJFUzI1NkstUiJ9.eyJpYXQiOjE2NDkyMDcyNzAsImV4cCI6bnVsbCwidmMiOnsiQGNvbnRleHQiOlsiaHR0cHM6Ly93d3cudzMub3JnLzIwMTgvY3JlZGVudGlhbHMvdjEiLCJodHRwczovL2FwaS5ub3RhYmVuZS5pZC9zY2hlbWFzL3YxIl0sInR5cGUiOlsiVmVyaWZpYWJsZUNyZWRlbnRpYWwiLCJBY2Nlc3NUb2tlbiJdLCJjcmVkZW50aWFsU3ViamVjdCI6eyJzY29wZSI6ImN1c3RxbWVyIn19LCJzdWIiOiJkaWQ6ZXRocjoweGE3Y2ZlZGEwZWQzYmNkNDE4Yjk5NThmNTY4NGRlNzkzOWZmNjAyMjMiLCJpc3MiOiJkaWQ6ZXRocjoweGE3Y2ZlZGEwZWQzYmNkNDE4Yjk5NThmNTY4NGRlNzkzOWZmNjAyMjMifQ.kbOw_f8Iv8Kq8PnqbY-bitLRbTBarqoH8ZVhvxRgDfHaOLNtaZqk1xL91SsbKhtSwglJGFjGAiuwF6SifRLKSwE",
    "token_type": "Bearer",
    "scope": "customer"
}

What’s Next

Let's start working on wallet identification and data collection:

Did this page help you?