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

# Cancel Order

> Membatalkan satu order berdasarkan ID, selama statusnya masih bisa dibatalkan.



## OpenAPI

````yaml DELETE /orders/{orderId}
openapi: 3.1.0
info:
  title: Daekan Public API
  description: >-
    API untuk smart order management, payment link, digital products, dan
    payment webhook.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.daekan.app/v1
security:
  - bearerAuth: []
paths:
  /orders/{orderId}:
    delete:
      summary: Cancel order
      description: >-
        Membatalkan satu order berdasarkan ID, selama statusnya masih bisa
        dibatalkan.
      parameters:
        - name: orderId
          in: path
          description: ID order yang akan dibatalkan
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Order dibatalkan
          content: {}
        '400':
          description: Request tidak valid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````