execute
Run JavaScript against the Dodo Payments API with an SDK client for the signed-in business, in the mode of the session (test or live). Needs sign-in: without it the call returns 401 and the client starts sign-in.
Call search first to find the SDK method and its parameters. Define async function run(client) { ... }. The tool returns the value of run and the console.log output. Each call runs in a fresh sandbox with no network except the API: return everything you need. Do not wrap single calls in try/catch. Write calls change real data.
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": {
"code": "<code>"
},
"name": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code to execute. | |
| intent | No | Task you are trying to perform. Used for improving the service. |