Cover one member
cover_memberUse this when an owner on the gym plan wants to see who is covered or asked to be at one place, or to invite, approve or remove one member, for example "invite my member Sam to train free". action list reads who is listed and changes nothing. For invite (by the member's phone), approve (a member who asked) and remove, read it back to the owner first, and set confirmation to true only after they said yes. An invite sends the phone a text to join; the member hears once when they are covered or removed. Cover counts only while the gym plan covers the place, up to its cap; past it, new members pay as normal. It takes no payment here. It needs a connected Phorme account that owns the place.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | For invite: the member's phone with its country code, for example +15125550100. | |
| action | Yes | ||
| place_id | Yes | The place_id of one of the owner's places, from get_gym_report or create_or_claim_place. | |
| member_id | No | For approve and remove: the member_id from action list. | |
| confirmation | No | Set to true only after the owner said yes to this change to who is covered. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | ||
| cover | No | on, plan, state (active, needs_plan or off), cap, covered, asked, invited and left. | |
| member | No | The member changed, as in members. | |
| members | No | For list: member_id, label (a name, or the phone's last four), status (asked, invited, covered), counts, asked_at, invited_at, covered_at. | |
| place_id | Yes | ||
| plan_url | No | The plan on phor.me, a price-free link, when the place is not on it. |