---
updatedAt: 2026-10-07T16:46:14.000Z
agentTools:
  siteIndex: https://developers.pismo.io/llms.txt
  projectIndex: https://developers.pismo.io/pismo-docs/llms.txt
---

# Reverse BACS Direct Debit indemnity claim [beta]


Reverse a previously raised BACS Direct Debit indemnity claim.

Only a claim that has been delivery-confirmed (`status` = `CONFIRMED`) can be reversed. The reversal is persisted with `status` = `CREATED` and submitted asynchronously to the BACS scheme via Form3.

**Notes:**

  * The operation is idempotent via the `Idempotency-key` header.

  * Subsequent status transitions generate a [BACS direct debit claim reversal status changed](https://developers.pismo.io/events/docs/bacs-direct-debit-claim-reversal-status-change-1) event.
  
For more information, refer to the [BACS Direct Debut indemity claims](doc:bacs-direct-debit-indemity-claims) guide.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Payment rails - BACS payments",
    "description": "BACS payments system API",
    "contact": {
      "name": "API Support",
      "url": "https://developers.pismo.io/support/"
    },
    "license": {
      "name": "Copyright Pismo"
    },
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io/bacs",
      "description": "Sandbox API server for testing"
    }
  ],
  "tags": [
    {
      "name": "BACS direct debit"
    }
  ],
  "components": {
    "parameters": {
      "authHeader": {
        "name": "Authorization",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "Account token - access token encoded with a Pismo account ID. Tokens can expire quickly, which can result in a <b>401 Unauthorized</b> message\n",
        "required": true
      },
      "idempotencyKeyHeader": {
        "name": "Idempotency-key",
        "in": "header",
        "schema": {
          "type": "string",
          "maxLength": 32
        },
        "description": "A UUID (without hyphens) to ensure the operation remains idempotent, allowing for operation repetition without causing unintended effects or duplication. Identifies the transaction on future events.\n",
        "required": true
      },
      "claimIdPath": {
        "name": "id",
        "in": "path",
        "description": "Local claim ID (the Pismo-assigned ID returned when the claim was raised) of the claim to reverse",
        "required": true,
        "schema": {
          "type": "string",
          "maxLength": 36
        }
      }
    },
    "schemas": {
      "customer.DetailMessage": {
        "type": "object",
        "properties": {
          "external": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/customer.ExternalMessage"
            }
          },
          "parameters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/customer.ParameterMessage"
            }
          },
          "payload": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/customer.PayloadMessage"
            }
          }
        }
      },
      "customer.Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error's code.",
            "example": "EPT0001"
          },
          "details": {
            "$ref": "#/components/schemas/customer.DetailMessage"
          },
          "message": {
            "type": "string",
            "description": "Error's message.",
            "example": "User not found"
          }
        }
      },
      "customer.ExternalMessage": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "Code",
            "example": "PBE315"
          },
          "message": {
            "type": "string",
            "description": "Message",
            "example": "Generic error"
          }
        }
      },
      "customer.ParameterMessage": {
        "type": "object",
        "required": [
          "field",
          "message"
        ],
        "properties": {
          "field": {
            "type": "string",
            "description": "Field",
            "example": "Query parameter"
          },
          "message": {
            "type": "string",
            "description": "Message",
            "example": "Generic error"
          }
        }
      },
      "customer.PayloadMessage": {
        "type": "object",
        "required": [
          "field",
          "message"
        ],
        "properties": {
          "field": {
            "type": "string",
            "description": "Field",
            "example": "Entity.field"
          },
          "message": {
            "type": "string",
            "description": "Message",
            "example": "Generic error"
          }
        }
      },
      "claim.id": {
        "type": "string",
        "description": "Pismo-assigned local claim ID",
        "example": "019e92ec-3362-7c54-9d17-89f5542a06e4"
      },
      "claim.status": {
        "type": "string",
        "description": "DDIC claim / claim-reversal lifecycle status_reason:\n\n  * `CREATED`—Claim persisted, pending submission to the scheme via Form3.\n\n  * `PROCESSING`—Claim submitted and in flight through Form3 / the scheme.\n\n  * `CONFIRMED`—Claim delivery confirmed by the scheme. Terminal state.\n\n  * `FAILED`—Claim rejected or failed validation/submission. Terminal state.\n",
        "enum": [
          "CREATED",
          "PROCESSING",
          "CONFIRMED",
          "FAILED"
        ],
        "example": "CREATED"
      },
      "claim.RaiseReversalRequest": {
        "type": "object",
        "description": "Payload to create a delivery-confirmed DDIC claim reversal.",
        "required": [
          "original_instruction_id"
        ],
        "properties": {
          "original_instruction_id": {
            "type": "string",
            "maxLength": 20,
            "pattern": "^[A-Za-z0-9]{1,20}$",
            "description": "Claim being reversed's DDIC claim sequence number, as shown on the Bacs DDIC submission report. Letters and digits only. Forwarded to the scheme.",
            "example": "0000000000001234"
          },
          "reason": {
            "$ref": "#/components/schemas/reversalReason"
          }
        }
      },
      "claim.RaiseReversalResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Pismo-assigned local claim-reversal ID",
            "example": "019e9300-1111-7c54-9d17-89f5542a06e4"
          },
          "claim_id": {
            "$ref": "#/components/schemas/claim.id"
          },
          "status": {
            "$ref": "#/components/schemas/claim.status"
          }
        }
      },
      "reversalReason": {
        "type": "string",
        "maxLength": 255,
        "description": "Free-text reason for reversal",
        "example": "Claim raised in error"
      }
    }
  },
  "paths": {
    "/v1/payments/bacs/directdebit/claims/reversal/{id}": {
      "post": {
        "summary": "Reverse BACS Direct Debit indemnity claim [beta]",
        "description": "\nReverse a previously raised BACS Direct Debit indemnity claim.\n\nOnly a claim that has been delivery-confirmed (`status` = `CONFIRMED`) can be reversed. The reversal is persisted with `status` = `CREATED` and submitted asynchronously to the BACS scheme via Form3.\n\n**Notes:**\n\n  * The operation is idempotent via the `Idempotency-key` header.\n\n  * Subsequent status transitions generate a [BACS direct debit claim reversal status changed](https://developers.pismo.io/events/docs/bacs-direct-debit-claim-reversal-status-change-1) event.\n  \nFor more information, refer to the [BACS Direct Debut indemity claims](doc:bacs-direct-debit-indemity-claims) guide.\n",
        "operationId": "post-raise-claim-reversal",
        "tags": [
          "BACS direct debit"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/authHeader"
          },
          {
            "$ref": "#/components/parameters/idempotencyKeyHeader"
          },
          {
            "$ref": "#/components/parameters/claimIdPath"
          }
        ],
        "requestBody": {
          "description": "Raise claim reversal request body",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/claim.RaiseReversalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Claim reversal created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/claim.RaiseReversalResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customer.Error"
                },
                "examples": {
                  "EBACS0004": {
                    "summary": "Validation Error",
                    "value": {
                      "code": "EBACS0004",
                      "message": "Validation error"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customer.Error"
                },
                "examples": {
                  "EBACS0002": {
                    "summary": "Missing Tenant Header",
                    "value": {
                      "code": "EBACS0002",
                      "message": "Missing required header: 'x-tenant'"
                    }
                  },
                  "EBACS0085": {
                    "summary": "Missing Account Id",
                    "value": {
                      "code": "EBACS0085",
                      "message": "Missing required account-id"
                    }
                  },
                  "EBACS0086": {
                    "summary": "Missing Idempotency Key",
                    "value": {
                      "code": "EBACS0086",
                      "message": "Missing required header: 'Idempotency-Key'"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customer.Error"
                },
                "examples": {
                  "EBACS0107": {
                    "summary": "Claim Not Found",
                    "value": {
                      "code": "EBACS0107",
                      "message": "Claim not found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customer.Error"
                },
                "examples": {
                  "EBACS0108": {
                    "summary": "Claim Reversal Not Allowed",
                    "value": {
                      "code": "EBACS0108",
                      "message": "Claim reversal not allowed: claim must be CONFIRMED (delivery confirmed)"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customer.Error"
                },
                "examples": {
                  "EBACS0003": {
                    "summary": "Internal Error",
                    "value": {
                      "code": "EBACS0003",
                      "message": "Internal error"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```