> ## Documentation Index
> Fetch the complete documentation index at: https://docs.1club.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a booking

> Edits a booking by its 1club id: reschedule it, move it to another area, attach or remove an instructor, reassign the contact, change its notes or price, or make it recur. Send only the fields that change. Reaches the same bookings as cancel: an API key only those it created, a staff member through an authorized 1club assistant any of the organization's.

The edit follows the admin portal's rules. A cancelled booking is final, and a booking on a class takes its time and price from the class. As on create, the club's member-facing policy (operating hours, instructor availability) is not applied, but an occupied or blocked court, or a coach who is already booked, is refused with `details.conflicts[]`.

Money follows the edit. `amount` reprices the booking to your figure. Without it, a booking this API created keeps its price, and a booking taken through 1club is re-quoted when the slot, area, instructor or contact changes. The charge is then reconciled: an increase on a paid booking leaves the difference outstanding, and a decrease below what was paid needs a refund, which this endpoint does not perform. Payment status cannot be changed here.

Recurring bookings. `recurrence` on a one-off booking makes it the first occurrence of a series. On an occurrence of a series, `scope=all_future` applies the edit to every occurrence that has not started yet, from the earliest upcoming one: a new `startTime`/`endTime` gives each that time of day on its own date (the weekday changes only through `recurrence.daysOfWeek`), a new area or instructor is checked against every date, and a new `recurrence` rewrites the cadence or end condition; days dropped from a weekly pattern are cancelled with their refund. A series bound to a recurring class follows the class and cannot be re-timed, and a booking an API key created cannot be made to recur at all (`RECURRENCE_NOT_AVAILABLE_TO_MANAGING_KEY`): 1club would be generating occurrences that key never created, so each one is its own booking. An edit whose series has already run touches nothing.




## OpenAPI

