Skip to main content

Reverse a transaction

POST 

/api/simulator/reverse

This endpoint can be used to test reversing a transaction on a simulated card network

Request

Body

required

    oneOf

    authorizationRequestMsg stringrequired

    requestMsg returned by the Authorize a transaction endpoint

    transactionType stringrequired

    Possible values: [purchase]

    Transaction type

    reversalAmount stringrequired

    Amount to reverse on the prior authorize or clear requests. An integer in the smallest denomination of USD.

    fxReversalAmount

    object

    fxAmount can be specified to process the transaction in a currency other than USD

    amount stringrequired

    Amount to reverse on the prior authorize or clear requests specified in the acquirers currency. An integer in the smallest denomination for the given currency. Convert the reversalAmount from USD to the desired currency.

    currencyCode stringrequired

    ISO 4217 currency code

Responses

Schema

    requestMsg string

    XML formatted ISO 8583 message sent to the simulated card scheme

    responseMsg string

    XML formatted ISO 8583 message returned from the simulated card scheme

    transactionId number

    ID of the transaction

Loading...