Submit Simulator Reversal
POST/api/simulator/reverse
This endpoint can be used to test reversing a transaction on a simulated card network
Request
- application/json
Body
required
- ReverseAuthorization
- ReverseClearing
oneOf
requestMsg returned by the Simulator Authorization endpoint
requestMsg returned by the Simulator Clearing endpoint
Possible values: [purchase
, refund
]
Transaction type.
Amount that replaces the amount on the prior authorize or clear requests. An integer in the smallest denomination of the currency. If not provided the transaction will be reversed for the full amount of the authorization or clearing request.
Default value: USD
ISO 4217 currency code.
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
XML formatted ISO 8583 message sent to the simulated card scheme
XML formatted ISO 8583 message returned from the simulated card scheme
ID of the transaction
{
"requestMsg": "string",
"responseMsg": "string",
"transactionId": 0
}
Request fields are invalid
- application/json
- Schema
- Example (from schema)
Schema
{
"statusCode": 400,
"statusName": "Bad Request",
"errorCode": "BAD_REQUEST",
"errors": [
"Expected string, received number"
]
}
No Authorization to access resource.
- application/json
- Schema
- Example (from schema)
Schema
{
"statusCode": 403,
"statusName": "Forbidden",
"errorCode": "FORBIDDEN",
"reason": "Unauthorized"
}