Finish connecting a Xero org
connect_org_completeExchanges the Xero redirect authorization code for tokens, encrypts them at rest, and syncs the new organisation. Pass the full redirect URL containing code and state to connect a client org.
Instructions
Exchanges the authorization code from Xero's redirect for tokens, encrypts them at rest, and syncs the new org. Pass the full redirect URL (contains code and state).
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": {
"redirect_url": "<redirect_url>"
},
"name": "connect_org_complete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| redirect_url | Yes | The full URL the browser was redirected to after approving in Xero. |