Skip to content

Fees

Payment already recorded

A payment with this idempotency key was already recorded, for a different student or amount - so this is not a retry of it, and nothing new was recorded. Check the student's ledger before collecting again, and send a new key for a new payment.

HTTP 422IDEMPOTENCY_KEY_REUSED

In the response

Besides the standard members type, title, status, detail, instance, plus code and requestId:

meta.receiptNumber
Receipt number of the payment already recorded under the key.
meta.paymentId
Id of that payment.

Example response

HTTP 422 · application/problem+json
{
  "type": "https://smartpathshaala.com/problems/idempotency-key-reused",
  "title": "Payment already recorded",
  "status": 422,
  "detail": "<what went wrong this time>",
  "instance": "<the request path>",
  "code": "IDEMPOTENCY_KEY_REUSED",
  "requestId": "<also sent as X-Request-Id>",
  "meta": {
    "receiptNumber": "<described above>",
    "paymentId": "<described above>"
  }
}

Values in angle brackets vary per request. Quote the requestId when reporting an error; it is how the server’s log line is found.