---
title: "Get Credentials"
method: POST
path: "/api/getCredentials"
tags: ["Credentials"]
---

# Get Credentials

`POST /api/getCredentials`

## Request

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

Fetches the client ID and client secret for a merchant / user.

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

| Condition | Status Description |
|---|---|
| Missing user ID | User ID is missing |
| User not found | User not found |
| Credentials not found | User Client ID or Client Secret not found |
| Invalid ID format (optional) | Invalid ID format |
| Internal 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)
