Update Business State
PATCH/api/v1/businesses/:id/state
Update State of given business
Request
Path Parameters
- application/vnd.api+json
Body
required
data
object
required
Possible values: [businesses
]
attributes
object
Possible values: [draft
, published
, waiting_for_approval
, rejected
, hidden
]
Responses
- 200
Update State of given business
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
Array [
]
data
object
required
Possible values: [businesses
]
links
object
required
attributes
object
required
booking-open-hours
object
business-open-hours
object
logo
object
required
special-open-hours
object[]
settings
object
required
sidebar-settings
object
required
The sidebar settings reflect the configuration in which the sidebar is displayed for your business.
property name*
object
relationships
object
required
addresses
object
required
links
object
required
groups
object
required
links
object
required
menus
object
required
links
object
required
orders
object
required
links
object
required
partners
object
required
links
object
required
pictures
object
required
links
object
required
products
object
required
links
object
required
reviews
object
required
links
object
required
exclusive-suppliers
object
required
links
object
required
{
"data": {
"id": "string",
"type": "businesses",
"links": {
"self": "string"
},
"attributes": {
"access-group": "string",
"allow-pickup": true,
"approved-for-lefood": true,
"auto-accept-orders": true,
"auto-accept-booking": true,
"auto-accept-booking-limit": "string",
"available-in-lefood": true,
"average-delivery-time": 0,
"average-score": 0,
"average-waiting-time": 0,
"bill-url": "string",
"bio": "string",
"booking-open-hours": {
"id": "string",
"monday": [
"string"
],
"tuesday": [
"string"
],
"wednesday": [
"string"
],
"thursday": [
"string"
],
"friday": [
"string"
],
"saturday": [
"string"
],
"sunday": [
"string"
]
},
"breakfast-service": true,
"brunch-service": true,
"business-open-hours": {
"id": "string",
"monday": [
"string"
],
"tuesday": [
"string"
],
"wednesday": [
"string"
],
"thursday": [
"string"
],
"friday": [
"string"
],
"saturday": [
"string"
],
"sunday": [
"string"
]
},
"cafe-service": true,
"can-pay-with-cards": true,
"can-pay-with-cash": true,
"can-pay-with-mobile": true,
"city": "string",
"contact-with-proper-owner-possible": true,
"country": "string",
"country-code": "string",
"currency": "string",
"delivery-available": true,
"delivery-charge-ref": "string",
"delivery-price-participation-ratio": "string",
"delivery-service-type-ref": "string",
"delivery-url": "string",
"detected-language": "string",
"dinner-service": true,
"email": "string",
"facebook": "string",
"favorite-id": "string",
"geolocation-lat": "string",
"geolocation-lng": "string",
"has-catering": true,
"has-delivery": true,
"has-join-the-queue": true,
"has-online-booking": true,
"has-private-events": true,
"has-reservations": true,
"has-takeaway": true,
"hubrise-catalog-id": "string",
"hubrise-catalog-name": "string",
"instagram": "string",
"live-info": "string",
"logo": {
"url": "string"
},
"lunch-service": true,
"main-photo-url": "string",
"max-reservation-size": 0,
"menu-synced": true,
"min-amount-for-delivery-cents": 0,
"min-time-before-reservation": 0,
"name": "string",
"online-booking-url": "string",
"owner-role": "string",
"partoo-business-id": "string",
"phone": "string",
"phone-country-code": "string",
"phone-country-prefix": "string",
"pos-partner-integration-exists": true,
"post-code": "string",
"price-per-person": 0,
"price-range": 0,
"rating": 0,
"region": "string",
"region-code": "string",
"secret-code": "string",
"slug": "string",
"snack-service": true,
"special-open-hours": [
{
"id": "string",
"start_date": "string",
"end_date": "string",
"schedule": [
"string"
]
}
],
"state": "string",
"street": "string",
"street-number": "string",
"stripe-currency": "string",
"stripe-payment-ref": "string",
"eat-in-ref": {},
"stripe-user-id": "string",
"tagline": "string",
"takeaway-service-type-ref": "string",
"takeaway-url": "string",
"time-of-stay": 0,
"time-slots": 0,
"timezone": "string",
"unit-name": "string",
"unit-style": "string",
"visible-in-lefood": true,
"website": "string",
"youtube": "string",
"settings": {
"orkestro_delivery_confirmation_enabled": true,
"order_business_web_notifications_enabled": true,
"reservation_business_web_notifications_enabled": true
},
"sidebar-settings": {}
},
"relationships": {
"addresses": {
"links": {
"self": "string",
"related": "string"
}
},
"groups": {
"links": {
"self": "string",
"related": "string"
}
},
"menus": {
"links": {
"self": "string",
"related": "string"
}
},
"orders": {
"links": {
"self": "string",
"related": "string"
}
},
"partners": {
"links": {
"self": "string",
"related": "string"
}
},
"pictures": {
"links": {
"self": "string",
"related": "string"
}
},
"products": {
"links": {
"self": "string",
"related": "string"
}
},
"reviews": {
"links": {
"self": "string",
"related": "string"
}
},
"exclusive-suppliers": {
"links": {
"self": "string",
"related": "string"
}
}
}
}
}