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

# Disable crypto dedicated wallet

> Disable a customer's dedicated crypto collection wallet.

Disable a crypto dedicated wallet when it should no longer be used for new customer payments.

After disabling a wallet, stop displaying it to the customer and create a new wallet if they need to make another payment.

## Endpoint

```http theme={null}
PATCH /v1/crypto/dedicated-addresses/{reference}/disable
```

## Headers

```http theme={null}
Authorization: Bearer sk_test_xxx
```

## Path parameters

| Field | Type | Required | Description |
| - | - | - | - |
| `reference` | string | Yes | The Pasteaza `PZCDA_...` reference returned during creation. |

## Example request

```bash theme={null}
curl -X PATCH https://api.oyapasteaza.com/v1/crypto/dedicated-addresses/PZCDA_4E40E9A3D6E8495C/disable \
  -H "Authorization: Bearer sk_test_xxx"
```

## Successful response

```json theme={null}
{
  "status": true,
  "message": "Dedicated crypto address disabled."
}
```

## Errors

| Code | Meaning |
| - | - |
| `authentication_failed` | The API key is missing or invalid. |
| `validation_failed` | `reference` is missing. |
| `crypto_dedicated_address_not_found` | No wallet matched the reference in this merchant and environment. |


## OpenAPI

````yaml openapi.yaml PATCH /v1/crypto/dedicated-addresses/{reference}/disable
openapi: 3.1.0
info:
  title: Pasteaza API
  version: 1.0.0
  description: Collect and disburse bank and crypto payments with Pasteaza.
servers:
  - url: https://api.oyapasteaza.com
    description: Pasteaza API — the API key selects test or live mode
security:
  - bearerAuth: []
tags:
  - name: Hosted Checkout
  - name: Virtual Accounts
  - name: Dedicated Bank Accounts
  - name: Temporary Crypto Wallets
  - name: Dedicated Crypto Wallets
  - name: Bank Transfers
  - name: Crypto Transfers
paths:
  /v1/crypto/dedicated-addresses/{reference}/disable:
    patch:
      tags:
        - Dedicated Crypto Wallets
      summary: Disable dedicated crypto wallet
      operationId: disableDedicatedCryptoWallet
      parameters:
        - $ref: '#/components/parameters/Reference'
      responses:
        '200':
          description: Dedicated crypto wallet disabled.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    Reference:
      name: reference
      in: path
      required: true
      description: Pasteaza reference or supported merchant reference.
      schema:
        type: string
  schemas:
    SuccessResponse:
      type: object
      required:
        - status
        - message
        - data
      properties:
        status:
          type: boolean
          const: true
        message:
          type: string
        data:
          type: object
          additionalProperties: true
    ErrorResponse:
      type: object
      required:
        - status
        - message
        - code
      properties:
        status:
          type: boolean
          const: false
        message:
          type: string
        code:
          type: string
  responses:
    Error:
      description: Request failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Pasteaza secret key
      description: >-
        Use an `sk_test_...` key in the playground. Never enter a live key in
        shared environments.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.