User obtains a user token via Web services

A user who has received an activation code can use it to request a user token. You can find all endpoints on this page.

Contents

Test the Web services

In the example below, you see how to access the web service manually and test it on a machine on which Profit has been installed.

Note:

This method only works with a local installation, not on AFAS Online. Run this call on the Profit application server.

To request a user token using an OTP:

  1. Use a URL from the table.
  2. Click on: 'GetTokenFromOTP'.
  3. Enter the name of the Profit user in 'userId'.
  4. Enter the value of API key in 'apiKey'.
  5. Enter the value of Environment key in 'environmentKey'.
  6. In 'otp', enter the OTP that Profit e-mailed to the user.
  7. Click on: 'Invoke'.

If the call is successful, you receive a return message with the token.

Note:

If you granted a token but the user/description does not appear in the properties of the app connector in Profit, close the properties of the app connector and re-open them. This refreshes the view on the User tokens tab and lets you see the user/description. You cannot view the token itself, it is only reported back via the web service.

SOAP call

Profit Connector for retrieving a user token for an app connector.

Download an XML example file

Fields:

  • userId: Name of the Profit user.
  • apiKey: API key of the app connector.
  • environmentKey: Environment key of the app connector.
  • otp: OTP that was sent to the user.

Directly to

  1. Manage the user tokens for your own app connector
  2. Add a user token manually
  3. User requests a token via Profit Web services
  4. User obtains a user token via Web services
  5. Delete user tokens
  6. Manage an app connector