Retrieve access token from user token

Retrieve an access token from a user token

To convert a user token to an access token, call the following endpoint:

NOTE - to obtain the API Key that this endpoint requires, you need to register. Get in touch with our team

## Retrieve access token from user token

curl -X "GET" "https://api.flypaythis.com/users/v1/provider/token/--the-user-token-goes-here--" \
     -H 'X-API-KEY: abc123'

Tip: Make sure to URL encode the user token as it my contain URI reserved characters

The response contains the access token for the user token:

{
  "accessToken": "8ae530ce70b4affaf4365fb5945741b52d27da01f909976dbdcd2b1bc499abc5"
}

Note: The Api key must match the channel linked with your provider

The provider's channel UUID must match the API key provided. If something in this configuration is wrong, the returned HTTP status code is 401