# Remove label from wallet

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/wallets/{wallet_id}/labels:
    delete:
      summary: Remove label from wallet
      deprecated: false
      description: >
        Unassign the current label from a specific wallet within the closed-loop
        system.

        This operation removes the logical association between a wallet and its
        label, without deleting the wallet or the label itself.


        Use this endpoint when reclassifying wallets, archiving old categories,
        or cleaning up label associations.


        ### Business Rules

        - The wallet must exist within the closed-loop system.

        - Each wallet can only have one label, so no label_id is required.

        - Removing a label does not delete the wallet or the label definition.

        - If the wallet has no label, this operation succeeds without
        modification.
      operationId: remove-wallet-label
      tags:
        - Vrtx Closed loop/Wallets
        - Wallets
      parameters:
        - name: wallet_id
          in: path
          description: Wallet ID to detach the label from.
          required: true
          example: d8a7f71f-cabd-4720-b7cc-b6745a10cbe2
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                x-apidog-orders: []
                x--orders: []
                properties: {}
                x--ignore-properties: []
              examples:
                WalletWithoutLabel:
                  summary: WalletWithoutLabel
                  value:
                    id: d8a7f71f-cabd-4720-b7cc-b6745a10cbe2
                    business_id: 2bb58ca6-1b9a-47b4-ab4d-b2996f0498f3
                    name: محفظة رئيسية
                    external_reference: WALLET-RIYADH-00122
                    can_overdraft: false
                    status: ACTIVE
                    account_number: '054200007018'
                    currency: SAR
                    balance: '0.00'
                    created_at: '2025-10-25T14:10:15.151Z'
                    updated_at: '2025-10-25T14:26:22.951Z'
          headers: {}
          x-apidog-name: OK
        '401':
          description: Not Authorized
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unauthorized:
                  summary: Unauthorized
                  value:
                    error_code: UNAUTHORIZED_ACCESS
                    error_message: You are not authorized to access this resource.
                    details:
                      - field: authorization
                        message: Valid Bearer token required
                        code: unauthorized_access
                    status_code: 401
          headers: {}
          x-apidog-name: Unauthorized
        '403':
          description: Not Allowed
          content:
            application/json:
              schema: *ref_0
              examples:
                Forbidden:
                  summary: Forbidden
                  value:
                    error_code: FORBIDDEN
                    error_message: Forbidden
                    details:
                      - field: authorization
                        message: Insufficient permissions to access this resource
                        code: forbidden
                    status_code: 403
          headers: {}
          x-apidog-name: Forbidden
        '404':
          description: Wallet Not Found
          content:
            application/json:
              schema: *ref_0
              examples:
                WalletNotFound:
                  summary: WalletNotFound
                  value:
                    error_code: WALLET_NOT_FOUND
                    error_message: Wallet not found
                    details:
                      - field: resource
                        message: Wallet with the specified ID was not found
                        code: WALLET_NOT_FOUND
                    status_code: 404
          headers: {}
          x-apidog-name: Not Found
      security:
        - bearerAuth3: []
          x-apidog:
            schemeGroups:
              - id: QE5bpSPPoodSldligcRm2
                schemeIds:
                  - bearerAuth3
            required: true
            use:
              id: QE5bpSPPoodSldligcRm2
            scopes:
              QE5bpSPPoodSldligcRm2:
                bearerAuth3: []
      x-apidog-folder: Vrtx Closed loop/Wallets
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1053095/apis/api-26073484-run
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error_code:
          type: string
        error_message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetail'
        status_code:
          type: integer
          format: int32
      x-apidog-orders:
        - error_code
        - error_message
        - details
        - status_code
      x--orders:
        - error_code
        - error_message
        - details
        - status_code
      x--ignore-properties: []
      x-apidog-folder: ''
    ErrorDetail:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
      x-apidog-orders:
        - field
        - message
        - code
      x--orders:
        - field
        - message
        - code
      x--ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token for authentication
    bearerAuth1:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
    bearerAuth2:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token for authentication
    bearerAuth3:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT issued by Keycloak. The client_id/azp in the token must map to a
        configured tenant (public, fai, neomrs; e.g., fai-sandbox -> fai) or
        requests will return 403.
    bearerAuth4:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token for authentication
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.sandbox.vrtx.sa
    description: Sandbox
security:
  - bearer: []

```
