Loyalty Authentication

OCAPI has two different Loyalty authentication methods you can use.

Session

(POST) /ocapi/v1/members/authentication-cookie

Creates a cookie-based authentication session. We recommend this method for web based clients, as it allows Connect and the Loyalty member's browser to handle the majority of the logic involved in maintaining the authentication session.

To use this authentication method, you'll need to perform some setup in the Connect database:

  • In the Connect database, add a record to tblClient.
  • Insert your website's domain name into Client_strAuthenticationCookieDomain.

Token

(POST) /ocapi/v1/members/authentication-token

Authenticates a member and returns an authentication token. This method is appropriate for clients that don't run on a web browser, or that require granular control of members' authentication.