````yaml /openapi-platform.json patch /v1/platform/bookings/{id}
openapi: 3.0.0
info:
  title: 1club Platform API
  version: 1.0.0
  description: >-
    The 1club Platform API lets you programmatically access and manage your
    organization's data.


    ## Official API Contract


    This documentation is the official source of truth for the 1club Platform
    API.

    If an integration relies on undocumented endpoints, fields, response shapes,
    or internal behavior outside this spec, we can't guarantee backward
    compatibility.

    Build against what's documented here to stay stable as the platform evolves.


    ## Authentication


    All requests require a customer API key passed as a Bearer token:


    ```

    Authorization: Bearer 1club_sk_live_...

    ```


    Generate API keys from the admin portal under **Settings > API Tokens**.

    The key is tied to your organization - all responses are scoped to your
    org's data.


    Agents and MCP connectors can instead send an OAuth access token (the
    `platformOAuth` scheme), requesting only the scopes the task needs.


    ## Rate Limiting


    - **100 requests per minute** per API key

    - When exceeded, the API returns `429 Too Many Requests` with a
    `Retry-After` header

    - Rate limit headers are included in every response:
      - `X-RateLimit-Limit` - max requests per window
      - `X-RateLimit-Remaining` - requests remaining
      - `X-RateLimit-Reset` - seconds until the window resets

    ## Errors


    | Status | Meaning |

    |--------|---------|

    | `400` | Invalid request parameters |

    | `401` | Missing or invalid API key |

    | `404` | Resource not found (or doesn't belong to your organization) |

    | `429` | Rate limit exceeded |

    | `500` | Internal server error |


    ## Versioning and deprecation


    The API is versioned in the path (`/v1`). Changes within a version are
    additive: new endpoints, new optional parameters and new response fields can
    appear at any time, so clients should ignore fields they do not recognise.

    A breaking change ships as a new version.

    An operation due to be removed is first marked `deprecated: true` in this
    spec and announced in the changelog at https://docs.1club.ai/changelog, with
    advance notice before it is withdrawn.
  contact:
    name: 1club API Support
    email: support@1club.ai
servers:
  - url: https://api.1club.ai
    description: Production API
security:
  - customerApiAuth: []
  - platformOAuth: []
tags: []
paths:
  /v1/platform/bookings/{id}:
    patch:
      tags:
        - Bookings
      summary: Update a booking
      description: >
        Edits a booking by its 1club id: reschedule it, move it to another area,
        attach or remove an instructor, reassign the contact, change its notes
        or price, or make it recur. Send only the fields that change. Reaches
        the same bookings as cancel: an API key only those it created, a staff
        member through an authorized 1club assistant any of the organization's.


        The edit follows the admin portal's rules. A cancelled booking is final,
        and a booking on a class takes its time and price from the class. As on
        create, the club's member-facing policy (operating hours, instructor
        availability) is not applied, but an occupied or blocked court, or a
        coach who is already booked, is refused with `details.conflicts[]`.


        Money follows the edit. `amount` reprices the booking to your figure.
        Without it, a booking this API created keeps its price, and a booking
        taken through 1club is re-quoted when the slot, area, instructor or
        contact changes. The charge is then reconciled: an increase on a paid
        booking leaves the difference outstanding, and a decrease below what was
        paid needs a refund, which this endpoint does not perform. Payment
        status cannot be changed here.


        Recurring bookings. `recurrence` on a one-off booking makes it the first
        occurrence of a series. On an occurrence of a series, `scope=all_future`
        applies the edit to every occurrence that has not started yet, from the
        earliest upcoming one: a new `startTime`/`endTime` gives each that time
        of day on its own date (the weekday changes only through
        `recurrence.daysOfWeek`), a new area or instructor is checked against
        every date, and a new `recurrence` rewrites the cadence or end
        condition; days dropped from a weekly pattern are cancelled with their
        refund. A series bound to a recurring class follows the class and cannot
        be re-timed, and a booking an API key created cannot be made to recur at
        all (`RECURRENCE_NOT_AVAILABLE_TO_MANAGING_KEY`): 1club would be
        generating occurrences that key never created, so each one is its own
        booking. An edit whose series has already run touches nothing.
      operationId: updateBooking
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: integer
          description: 1club booking id
        - in: query
          name: scope
          schema:
            type: string
            enum:
              - this_instance
              - all_future
            default: this_instance
          description: >-
            For an occurrence of a recurring booking, whether the edit applies
            to it alone or to every not-yet-started occurrence of the series
            (see the description)
        - in: header
          name: Idempotency-Key
          schema:
            type: string
            maxLength: 255
          description: >-
            Retry-safe key; a repeat of the same request replays the first
            response
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlatformBookingUpdate'
      responses:
        '200':
          description: >-
            The booking after the edit - for a series edit, the occurrence you
            named
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlatformBooking'
        '400':
          description: >
            Invalid request, or an edit that cannot hold: `BOOKING_CANCELLED`,
            `BOOKING_ON_CLASS_NOT_RESCHEDULABLE`, `BOOKING_NEEDS_RESOURCE`,
            `BOOKING_COVERED_CANNOT_PRICE`, `CLASS_AT_CAPACITY`,
            `AREA_NOT_FOUND`, `CONTACT_NOT_FOUND`,
            `RECURRENCE_REQUIRES_SERIES_SCOPE` (a `recurrence` sent to an
            occurrence without `scope=all_future`),
            `RECURRENCE_NOT_AVAILABLE_TO_MANAGING_KEY`,
            `DISCOUNTED_BOOKING_TO_SERIES` (a `recurrence` sent to a booking
            that carries a discount - take the discount off first),
            `PROMOTION_NOT_REDEEMABLE` in `error` (a `contactId` the booking's
            discount cannot pass to, with the reason in `code`), or a taken
            slot, which carries `details.conflicts[]` as on create.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlatformError'
        '401':
          $ref: '#/components/responses/PlatformUnauthorized'
        '403':
          description: API key is missing the required `bookings:write` scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlatformError'
        '404':
          $ref: '#/components/responses/PlatformNotFound'
        '409':
          description: >
            The booking is managed by another API key that owns its own records
            (`BOOKING_EXTERNALLY_MANAGED`, with the managing integration's name
            in `details.managedBy`); or the new price is below what has already
            been paid on the booking (`BOOKING_CHARGE_OVERPAID`), which needs a
            refund rather than an edit; or a part-paid or invoiced charge cannot
            be rewritten (`BOOKING_CHARGE_NEEDS_ADJUSTMENT`); or an
            `Idempotency-Key` was reused with a different request body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlatformError'
        '429':
          $ref: '#/components/responses/PlatformRateLimited'
      security:
        - customerApiAuth: []
