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

# Void invoice

> Voids a non-completed invoice through the existing invoice void pipeline.



## OpenAPI

````yaml /openapi.json post /dev/v1/invoices/{uniqid}/void
openapi: 3.0.3
info:
  title: Shoppex Developer API
  description: Mintlify-compatible Developer API reference for Shoppex.
  version: 1.0.0
  contact:
    name: Shoppex Support
    email: support@shoppex.io
    url: https://shoppex.io
servers:
  - url: https://api.shoppex.io
security:
  - bearerAuth: []
paths:
  /dev/v1/invoices/{uniqid}/void:
    post:
      tags:
        - Invoices
      summary: Void invoice
      description: >-
        Voids a non-completed invoice through the existing invoice void
        pipeline.
      operationId: postDevV1InvoicesByUniqidVoid
      parameters:
        - name: uniqid
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                void_details:
                  type: string
              example:
                void_details: Customer requested cancellation
          multipart/form-data:
            schema:
              type: object
              properties:
                void_details:
                  type: string
              example:
                void_details: Customer requested cancellation
          text/plain:
            schema:
              type: object
              properties:
                void_details:
                  type: string
              example:
                void_details: Customer requested cancellation
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                example:
                  data:
                    id: inv_3
                    uniqid: 33333333-3333-4333-8333-333333333333
                    type: PRODUCT
                    shop_id: shop_1
                    customer_email: buyer@example.com
                    currency: USD
                    total: 49.99
                    total_display: 49.99
                    status: VOIDED
                    void_details: Customer requested cancellation
                    payment_status: VOIDED
                    gateway: PANDABASE
                    items:
                      - product_id: null
                        product_title: External Payment
                        product_type: SERVICE
                        variant_title: null
                        quantity: 1
                        unit_price: 49.99
                        total: 49.99
                        delivered_items: null
                    created_at: 1712059200
                    updated_at: 1712059860
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Use your Shoppex API key in the Authorization header.

````