Skip to main content

Find a business

API operation: Open the endpoint in Scalar

Use GET /business/{business} to retrieve one business by numeric ID or slug. The operation is Business.find.business_business.

The archived path called the final parameter id_or_slug; the current route calls it business. Both occupy the same final segment. The controller treats a numeric value as an ID and another accepted value as a slug.

The ordinary detail flow is public and returns only an enabled business. mode=dashboard requires an authenticated administrator or business manager and can expose a different administrative shape. Query values such as params, type, location, timestamp, and version are operation-specific.

Legacy SDK examples​

const response = await ordering.businesses(businessId).parameters(parameters).get()
const dashboardResponse = await ordering.businesses(businessId).asDashboard().get()

Confirm the SDK package and version before using these helpers. For relation expansions, see Business special requests.

OpenAPI reference​

Operation: GET /business/{business}

Path parameters

NameTypeRequiredDescription
businessstringYes—

Query parameters

NameTypeRequiredDescription
paramsstringNoComma-separated list of fields. It is intersected with the model’s $fillable; an empty or invalid list returns all fields.
professional_idintegerNo—
dropdownoptionintegerNo—
locationstringNo—
menu_idintegerNo—
modestringNo—
student_idintegerNo—
timestampintegerNo—
typeintegerNo—
user_idintegerNo—
versionstringNo—

Header parameters

NameTypeRequiredDescription
X-APP-XstringNo—

Responses

CodeDescription
200OK (Envelope)
400Bad Request (ErrorResponse)
401Unauthorized
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference