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

# Delete an order item

> Deletes an existing Order Item by its Salesforce Id. The Id is taken from the URL path.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/order-item/{id}
openapi: 3.0.3
info:
  title: fusionCore REST API
  version: 1.0.0
  description: >-
    External integration endpoints for the fusionCore unmanaged REST API
    package. Provides HTTP access to order creation, order item management,
    renewal generation, and subscription cancellation, all running as Salesforce
    Apex REST resources.
servers:
  - url: https://{instance}.my.salesforce.com/services/apexrest
    description: Salesforce org Apex REST endpoint
    variables:
      instance:
        default: your-instance
        description: >-
          Your Salesforce org's My Domain prefix (for example, acme-dev or
          acme.sandbox).
security:
  - bearerAuth: []
tags:
  - name: Order
    description: Order creation.
  - name: Order Item
    description: Order item creation and deletion.
  - name: Order Renewal
    description: Generate renewal orders from existing purchase activities.
  - name: Subscription Cancellation
    description: Cancel subscription renewals.
paths:
  /v1/order-item/{id}:
    delete:
      tags:
        - Order Item
      summary: Delete an order item
      description: >-
        Deletes an existing Order Item by its Salesforce Id. The Id is taken
        from the URL path.
      operationId: deleteOrderItem
      parameters:
        - name: id
          in: path
          required: true
          description: Salesforce Id of the Order Item to delete.
          schema:
            type: string
            example: 8025g00000ItemAbAAA
      responses:
        '200':
          description: Order item deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderItemDeleteResponse'
              example:
                id: 8025g00000ItemAbAAA
                success: true
        '400':
          description: Missing or invalid `id` in URL path, or DML error during delete.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Order Item not found for the supplied Id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    OrderItemDeleteResponse:
      allOf:
        - $ref: '#/components/schemas/BaseResponse'
        - type: object
          properties:
            id:
              type: string
              description: Salesforce Id of the Order Item that was deleted.
    ErrorResponse:
      allOf:
        - $ref: '#/components/schemas/BaseResponse'
      example:
        success: false
        errors:
          - businessUnitId is required
    BaseResponse:
      type: object
      description: >-
        Common envelope returned by every endpoint. Concrete responses extend
        this shape with operation-specific fields.
      properties:
        success:
          type: boolean
          description: '`true` when the request completed without errors.'
        errors:
          type: array
          description: Populated with one or more error messages when `success` is `false`.
          items:
            type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Salesforce Session ID
      description: >-
        Salesforce session ID (or OAuth 2.0 access token issued by the
        Salesforce org) supplied as `Authorization: Bearer <token>`. Obtain via
        the Salesforce OAuth 2.0 flows or the SOAP login API.

````