Skip to main content
POST
/
cards
/
simulate-partial-reversal
Simulate a partial reversal of an authorized transaction
curl --request POST \
  --url https://access.utgl.io/v1/cards/simulate-partial-reversal \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cardAccountId": "b8e2752d-6bd7-4244-a9f6-580f5640eaeb",
  "cardTransactionId": "c8e2752d-6bd7-4244-a9f6-580f5640eaeb",
  "amount": 80
}
'
{
  "cardTransactionId": "8188d920-2c17-4aba-aa24-6a25f8c12ddb"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
cardAccountId
string
required

The card account ID to partially reverse

Example:

"b8e2752d-6bd7-4244-a9f6-580f5640eaeb"

cardTransactionId
string
required

The transaction ID to partially reverse

Example:

"c8e2752d-6bd7-4244-a9f6-580f5640eaeb"

amount
number
required

The amount after partial reversal is done

Example:

80

Response

200 - application/json

Partial reversal transaction submitted

cardTransactionId
string

The ID of the partially reversed transaction

Example:

"8188d920-2c17-4aba-aa24-6a25f8c12ddb"