---
title: Simulate card reversal
slug: crossriver-apis/cards/apis/simulate-card-reversal
description: Reverse an existing authorization using POST /cardmanagement/v1/simulate/reversal, removing it from the deposit account activity.
icon: {"apiMethod":"POST"}
createdAt: 2026-09-29T15:33:38.350Z
---

## API reference

This endpoint is used to reverse an existing authorization using the retrievalReferenceNumber returned in the authorization endpoint. This reverses the original authorization placed on the account and removes it from the deposit account activity. The amount in this request can be any value and does not have to be the same amount as the original clearing transaction, which allows for a partial amount reversal.

:::hint{type="info"}
This API can only be run in the Cross River [Sandbox](https://public.qa.archbee.co/crossriver/get-started/quickstart/sandbox)&#x20;
:::

:::ApiMethodV2
```json
{
  "name": "Endpoint: /cardmanagement/v1/simulate/reversal",
  "method": "POST",
  "url": "https://sandbox.crbcos.com/cardmanagement/v1/simulate/reversal",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "WJQTgOAuPddzxBwHanjiK",
        "language": "curl",
        "code": "curl --location 'https://sandbox.crbcos.com/cardmanagement/v1/simulate/reversal' \\\n--data '{\n  \"cardId\": \"8c6a53e0-83ad-4b76-b446-b300006a3e6a\",\n  \"retrievalReferenceNumber\": \"654492282074\",\n  \"amount\": \"123\"\n}'",
        "customLabel": ""
      },
      {
        "id": "Khs-3Vl2Kvo9_LGEhSZV_",
        "language": "nodejs",
        "code": "var https = require('follow-redirects').https;\nvar fs = require('fs');\n\nvar options = {\n  'method': 'POST',\n  'hostname': 'sandbox.crbcos.com',\n  'path': '/cardmanagement/v1/simulate/reversal',\n  'headers': {\n  },\n  'maxRedirects': 20\n};\n\nvar req = https.request(options, function (res) {\n  var chunks = [];\n\n  res.on(\"data\", function (chunk) {\n    chunks.push(chunk);\n  });\n\n  res.on(\"end\", function (chunk) {\n    var body = Buffer.concat(chunks);\n    console.log(body.toString());\n  });\n\n  res.on(\"error\", function (error) {\n    console.error(error);\n  });\n});\n\nvar postData =  \"{\\r\\n  \\\"cardId\\\": \\\"8c6a53e0-83ad-4b76-b446-b300006a3e6a\\\",\\r\\n  \\\"retrievalReferenceNumber\\\": \\\"654492282074\\\",\\r\\n  \\\"amount\\\": \\\"123\\\"\\r\\n}\";\n\nreq.write(postData);\n\nreq.end();",
        "customLabel": ""
      },
      {
        "id": "cwjoT8DKvUFLyB-Y9NlX2",
        "language": "python",
        "code": "import requests\n\nurl = \"https://sandbox.crbcos.com/cardmanagement/v1/simulate/reversal\"\n\npayload = \"{\\r\\n  \\\"cardId\\\": \\\"8c6a53e0-83ad-4b76-b446-b300006a3e6a\\\",\\r\\n  \\\"retrievalReferenceNumber\\\": \\\"654492282074\\\",\\r\\n  \\\"amount\\\": \\\"123\\\"\\r\\n}\"\nheaders = {}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "ytk_hVbhQLK21gbL8OK_z",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://sandbox.crbcos.com/cardmanagement/v1/simulate/reversal\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest.body = \"{\\r\\n  \\\"cardId\\\": \\\"8c6a53e0-83ad-4b76-b446-b300006a3e6a\\\",\\r\\n  \\\"retrievalReferenceNumber\\\": \\\"654492282074\\\",\\r\\n  \\\"amount\\\": \\\"123\\\"\\r\\n}\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "l7bh1-d1Sri8GJJvc8sJt",
        "language": "go",
        "code": "package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io\"\n)\n\nfunc main() {\n\n  url := \"https://sandbox.crbcos.com/cardmanagement/v1/simulate/reversal\"\n  method := \"POST\"\n\n  payload := strings.NewReader(`{`+\"\n\"+`\n  \"cardId\": \"8c6a53e0-83ad-4b76-b446-b300006a3e6a\",`+\"\n\"+`\n  \"retrievalReferenceNumber\": \"654492282074\",`+\"\n\"+`\n  \"amount\": \"123\"`+\"\n\"+`\n}`)\n\n  client := &http.Client {\n  }\n  req, err := http.NewRequest(method, url, payload)\n\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  res, err := client.Do(req)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  defer res.Body.Close()\n\n  body, err := io.ReadAll(res.Body)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  fmt.Println(string(body))\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "WJQTgOAuPddzxBwHanjiK"
  },
  "results": {
    "languages": [
      {
        "id": "dbsafFgKff2jE0bhPNJva",
        "language": "400",
        "customLabel": "",
        "code": "{\n    \"errors\": [\n        {\n            \"code\": 2350,\n            \"message\": \"Authorization already been cleared\"\n        }\n    ]\n}"
      }
    ],
    "selectedLanguageId": "dbsafFgKff2jE0bhPNJva"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "cardId",
        "kind": "required",
        "type": "string",
        "description": "GUID format card ID in the Cross River system, which is the id attribute value of the response to Create a card. This is not the number that appears on the card."
      },
      {
        "name": "retrievalReferenceNumber",
        "kind": "optional",
        "type": "string",
        "description": "Card network generated identifier used to uniquely track a transaction across systems"
      },
      {
        "name": "systemTraceAuditNumber",
        "kind": "optional",
        "type": "string",
        "description": "Unique transaction ID assigned by the acquirer of the transaction for audit purposes"
      },
      {
        "name": "amount",
        "kind": "optional",
        "type": "integer",
        "description": "Monetary value of the transaction in the transaction currency"
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "endpoint-cardmanagementv1simulatereversal",
  "legacyHash": "unv_-qe4bRDWltFygFYto"
}
```
:::

