End A/B test
end_ab_testEnds a started A/B test and makes one version the bundle or cart every shopper sees. Any version can win; A keeps the item as it is. It goes in two steps. The first call ends nothing: it returns what the results say, a picture of the version, what it changes on the live item and a confirm_token. Show the merchant, and say so when we haven't called that version the winner. When they say yes, call again with the same ab_test_id and version plus confirm_token. undo_change reverses the change to the item for 30 days. An ended test can't restart.
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": {
"ab_test_id": "<ab_test_id>",
"version": "<version>"
},
"name": "end_ab_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | The version every shopper sees from now on. | |
| ab_test_id | Yes | Test id from list_ab_tests. | |
| confirm_token | No | The token from the first call, once the merchant said yes. |