---
title: Soft Delete a Sale and associated items
slug: soft-delete-a-sale-and-associated-items
docTags: 
createdAt: 2026-04-21T15:22:49.957Z
---

{
  "id": "Fjzm6FmeGIU7uAROl6y3I",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://developer.digitail.io/api/v1/sales",
    "servers": [
      {
        "url": "https://developer.digitail.io/api/v1/sales",
        "description": "Sandbox server (uses test data)"
      },
      {
        "url": "https://vet.digitail.io/api/v1/sales",
        "description": "Production server (uses live data)"
      }
    ],
    "name": "Soft Delete a Sale and associated items",
    "description": "<p>Permissions needed: DELETE_CHECKUPS, DELETE_PAYMENTS_ID, CREATE_INVOICES_CASHING</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "id",
          "type": "integer",
          "description": "The entity id"
        }
      ],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "payments_disposition",
          "type": "string",
          "description": "<p>Describe how payments will be treated, possible values, delete or reallocate</p>"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "passport",
          "name": "passport",
          "kind": "optional",
          "type": "oauth2",
          "description": "Laravel passport oauth2 security.",
          "oauth2Flows": {
            "authorizationCode": {
              "authorizationUrl": "https://digitail.test/oauth/authorize",
              "tokenUrl": "https://digitail.test/oauth/token",
              "refreshUrl": "https://digitail.test/oauth/token"
            }
          }
        },
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "204",
        "description": "The action was successful but there is no content to return.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "u3uwMqi0P_SiSFAkPkfxT",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://developer.digitail.io/api/v1/sales \\\n     --header 'accept: application/json'"
        },
        {
          "id": "GSFC11a1Xm7_QKwpjSD0L",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://developer.digitail.io/api/v1/sales\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "lVcdYfWN-VcsOp3-GVWco",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://developer.digitail.io/api/v1/sales\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "uzzmElq2mhD0EoG-6yKqq",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://developer.digitail.io/api/v1/sales\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "u3uwMqi0P_SiSFAkPkfxT"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-204",
          "language": "204",
          "code": "// The action was successful but there is no content to return.\n"
        }
      ],
      "selectedLanguageId": "response-0-204"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}