PaymonetraDocs

Send a refund

Money back to the account that paid, never anywhere else.

POSThttps://api.paymonetra.com/v1/refundsSecret key

Send your secret key: Authorization: Bearer sk_live_…. See authentication.

  • payment_reference (required): the reference from collection.success.
  • amount (optional): leave it out to refund what is left of the payment.
  • reference (optional, recommended): your own id, up to 100 letters, digits, dots, dashes or underscores. Sending it again returns the first refund with 200 instead of making a second one. A failed refund keeps its reference, so try again under a new one.
  • reason (optional): kept for you; the payer never sees it.

201 with the refund, or 200 when reference already made it.

status is success, processing or failed. processing means the bank has not answered yet: wait for the webhook or read the refund again, and never refund again under a new reference. That is how a payer gets paid twice.

A payment with an open dispute is refunded through its dispute: the money the dispute holds pays for it, the dispute closes as refunded, and dispute_reference is set. It can only be refunded in full, so leave amount out (422 with field: "amount" otherwise).