payware_products_create_product
Creates a new product for inventory management and payment processing, with details such as name, price, SKU, and active status.
Instructions
[Merchant] Create a new product for inventory management and payment processing.
Product Structure: š¦ PRODUCT METADATA: name, shortDescription, longDescription, sku, upc, shippable, active, shop š° PRODUCT DATA (prData object): type, regularPrice, currency, overlapPriority, timeToLive, activeFrom, activeTo, timeZone āļø PRODUCT OPTIONS (prOptions object): imageUrl, termsUrl, termsText
Required: name Optional: All other parameters have sensible defaults
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": {
"name": "<name>"
},
"name": "payware_products_create_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Stock Keeping Unit (SKU) | |
| upc | No | Universal Product Code (UPC) | |
| name | Yes | Product recognizable name (required) | |
| shop | No | Shop code (if not supplied, default shop is used) | |
| active | No | Indicates if product can serve as payment source | FALSE |
| activeTo | No | Product active state ending date (YYYY-MM-DD format) | |
| currency | No | Price currency (3-character ISO code) | EUR |
| imageUrl | No | URL pointing to external product image resource | |
| termsUrl | No | URL pointing to external terms and conditions resource | |
| timeZone | No | Product state scheduling timezone (IANA format, e.g., 'Europe/Sofia') | GMT |
| partnerId | No | Merchant partner ID (uses PAYWARE_PARTNER_ID env var as default) | partner_12345 |
| shippable | No | Indicates if product requires delivery address | FALSE |
| termsText | No | Terms and conditions text | |
| activeFrom | No | Product active state starting date (YYYY-MM-DD format) | |
| privateKey | No | RSA private key for authentication (uses environment-specific private key as default) | |
| timeToLive | No | Time allowed for product payment in seconds (60-2592000) | |
| useSandbox | No | Use sandbox environment | |
| productType | No | Type of product | ITEM |
| regularPrice | No | Product regular price as a decimal string. Zero or positive, at most 12 integer digits, and no more decimals than the currency's minor unit (0 for JPY, 2 for EUR, 3 for KWD, 8 for BTC). Returned as a string too. | 0.00 |
| longDescription | No | Long product description | |
| overlapPriority | No | Priority when overlapping price schedules exist | LOWEST |
| shortDescription | No | Short product description |