PaygateDeveloper documentation
422payments.invalid_reason_codepayments

The refund reason_code is not one of the reason codes

Returned by the implementation; no specification rule declares it yet.

A refund carries a reason_code beside its free-text reason. The code must be one of these integers:

CodeMeaning
100The payer was charged twice
101The payment was fraudulent
102The payer asked for the money back
103The goods or service were not delivered
104Defective, or not as described
105The order was canceled
106The wrong amount was charged
999Any other reason, described in reason

Why the API refuses

reason_code is not one of the refund reason codes

What to do

  • Send one of the codes above, or leave reason_code out: a request that names no code is 999, so a caller that only sends reason keeps working.
  • For 999, put the detail in reason (up to 255 characters); it is free text, so keep personal data out of it.
  • Do not send 900. It is reserved for the sample data that POST /test/seed creates.

Operations that can return it