alopeyk_loyalty_products
Retrieve a list of loyalty products or buy one with loyalty points. Buying requires enable_ordering to be true.
Instructions
List loyalty products, or buy one — buying is gated by enable_ordering.
Persian purpose: مشاهده محصولات وفاداری یا خرید یک محصول. Requires an
access_token. Listing (buy=false) maps to GET /api/v2/loyalty/customer/products/{id?}. Buying (buy=true) maps to
POST /api/v2/loyalty/customer/products/{id} and spends loyalty
points/credit — it requires enable_ordering=true (and
read_only=false), otherwise it returns
{"error": "ordering_disabled", ...} without contacting the API.
Args:
product_id: Optional loyalty product id (required when buy=true).
buy: When true, purchase the product (a real, gated action).
instance: Configured instance to use (default when omitted).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | No | ||
| buy | No | ||
| instance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||