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

# File the signed-in supplier’s attendance report on one of their bookings

> A self-report: `attended` says whether the SUPPLIER showed up, and settles the booking exactly as filing from the dashboard does — attended → COMPLETED (or DISPUTED, when the client has reported that they did not attend), did not attend → SUPPLIER_NO_SHOW. 201 when filed, 200 when the identical answer was already on file, 409 `REPORT_ALREADY_EXISTS` for a different answer on file, 409 `BOOKING_ALREADY_SETTLED` on a booking already settled, 422 `BOOKING_NOT_REPORTABLE` when the booking is cancelled or has not ended yet. Requires the API key and the supplier’s user token.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/projects/{projectId}/suppliers/me/bookings/{bookingId}/reports
openapi: 3.0.0
info:
  title: MarketBox 2.0 Open API
  version: 1.0.0
  description: >-
    The MarketBox public API for building booking experiences. Core model:
    create an order, then draw its order items down into bookings. Single
    bookings reference an order item per service line; package bookings draw one
    PACKAGE item down across N sessions. To schedule a package, build a slate
    (POST /availability/package-slate) and book it by slateId (POST
    /orders/{orderId}/package-bookings). See the guides for end-to-end
    walkthroughs.
  contact:
    name: MarketBox support
servers:
  - url: https://apiv2.gomarketbox.com
    description: MarketBox Open API
security:
  - ApiKeyAuth: []
