myob_oauth_exchange_code
Exchange an OAuth authorization code to obtain and store encrypted access tokens for a single MYOB business, enabling authenticated API operations.
Instructions
Manually exchange an OAuth code for one MYOB business and store its encrypted tokens.
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>",
"business_id": "<business_id>"
},
"name": "myob_oauth_exchange_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| state | No | ||
| business_id | Yes |