---
title: "Renew"
method: POST
path: "/zatca/devices/{id}/renew/"
tags: ["Device"]
---

# Renew

`POST /zatca/devices/{id}/renew/`

Endpoint for renewing the specific device.

## Path parameters

- `id` string, required

## Headers

- `X-ZATCA-Branch` string
- `X-ZATCA-Connected-Account-Id` string
- `X-ZATCA-Environment` string, required

## Request body

- ZatcaDeviceRenew
  - `otp` string, required — The one-time password to be generated from the ZATCA Fatoora Portal

## Response `200`

- ZatcaDevice
  - `common_name` string, required — The common name of the device.
  - `id` string, required — The id of the object.
  - `status` 'pending' | 'active' | 'failed' | 'revoked', required — * `pending` - Pending * `active` - Active * `failed` - Failed * `revoked` - Revoked Full information for [StatusEnum](statusenum)

---

[API](https://skmtc.net/wafeq/apis/wafeq-zatca-api.md) · [All operations](https://skmtc.net/wafeq/apis/wafeq-zatca-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wafeq/wafeq-zatca-api/versions/b1556963edcd/schema)
