Create a token to initialize the Benji Connect SDK
Getting Started
Create a token to initialize the Benji Connect SDK
Create a token to initialize an instance of the Benji Connect SDK or Benji Hosted Connect.
POST
Create a token to initialize the Benji Connect SDK
The
x-api-key header value to be used on this API is your partner API
key, which can be generated through the Developer page
in Pilot.The Connect Token API resolves merchant and partner from
partnership_id.Request body
The unique identifier of the partnership on the Benji Platform.
The connection mode for the SDK (Connect = 1, Transfer = 3, and Redeem = 4).
See Connect modes.
Display name shown in the Connect UI. If omitted, the name configured for the
partnership on the platform is used.
A unique identifier for the user in your system. When set, the flow can skip
the authentication step for your user.
Custom attributes for the connection flow (e.g. transfer actions).
Example requests
Minimal request (Connect mode)
Minimal request (Connect mode)
With user_external_id
With user_external_id
Transfer mode (mode 3) with custom_attributes
Transfer mode (mode 3) with custom_attributes
Redeem mode (mode 4)
Redeem mode (mode 4)
Return values
The connect token to pass when initializing the Benji Connect
SDK or as
connect_token on the Benji Hosted
Connect URL.Base URL for Benji Hosted Connect for this partnership. Append
?connect_token=<token> (and optional query parameters) to send users into Benji Hosted Connect. May be empty if Benji Hosted Connect URLs are not enabled for your account.