Get Settings
https://api.flxpoint.com/settingsUse this when you want to pull account data through the API.
This page explains the endpoint. To send a live test request, use the interactive tester in Stoplight or your own Postman / HTTP client.
This endpoint allows you to retrieve the possible settings.
Settings are categorized into separate domains. In order to retrieve settings for a specific domain, pass the appropriate `handle`.
This endpoint does NOT retrieve the `values` that are configured for a specific Account, Source, Channel, Reseller, etc. The values are retrieved via separate endpoints (i.e. /sources/{sourceId}/settings)
**You must either pass `findByCategory` or `findByHandle or `findById`**
Request
findByCategoryquerystringA setting category handle will retrieve back all settings for a specific category. For more information on these categories, see the `handle` field description on `SettingCategory`
findByHandlesquerystringA setting handle, or a comma separate list of setting handles to retrieve.
findByIdqueryintegerA setting id, this will retrieve a setting associated with this setting id
Example request
/settingscurl -X GET "https://api.flxpoint.com/settings" \
-H "Accept: application/json" \
-H "X-API-TOKEN: YOUR_TOKEN"Responses
200OKapplication/json
idintegernamestringrequiredhandlestringrequiredtypestringrequiredimgbooleantime_interval_thresholdemailstringtextselectnumberradiomultijsonvalueTypestringrequiredintegerbooleantime_interval_thresholdstringselectemaildecimalnumbermultijsonplaceholderstringdefaultValuestringdescriptionstringoptionsstringparentSettingIdintegercategoryobjectidintegerhandlestringsupplier.settingsdealer.invoice.settingsaccount.settingsnotificationsaccount.b2bchannel.settingsfeature_flagsdealer.channel.settingssource.settingsvendor.settingsnamestring[
{
"id": 0,
"name": "string",
"handle": "string",
"type": "img",
"valueType": "integer",
"placeholder": "string",
"defaultValue": "string",
"description": "string",
"options": "string",
"parentSettingId": 0,
"category": {
"id": 0,
"handle": "supplier.settings",
"name": "string"
}
}
]201Created
No schema documented for this status.
400Bad Request
No schema documented for this status.
OpenAPI fragment
{
"get": {
"summary": "Get Settings",
"description": "This endpoint allows you to retrieve the possible settings. \n\nSettings are categorized into separate domains. In order to retrieve settings for a specific domain, pass the appropriate `handle`. \n\nThis endpoint does NOT retrieve the `values` that are configured for a specific Account, Source, Channel, Reseller, etc. The values are retrieved via separate endpoints (i.e. /sources/{sourceId}/settings)\n\n**You must either pass `findByCategory` or `findByHandle or `findById`**",
"parameters": [
{
"schema": {
"type": "string"
},
"in": "query",
"name": "findByCategory",
"description": "A setting category handle will retrieve back all settings for a specific category. For more information on these categories, see the `handle` field description on `SettingCategory`"
},
{
"schema": {
"type": "string"
},
"in": "query",
"name": "findByHandles",
"description": "A setting handle, or a comma separate list of setting handles to retrieve."
},
{
"schema": {
"type": "integer"
},
"in": "query",
"name": "findById",
"description": "A setting id, this will retrieve a setting associated with this setting id"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Setting"
}
}
}
}
},
"201": {
"description": "Created"
},
"400": {
"description": "Bad Request"
}
}
}
}