submit_delegation_otp
Submit the 6-digit code the buyer received by email (from request_delegation with an email) to approve the delegation in-chat. On success returns a delegation_token to use as buyer_delegation_token for checkout/payment. You cannot obtain this code yourself — the user must read it from their email and give it to you.
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": {
"device_code": "<device_code>",
"code": "<code>"
},
"name": "submit_delegation_otp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The 6-digit code the buyer read from their email | |
| site_id | No | Registered site ID (optional if DEFAULT_SITE_ID is set) | |
| device_code | Yes | device_code returned by request_delegation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ||
| delivery | No | ||
| user_code | No | ||
| approvalUrl | No | ||
| device_code | No | ||
| delegation_token | No |