post
https://fin-api.digetpay.com/v1/merchant/account/credentials/rotate
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Rotate your merchant API key. The new key is shown once. Requires Merchant Portal Bearer token.
Flow
sequenceDiagram
autonumber
participant A as Portal Admin
participant D as DigetPay Portal API
participant S as Your Server
A->>D: POST /merchant/account/credentials/rotate
D-->>A: 200 { apiKeyPlain } (shown once)
A->>S: Update stored x-api-key
Note over S: Old key stops working after rotation
Responses
{
"success": {
"status": 200,
"body": {
"apiKeyPlain": "YOUR_NEW_KEY_SHOWN_ONCE"
}
}
}{
"failed_unauthorized": {
"status": 401,
"body": {
"statusCode": 401,
"message": "Unauthorized",
"error": "Unauthorized"
}
}
}