> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chargeblast.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Alert

> Update the status of an alert to inform the issuing bank whether a refund will be issued. If an alert is left unactioned for 48 hours, it will be automatically declined. For the best outcome, mark alerts as resolved within 24 hours of receiving them (some smaller banks will escalate quarantined transactions as soon as 24 hours within propagating an alert). Although our API allows multiple status updates, only the first response is recognized and acted upon by the issuing bank. Optionally pass `automatically_request_credit: true` with a credit-eligible reason code to request and auto-grant a credit when eligible; when a credit is granted the response body includes `credit_granted: true`.

> [!NOTE]
>
> See the full list of available reason codes and their descriptions in the [Reason Codes Reference](https://docs.chargeblast.com/reference/reason-codes.md).

## Automatically request credit

Set `automatically_request_credit` to `true` to request and auto-grant a credit when the reason code is credit-eligible (`AlreadyRefunded`, `AlreadyChargeback`, `MIDLost`, `ResolvedCancelled`, `UnmatchedCannotFindTransaction`) and the merchant/alert qualify (including that the merchant is not on bill-per-resolved pricing). If a credit will not be granted, no credit request is created. When a credit is granted, the response includes `credit_granted: true` and `credit_request_id`.

See [Update Alert](https://docs.chargeblast.com/reference/alerts-update) for eligibility details.


## OpenAPI

````yaml post /api/v2/alerts/update/{id}
openapi: 3.0.1
info:
  title: Chargeblast API
  version: 0.1.0
servers:
  - url: https://api.chargeblast.com
security: []
tags:
  - name: Credit Requests
  - name: Sync Data
  - name: Alerts
  - name: Disputes
  - name: Enrollment
paths:
  /api/v2/alerts/update/{id}:
    post:
      tags:
        - Alerts
      summary: Update Alert
      description: >-
        Update the status of an alert to inform the issuing bank whether a
        refund will be issued. If an alert is left unactioned for 48 hours, it
        will be automatically declined. For the best outcome, mark alerts as
        resolved within 24 hours of receiving them (some smaller banks will
        escalate quarantined transactions as soon as 24 hours within propagating
        an alert). Although our API allows multiple status updates, only the
        first response is recognized and acted upon by the issuing bank.
        Optionally pass `automatically_request_credit: true` with a
        credit-eligible reason code to request and auto-grant a credit when
        eligible; when a credit is granted the response body includes
        `credit_granted: true`.
      operationId: alerts-update
      parameters:
        - name: X-API-Key
          required: true
          in: header
          schema:
            type: string
          description: Your API key. Sent in the `X-API-Key` header.
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AlertUpdateBodyOpenAPI'
        required: true
      responses:
        '200':
          description: >-
            OK. Empty object when no credit was granted; includes
            `credit_granted` when an automatic credit was issued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertUpdateResponse'
components:
  schemas:
    AlertUpdateBodyOpenAPI:
      properties:
        result:
          $ref: '#/components/schemas/AlertReasonCode'
        action_at_expiration:
          type: boolean
          default: false
          description: >-
            When set to true, the alert will be actioned at the point of
            expiration rather than immediately. If the alert is actioned with a
            different reason code before the expiration date, this action is
            disregarded. Intended for sending unidentified alert updates where a
            manual search process is also implemented. Note: If the action code
            is 'resolved', this field will be disregarded and the alert will be
            actioned as resolved immediately.
        automatically_request_credit:
          type: boolean
          default: false
          description: >-
            When true, automatically request and grant a credit if the reason
            code is credit-eligible (`AlreadyRefunded`, `AlreadyChargeback`,
            `MIDLost`, `ResolvedCancelled`, `UnmatchedCannotFindTransaction`)
            and the merchant/alert qualify (not on bill-per-resolved pricing,
            not RDR, alert age ≤ 7 days, no existing credit). If a credit will
            not be granted, no credit request is opened. When a credit is
            granted, the response includes `credit_granted: true` and
            `credit_request_id`.
      required:
        - result
      type: object
    AlertUpdateResponse:
      type: object
      properties:
        credit_granted:
          type: boolean
          description: >-
            True when a credit was automatically requested and granted for this
            update. Omitted when no credit was granted.
        credit_request_id:
          type: string
          description: >-
            Id of the approved credit request when `credit_granted` is true
            (same as the alert id).
    AlertReasonCode:
      type: string
      enum:
        - Resolved
        - ResolvedPartial
        - ResolvedCancelled
        - AccountCancelled
        - CancellationProcessed
        - UnmatchedGeneral
        - UnmatchedCannotFindTransaction
        - Duplicate
        - MIDLost
        - AlreadyRefunded
        - AlreadyChargeback
        - Ineligible
        - TDS
        - CannotCancel
        - MatchedWillShip
        - EscalateChargeback
        - ContactedShipper
        - WIP
        - Error
        - None
        - NotMyDescriptor
        - Unactioned
        - ''

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.