# Deactivate token

Deactivates a recurring token backed by an Apple Pay merchant token (MPAN), so recurring payments with this token are declined.
Send the request when the customer cancels the subscription or changes the payment method. Solidgate asks Apple to remove the merchant token when no other active token uses it.
Deactivation cannot be reversed. A repeated request for a deactivated token returns {}.Only tokens with card.pan_typempan can be deactivated.

Endpoint: POST /apple-pay/token/deactivate
Version: 1.0.0
Security: merchant, signature

## Security:

  - `merchant` (unknown)
    apiKey in header merchant

  - `signature` (unknown)
    apiKey in header signature

## Header parameters:

  - `merchant` (string, required)

  - `signature` (string, required)

## Request fields (application/json):

  - `recurring_token` (string, required)
    Token received for the Apple Pay payment that you want to deactivate.
Other tokens linked to the same merchant token remain active.
    Example: 7ats8da7sd8-a66dfa7-a9s9das89t

## Response 200:

  - `200` (unknown)
    Request received

## Response 200 fields (application/json):

  - `error` (object, required)
    Error object.

  - `error.code` (string, required)
    Unauthorized access due to invalid credentials.
    Example: 1.01

  - `error.messages` (array, required)
    Array of error messages applied to the decline payment.

## Response 200 examples:

  - `Success` (unknown)

  - `Authentication failed` (unknown)

  - `Error 2.01 Not a merchant token` (unknown)

  - `Error 2.01 Recurring token not found` (unknown)

  - `Error 2.01 Blank recurring token` (unknown)

