import_migration_balances
Bring members’ passes, memberships and credit over from the old platform.
Endpoint
https://business.sessions.website/@<handle>/api/mcpWhen to use it
After
import_migration_members, with the old platform’s balances export: preview first, map any unmatched product, then import.Again before the switch-over, with a fresher export: it updates what the first run wrote.
Parameters
platformstringrequiredOne of: mindbody, marianatek
csvstringrequiredThe old platform's balances or memberships export, as CSV text.
productsarrayoptionalMappings for source products, as the preview lists them: {sourceProduct: "<name>", sourceProductId?: "<id>", product: "<Sessions product id>"}. Saved only when the import writes, so pass the same mappings again with preview: false.
previewbooleanoptionalDefault true. Pass false to write the balances.
Returns
Whether it is ready, each source product with its live balances and the Sessions product it maps to, members it couldn’t match, row errors, and on import how many balances were created or updated.
Example
POST this to the endpoint above.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "import_migration_balances",
"arguments": {
"platform": "mindbody",
"csv": "<export>",
"preview": true
}
}
}Preview: nothing written.
Ready to import: no. Unmatched rows: 2. Nothing left to carry: 14.
Source products:
- 10 Class Pack · creditPack · 48/60 live · 212 credit(s), 0 unlimited → NO PRODUCTWhat the agent is told
The description the model reads when deciding whether to call this. It is the only thing that decides whether the tool fires at the right moment, so it is worth knowing what it says.
products) and you call with preview: false. Nothing is charged, and re-running updates instead of granting twice. Import the members first (import_migration_members).