book_with_membership
Optional signed-in member alternative (OAuth scope bookings:write, Poppy operations v3) for studio members redeeming an active class pack or monthly membership. Use it when a signed-in member wants to spend a credit; for guests without an account, use create_booking instead. Required fields: event_type_id, start_ms. Optional: attendee_timezone, hold_id, notes, responses, idempotency_key. Example: {"event_type_id":"evt_beginners","start_ms":"1795858200000"}. Returns { booking, manage_url, manage_token, membership_billing }.
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": {
"event_type_id": "<event_type_id>",
"start_ms": "<start_ms>"
},
"name": "book_with_membership"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | optional note for the teacher | |
| hold_id | No | optional prior hold id | |
| start_ms | Yes | the slot start as epoch milliseconds, in a decimal string, from list_slots | |
| responses | No | optional map of answers to the class's booking questions (from list_event_types.questions) | |
| event_type_id | Yes | class id or slug | |
| idempotency_key | No | optional retry key (24-120 chars) | |
| attendee_timezone | No | optional IANA timezone |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| booking | Yes | One booking. | |
| idempotent | Yes | Whether this was a replay of an earlier admission. | |
| manage_url | No | ||
| manage_path | No | ||
| manage_token | No | ||
| attendee_start | No | ||
| manage_endpoint | No | ||
| manage_withheld | No |