payware_products_register_audio
Register an audio soundbite for a product to enable audio-based payment initiation. Supports MP3, WAV, OGG, M4A, FLAC, AAC, WMA, MP4, MOV up to 100 MB and 2-120 seconds.
Instructions
[Merchant] Premium (PRM) plan only: the server answers 403 on any other plan (for an ISV, the merchant's plan).
Register an audio file (soundbite) for a product to enable audio-based payment initiation.
Supported formats: MP3, WAV, OGG, M4A, FLAC, AAC, WMA, MP4, MOV, up to 100 MB, holding 2 to 120 seconds of audio Note: For video files, only the audio channel is registered
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": {
"productId": "<productId>",
"audioPath": "<audioPath>"
},
"name": "payware_products_register_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audioPath | Yes | Path to the audio file to upload (e.g., '/path/to/audio.mp3') | |
| partnerId | No | Merchant partner ID (uses PAYWARE_PARTNER_ID env var as default) | partner_12345 |
| productId | Yes | Product identifier (starts with 'pr') | |
| privateKey | No | RSA private key for authentication (uses environment-specific private key as default) | |
| useSandbox | No | Use sandbox environment |