Create Business Review
API operation: Open the endpoint in Scalar
Use POST /business/{business}/reviews to create a review for an order. The operation documented here is Review.register.
Parameter:
{business}is the integer business ID in the route.
The documented schema requires order_id, quality, delivery, service, and package. A signed-in customer can review their own order; permitted staff can act for the customer. When guest UUID access is enabled, a guest can submit the order's matching hash through X-uuid-access-X. Do not expose that hash in documentation or logs.
The order determines user_id and business_id; ensure the order belongs to the business identified in the route. Do not submit a reviewer identity to override the order.
OpenAPI reference
Operation: POST /business/{business}/reviews
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
business | integer | Yes | — |
Header parameters
| Name | Type | Required | Description |
|---|---|---|---|
X-uuid-access-X | string | No | — |
Request body fields
| Name | Type | Required |
|---|---|---|
comment | any | No |
delivery | integer | Yes |
enabled | boolean | No |
order_id | integer | Yes |
package | integer | Yes |
quality | integer | Yes |
quality_tags | array | null | No |
service | integer | Yes |
Responses
| Code | Description |
|---|---|
| 200 | OK (Envelope) |
| 400 | Bad Request (ErrorResponse) |
| 401 | Unauthorized |
| 404 | Not Found |
| 429 | Too Many Requests (ErrorResponse) |
| 500 | Internal Server Error (ErrorResponse) |
| 503 | Service Unavailable (ErrorResponse) |