Skip to main content

Business model

The Business resource represents a store or service location inside an Ordering.co project.

Core operations​

ActionMethodResourcePurpose
List businessesGET/businessReturn businesses visible under the selected query and caller context.
Find a businessGET/business/{business}Return one business by numeric ID or slug.
Create a businessPOST/businessCreate a business under administrator or business-manager rules.
Update a businessPOST/business/{business}Partially update a business by numeric ID.
Delete a businessDELETE/business/{business}Delete a business when ownership and shared-resource checks allow it.

An earlier model table labeled update as PUT, but the route listed here uses POST. The operation guide specifies each operation's parameters, authentication, request fields, responses, and errors.

Representative fields​

The schema described here contains many operation-specific fields. Common groups include:

GroupRepresentative fields
Identityid, name, slug, description, about, enabled, featured
Contactemail, phone, cellphone, address, address_notes, zipcode
Locationcity_id, location, timezone, country_code, state, locality
Commercecurrency, minimum, delivery_price, service_fee, tax, tax_type
Fulfillmentschedule, delivery_time, pickup_time, always_deliver
Media and presentationlogo, header, seo_image, seo_title, seo_description
Ownership and organizationowner_id, franchise_id, parent_business_id, types

The spellings alchohol and use-printer are not field names used in the schema described here. The schema described here uses alcohol and use_printer.

Some properties are filterable and appear in the operation's x-ordering-whereable metadata. Field presence in the model does not mean every operation returns or accepts that field. Sparse responses and relation expansions can also change the response shape.

For structured schedules and locations, see Special data types, documented as a reference for structured schedules and locations. For endpoint-specific relation expansions, see Business special requests.