Skip to main content

Find Business Loyalty Plan

API operation: Open the endpoint in Scalar

Use GET /loyalty_plans/{loyalty_plan_id}/businesses/{business_id} to retrieve the business-specific settings for one loyalty plan. The operation is BusinessLoyaltyPlan.find.

The operation requires administrator authentication. loyalty_plan_id identifies the plan and business_id identifies the associated business. The response can include the business's 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/{business_id}

Path parameters

NameTypeRequiredDescription
loyalty_plan_idintegerYes—
business_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.

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