Skip to main content

Invalid reason

typehttps://docs.frem.sh/reference/api/errors/invalid-reason
HTTP status400 Bad Request

What it means

The reason field was missing or not one of the accepted values.

Example detail messages returned with this error:

  • reason must be one of: forgot_to_cancel, seats_bought_in_error, billing_error, duplicate_charge, goodwill, other.

What to do

Send one of the listed values verbatim. The set is closed rather than free text because the reason is recorded on the invoice and reported on — a free-form string would not aggregate.

Response shape

All fremforge API errors are RFC 9457 problem+json:

{
  "type": "https://docs.frem.sh/reference/api/errors/invalid-reason",
  "title": "Bad Request",
  "status": 400,
  "detail": "..."
}

Branch on type, not on title or detail - those are human-readable and may be reworded.