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

# Create a checkout

> Creates a checkout for your products. Open `checkoutUrl` to pay; the order is placed once payment completes.



## OpenAPI

````yaml /openapi.json post /checkouts/create
openapi: 3.1.1
info:
  title: Arcade API
  version: '1'
  description: >-
    Generate patterns and order them as manufactured products. Every request is
    a POST with a JSON body.
servers:
  - url: https://platform.arcade.ai/v1
    description: Production
  - url: https://staging-platform.arcade.ai/v1
    description: Staging
security:
  - apiKey: []
tags:
  - name: Patterns
    description: Patterns you generate.
  - name: Refine
    description: Edit, recolor, crop and extend patterns.
  - name: Jobs
    description: Long-running work.
  - name: References
    description: Images that guide generation.
  - name: Models
    description: The models that generate patterns.
  - name: Categories
    description: Product types and their options.
  - name: Products
    description: Products made from your patterns.
  - name: Checkouts
    description: Checkouts for ordering products.
  - name: Orders
    description: Your orders.
paths:
  /checkouts/create:
    post:
      tags:
        - Checkouts
      summary: Create a checkout
      description: >-
        Creates a checkout for your products. Open `checkoutUrl` to pay; the
        order is placed once payment completes.
      operationId: checkouts.create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                requestId:
                  type: string
                  minLength: 1
                  maxLength: 128
                  description: >-
                    Caller-chosen idempotency key; a replay returns the original
                    result
                lines:
                  type: array
                  minItems: 1
                  maxItems: 50
                  items:
                    type: object
                    properties:
                      productId:
                        type: string
                        minLength: 1
                        description: Opaque product ID
                      quantity:
                        type: integer
                        minimum: 1
                        maximum: 1000
                    required:
                      - productId
                      - quantity
                  description: The caller's products to order, one line each
                dropShip:
                  type: boolean
                  default: false
                  description: >-
                    Adds the drop-ship service to the order. A line with
                    quantity 1 needs it unless the caller is subscribed.
              required:
                - requestId
                - lines
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  checkoutId:
                    type: string
                    pattern: ^\d+$
                    description: >-
                      The checkout's draft order ID; orders.get finds the order
                      once it is placed
                  checkoutUrl:
                    type: string
                    format: uri
                    description: Hosted checkout page; host not guaranteed
                required:
                  - checkoutId
                  - checkoutUrl
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: An API key from Settings → API keys in Arcade Studio.

````