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

# Batch-create checkouts

> Create many checkouts in one request — useful for bulk commerce (campaign rollouts, marketplace listings).



## OpenAPI

````yaml /api-reference/openapi.json post /v1/ucp/checkouts/batch
openapi: 3.1.0
info:
  title: Sly API
  description: >-
    The Agentic Economy Platform — stablecoin payments, agent wallets,
    multi-protocol commerce, and AI agent orchestration.
  version: 1.0.0
  contact:
    name: Sly
    url: https://getsly.ai
    email: support@getsly.ai
servers:
  - url: https://api.getsly.ai/v1
    description: Production
  - url: https://sandbox.getsly.ai/v1
    description: Sandbox
security:
  - bearerAuth: []
paths:
  /v1/ucp/checkouts/batch:
    post:
      tags:
        - UCP Checkouts
      summary: Batch-create checkouts
      description: >-
        Create many checkouts in one request — useful for bulk commerce
        (campaign rollouts, marketplace listings).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                checkouts:
                  type: array
                  items:
                    $ref: '#/components/schemas/CreateUCPCheckoutInput'
                  minItems: 1
                  maxItems: 100
                idempotency_key:
                  type: string
              required:
                - checkouts
      responses:
        '201':
          description: Batch created
          content:
            application/json:
              schema:
                type: object
                properties:
                  batch_id:
                    type: string
                  total:
                    type: number
                  created:
                    type: number
                  failed:
                    type: number
                  checkouts:
                    type: array
                    items:
                      $ref: '#/components/schemas/UCPCheckout'
                required:
                  - batch_id
                  - total
                  - created
                  - failed
                  - checkouts
      security:
        - bearerAuth: []
components:
  schemas:
    CreateUCPCheckoutInput:
      type: object
      properties:
        merchant_id:
          type: string
          format: uuid
        items:
          type: array
          items:
            $ref: '#/components/schemas/UCPCheckoutItem'
          minItems: 1
        currency:
          type: string
          default: USD
        style:
          type: string
          enum:
            - modal
            - redirect
            - embedded
          default: modal
        success_url:
          type: string
          format: uri
        cancel_url:
          type: string
          format: uri
        expires_in:
          type: integer
          exclusiveMinimum: 0
          maximum: 86400
          default: 900
        metadata:
          type: object
          additionalProperties: {}
      required:
        - merchant_id
        - items
    UCPCheckout:
      type: object
      properties:
        id:
          type: string
        merchant_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - created
            - pending_payment
            - paid
            - fulfilled
            - failed
            - expired
            - cancelled
        items:
          type: array
          items:
            $ref: '#/components/schemas/UCPCheckoutItem'
        total:
          type: string
        currency:
          type: string
        style:
          type: string
          enum:
            - modal
            - redirect
            - embedded
        session_url:
          type:
            - string
            - 'null'
          format: uri
        success_url:
          type:
            - string
            - 'null'
          format: uri
        cancel_url:
          type:
            - string
            - 'null'
          format: uri
        metadata:
          type: object
          additionalProperties: {}
          default: {}
        expires_at:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
      required:
        - id
        - merchant_id
        - status
        - items
        - total
        - currency
        - style
        - expires_at
        - created_at
    UCPCheckoutItem:
      type: object
      properties:
        sku:
          type: string
        description:
          type: string
        quantity:
          type: integer
          exclusiveMinimum: 0
        unit_price:
          type: string
        currency:
          type: string
      required:
        - sku
        - quantity
        - unit_price
        - currency
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (pk_test_* or pk_live_*), JWT session, agent token (agent_*),
        Ed25519 session (sess_*), or portal token (portal_*).

````