components:
  schemas:
    PlatformBookingUpdate:
      type: object
      description: >-
        An edit to a booking. Every field is optional; send only what changes. A
        body with nothing but `notifyCustomer` is refused.
      properties:
        startTime:
          type: string
          format: date-time
          description: >-
            New start. With `scope=all_future`, every later occurrence takes
            this time of day on its own date; change the weekday with
            `recurrence.daysOfWeek`.
        endTime:
          type: string
          format: date-time
          description: New end. Must be after the start, stored or sent.
        areaId:
          type: integer
          description: >-
            Move the booking to this area (from GET /v1/platform/areas). Must be
            an area this API can sell, as on create.
        instructorId:
          type: integer
          nullable: true
          description: >-
            Attach this instructor to the session (from GET
            /v1/platform/instructors), or `null` to take the instructor off it.
            Must be free at the time.
        contactId:
          type: integer
          description: >-
            Reassign the booking to this contact (from GET
            /v1/platform/contacts). The outstanding charge, if any, moves with
            it.
        notes:
          type: string
          maxLength: 2000
        amount:
          type: number
          maximum: 1000000
          description: >-
            The booking's new price, before tax, in the club's currency - your
            own figure, kept as sent. Omit it to keep the price you recorded on
            a booking this API created, or to have a booking taken through 1club
            re-quoted by the club's pricing engine when the slot, area,
            instructor or contact changes. Cannot be set on a booking a
            membership covers.
        recurrence:
          type: object
          description: >-
            Make a one-off booking recur, or (with `scope=all_future`) rewrite
            the cadence or end condition of an existing series. The series
            starts at the booking's own start time, so there is no start date
            here. `daysOfWeek` is required for a weekly pattern, and a day
            repeated in it counts once. Not accepted on a booking an API key
            created.
          required:
            - frequency
            - interval
          properties:
            frequency:
              type: string
              enum:
                - daily
                - weekly
                - monthly
            interval:
              type: integer
              minimum: 1
              description: Every N days / weeks / months
            daysOfWeek:
              type: array
              items:
                type: string
                enum:
                  - sunday
                  - monday
                  - tuesday
                  - wednesday
                  - thursday
                  - friday
                  - saturday
              description: For a weekly pattern, the days it runs on
            endDate:
              type: string
              format: date-time
              description: 'Last date of the series, with `ends.type: until`'
            ends:
              type: object
              required:
                - type
              properties:
                type:
                  type: string
                  enum:
                    - until
                    - after
                    - never
                  description: >-
                    `until` runs to `endDate`, `after` runs for `occurrences`
                    sessions, `never` extends on a rolling window
                occurrences:
                  type: integer
                  minimum: 1
                  maximum: 520
                  description: >-
                    With `after`: how many sessions the series holds, counted
                    from its start
        notifyCustomer:
          type: boolean
          description: >-
            Tell the customer their booking changed - email with the updated
            calendar invite plus the in-app and WhatsApp notification. Only sent
            when the edit names a time, area, instructor or class. Off by
            default for an API key, on by default over an OAuth connection, as
            on create.
    PlatformBooking:
      type: object
      description: >-
        A booking created through the platform API. Recorded with a booking
        transaction so it counts for revenue, marked paid (settled against a
        payment method named after the caller's API key, so the club can
        reconcile what each partner collected) or unpaid (outstanding) per the
        caller. Collection stays with the caller; what it collected and what it
        gave back on cancellation are reported in `payment`.
      properties:
        bookingId:
          type: integer
          description: 1club booking id
        bookingUuid:
          type: string
          format: uuid
          description: >-
            Stable unguessable identifier. Prefer this over `bookingId` when
            storing a reference.
        status:
          type: string
          description: Booking status (e.g. confirmed, cancelled)
        areaId:
          type: integer
          nullable: true
          description: Area id
        classId:
          type: integer
          nullable: true
          description: >-
            The class occurrence this booking attends, when it is a class
            booking. Every attendee holds their own booking row against the same
            `classId`, and `classes` rows are per-occurrence - so this is what
            tells two classes running in the same hour apart. Join it against
            GET /v1/platform/classes, or read the staff roster with GET
            /v1/platform/classes/{id}/bookings.
        eventId:
          type: integer
          nullable: true
          description: >-
            The event this booking attends, when it is an event booking. Read
            the attendee list with GET /v1/platform/events/{id}/bookings.
        eventTicketId:
          type: integer
          nullable: true
          description: The event ticket the seat was sold on, when the event sells tickets
        orderId:
          type: integer
          nullable: true
          description: >-
            The order the booking was sold on: one per sale, holding the
            customer's seat and any guests'. Every class enrolment and event
            registration made through this API has one; null for a booking sold
            on none (a court or coach booked through POST
            /v1/platform/bookings).
        seatBookingIds:
          type: array
          items:
            type: integer
          description: >-
            Every seat the sale holds, the customer's own first. Only on the
            answer to a seat sale (POST /v1/platform/classes/{id}/bookings, POST
            /v1/platform/events/{id}/bookings); the guests' seats carry no
            contact, and the class's or the event's roster lists them all.
        maxPlayers:
          type: integer
          nullable: true
          description: >-
            How many players the booking takes, the organizer included, when it
            differs from the area type's `defaultMaxPlayers`: `2` on a court
            booked for singles (area types with `allowsSingles`). `null` means
            the area type's own limit. Adding a player past it is refused.
        instructorId:
          type: integer
          nullable: true
          description: Instructor leading the session, when one is attached
        contactId:
          type: integer
          nullable: true
          description: Contact the booking is for
        startTime:
          type: string
          format: date-time
        endTime:
          type: string
          format: date-time
        customer:
          allOf:
            - $ref: '#/components/schemas/PlatformContact'
          nullable: true
          description: >-
            The booking's customer, identical to what GET
            /v1/platform/contacts/{id} returns. Present only when the request
            passes `include=customer`, which additionally requires the
            `contacts:read` scope; `null` when the booking has no contact. Use
            it to import a window of bookings without a contact lookup per row.
        money:
          type: object
          description: >-
            What the booking costs and how it was paid. Present only with
            `include=money`, which additionally requires the `transactions:read`
            scope. `billed` is always `paid + outstanding`, on the same basis as
            the admin's Booking audit: tax-inclusive, net of refunds, so a
            cancelled booking bills only the Cancellation Charge it kept.
          properties:
            billed:
              type: number
            billedExTax:
              type: number
            paid:
              type: number
              description: 'Money the club kept: collected, net of refunds.'
            outstanding:
              type: number
              description: Still owed on the booking. A closed charge owes nothing.
            paymentState:
              type: string
              description: paid, partial, unpaid, refunded, covered or free.
            paymentStatus:
              type: string
              nullable: true
              description: The charges' own payment statuses, `/`-joined.
            charges:
              type: array
              items:
                type: object
                properties:
                  transactionId:
                    type: integer
                  transactionType:
                    type: string
                    nullable: true
                  payerContactId:
                    type: integer
                    nullable: true
                    description: >-
                      Who the charge is on: the organizer, or a player paying
                      their own share.
                  date:
                    type: string
                    format: date-time
                  paymentStatus:
                    type: string
                  amount:
                    type: number
                    description: >-
                      What the charge bills, after any cancellation credit
                      against it.
                  paidAmount:
                    type: number
                  refundedAmount:
                    type: number
                    description: Returned from its payments by a refund.
                  outstandingAmount:
                    type: number
                  invoiceIds:
                    type: array
                    items:
                      type: integer
                  orderId:
                    type: integer
                    nullable: true
            credits:
              type: array
              description: 'Cancellation credits: what a cancellation took off a charge.'
              items:
                type: object
                properties:
                  transactionId:
                    type: integer
                  chargeTransactionId:
                    type: integer
                    nullable: true
                  amount:
                    type: number
                  paymentStatus:
                    type: string
                  date:
                    type: string
                    format: date-time
            payments:
              type: array
              items:
                type: object
                properties:
                  paymentId:
                    type: integer
                  amount:
                    type: number
                  status:
                    type: string
                  method:
                    type: string
                  source:
                    type: string
                    nullable: true
                  reference:
                    type: string
                    nullable: true
                  paidAt:
                    type: string
                    format: date-time
                  transactionIds:
                    type: array
                    items:
                      type: integer
            refunds:
              type: array
              items:
                type: object
                properties:
                  refundId:
                    type: integer
                  transactionId:
                    type: integer
                    nullable: true
                  paymentId:
                    type: integer
                  amount:
                    type: number
                  destination:
                    type: string
                    enum:
                      - stripe
                      - wallet
                      - cash
                      - manual
                  reason:
                    type: string
                    nullable: true
                  refundedAt:
                    type: string
                    format: date-time
        cancellation:
          type: object
          description: >-
            The cancellation terms stamped on the booking and how it was
            cancelled. Present only with `include=cancellation`.
          properties:
            terms:
              type: object
              nullable: true
              description: >-
                The terms the customer accepted with the booking - not the
                club's policy today, which may since have changed. `null` for an
                event ticket, whose event keeps its own terms, and for a booking
                accepted before terms were stamped.
              properties:
                acceptedAt:
                  type: string
                  format: date-time
                rules:
                  type: array
                  items:
                    type: object
                    properties:
                      hoursInAdvance:
                        type: number
                      refundPercentage:
                        type: number
                      description:
                        type: string
                deadlines:
                  type: array
                  description: >-
                    Every band that refunds something, as the moment to cancel
                    by, widest notice first.
                  items:
                    type: object
                    properties:
                      until:
                        type: string
                        format: date-time
                      refundPercentage:
                        type: number
                freeCancellationUntil:
                  type: string
                  format: date-time
                  nullable: true
                  description: >-
                    The last moment a cancellation refunds in full; `null` when
                    no band does.
                fullyCovered:
                  type: boolean
                  description: A membership or pass covered the whole booking.
                collectsFromWallet:
                  type: boolean
                  description: The Cancellation Charge is taken from the Wallet.
                waiver:
                  type: object
                  nullable: true
                  properties:
                    at:
                      type: string
                      format: date-time
                    byUserId:
                      type: integer
                      nullable: true
                    reason:
                      type: string
            cancelled:
              type: object
              nullable: true
              description: '`null` while the booking is not cancelled.'
              properties:
                at:
                  type: string
                  format: date-time
                by:
                  type: object
                  nullable: true
                  properties:
                    userId:
                      type: integer
                    name:
                      type: string
                reason:
                  type: string
                  nullable: true
                noticeHours:
                  type: number
                  description: >-
                    Hours between the cancellation and the start; negative when
                    it came after the start.
                refundPercentage:
                  type: number
                  nullable: true
                refundAmount:
                  type: number
                  nullable: true
                policyWaived:
                  type: boolean
                notes:
                  type: string
                  nullable: true
        payment:
          type: object
          properties:
            status:
              type: string
              enum:
                - paid
                - unpaid
                - no_charge
              description: >-
                `no_charge` means there is nothing to collect: either nothing
                was ever owed (a free area, an amount of 0) or an entitlement
                covers it - a membership or external program the attendee
                already holds, which is why a covered booking can carry a price
                and still owe nothing. `paid` counts every financially closed
                transaction status (`paid`, `settled`, `refunded`), and every
                charge type, not only the one this API records.
            amount:
              type: number
              nullable: true
              description: >-
                The booking's recorded price in the organization's currency;
                `status` is what says whether anything was collectable. Where
                the price is 0 but a real charge exists - an external program's
                per-visit fee lives entirely in its transaction - the ledger
                total is reported instead.
            paidAmount:
              type: number
              description: >-
                What has been collected on the booking, gross, before any
                refund. `0` when nothing has.
            refundedAmount:
              type: number
              description: >-
                What has been returned to the customer, across every refund
                recorded. `paidAmount - refundedAmount` is what the club kept.
            reference:
              type: string
              nullable: true
              description: >-
                The collecting partner's own id for the payment, when one
                reported it through this API (`payment.reference`); null for
                money 1club collected itself.
            fee:
              type: number
              nullable: true
              description: >-
                What the collecting partner kept out of the amount, when it
                reported one (`payment.fee`).
    PlatformError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: >-
            A stable, machine-readable reason, when the error has one (e.g.
            `CONTACT_EXISTS`).
        details:
          type: object
          additionalProperties: true
          description: >-
            Structured values behind the error. A 409 naming an existing record
            carries its id here, e.g. `contactId`.
    PlatformContact:
      type: object
      description: >-
        A contact (customer) in the organization. Reference the `id` as
        `contactId` when creating a booking.
      properties:
        id:
          type: integer
        uuid:
          type: string
          format: uuid
          description: >-
            Stable unguessable identifier. Prefer this over `id` when storing a
            reference.
        name:
          type: string
        firstName:
          type: string
        lastName:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        phone:
          type: string
          nullable: true
        type:
          type: string
          nullable: true
          description: >-
            Derived contact type (e.g. contact, member, lead). `archived` marks
            a retired contact — hidden from the list and from search, but still
            readable by id.
        pipelineStageId:
          type: integer
          nullable: true
          description: >-
            The sales pipeline stage the contact is in, or null when they are
            not in the pipeline.
        pipelineLostReason:
          type: string
          enum:
            - price
            - timing
            - chose_competitor
            - location
            - no_response
            - not_interested
            - not_a_fit
            - other
          nullable: true
          description: >-
            Why the lead was lost, while they are in the Lost stage. Null
            outside it, or when no reason was given.
        pipelineLostNote:
          type: string
          nullable: true
          description: The note given with the lost reason.
        sourceId:
          type: integer
          nullable: true
          description: Where the contact came from.
        assignedToId:
          type: integer
          nullable: true
          description: The staff member (organization user id) following the contact up.
        createdAt:
          type: string
          format: date-time
  responses:
    PlatformUnauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PlatformError'
    PlatformNotFound:
      description: The requested resource does not exist in this organization
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PlatformError'
    PlatformRateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PlatformError'
  securitySchemes:
    customerApiAuth:
      type: http
      scheme: bearer
      description: >-
        Organization-scoped bearer credential: a customer API key
        (1club_sk_live_...) or an MCP OAuth access token.
    platformOAuth:
      type: oauth2
      description: >-
        OAuth 2.1 authorization code flow with PKCE (S256), as used by MCP
        connectors. Register a client dynamically (RFC 7591) at
        https://api.1club.ai/v1/mcp/oauth/register. Each scope grants one
        capability; request only what the integration needs.
      flows:
        authorizationCode:
          authorizationUrl: https://auth.1club.ai/oauth/authorize
          tokenUrl: https://api.1club.ai/v1/mcp/oauth/token
          scopes:
            '*': >-
              Full access - read and manage everything in this organization,
              including capabilities added later
            classes:read: View classes, class types, schedules and progression tracks
            classes:write: >-
              Create, reschedule, and cancel classes, and maintain the class
              types they are run as
            checkins:read: View check-ins
            checkins:write: Check people in, to a booking or on their membership
            content:read: View published content
            content:write: >-
              Create, edit and delete content - posts, FAQs, documents and
              reusable blocks
            website:read: >-
              View your website: pages, sections, layout, styles and publish
              history
            website:write: >-
              Edit your website - pages, sections, navigation and styles. Edits
              stay unpublished until published.
            website:publish: >-
              Publish your website, making unpublished edits visible to the
              public, and roll back to an earlier version
            media:read: View your media library
            media:write: >-
              Add images and videos to your media library and edit their names
              and descriptions
            media:delete: Permanently delete files from your media library
            clubs:read: View club information
            clubs:write: >-
              Edit your clubs' details - name, contact details, address, opening
              hours, amenities and sports. Live on your website, member portal,
              app and 1club.me at once; a club listed on 1club.me sends its
              listing's changes for review.
            transactions:read: View transactions, revenue reports and your chart of accounts
            transactions:write: >-
              Record revenue collected outside 1club, such as a marketplace
              payout for your bookings, and refunds of it. Nothing is charged to
              anyone.
            transactions:delete: >-
              Void unpaid charges so they are no longer owed, and delete ones
              raised by mistake. A never-paid pass whose last charge goes is
              cancelled with it. Paid charges cannot be voided or deleted, and
              an API key reaches only the charges of bookings it made.
            payments:write: >-
              Record a payment against what a member owes, with one of your own
              payment methods such as cash or a bank transfer, and charge a
              member's saved card for a charge. An API key reaches only the
              charges of bookings it made.
            invoices:read: >-
              View your invoices - who they were issued to, their amounts and
              status - and how much was invoiced over a period
            areas:read: View areas, area types, blocks and availability
            areas:write: >-
              Create and update areas and area types, and block or unblock an
              area
            bookings:read: View bookings
            bookings:write: >-
              Create, change, reschedule and cancel bookings, add or remove
              participants, and waive what a cancelled or missed booking still
              owes
            bookings:delete: >-
              Permanently delete bookings entered by mistake, with their unpaid
              charges, check-ins and players. A paid or invoiced booking cannot
              be deleted - cancel and refund it instead.
            contacts:read: >-
              View contacts, their tags and custom field values, and your sales
              pipeline stages and sources
            contacts:write: >-
              Create and update contacts and tag them, and maintain your tags,
              smart tag rules and contact custom fields
            contacts:delete: >-
              Archive contacts, which cancels their active memberships and all
              their future bookings. Separate from creating and updating because
              those cancellations are not undone by restoring the contact.
            instructors:read: >-
              View instructors, their availability, the staff roster and their
              time off
            instructors:write: >-
              Create and update instructors (coaches) and the instructor types
              they are grouped by, including what members pay for a one-to-one
              session and how you pay the coach, and manage the staff roster
              (shifts, rotations) and their time off. Does not grant
              admin-portal access: an instructor created this way has no login
              and is never invited to your staff portal.
            plans:read: View plans and pricing
            plans:write: Create, edit and delete plans and plan categories
            memberships:read: View memberships
            memberships:write: >-
              Sell memberships, set their price and whether they are paid, and
              pause, resume or cancel them
            products:read: >-
              View the product catalogue and its categories, including prices
              and how many are left to sell
            products:write: Create and edit products and product categories
            forms:read: >-
              View your forms and their questions, and how many people have
              completed each. Not the answers themselves.
            forms:write: >-
              Create and edit forms and their questions, including sign-up forms
              that sell your plans and products. Forms are public as soon as
              they are created or changed. Does not delete forms.
            organization:write: >-
              Change organization-wide settings, which take effect immediately.
              That includes which languages you offer, across your website, the
              member portal, the mobile app and email, and what your clubs call
              their booking cards (private training, group activities, areas)
              wherever members book.
            revenue-accounts:write: >-
              Add accounts to your chart of accounts and edit them, including
              which one sales post to by default. Reading the chart needs no
              scope of its own - any of plans, products or transactions admits
              it.
            pricing-rules:read: >-
              View pricing rules - the surcharges, discounts and set prices
              applied when a booking is priced - and quote what a booking would
              cost
            pricing-rules:write: >-
              Create, edit, turn off and delete pricing rules. Changes apply to
              every booking priced afterwards.
            booking-policies:read: >-
              View booking policies: cancellation and refund rules, payment
              timing and booking windows
            booking-policies:write: >-
              Create, edit, duplicate and delete booking policies. Changes apply
              to every booking they cover from then on.
            document-rules:read: >-
              View document rules - which members are asked to sign or accept
              which documents, such as waivers
            document-rules:write: >-
              Create, edit and delete document rules, which decide who must sign
              or accept a document and whether it is required for entry
            external-programs:read: >-
              View external programs - third parties such as MultiSport or a
              corporate wellness scheme that pay for members' visits - and what
              each covers
            external-programs:write: >-
              Create, edit and remove external programs, including what each
              pays per visit and which classes, areas and coaches it can be used
              for
            templates:read: View your email and SMS templates
            templates:write: Create, edit and delete email and SMS templates
            events:read: View events, their tickets and how many are sold
            events:write: >-
              Create, edit, duplicate and delete events, and publish, unpublish
              or cancel them. Cancelling an event also cancels its attendees'
              bookings.
            messages:read: >-
              View messages sent to and received from your members, and their
              delivery status
            messages:write: >-
              Prepare draft messages to members. Drafts are never sent from
              here: someone at your club reviews and sends them from 1club.
            analytics:read: >-
              View statistics over a period - revenue, bookings, check-ins, how
              full your classes, courts and coaches were, memberships added and
              cancelled, and new members - as totals, never the people or sales
              behind them
            payment-methods:write: >-
              Add, rename and remove the payment methods staff record by hand,
              such as cash or a bank transfer, and choose which ones members may
              pick when paying for a booking. Reading them needs no scope of its
              own - transactions:read admits it.
            staff:read: >-
              View your staff accounts, their roles, and what each role is
              allowed to do
            staff:write: >-
              Change a staff member's role, and what the manager, front desk and
              instructor roles are allowed to do. Only a signed-in person can
              use it, with the same limits as in 1club: an API key is always
              refused.
            notifications:read: >-
              View which notifications each role gets by default, and on which
              channels
            notifications:write: >-
              Change which notifications each role gets and on which channels,
              and apply those defaults to everyone in a role, replacing their
              own choices
            competitors:read: >-
              View the competitors you follow, their prices and Google ratings,
              and how your prices compare with the market
            competitors:write: >-
              Add, edit and remove the competitors you follow, and have their
              websites read again
            promotions:read: >-
              View your promotions - discounts and vouchers, their promo codes,
              dates and how often they were redeemed

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.