Search
K
Embedded Finance

Create company token

Create a company token to be used to authenticate requests to company scoped endpoints on behalf of a company.

This should be called server-side and the resulting company token passed to the front end.

post
https://api.wayflyer.com/financing/v1/partner/company-token/

Body

application/json

CompanyTokenRequest

company_idstringrequired

An identifier in the partner’s system that uniquely identifies the company to create a token for

user_idstringrequired

An identifier in the partner’s system that uniquely identifies the specific user for the company

Response

application/json

OK

CompanyTokenResponse

tokenstringrequired

A token that can be used to authenticate requests to company scoped endpoints. Pass this to the front end

expires_inintegerrequired

The number of seconds until the token expires

post/v1/partner/company-token/

Body

{ "company_id": "company_id", "user_id": "user_id" }
 
application/json

Create partner token

Create a partner token to be used to authenticate requests to partner scoped endpoints.

This should be called server-side. Never expose the partner_id or partner_secret or the resulting partner
token to the front end.

post
https://api.wayflyer.com/financing/v1/partner-token/

Body

application/json

PartnerTokenRequest

partner_idstringrequired

An identifier for the partner created and shared with the partner by Wayflyer during onboarding. Never expose this to the front end.

partner_secretstring(password)required

A secret that can be used to authenticate requests to partner scoped endpoints. Never expose this to the front end.

Response

application/json

OK

PartnerTokenResponse

tokenstringrequired

A token that can be used to authenticate requests to partner scoped endpoints. Never expose this to the front end

expires_inintegerrequired

The number of seconds until the token expires

post/v1/partner-token/

Body

{ "partner_id": "partner_id", "partner_secret": "partner_secret" }
 
application/json

BannerData

object
offerAny Of

Offer data to display in the CTA

Offerobject
Show Child Parameters
configAny Of
required

Configuration for the CTA

ContinueApplicationBannerConfigobject
Show Child Parameters
Example

BannerResponse

object
statestringrequired

The type of CTA to display

Allowed values:continue_applicationindicative_offergeneric_offer

dataobjectrequired

Data to display in the CTA

Show Child Parameters
Example

BannerState

string

Allowed values:continue_applicationindicative_offergeneric_offer