Payment Refund

Note: Please be sure you are not sending amount and currency for full refund. If your account does not support partitial refund your request will be declined.

Live URL : https://api.openpaydpsp.com/pw/v3/payment/refund
Test URL : https://testapi.openpaydpsp.com/pw/v3/payment/refund

The refund request will try to make the transaction refund, if it’s possible. If you make refund process via API, you will get the result straight away. Refund status will not come with IPN.

Request

Parameter NameDetailExampleTypeIs Required
apiKeyYour Api Key provided from us.4d41d21a935f5bba9dee7c7be4a7ca04Char 32
transactionIdOur unique transaction identifier.529-1438673740-2Char 32
referenceNoYour own transaction identifier.1-1386413490-0089-14Char 32
amountAmount in cents of the transaction.1234 for 12.34 € 1550 for 15.50 USDInt
currencyThe currency of transaction.EURChar 3

Response

Parameter NameDetailExampleTypeIs Required
codeError Code Number00Int
statusResponse statusAPPROVEDChar 32
messageResponse messageApprovedChar 32
transactionIdOur unique transaction identifier.12345-1234567890-123Char 32
referenceNoYour own transaction identifier.123456Char 32
amountAmount in cents of the transaction.1234 for 12.34 € 1550 for 15.50 USDInt
currencyThe currency of transaction.EURChar 3
dateTransaction timestamp1476187198Int
isLiveThe Transaction live statusfalseBoolean

APPROVED Response Example

{
	"code": "00",
	"status": "APPROVED",
	"message": "Approved",
	"transactionId": "12345-1234567890-123",
	"referenceNo": "123456",
	"amount": "1234",
	"currency": "EUR",
	"date": 1476187198,
	"isLive": false
}

DECLINED Response Example

{
	"code": 32,
	"status": "DECLINED",
	"message": "Already refunded",
	"transactionId": "12345-1234567890-123",
	"referenceNo": "123456",
	"amount": "1234",
	"currency": "EUR",
	"date": 1476187472
}
📘

Refundable Payment Methods

  • CREDITCARD
  • VISA

All other payment methods are non-refundable. If you try to make a refund with any of non-refundable methods, you will get Error response.

Partial Refund
You can use optional amount and currency parameter for partial refund.

As default partial refund is disabled on our system. If you would like to use this feature, please inform us before start to using it.


Did this page help you?