Register a user for a provider

Register a user for a provider

After creating an access token, the user can be linked to the provider requesting registration.

To link the user, we need to call the registration endpoint, providing also the API key of the specific provider.

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

Call the following endpoint to register a user:

## Register user to provider
curl -X "POST" "https://api.flypaythis.com/users/v1/provider/registration" \
     -H 'Content-Type: application/json' \
     -H 'X-API-KEY: abc123' \
     -d $'{
            "accessToken": "8ae530ce70b4affaf4365fb5945741b52d27da01f909976dbdcd2b1bc499abc5",
            "email": "foo@bar.co.uk",
            "firstName": "John",
            "lastName": "Smith",
            "phoneCountryCode": "44",
            "phoneNumber": "0123 456780",
            "dateOfBirth": "1988-12-30",
            "gender": "male"
          }'

The response contains the uuid for the freshly created user:

{
  "uuid": "d76a6cd8-4b80-4302-a98b-4c88e2e736d9"
}

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

While creating a token, you specify a channel UUID that must match the API key provided to you. If something in this configuration is wrong, the returned HTTP status code is 401