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

# Apply admin checkout form data to booking configuration

> Resolves or creates customers and maps submitted form values into a config payload that can be sent to POST /api/v1/orders/from-config. Additional config keys such as `add_ons` and `booking_passes` are passed through unchanged; `bookings` may be omitted for bundle/add-on-only orders.



## OpenAPI

````yaml /developers/openapi/admin-internal.openapi.json post /api/v1/ui/admin/checkout-form/apply
openapi: 3.1.0
info:
  title: admin-api
  version: '1.0'
  description: >-
    The Admin API gives you **full programmatic access** to your anny
    organization. It is built for **server-side integrations** — backend
    services, automation scripts, and custom tooling that act on behalf of your
    team.


    ---


    ## When to use the Admin API


    Use the Admin API when you need to **drive workflows from your own
    systems**:


    - **Sync membership data** — create or update customers, assign them to
    communities, reflect subscription status from an external CRM

    - **Create bookings programmatically** — build back-office tools or automate
    repeat reservations without going through the customer checkout

    - **Issue and forward invoices** — generate invoices, send them to
    customers, or push them to your accounting system

    - **React to real-time events** — pair the API with
    [Webhooks](/developers/guides/admin/webhooks) to trigger side effects
    whenever a booking is created, cancelled, or checked in

    - **Drive display panels** — push live occupancy and schedule data to
    digital signage or lobby displays


    Combined with [webhook subscriptions](/developers/guides/admin/webhooks),
    you can build fully automated, event-driven workflows without polling.


    ---


    ## Authentication


    Generate a long-lived API token directly in the admin dashboard under
    **Organization Settings → API**. All requests require it in the
    `Authorization` header:


    ```

    Authorization: Bearer {access_token}

    ```


    Every endpoint is **organization-scoped**. Pass your organization ID as a
    query parameter on every request:


    ```

    ?o={organization_id}

    ```


    See the [Authentication guide](/developers/guides/authentication) for token
    scopes and the full OAuth2 flow.


    ---


    ## Admin API vs Customer API


    | | Admin API | Customer API |

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

    | **Use case** | Server-side automation, backend tooling | End-user apps,
    booking widgets |

    | **Auth** | Required — API token or OAuth2 | Optional — many endpoints work
    without a token |

    | **Identifiers** | Immutable UUIDs and integer IDs | Slugs, booking
    numbers, order numbers |

    | **Access** | Full read/write | Public and customer-owned data only |


    → [Go to the Customer API](/developers/api-reference/customer)


    ---


    ## Resource Identifiers


    The Admin API uses **immutable IDs** — UUIDs for most entities, integers for
    legacy ones. These are safe to store in external systems and never change,
    even if an organization renames a resource.


    ---


    ## Starting Points


    | Guide | What it covers |

    |---|---|

    | [Getting Started](/developers) | First steps and quickstart |

    | [JSON:API Conventions](/developers/guides/json-api-conventions) | Request
    and response format |

    | [Authentication](/developers/guides/authentication) | API tokens, OAuth2,
    scopes |

    | [Availability & Booking Search](/developers/guides/availability) | Search
    open slots and timeslots |

    | [Admin Booking Creation](/developers/guides/admin/booking-creation) |
    Create bookings from the back office |

    | [Admin Booking Edit](/developers/guides/admin/booking-edit) | Edit
    resource, dates, fields, add-ons, and sub-bookings |

    | [Admin Booking Lifecycle](/developers/guides/admin/booking-lifecycle) |
    Status changes, check-in, cancellations |

    | [Invoices](/developers/guides/admin/invoices) | Create, send, and manage
    invoices |

    | [Customer Management](/developers/guides/admin/customer-management) |
    Create and manage customer records |

    | [Booking Calendars](/developers/guides/admin/calendar-events) | Custom
    calendar events |

    | [Timeslot Management](/developers/guides/admin/timeslot-management) |
    Manage timeslot CRUD, recurrence, allocations, and rescheduling |

    | [Broadcast Campaigns](/developers/guides/admin/broadcasting) | Email and
    push campaigns |

    | [Exports](/developers/guides/admin/exports) | Export bookings and customer
    data |

    | [Webhooks & Events](/developers/guides/admin/webhooks) | Subscribe to
    real-time events |


    ---


    ## Base URLs


    | Environment | URL |

    |---|---|

    | Production | `https://b.anny.co` |

    | Gov-Cloud | `https://b.anny.eu` |
  contact:
    name: anny GmbH
    url: https://anny.co
    email: support@anny.co
