> ## Documentation Index
> Fetch the complete documentation index at: https://help.ship.uniuni.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retirer des expéditions d'un lot

> Removes one or more shipments from a batch.



## OpenAPI

````yaml POST /client/batch/{batchNumber}/removeShipment
openapi: 3.1.0
info:
  title: UniUni Platform Client API
  description: >-
    API for creating shipments, purchasing labels, managing batches, tracking
    deliveries, and receiving webhook notifications.
  version: 1.0.0
  contact:
    name: UniUni Retail Support
    email: retailsupport@uniuni.com
servers:
  - url: https://api.ship.uniuni.com/prod
    description: Production
  - url: https://api-sandbox.ship.uniuni.com
    description: Sandbox
security:
  - bearerAuth: []
tags:
  - name: Shipments
    description: Create, retrieve, list, purchase, refund, and delete shipments.
  - name: Batches
    description: Group purchased shipments into batches for drop-off or pickup.
  - name: Labels
    description: Retrieve shipping and batch labels as Base64-encoded PDFs.
  - name: Tracking
    description: Track shipment status and scan events.
  - name: Webhooks
    description: Receive real-time shipment status updates.
paths:
  /client/batch/{batchNumber}/removeShipment:
    post:
      tags:
        - Batches
      summary: Remove shipments from a batch
      description: Removes one or more shipments from a batch.
      operationId: removeShipmentsFromBatch
      parameters:
        - $ref: '#/components/parameters/BatchNumber'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchShipmentsRequest'
              example:
                shipments:
                  - UNI033642B16
            example:
              shipments:
                - UNI033642B16
      responses:
        '200':
          description: Shipments removed or error
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Additional information about the request status.
                  code:
                    type: integer
                    description: Status code. 0 indicates success.
                  data:
                    $ref: '#/components/schemas/BatchMutationResponseData'
                required:
                  - message
                  - code
              examples:
                success:
                  summary: Shipments removed
                  value:
                    message: Shipments removed from batch successfully
                    code: 0
                    data:
                      batchNumber: URB0717000000000837
                      batchName: test-17
                      status: PENDING
                      printedLabel: false
                      shipmentCount: 0
                      shipments: []
                notInBatch:
                  summary: Shipments not in batch
                  value:
                    message: Shipments are not found in this batch
                    code: 1009
                    data: null
components:
  parameters:
    BatchNumber:
      name: batchNumber
      in: path
      required: true
      description: The unique batch number (e.g. URB0714000000000687).
      schema:
        type: string
  schemas:
    BatchShipmentsRequest:
      type: object
      properties:
        shipments:
          type: array
          items:
            type: string
          description: List of order numbers.
      required:
        - shipments
    BatchMutationResponseData:
      type: object
      description: Partial batch summary returned after add/remove shipment operations.
      properties:
        batchNumber:
          type: string
        batchName:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - PENDING
            - PICKUP_REQUESTED
            - PICKUP_CANCELLED
            - PARTNER_RECEIVED
            - PICKED_UP
            - RECEIVED
          description: Batch status.
        printedLabel:
          type: boolean
        shipmentCount:
          type: integer
      required:
        - batchNumber
        - status
        - printedLabel
        - shipmentCount
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API access token generated from the UniUni Platform dashboard.

````