---
title: Retail chargeback update
slug: public-apis/retail-chargeback-update
createdAt: 2026-08-28T21:38:58.682Z
---

{
  "id": "PNt5zjkpdfdi8SQVF3zCd",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.accertify.net/api/v1/unified-risk/retail/chargebackUpdate",
    "name": "Retail chargeback update",
    "description": "Records or updates the chargeback status and resolution outcome for a previously scored transaction.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "chargebackUpdate",
          "type": "object",
          "example": "{\"transactionID\":\"ABC123456\",\"chargebackStatus\":\"received\",\"chargebackResolution\":\"fraud\",\"chargebackAmount\":1082.91,\"chargebackAmountCurrencyCode\":\"USD\",\"chargebackReasonCodeGroup\":\"fraud\"}",
          "description": "",
          "schema": [
            {
              "name": "transactionID",
              "kind": "required",
              "type": "string",
              "description": "<p>[Required] Unique transaction identifier (max 40 chars).</p>",
              "example": "ABC123456"
            },
            {
              "name": "chargebackStatus",
              "kind": "required",
              "type": "string<accepted | disputed | lost | received | won>",
              "description": "<p>[Required] Current status of the chargeback.</p>",
              "example": "received",
              "enum": [
                "accepted",
                "disputed",
                "lost",
                "received",
                "won"
              ]
            },
            {
              "name": "chargebackResolution",
              "kind": "required",
              "type": "string<fraud | nonFraud>",
              "description": "<p>[Required] Resolution outcome of the chargeback.</p>",
              "example": "fraud",
              "enum": [
                "fraud",
                "nonFraud"
              ]
            },
            {
              "name": "chargebackAmount",
              "kind": "required",
              "type": "number",
              "description": "<p>[Required] Monetary amount of the chargeback; positive number.</p>",
              "example": 1082.91,
              "minimum": 0,
              "exclusiveMinimum": true
            },
            {
              "name": "chargebackAmountCurrencyCode",
              "kind": "required",
              "type": "string",
              "description": "<p>[Required] ISO 4217 three-letter currency code for the chargeback amount.</p>",
              "example": "USD"
            },
            {
              "name": "chargebackReasonCodeGroup",
              "kind": "optional",
              "type": "string",
              "description": "<p>[Optional] Reason code group categorizing the nature of the chargeback.</p>",
              "example": "fraud"
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "oauthBearer",
          "name": "Authorization",
          "kind": "optional",
          "type": "apiKey",
          "description": "<p>OAuth 2.0 Bearer token, e.g. 'Bearer '.</p>",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful response.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Successful response.",
            "customType": "notScoredResult",
            "schema": [
              {
                "name": "eventID",
                "kind": "optional",
                "type": "string",
                "description": ""
              },
              {
                "name": "messages",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/definitions/apiMessages",
                "customType": "apiMessages",
                "schema": [
                  {
                    "name": "error",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "modelRef": "#/definitions/apiMessage",
                    "customType": "apiMessage[]",
                    "schema": [
                      {
                        "name": "code",
                        "kind": "required",
                        "type": "string",
                        "description": "<p>Machine-readable message code</p>",
                        "example": "FIELD_REQUIRED_MISSING"
                      },
                      {
                        "name": "message",
                        "kind": "required",
                        "type": "string",
                        "description": "<p>Human-readable message</p>",
                        "example": "transactionID is required and was not provided"
                      },
                      {
                        "name": "field",
                        "kind": "optional",
                        "type": "string",
                        "description": "Name of the field this message applies to",
                        "example": "transactionID"
                      },
                      {
                        "name": "details",
                        "kind": "optional",
                        "type": "map",
                        "description": "Structured detail keys.",
                        "example": "",
                        "customType": "map<string, string>",
                        "schema": []
                      }
                    ]
                  },
                  {
                    "name": "warning",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "modelRef": "#/definitions/apiMessage",
                    "customType": "apiMessage[]",
                    "schema": [
                      {
                        "name": "code",
                        "kind": "required",
                        "type": "string",
                        "description": "<p>Machine-readable message code</p>",
                        "example": "FIELD_REQUIRED_MISSING"
                      },
                      {
                        "name": "message",
                        "kind": "required",
                        "type": "string",
                        "description": "<p>Human-readable message</p>",
                        "example": "transactionID is required and was not provided"
                      },
                      {
                        "name": "field",
                        "kind": "optional",
                        "type": "string",
                        "description": "Name of the field this message applies to",
                        "example": "transactionID"
                      },
                      {
                        "name": "details",
                        "kind": "optional",
                        "type": "map",
                        "description": "Structured detail keys.",
                        "example": "",
                        "customType": "map<string, string>",
                        "schema": []
                      }
                    ]
                  },
                  {
                    "name": "info",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "modelRef": "#/definitions/apiMessage",
                    "customType": "apiMessage[]",
                    "schema": [
                      {
                        "name": "code",
                        "kind": "required",
                        "type": "string",
                        "description": "<p>Machine-readable message code</p>",
                        "example": "FIELD_REQUIRED_MISSING"
                      },
                      {
                        "name": "message",
                        "kind": "required",
                        "type": "string",
                        "description": "<p>Human-readable message</p>",
                        "example": "transactionID is required and was not provided"
                      },
                      {
                        "name": "field",
                        "kind": "optional",
                        "type": "string",
                        "description": "Name of the field this message applies to",
                        "example": "transactionID"
                      },
                      {
                        "name": "details",
                        "kind": "optional",
                        "type": "map",
                        "description": "Structured detail keys.",
                        "example": "",
                        "customType": "map<string, string>",
                        "schema": []
                      }
                    ]
                  }
                ]
              },
              {
                "name": "status",
                "kind": "required",
                "type": "boolean",
                "description": "true when there are no errors"
              }
            ],
            "modelRef": "#/definitions/notScoredResult",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Error response for invalid or missing request inputs. Returned when one or more required fields are absent or fail validation.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Error response for invalid or missing request inputs. Returned when one or more required fields are absent or fail validation.",
            "customType": "validationFailedError",
            "schema": [
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "integer",
                "description": "HTTP status code for the validation error.",
                "example": 400
              },
              {
                "name": "errorMessage",
                "kind": "optional",
                "type": "string",
                "description": "<p>Human-readable summary of the validation error.</p>",
                "example": "Validation Failed"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "description": "Validation error details for the request.",
                "example": "[\"Missing required field: transactionID\"]",
                "itemType": "string",
                "customType": "string[]",
                "itemExample": "",
                "itemDefault": ""
              }
            ],
            "modelRef": "#/definitions/validationFailedError",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Error response for authentication or authorization failures. Returned when credentials are invalid or the authenticated user has no matching API configuration for this endpoint.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Error response for authentication or authorization failures. Returned when credentials are invalid or the authenticated user has no matching API configuration for this endpoint.",
            "customType": "notAuthorizedError",
            "schema": [
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "integer",
                "description": "HTTP status code for the authentication or authorization error.",
                "example": 401
              },
              {
                "name": "errorMessage",
                "kind": "optional",
                "type": "string",
                "description": "<p>Human-readable summary of the authentication or authorization error.</p>",
                "example": "Not Authorized"
              }
            ],
            "modelRef": "#/definitions/notAuthorizedError",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "429",
        "description": "Error response when the request rate limit has been exceeded for the API user or API configuration.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Error response when the request rate limit has been exceeded for the API user or API configuration.",
            "customType": "rateLimitError",
            "schema": [
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "integer",
                "description": "<p>HTTP status code for the rate-limit error.</p>",
                "example": 429
              },
              {
                "name": "errorMessage",
                "kind": "optional",
                "type": "string",
                "description": "<p>Human-readable summary of the rate-limit error.</p>",
                "example": "Rate Limit Exceeded"
              }
            ],
            "modelRef": "#/definitions/rateLimitError",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "Error response when the request cannot be processed due to an unexpected internal error.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Error response when the request cannot be processed due to an unexpected internal error.",
            "customType": "internalServerError",
            "schema": [
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "integer",
                "description": "HTTP status code for the internal server error.",
                "example": 500
              },
              {
                "name": "errorMessage",
                "kind": "optional",
                "type": "string",
                "description": "<p>Human-readable summary of the internal server error.</p>",
                "example": "Internal Server Error"
              }
            ],
            "modelRef": "#/definitions/internalServerError",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.accertify.net/api/v1/unified-risk/retail/chargebackUpdate \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"transactionID\": \"ABC123456\",\n     \"chargebackStatus\": \"received\",\n     \"chargebackResolution\": \"fraud\",\n     \"chargebackAmount\": 1082.91,\n     \"chargebackAmountCurrencyCode\": \"USD\"\n     }'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"transactionID\": \"ABC123456\",\n   \"chargebackStatus\": \"received\",\n   \"chargebackResolution\": \"fraud\",\n   \"chargebackAmount\": 1082.91,\n   \"chargebackAmountCurrencyCode\": \"USD\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.accertify.net/api/v1/unified-risk/retail/chargebackUpdate\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.accertify.net/api/v1/unified-risk/retail/chargebackUpdate\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"transactionID\": \"ABC123456\",\n   \"chargebackStatus\": \"received\",\n   \"chargebackResolution\": \"fraud\",\n   \"chargebackAmount\": 1082.91,\n   \"chargebackAmountCurrencyCode\": \"USD\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.accertify.net/api/v1/unified-risk/retail/chargebackUpdate\"\n\npayload = json.dumps({\n   \"transactionID\": \"ABC123456\",\n   \"chargebackStatus\": \"received\",\n   \"chargebackResolution\": \"fraud\",\n   \"chargebackAmount\": 1082.91,\n   \"chargebackAmountCurrencyCode\": \"USD\"\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Successful response.\n{\n  \"eventID\": \"\",\n  \"messages\": {\n    \"error\": [\n      {\n        \"code\": \"FIELD_REQUIRED_MISSING\",\n        \"message\": \"transactionID is required and was not provided\",\n        \"field\": \"transactionID\",\n        \"details\": \"\"\n      }\n    ],\n    \"warning\": [\n      {\n        \"code\": \"FIELD_REQUIRED_MISSING\",\n        \"message\": \"transactionID is required and was not provided\",\n        \"field\": \"transactionID\",\n        \"details\": \"\"\n      }\n    ],\n    \"info\": [\n      {\n        \"code\": \"FIELD_REQUIRED_MISSING\",\n        \"message\": \"transactionID is required and was not provided\",\n        \"field\": \"transactionID\",\n        \"details\": \"\"\n      }\n    ]\n  },\n  \"status\": false\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// Error response for invalid or missing request inputs. Returned when one or more required fields are absent or fail validation.\n{\n  \"errorCode\": 400,\n  \"errorMessage\": \"Validation Failed\",\n  \"errors\": [\n    \"\"\n  ]\n}"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// Error response for authentication or authorization failures. Returned when credentials are invalid or the authenticated user has no matching API configuration for this endpoint.\n{\n  \"errorCode\": 401,\n  \"errorMessage\": \"Not Authorized\"\n}"
        },
        {
          "id": "response-3-429",
          "language": "429",
          "code": "// Error response when the request rate limit has been exceeded for the API user or API configuration.\n{\n  \"errorCode\": 429,\n  \"errorMessage\": \"Rate Limit Exceeded\"\n}"
        },
        {
          "id": "response-4-500",
          "language": "500",
          "code": "// Error response when the request cannot be processed due to an unexpected internal error.\n{\n  \"errorCode\": 500,\n  \"errorMessage\": \"Internal Server Error\"\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}