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

# Cancel an unpaid dropshipping checkout

> Cancels an unpaid dropshipping checkout. Returns `completed` if the checkout was already paid. Cancelling does not guarantee that the checkout page stops working: if someone still pays, the agreed credits are charged, even if that leaves a negative credit balance.



## OpenAPI

````yaml /openapi.json post /checkouts/cancel
openapi: 3.1.1
info:
  title: Arcade API
  version: '1'
  description: >-
    Generate patterns and custom products from text prompts, and order them.
    Every request is a POST with a JSON body.
servers:
  - url: https://platform.arcade.ai/v1
    description: Production
security:
  - apiKey: []
tags:
  - name: Patterns
    description: Reusable print patterns you generate or upload.
  - 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 generated from a prompt or made from your patterns.
  - name: Checkouts
    description: Checkouts for ordering products.
  - name: Orders
    description: Your orders.
  - name: Feedback
    description: Reports about the API to Arcade.
paths:
  /checkouts/cancel:
    post:
      tags:
        - Checkouts
      summary: Cancel an unpaid dropshipping checkout
      description: >-
        Cancels an unpaid dropshipping checkout. Returns `completed` if the
        checkout was already paid. Cancelling does not guarantee that the
        checkout page stops working: if someone still pays, the agreed credits
        are charged, even if that leaves a negative credit balance.
      operationId: checkouts.cancel
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                checkoutId:
                  type: string
                  pattern: ^\d+$
                  description: >-
                    The checkout's ID. After payment, pass it to `orders/get` to
                    find the order.
              required:
                - checkoutId
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  state:
                    enum:
                      - canceled
                      - completed
                    type: string
                    description: >-
                      `canceled`: the checkout was cancelled. `completed`: the
                      checkout was already paid, so it was not cancelled.
                required:
                  - state
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: An API key from Settings → API keys in Arcade Studio.

````

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