paths:
  /v1/projects/{projectId}/suppliers/me/bookings/{bookingId}/reports:
    post:
      tags:
        - Supplier plane
      summary: File the signed-in supplier’s attendance report on one of their bookings
      description: >-
        A self-report: `attended` says whether the SUPPLIER showed up, and
        settles the booking exactly as filing from the dashboard does — attended
        → COMPLETED (or DISPUTED, when the client has reported that they did not
        attend), did not attend → SUPPLIER_NO_SHOW. 201 when filed, 200 when the
        identical answer was already on file, 409 `REPORT_ALREADY_EXISTS` for a
        different answer on file, 409 `BOOKING_ALREADY_SETTLED` on a booking
        already settled, 422 `BOOKING_NOT_REPORTABLE` when the booking is
        cancelled or has not ended yet. Requires the API key and the supplier’s
        user token.
      parameters:
        - schema:
            type: string
            minLength: 1
            description: >-
              The project (tenant) that owns the resource. Every resource in
              this API is scoped to a project, and your API key is restricted to
              the projects it was issued for — a project outside that scope
              returns 403.
            example: prj_01kv60qgnef2kt3pvqgwmkbzfr
          required: true
          description: >-
            The project (tenant) that owns the resource. Every resource in this
            API is scoped to a project, and your API key is restricted to the
            projects it was issued for — a project outside that scope returns
            403.
          name: projectId
          in: path
        - schema:
            type: string
            minLength: 1
            description: >-
              The booking — one scheduled unit of service occupying supplier
              time.
            example: bk_01kv7q41n2hbqxwm03ymn7bxl9
          required: true
          description: The booking — one scheduled unit of service occupying supplier time.
          name: bookingId
          in: path
      requestBody:
        description: Did you attend
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                attended:
                  type: boolean
                  description: >-
                    Whether YOU attended. A self-report: it says nothing about
                    the other party.
                  example: true
                note:
                  type: string
                  maxLength: 1000
                  description: >-
                    An optional note kept with the report (at most 1000
                    characters).
                  example: Arrived five minutes late, lesson ran to the full hour.
              required:
                - attended
      responses:
        '200':
          description: Identical report already on file
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      reporterRole:
                        type: string
                        enum:
                          - CLIENT
                          - SUPPLIER
                        description: Which side of the booking the caller reports as.
                      reportable:
                        type: boolean
                        description: >-
                          Whether a report may be filed now, by the server’s
                          clock, whatever the answer.
                      ifAttended:
                        type: object
                        nullable: true
                        properties:
                          settlesTo:
                            type: string
                            enum:
                              - SCHEDULED
                              - STARTED
                              - AWAITING_CONFIRMATION
                              - DISPUTED
                              - COMPLETED
                              - CANCELLED
                              - CLIENT_NO_SHOW
                              - SUPPLIER_NO_SHOW
                              - NO_SHOW
                            description: >-
                              The status the booking moves to when this answer
                              is filed.
                          consequences:
                            type: string
                            description: >-
                              The transition rule’s consequences key; the
                              dashboard copy is keyed by it.
                        required:
                          - settlesTo
                          - consequences
                        description: >-
                          What filing `attended: true` would do now, judged from
                          the booking alone; the other party’s report is never
                          read, so a supplier’s attended may still end DISPUTED.
                          null when it moves nothing.
                      ifNotAttended:
                        type: object
                        nullable: true
                        properties:
                          settlesTo:
                            type: string
                            enum:
                              - SCHEDULED
                              - STARTED
                              - AWAITING_CONFIRMATION
                              - DISPUTED
                              - COMPLETED
                              - CANCELLED
                              - CLIENT_NO_SHOW
                              - SUPPLIER_NO_SHOW
                              - NO_SHOW
                            description: >-
                              The status the booking moves to when this answer
                              is filed.
                          consequences:
                            type: string
                            description: >-
                              The transition rule’s consequences key; the
                              dashboard copy is keyed by it.
                        required:
                          - settlesTo
                          - consequences
                        description: >-
                          What filing `attended: false` would do now, judged
                          from the booking alone. null when it moves nothing.
                      report:
                        type: object
                        nullable: true
                        properties:
                          attended:
                            type: boolean
                            description: The answer on file.
                          note:
                            type: string
                            description: The note filed with it, when there was one.
                          createdAt:
                            type: string
                            description: When it was filed (ISO 8601 instant).
                        required:
                          - attended
                          - createdAt
                        description: The caller’s own report, or null when none is filed.
                    required:
                      - reporterRole
                      - reportable
                      - ifAttended
                      - ifNotAttended
                      - report
                required:
                  - data
        '201':
          description: Report filed
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      reporterRole:
                        type: string
                        enum:
                          - CLIENT
                          - SUPPLIER
                        description: Which side of the booking the caller reports as.
                      reportable:
                        type: boolean
                        description: >-
                          Whether a report may be filed now, by the server’s
                          clock, whatever the answer.
                      ifAttended:
                        type: object
                        nullable: true
                        properties:
                          settlesTo:
                            type: string
                            enum:
                              - SCHEDULED
                              - STARTED
                              - AWAITING_CONFIRMATION
                              - DISPUTED
                              - COMPLETED
                              - CANCELLED
                              - CLIENT_NO_SHOW
                              - SUPPLIER_NO_SHOW
                              - NO_SHOW
                            description: >-
                              The status the booking moves to when this answer
                              is filed.
                          consequences:
                            type: string
                            description: >-
                              The transition rule’s consequences key; the
                              dashboard copy is keyed by it.
                        required:
                          - settlesTo
                          - consequences
                        description: >-
                          What filing `attended: true` would do now, judged from
                          the booking alone; the other party’s report is never
                          read, so a supplier’s attended may still end DISPUTED.
                          null when it moves nothing.
                      ifNotAttended:
                        type: object
                        nullable: true
                        properties:
                          settlesTo:
                            type: string
                            enum:
                              - SCHEDULED
                              - STARTED
                              - AWAITING_CONFIRMATION
                              - DISPUTED
                              - COMPLETED
                              - CANCELLED
                              - CLIENT_NO_SHOW
                              - SUPPLIER_NO_SHOW
                              - NO_SHOW
                            description: >-
                              The status the booking moves to when this answer
                              is filed.
                          consequences:
                            type: string
                            description: >-
                              The transition rule’s consequences key; the
                              dashboard copy is keyed by it.
                        required:
                          - settlesTo
                          - consequences
                        description: >-
                          What filing `attended: false` would do now, judged
                          from the booking alone. null when it moves nothing.
                      report:
                        type: object
                        nullable: true
                        properties:
                          attended:
                            type: boolean
                            description: The answer on file.
                          note:
                            type: string
                            description: The note filed with it, when there was one.
                          createdAt:
                            type: string
                            description: When it was filed (ISO 8601 instant).
                        required:
                          - attended
                          - createdAt
                        description: The caller’s own report, or null when none is filed.
                    required:
                      - reporterRole
                      - reportable
                      - ifAttended
                      - ifNotAttended
                      - report
                required:
                  - data
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '401':
          description: Missing or invalid API key or user token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '403':
          description: >-
            The API key cannot access this project (FORBIDDEN) or lacks standard
            API access (CAPABILITY_NOT_GRANTED); or the signed-in user has no
            MarketBox account record (FORBIDDEN, "User account not found.
            Complete registration first."); or the signed-in user is not a
            member of the project (NOT_A_MEMBER), their membership has ended
            (MEMBERSHIP_INACTIVE), or the roles they act under lack the route’s
            permission (NO_SUPPLIER_ROLE); or X-MB-Acting-Role names a role they
            do not hold (ACTING_ROLE_NOT_HELD)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '404':
          description: >-
            The signed-in user has no supplier record here: no SUPPLIER among
            the roles they act under (NO_SUPPLIER_ROLE), or no single supplier
            record linked to them (SUPPLIER_NOT_LINKED); or no such booking of
            theirs (NOT_FOUND)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '409':
          description: >-
            A different answer is already on file, or the booking is already
            settled
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - REPORT_ALREADY_EXISTS
                      message:
                        type: string
                      statusCode:
                        type: number
                        enum:
                          - 409
                      existing:
                        type: object
                        properties:
                          attended:
                            type: boolean
                        required:
                          - attended
                    required:
                      - code
                      - message
                      - statusCode
                      - existing
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - BOOKING_ALREADY_SETTLED
                      message:
                        type: string
                      statusCode:
                        type: number
                        enum:
                          - 409
                    required:
                      - code
                      - message
                      - statusCode
        '422':
          description: Booking cannot be reported on now
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
      security:
        - ApiKeyAuth: []
          EndUserBearer: []
components:
  schemas:
    ErrorMessage:
      type: object
      properties:
        code:
          type: string
          description: Stable machine-readable error code, e.g. NOT_FOUND.
        message:
          type: string
          description: Human-readable description of what went wrong.
        statusCode:
          type: integer
          description: The HTTP status code of this response.
        requestId:
          type: string
          description: >-
            The id of this request, also returned as the X-Request-Id header.
            Quote it in a support ticket.
      required:
        - code
        - message
        - statusCode
        - requestId
      example:
        code: NOT_FOUND
        message: Booking not found
        statusCode: 404
        requestId: a3f1c2de-9b64-4a2f-8f0e-5c9d1b7a2e10
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key minted in the MarketBox dashboard. Scope is restricted to the
        projects you select at creation time. Every route needs the key's
        standard API access (`*`) except `POST /v1/projects/{projectId}/events`,
        which needs `events:write`; a key without `*` is refused with 403
        `CAPABILITY_NOT_GRANTED`.
    EndUserBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        The signed-in person's Cognito access token, issued to this
        application's app client. Sent with the API key on the /clients/me and
        /suppliers/me routes.

````

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