iCard Rest API uses oAuth2 for authorizing the HTTP requests. For more information please refer to the docs: https://www.oauth.com. The oAuth2 Token is sent in the header of every request. The Client ID and Client Secret are available in the iCard Web Account.
To generate your personal set of credentials, go to your iCard Account. There you can manage your already generated credentials as well as generate new ones.
After obtaining your Client ID and Client Secret, generating an oAuth Token is standard. myPOS REST API currently supports only "client credentials" grant type for oAuth Token generation.
To generate a token, send an HTTP POST request towith:
Content-Type = application/x-www-form-urlencoded
Authorization = "Basic " + base64 encoded value of concretinated Client ID and Client Secret using a semicolon for concretination.
grant_type = "client_credentials" or authorization_code" or "refresh_token"
scope = "webhooks" when using oAuth for the WebhookAPI