The Bearer token to be used on this API is your partner access token .
The partnership display name you wish to be shown in the Benji Connect flow UI Note: If this is not passed, the name configured on the Benji platform will be used.
The connection mode for the SDK (Connect = 1, Transfer = 3, and Redeem = 4)
The unique identifier of the partnership on the Benji Platform.
A unique identifier associated with the user connecting their loyalty reward program, when set flow skips the initial user authorization with the partner and continues to authorize the user with the related merchant/partner.
Custom attributes for the connection flow Array of actions to be performed during the connection flow The action mode (Transfer = 3, Redeem = 4)
The points amount to transfer or redeem from the partner
Determines whether the user can edit the points amount in the UI or not
Example Requests
Minimal Request (Connect mode)
{
"mode" : 1 ,
"display_name" : "Reward Cookies" ,
"partner_id" : 3 ,
"partnership_id" : 49 ,
"merchant_id" : 48
}
{
"mode" : 1 ,
"display_name" : "Reward Cookies" ,
"partner_id" : 3 ,
"partnership_id" : 49 ,
"merchant_id" : 48 ,
"user_external_id" : "1234"
}
With custom_attributes (Transfer mode)
{
"mode" : 3 ,
"display_name" : "Reward Cookies" ,
"partner_id" : 3 ,
"partnership_id" : 49 ,
"merchant_id" : 48 ,
"custom_attributes" : {
"actions" : [
{
"mode" : 3 ,
"amount" : 1000 ,
"allows_editing" : true
}
]
}
}
Return values
The created token token to use when initializing the Benji Connect SDK
{
"code" : "ok" ,
"data" : {
"token" : "0c371a1c-aa81-11ef-b28c-0a58a9feac02"
}
}