Refund

PUT/n1/merchant/{merchantId}/payment/{paymentId}/refund

MEDIA TYPE: application/json
amount
number

Transaction Amount. Expressed as a decimal number in the units of the currency. For example 12.34 in USD is the amount 12 dollars and 34 cents. Must be a string consisting of characters 0-9 and '.' representing a valid decimal number. Length: 1-14 characters.

example: 181.95
nullable
currency
string

The currency of the transaction expressed as an ISO 4217 alpha code, e.g. USD. Must consist of uppercase letters A-Z only. Length: exactly 3 characters.

example: "USD"
nullable
targetTransactionId
string

The identifier for the transaction you wish to refund ('id' field returned in transaction responses). Can consist of any characters. Length: 1-40 characters.

nullable

terminal
string

Card Present terminal ID

nullable

RESPONSE SCHEMA: application/json
id
string
example: "6058d9e1-e7f0-3db7-8804-58c4a0ad61b0"
operation
string
example: "REFUND"
type
string
example: "REFUND"
result
string
example: "SUCCESS"
amount
number
example: 118.82
currency
string
example: "USD"

authorizationAdjustmentActions
string
example: "INCREMENT"
gatewayCode
string
example: "APPROVED"
avsCode
string
example: "ADDRESS_MATCH"
cscCode
string
example: "MATCH"
stan
string
example: "933952"
source
string
example: "INTERNET"
terminal
string
example: "is"

Request

shell
https://api.prahsys.com/payments/n1/merchant/{merchantId}/payment/{paymentId}/refund
Loading…

Response