Get users business
GEThttps://api.staging.powerapi.com/api/v1/users/me/businesses/:id
Return a business of currently logged in user
Request
Path Parameters
id int32required
Query Parameters
include string
Include associations (delimited with comma). Available associations: addresses, groups, menus, orders, partners, pictures, products, reviews, exclusive_suppliers
Responses
- 200
Return a business of currently logged in user
- application/vnd.api+json
- Schema
- Example (from schema)
- Example
Schema
data
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"
}
}
}
}
}
{
"data": {
"id": "0eb74ac0-c750-4eee-a467-282bdb0e23a4",
"type": "businesses",
"links": {
"self": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4"
},
"attributes": {
"allow-pickup": true,
"approved-for-lefood": true,
"auto-accept-orders": false,
"auto-accept-booking": false,
"auto-accept-booking-limit": "0",
"available-in-lefood": true,
"average-delivery-time": 30,
"average-score": 7.3,
"average-waiting-time": 30,
"bill-url": "https://demo.sundayapp.xyz/order/a1731086-274b-3864-86a9-5706a796c799",
"bio": "Le Cinq is a gourmet restaurant in Paris, France, part of the Four Seasons Hotel George V. Le Cinq opened in 2001 to much fanfare and rapidly achieved 1, 2, then 3 Michelin Red Guide stars under the direction of chef Philippe Legendre before being demoted to 2 stars.\r\n\r\nPlease note: order beyond 3km distance won't receive warm meal",
"breakfast-service": true,
"brunch-service": true,
"cafe-service": true,
"can-pay-with-cards": true,
"can-pay-with-cash": true,
"can-pay-with-mobile": true,
"city": "Paris",
"connected-to-partoo": false,
"contact-with-proper-owner-possible": true,
"country": "France",
"country-code": "FR",
"currency": null,
"delivery-available": true,
"delivery-charge-ref": "1234",
"delivery-price-participation-ratio": "1.0",
"delivery-service-type-ref": "2222",
"delivery-url": "https://delivery.com",
"detected-language": "en",
"dinner-service": true,
"email": "hello@foodetective.co",
"facebook": "https://facebook.com/eab",
"favorite-id": null,
"geolocation-lat": "48.9019071",
"geolocation-lng": "2.3738375",
"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": "17mxg",
"hubrise-catalog-name": "Le cinq (2) - Uber Eat test account",
"instagram": "https://www.instagram.com/foodetective.co//",
"live-info": "app live info",
"logo": {
"url": "https://foodetective-staging-backend-data.s3.amazonaws.com/uploads/business/logo/0eb74ac0-c750-4eee-a467-282bdb0e23a4/8096e66f-5355-4dcc-9c91-536281d92e7c.png"
},
"lunch-service": true,
"main-photo-url": "https://foodetective-staging-backend-data.s3.amazonaws.com/uploads/picture/photo/569f8823-242a-420a-991c-589447eb440c/b6248af5-bef0-4bd2-a161-43983b564d2c.png",
"max-reservation-size": 8,
"menu-synced": false,
"min-amount-for-delivery-cents": 1000,
"min-time-before-reservation": 1800,
"name": "Restaurants",
"online-booking-url": "https://online.booking.url",
"owner-role": "Main owner",
"phone": "345345345",
"phone-country-code": "FR",
"phone-country-prefix": "33",
"pos-partner-integration-exists": true,
"post-code": "75004",
"price-per-person": 45,
"price-range": 3,
"rating": 7.3,
"region": "Paris",
"region-code": "FR-75",
"secret-code": null,
"slug": "restaurants",
"snack-service": true,
"state": "published",
"street": "Rue Charlotteee",
"street-number": "822",
"stripe-currency": "EUR",
"stripe-payment-ref": "4321",
"eat-in-ref": null,
"stripe-user-id": "acct_1GkWA1Lj6G4jVdPy",
"tagline": "Testing the best line ever/...",
"takeaway-service-type-ref": "4444",
"takeaway-url": "https://app.test.com",
"time-of-stay": 600,
"time-slots": 1800,
"timezone": "Europe/Paris",
"unit-name": "Table",
"unit-style": "Style 1",
"visible-in-lefood": true,
"website": "https://www.index.hr",
"youtube": "https://youtu.be/-DVkz4LLu8w",
"settings": {
"orkestro_delivery_confirmation_enabled": true,
"order_business_web_notifications_enabled": true,
"reservation_business_web_notifications_enabled": false
},
"sidebar-settings": {
"home": {
"visible": true,
"order": 0
},
"dashboard": {
"visible": true,
"order": 1
}
},
"partoo-business-id": null
},
"relationships": {
"addresses": {
"links": {
"self": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/relationships/addresses",
"related": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/addresses"
}
},
"groups": {
"links": {
"self": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/relationships/groups",
"related": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/groups"
}
},
"menus": {
"links": {
"self": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/relationships/menus",
"related": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/menus"
}
},
"orders": {
"links": {
"self": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/relationships/orders",
"related": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/orders"
}
},
"partners": {
"links": {
"self": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/relationships/partners",
"related": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/partners"
}
},
"pictures": {
"links": {
"self": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/relationships/pictures",
"related": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/pictures"
}
},
"products": {
"links": {
"self": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/relationships/products",
"related": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/products"
}
},
"reviews": {
"links": {
"self": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/relationships/reviews",
"related": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/reviews"
}
},
"exclusive-suppliers": {
"links": {
"self": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/relationships/exclusive-suppliers",
"related": "/businesses/0eb74ac0-c750-4eee-a467-282bdb0e23a4/exclusive-suppliers"
}
}
}
}
}
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
curl -L 'https://api.staging.powerapi.com/api/v1/users/me/businesses/:id' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear