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: 716.18
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: "30a5c22f-2aca-3e79-9b56-e2d34f27fade"
operation
string
example: "REFUND"
type
string
example: "REFUND"
result
string
example: "SUCCESS"
amount
number
example: 617.95
currency
string
example: "USD"

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

Request

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

Response