API ReferenceapipaymentsPOST /v1/admin/payments/monitor-failures

POST /v1/admin/payments/monitor-failures

Service: payments · operationId: (none)

Scan recent payments for elevated failure rates and alert when thresholds breached

Required scopes

(no scope declared — review service config)

Responses

200 Monitor check completed

{
  "type": "object",
  "properties": {
    "checked": {
      "type": "integer"
    },
    "failures": {
      "type": "integer"
    },
    "threshold_breached": {
      "type": "boolean"
    }
  },
  "required": [
    "checked",
    "failures",
    "threshold_breached"
  ]
}

500 Internal error

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ]
}

Example

curl -X POST https://payments.platform.loop.health/v1/admin/payments/monitor-failures \
  -H "Authorization: Bearer $ACCESS_TOKEN"