TOKEN variable.Authorization header is set to something like:id_region (number, required)2.k_business (number, required)49197.is_include_non_api (boolean, optional)true, includes locations that are not normally exposed via the public API.false or omitted, only standard API-exposed locations are returned.is_include_churn (boolean, optional)true, includes churned / inactive locations in the response.false or omitted, only active locations are returned.{
"a_error": [
{
"html_message": "Business is not franchisor.",
"id": null,
"s_field": null,
"s_message": "Business is not franchisor.",
"sid": "business-not-franchisor"
}
],
"class": "Core\\Request\\Api\\DebugException",
"code": null,
"message": "Business is not franchisor.",
"status": "business-not-franchisor"
}
k_business is not configured as a franchisor, even though the HTTP status is 200.status and a_error fields in the JSON body to detect logical errors, even when the HTTP status code is 200.curl --location -g --request GET '/v1/business/franchise/location?id_region={{id_region}}&k_business={{k_business}}&is_include_non_api=true&is_include_churn=true' \
--header 'Content-Type: text/plain' \
--data-raw ''{}