servers:
  - url: https://b.anny.co
    description: Production
  - url: https://b.anny.eu
    description: Gov-Cloud
security:
  - Bearer: []
tags:
  - name: Booking Quotas
  - name: Orders
  - name: Organizations
  - name: Table Configuration
  - name: Test-Results
  - name: User Settings
  - name: Terminal Locations
  - name: Terminal Readers
  - name: Connection Tokens
  - name: Views
  - name: Voice Integration
paths:
  /api/v1/ui/admin/checkout-form/apply:
    post:
      tags:
        - Orders
      summary: Apply admin checkout form data to booking configuration
      description: >-
        Resolves or creates customers and maps submitted form values into a
        config payload that can be sent to POST /api/v1/orders/from-config.
        Additional config keys such as `add_ons` and `booking_passes` are passed
        through unchanged; `bookings` may be omitted for bundle/add-on-only
        orders.
      operationId: admin-ui-checkout-form-apply
      parameters:
        - schema:
            type: string
          in: query
          name: o
          description: Organization ID
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              properties:
                form_data:
                  type: object
                  additionalProperties: true
                  properties:
                    customer:
                      type: object
                      additionalProperties: true
                    address:
                      type: object
                      additionalProperties: true
                    custom_fields:
                      type: object
                      additionalProperties: true
                    order_custom_fields:
                      type: object
                      additionalProperties: true
                    bookings_data:
                      type: object
                      additionalProperties: true
                booking_config:
                  type: object
                  additionalProperties: true
                  properties:
                    bookings:
                      type: array
                      description: >-
                        Booking items. Optional when add_ons or booking_passes
                        are present.
                      items:
                        type: object
                        additionalProperties: true
                    add_ons:
                      type: array
                      description: >-
                        Standalone add-ons, passed through to the enriched
                        config. Optional.
                      items:
                        type: object
                        additionalProperties: true
                    booking_passes:
                      type: array
                      description: >-
                        Booking passes from bundles, passed through to the
                        enriched config. Optional.
                      items:
                        type: object
                        additionalProperties: true
              required:
                - form_data
                - booking_config
            examples:
              default:
                value:
                  form_data:
                    customer:
                      email: newcustomer@example.com
                      given_name: Test
                      family_name: Customer
                    order_custom_fields:
                      c6f6625b-27fb-4ef4-92f3-335252f8c35d: Invoice note
                    bookings_data:
                      b_205:
                        service_custom_fields:
                          f3f0b8f0-e3a0-4af8-a49c-dbb7c38d98b7: Wheelchair access
                        participants:
                          - email: participant@example.com
                            given_name: Alex
                            family_name: Example
                  booking_config:
                    bookings:
                      - _booking_id: 205
                        service_id:
                          '42': 1
                        resource_id: 8
                        start_date: '2026-04-15T09:00:00+02:00'
                        end_date: '2026-04-15T10:00:00+02:00'
      responses:
        '200':
          description: Enriched booking config for order creation
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  order_customer_id:
                    type: string
                  bookings:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
              examples:
                default:
                  value:
                    order_customer_id: '1701'
                    bookings:
                      - customer_id: '1701'
                        service_id:
                          '42': 1
                        resource_id: 8
                        start_date: '2026-04-15T09:00:00+02:00'
                        end_date: '2026-04-15T10:00:00+02:00'
                        service_custom_fields:
                          f3f0b8f0-e3a0-4af8-a49c-dbb7c38d98b7: Wheelchair access
                        participants:
                          - email: participant@example.com
                            given_name: Alex
                            family_name: Example
        '422':
          description: Validation error
      security:
        - Bearer: []
components:
  securitySchemes:
    Bearer:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://auth.anny.co/oauth/authorize
          tokenUrl: https://auth.anny.co/oauth/token
          refreshUrl: https://auth.anny.co/oauth/token/refresh
          scopes: {}

````