POST
/
verify
/
token
/
create
curl --request POST \
  --url https://authservice.withbenji.com/verify/token/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user_external_id": "<string>",
  "display_name": "<string>",
  "user_ip": "<string>",
  "partner_ids": {}
}'
{
    "code": "ok",
    "data": {
        "token": "0c371a1c-aa81-11ef-b28c-0a58a9feac02"
    }
}
The Bearer token to be used on this API is your partner access token
user_external_id
string
required

A unique identifier associated with the user connecting their loyalty reward program

display_name
string

The name of your store you wish to be displayed in the Benji Connect flow. If this is not passed, the name configured on the Benji platform will be used

user_ip
string

The IP of the user currently connecting. Note that this is required if there are any geo specific conditions applied to the partner campaigns.

partner_ids
string array

For marketplace only scenarios, if you want to filter specific partners, pass an array of their respective identifiers on the Benji Platform. The full list if Benji Partner IDs can be found in the partners page on the Benji dashboard, Pilot.

Return values

token
string
required

The created token token to use when initializing the Benji Connect SDK

{
    "code": "ok",
    "data": {
        "token": "0c371a1c-aa81-11ef-b28c-0a58a9feac02"
    }
}