payware_shops_list
Retrieve valid shop codes to use in subsequent payment, product, or POI operations. Prevents invalid code errors and ensures transactions target the correct merchant outlet.
Instructions
[Merchant] List the merchant outlets (shops) the caller can act on.
Endpoint: GET /shops
Use this before any call that takes a shop / shopCode. Creating a transaction, creating a
product, creating a POI and batching POIs all take one, and an invalid code is a 400
(ERR_INVALID_SHOP_CODE). Omitting it falls back to the merchant's default shop, which is a
reasonable guess for a single-outlet merchant and the wrong outlet for everyone else - the sale lands
against the wrong shop, and nothing about the response says so.
Returned per shop (server ShopDTO): code (the value to pass as shop / shopCode), name,
isDefault, ecommerce, country, tipsAllowed and the shop's label, image and terms URLs.
tipsAllowed: true means the payer's bank may add a tip to this shop's payments, with or without lines: the payer
pays the amount plus the tip, and payware records it on the payment as tip (never a line), in the callback and
the history. Without it the payer pays exactly the amount. The merchant switches it in the portal's shop form; it is
off by default. A merchant's own tip (tip on create) needs no such setting.
⚠️ Requires Standard or Premium. A Basic merchant gets 403.
Note on financial institutions: banks do not own shops. A bank principal calling this gets 403, not an empty list.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "payware_shops_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| partnerId | No | Partner ID from the payware dashboard. Uses PAYWARE_PARTNER_ID env var as default. | |
| privateKey | No | RSA private key for JWT signing. Uses the environment-specific key as default. | |
| useSandbox | No | Use sandbox environment for testing |