Skip to main content

List Business Loyalty Plans

API operation: Open the endpoint in Scalar

Use GET /loyalty_plans/{loyalty_plan_id}/businesses to list the business-specific settings associated with a loyalty plan. The operation is BusinessLoyaltyPlan.findAll.

The operation requires administrator authentication. Each returned item identifies a business and can include accumulation, redemption, maximum, and expiration overrides.

For the surrounding resource concepts, see Business loyalty plans model.

OpenAPI reference​

Operation: GET /loyalty_plans/{loyalty_plan_id}/businesses

Path parameters

NameTypeRequiredDescription
loyalty_plan_idintegerYes—

Query parameters

NameTypeRequiredDescription
paramsstringNoComma-separated list of fields. It is intersected with the model’s $fillable; an empty or invalid list returns all fields.
orderBystringNoField to sort by, with - prefixed for descending order. Multiple fields can be chained with commas.
pageintegerNoPage number, starting at 1. Applies only to lists that return a pagination block.
page_sizeintegerNoNumber of items per page.

Responses

CodeDescription
200OK
400Bad Request (ErrorResponse)
401Unauthorized
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference