Create a simulated reversal
POST
/issuing/simulations/{accountID}/authorizations/{authorizationID}/reversals
Create a simulated reversal for an authorization on an issued card in test mode. See our test mode guide for more information.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/issued-cards.write scope.
curl -X POST "https://api.moov.io/issuing/simulations/{accountID}/authorizations/{authorizationID}/reversals" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2027.01.00"mc, _ := moov.NewClient()
ic := mv2610.NewCardIssuingClient(mc)
var accountID string
var authorizationID string
ic.SimulateReversal(ctx, accountID, authorizationID)
The request completed successfully.
{
"authorizationID": "string",
"issuedCardID": "string",
"lastFourCardNumber": "stri",
"authorizedUserAccountID": "string",
"fundingWalletID": "string",
"network": "discover",
"authorizedAmount": "-14.89",
"status": "pending",
"merchantData": {
"networkID": "111111111111111",
"name": "Whole Body Fitness",
"city": "San Francisco",
"country": "US",
"postalCode": "94107",
"state": "CA",
"mcc": "7298"
},
"createdOn": "2019-08-24T14:15:22Z",
"cardTransactions": [
"string"
],
"declineReason": "insufficient-funds"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The resource was successfully accepted.
{
"authorizationID": "string"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The server could not understand the request due to invalid syntax.
{
"error": "string"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request contained missing or expired authentication.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The user is not authorized to make the request.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The requested resource was not found.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request conflicted with the current state of the target resource.
{
"error": "string"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Request was refused due to rate limiting.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed due to an unexpected error.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed because a downstream service failed to respond.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Headers
X-Moov-Version
string
Set this header to v2027.01.00 to use the API described in this specification.
When omitted, the server defaults to v2024.01.00, the earliest supported version, which may not match the behavior documented here.
An unrecognized well-formed version uses the latest supported version that is not newer than the requested version, when one exists.
For example,
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
Possible values:
v2027.01.00
Path parameters
Response
authorizedAmount
string<^\d+\.\d{1,2}$>
required
A decimal-formatted numerical string that represents up to 2 decimal place precision. In USD for example, 12.34 is $12.34 and 0.99 is $0.99.
network
string<enum>
required
The name of the network a card transaction is routed through.
Possible values:
discover,
shazam,
visa
status
string<enum>
required
Status of a card issuing authorization.
Possible values:
pending,
declined,
canceled,
cleared,
expired
declineReason
string<enum>
The reason an authorization or authorization event was declined. Only present if the
authorization or event has been declined.
Possible values:
insufficient-funds,
card-not-active,
card-expiration,
spend-cutoff-reached,
outside-allowed-schedule,
spend-limit-exceeded,
merchant-category-not-supported,
merchant-category-restricted,
merchant-restricted,
merchant-country-not-supported,
unsupported-transaction,
network-stand-in,
declined-by-issuer,
invalid-request,
system-error