# Delete Order by ID

This operation performs a soft delete of an order identified by orderId. The order is marked as deleted and is no longer available for processing or fulfillment

Endpoint: DELETE /api/v1/orders/{orderId}
Version: 1.0.0
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer

## Path parameters:

  - `orderId` (string, required)
    Unique identifier for the order

## Response 200:

  - `200` (unknown)
    The specified order has been deleted successfully.

## Response 200 fields (application/json):

  - `orderId` (string)
    Unique system-generated identifier of the deleted order.
    Example: PBM75CRknylo

  - `status` (string)
    Current status of the order.
    Example: Deleted

  - `transactionDateTime` (string)
    Timestamp when the delete operation was executed.
    Example: 2026-01-01T09:27:36.775Z

## Response 401:

  - `401` (unknown)
    The request could not be authorized

## Response 401 fields (application/json):

  - `errorCode` (string, required)
    Error code representing the unauthorized access error.
    Example: unauthorized_error

  - `message` (string, required)
    This is HTTP 401 Unauthorized response status code, which indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource.
    Example: Unauthorized access. Valid authentication credentials are required.

  - `additionalInfo` (string)
    Additional information about the unauthorized error.
    Example: Client request lacks valid authentication credentials.

## Response 404:

  - `404` (unknown)
    The requested resource was not found.

## Response 404 fields (application/json):

  - `errors` (array)

  - `errors.errorCode` (string)
    Example: NOT_FOUND

  - `errors.errorDescription` (string)
    Example: order not found

## Response 500:

  - `500` (unknown)
    The request could not be completed due to an internal error

## Response 500 fields (application/json):

  - `errorCode` (string, required)
    Error code representing the internal server error.
    Example: internal_server_error

  - `message` (string, required)
    This is HTTP 500 Internal Server Error response status code, which indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.
    Example: A system error occurred. Please try again later.

  - `additionalInfo` (string)
    Additional information about the server error.
    Example: Unexpected condition occurred on the server while processing the request.

