---
title: "Deactivate Key Pair"
method: PATCH
path: "/api/v2/key/{keyAlias}/deactivate"
tags: ["Secure Card Capture"]
---

# Deactivate Key Pair

`PATCH /api/v2/key/{keyAlias}/deactivate`

This sets the status of the key pair to inactive.

## Path parameters

- `keyAlias` string, required

## Response `204`

Success. Key pair deactivated.

## Other responses

- `400` — Bad Request
- `401` — Unauthorised
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/westpac/apis/checkout-api.md) · [All operations](https://skmtc.dev/westpac/apis/checkout-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/westpac/checkout-api/revisions/97b34ca7df9a/schema)
