---
updatedAt: 2025-06-04T21:11:40.000Z
agentTools:
  projectIndex: https://developer.fundraisingbox.com/llms.txt
---

# /receipts/:id/invalidate.json

Invalidate existing receipt.

Invalidate a donation receipt and switch its status to "invalidated". An optional reason could be given.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "json-rest-api",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.fundraisingbox.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/receipts/{id}/invalidate.json": {
      "post": {
        "summary": "/receipts/:id/invalidate.json",
        "description": "Invalidate existing receipt.",
        "operationId": "receipts-invalidate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Person ID (this is the loser)",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invalidation_reason": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"id\": 93,\n  \"number\": 69,\n  \"sent_date\": null,\n  \"sent_by\": null,\n  \"type\": \"single\",\n  \"donation_date\": \"2023-04-17 23:56:09\",\n  \"amount\": 6,\n  \"amount_in_words_de\": \"Sechs Komma Null Null\",\n  \"amount_in_words_en\": \"Six Point Zero Zero\",\n  \"error_status\": null,\n  \"date\": \"2023-08-21 16:05:04\",\n  \"salutation\": \"Mr.\",\n  \"title\": null,\n  \"first_name\": \"John\",\n  \"last_name\": \"Doe\",\n  \"company_name\": \"\",\n  \"address\": \"Teststreet 123\",\n  \"postcode\": \"12345\",\n  \"city\": \"Dummy City\",\n  \"country\": \"DE\",\n  \"download_link\": \"https://secure.fundraisingbox.com/receipts/download/93/a1104210a38a4f087148636832c49de0\",\n  \"status\": \"invalidated\",\n  \"invalidation_reason\": \"This is a reason\",\n  \"invalidation_date\" : \"2023-10-12 12:16:34\",\n  \"fb_custom_fields\": [{}]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 93,
                      "default": 0
                    },
                    "number": {
                      "type": "integer",
                      "example": 69,
                      "default": 0
                    },
                    "sent_date": {},
                    "sent_by": {},
                    "type": {
                      "type": "string",
                      "example": "single"
                    },
                    "donation_date": {
                      "type": "string",
                      "example": "2023-04-17 23:56:09"
                    },
                    "amount": {
                      "type": "integer",
                      "example": 6,
                      "default": 0
                    },
                    "amount_in_words_de": {
                      "type": "string",
                      "example": "Sechs Komma Null Null"
                    },
                    "amount_in_words_en": {
                      "type": "string",
                      "example": "Six Point Zero Zero"
                    },
                    "error_status": {},
                    "date": {
                      "type": "string",
                      "example": "2023-08-21 16:05:04"
                    },
                    "salutation": {
                      "type": "string",
                      "example": "Mr."
                    },
                    "title": {},
                    "first_name": {
                      "type": "string",
                      "example": "John"
                    },
                    "last_name": {
                      "type": "string",
                      "example": "Doe"
                    },
                    "company_name": {
                      "type": "string",
                      "example": ""
                    },
                    "address": {
                      "type": "string",
                      "example": "Teststreet 123"
                    },
                    "postcode": {
                      "type": "string",
                      "example": "12345"
                    },
                    "city": {
                      "type": "string",
                      "example": "Dummy City"
                    },
                    "country": {
                      "type": "string",
                      "example": "DE"
                    },
                    "download_link": {
                      "type": "string",
                      "example": "https://secure.fundraisingbox.com/receipts/download/93/a1104210a38a4f087148636832c49de0"
                    },
                    "status": {
                      "type": "string",
                      "example": "invalidated"
                    },
                    "invalidation_reason": {
                      "type": "string",
                      "example": "This is a reason"
                    },
                    "invalidation_date": {
                      "type": "string",
                      "example": "2023-10-12 12:16:34"
                    },
                    "fb_custom_fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```