Find Loyalty Level
API operation: Open the endpoint in Scalar
Use GET /loyalty_levels/{loyalty_level_id} to retrieve one loyalty level. The operation is LoyaltyLevel.find.
Unlike the public collection read, the detail operation requires administrator authentication. The response describes the threshold, accumulation, benefits, expiration, and presentation settings for the selected level.
See Loyalty levels model for the resource concepts.
OpenAPI reference
Operation: GET /loyalty_levels/{loyalty_level_id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
loyalty_level_id | integer | Yes | — |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
params | string | No | Comma-separated list of fields. It is intersected with the model’s $fillable; an empty or invalid list returns all fields. |
Responses
| Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request (ErrorResponse) |
| 401 | Unauthorized |
| 404 | Not Found |
| 429 | Too Many Requests (ErrorResponse) |
| 500 | Internal Server Error (ErrorResponse) |
| 503 | Service Unavailable (ErrorResponse) |