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/partner/company-token/

Headers

API-Versionstring

Allowed values:1

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/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.

Requests are limited to 10 requests per IP per hour.

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

Headers

API-Versionstring

Allowed values:1

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/partner-token/

Body

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

StartHostedApplicationResponse

object
nextstringrequired

The URL to redirect to the user to after making this API call

application_idAny Of
required

The ID of the hosted application created by this API call

Variant 1string(uuid)
Example

CanadianProvinceCode

string

Allowed values:CA-ABCA-BCCA-MBCA-NBCA-NLCA-NSCA-ONCA-PECA-QCCA-SKCA-NTCA-NUCA-YT

CompanyType

string

Allowed values:LPLLPLLCINCCOOP