---
title: "Regenerate Credentials"
method: POST
path: "/api/regenerate-credentials"
tags: ["Credentials"]
---

# Regenerate Credentials

`POST /api/regenerate-credentials`

## Request

- Base URL: `https://jiof.trxns.in`
- URL: `https://jiof.trxns.in/api/regenerate-credentials`
- Auth: HTTP bearer

Regenerates the client ID and client secret for a merchant.

**Failure conditions** (all return `statusCode: 900` with the description below):

| Condition | Status Description |
|---|---|
| Missing merchant ID | Missing id |
| Invalid ID format (optional) | Invalid ID format |
| Merchant not found (optional) | Merchant not found |
| Failed to generate client ID | Some problem occurred while generating client_id |
| Failed to generate client secret | client_secret generation failed |
| Internal server error | Something went wrong |

## Request body

- CredentialsIdRequest
  - `id` string, required: Merchant / user identifier.

## Response `200`

Success or failure — see statusCode in the body.

- union
  - CredentialsResponse
    - `statusCode` integer
    - `statusDesc` string
    - `data` object
      - `clientId` string
      - `clientSecret` string
  - VAFailureResponse
    - `statusCode` integer: Application-level status code. 900 indicates failure; the specific reason is in statusDesc.
    - `statusDesc` string: Human-readable description of the failure.

---

[API](https://skmtc.dev/jiopay/apis/virtual-accounts.md) - [All operations](https://skmtc.dev/jiopay/apis/virtual-accounts/llms.txt) - [OpenAPI document](https://skmtc.dev/jiopay/apis/virtual-accounts/revisions/069638c81b20?raw)
