payware_authentication_create_jwt_token
Create a JWT token for Payware API authentication, signing with sandbox or production keys and optionally hashing a request body for POST, PUT, or PATCH calls.
Instructions
[Merchant] Create JWT token for payware API authentication according to official documentation
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_authentication_create_jwt_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| partnerId | No | Partner ID from payware dashboard. Uses PAYWARE_PARTNER_ID env var as default. | |
| privateKey | No | RSA private key - accepts PEM format with/without headers or raw base64 content. Uses environment-specific private key as default. | |
| useSandbox | No | Sign with the sandbox key (default) or the production key; a token signed with one environment's key is refused by the other | |
| requestBody | No | Request body for a POST, PUT or PATCH, which then needs contentSha256. An object is serialized once (keys sorted, no spaces) and the result shows that exact string: send it byte for byte. A string is hashed as given. |