Presentation logo

Earlier Integrations |AuthCust Deprecated


Used to authenticate a customer in the Cashier from your Platform. This method is normally called after a customer is logged into the merchant site and clicks on a ‘Cashier’ link and the Cashier receives the posted form variables (see Linking to the Cashier) from your site to authenticate the customer. Based on the response returned, the customer will either be allowed or denied access to the Cashier.

REQUEST PARAMETERS

Variable Type Description
PIN varchar(50) Required. Unique customer id in your system
Password varchar(256) Required. Password (See Customer Authentication).
SiteID int Optional: only used if you need to identify a brand or company to which this customer belongs.
FrontEndName varchar(256) Required. Cashier front end name, normally common name of the website. Linked to a specific base currency.

RESPONSE PARAMETERS

Variable Type Description
status int Required.
- 0 if the request was successful
- Negative integer if internal server/network error occurs
- Positive integer if application/logical error occurs
description varchar(256) Required. Accurate description of the result. Return the actual error for any exception as it helps to diagnose issues in production

EXAMPLE

Request

curl -X POST \ https://your.api.host/AuthCust \
-H 'Content-Type: application/json' \
-d '{"SiteID":170,
    "FrontEndName":"TEST EUR",
    "PIN":"7",
    "Password":"8f14e45fceea167a5a36dedd4bea2543"}'    

Response (OK)

{"status":0, "description":"success"}

Response (ERR)

{"status":1, "description":"User not found"}