Endpoint
- Method:
GET - Path:
/portal/bootstrap - Edition: Core
- Controller:
PortalController@getBootstrap - Route source:
app/Http/Routes/api.php - Access:
UserPolicy— A logged-in WordPress user with anactiveaffiliate account. Pending and inactive affiliates are rejected.
GET Get Portal Bootstrap
GET
/portal/bootstrap
Get the data the affiliate portal app boots with: site info and the affiliate's share link parameters, additional sites, translated strings, the user, branded coupons, currency, menu items, QR code settings and date format. Only for an active affiliate. Filtered by fluent_affiliate/portal_localize_data.
Controller: PortalController@getBootstrap
Route source: app/Http/Routes/api.php
Authorizations
ApplicationPasswords
WordPress Application Passwords — use Basic auth with username:application_password.
Type
API Key (header: Authorization)
Responses
Successful response
application/json
JSON
{
"site_info": {
"site_url": "string",
"site_name": "string",
"share_url": "string",
"aff_var": "string",
"aff_value": "string"
},
"additional_sites": [
{
}
],
"i18n": {
},
"start_of_week": 0,
"user": {
},
"branded_coupons": [
{
"code": "string",
"description": "string"
}
],
"currency": {
},
"menu_items": [
{
}
],
"qr_code_settings": {
},
"date_format": "string"
}