Link benefit to POS articles
link_benefit_articlesLink a benefit (benefitId from list_benefits) to the organization's POS provider's articles, by the article ids the provider's receipts name. When a cashier redeems the benefit through its action link, the answer's apply then names these articles so the till adds the right one; without a link the till adds a line by name. posArticles is the full set: [] clears it. priceListId names the price list (a price group, a menu) the till adds the article from when the provider prices it per list; name, categoryId and categoryName are kept for the Hub to show. Requires the admin role on the benefit's venue and a POS connection (get_pos_connection).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"benefitId": "<benefitId>",
"posArticles": "<posArticles>"
},
"name": "link_benefit_articles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | No | Organization public id, the `id` field from list_orgs. Omit it when the API key reaches exactly one organization. | |
| benefitId | Yes | Benefit `id` from list_benefits | |
| posArticles | Yes |