Money refund

Money refund
  • Money refund can be used to partially return money to the same credit card used in the invoice payment or another, specified in the request.
  • Money refund can be performed multiple times, if the refunded sum does not exceed the amount of initial invoice payment.
Money refund request description and example
  • Method: POST , URL: /invoice/refund/{invoice_ref}
Field Usage Description
amount M Reversal amount (big decimal)
currency M Payment currency (string)
pan Card number to refund money to. If it is not appointed, then money will be refunded to original payment card. (string)
expiry Card number expiration date in format MMYY. Mandatory if PAN is appointed.
  • Fields for signature calculation:
Request example:
  "amount": 15.00,
  "currency": "EUR",
  "expiry": "0118",
  "pan": "4314220000000049"
Money refund response description and example
Money refund response is similar to reversal response:
Field Description
id transaction identifier
amount Transaction initial amount
payment_id Reversal payment identifier
target_payment_id Additional payment identifier
currency transaction currency
minor_amount value given to the lower currency units
created_date Invoice creating date (datetime)
updated_date Latest update date (datetime)
transaction_type REFUND
status Current status of invoice
error_code Code of error
error_message Description of error
shop_code Code of shop
invoice_ref Initial invoice reference
Money refund response example:
  "id": 2752,
  "amount": 15.00,
  "payment_id": "19708749",
  "target_payment_id": null,
  "currency": "EUR",
  "minor_amount": 1500,
  "created_date": "2017-03-29T15:51:20.042Z",
  "updated_date": "2017-03-29T15:51:20.042Z",
  "transaction_type": "REFUND",
  "status": "SUCCEEDED",
  "error_code": null,
  "error_message": null,
  "shop_code": "TEST",
  "invoice_ref": "3GOitGNxc2sL6ClWbHW82oblQ"