DEL
/developer/delete/:idAPIAuthentication:Bearer token
Authorization: Bearer <token>Security requirement: 403 CSRF Protection
Direct server-to-server calls authenticated via Bearer tokens do not require CSRF headers. If you instead invoke mutation endpoints from a web browser using cookie-based sessions, you must include the following header:
X-Requested-With: XMLHttpRequestPath params
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Required | API key config ID (id) from create or list. |
Response fields
| Field | Type | Presence | Description |
|---|---|---|---|
id | string | Always returned | ID of the deleted gateway configuration. |
apiKey | string | Always returned | API key that was revoked. |
name | string | Always returned | Label of the revoked key. |
message | string | Optional | Confirmation message. |
Status codes
| HTTP Status | Meaning |
|---|---|
| 200 | API key config deleted and revoked. |
| 401 | No merchant session. Missing or expired Bearer token. |
| 404 | API key config not found or belongs to another merchant. |
Notes
- Immediate Effect: Revocation takes effect across nodes. Any server calling POST /payment/gateway-momo-pay with this key will receive HTTP 401 Unauthorized.