---
updatedAt: 2026-10-29T11:59:26.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Invalidate order

Prevents Yotpo from sending out automatic review requests for a specific order and product. If you do not specify the product, no review requests will be sent for any of the products in the order.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core API V1 (legacy)",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.yotpo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Your access token (utoken). Generate it with [Yotpo authentication](ref:yotpo-authentication). Older integrations can send it as `utoken` in the request body instead."
      }
    }
  },
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "paths": {
    "/apps/{app_key}/purchases": {
      "delete": {
        "summary": "Invalidate order",
        "description": "Prevents Yotpo from sending out automatic review requests for a specific order and product. If you do not specify the product, no review requests will be sent for any of the products in the order.",
        "operationId": "invalidate-an-order",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "utoken": {
                    "type": "string",
                    "description": "Your access token (utoken). Optional when you send it in the `X-Yotpo-Token` header, which is preferred. See [Yotpo authentication](ref:yotpo-authentication)."
                  },
                  "orders": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "order_id": {
                          "type": "string",
                          "description": "The order ID"
                        },
                        "skus": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "An array of Product IDs such as SKUs to delete from the order"
                        }
                      },
                      "type": "object",
                      "required": [
                        "order_id"
                      ]
                    },
                    "description": "The orders to invalidate. Send an array."
                  }
                },
                "required": [
                  "orders"
                ]
              },
              "examples": {
                "Invalidate an entire order": {
                  "value": {
                    "orders": [
                      {
                        "order_id": "000011125"
                      }
                    ]
                  }
                },
                "Invalidate specific products": {
                  "value": {
                    "orders": [
                      {
                        "order_id": "000011125",
                        "skus": [
                          "101",
                          "102"
                        ]
                      }
                    ]
                  }
                },
                "Invalidate multiple orders": {
                  "value": {
                    "orders": [
                      {
                        "order_id": "000011125",
                        "skus": [
                          "101",
                          "102"
                        ]
                      },
                      {
                        "order_id": "000011126"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Unknown order IDs are ignored and still return 200.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": {\n    \"code\": 200,\n    \"message\": \"ok\"\n  },\n  \"code\": 200,\n  \"message\": \"ok\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "description": "The request was accepted.",
                  "properties": {
                    "status": {
                      "type": "object",
                      "description": "The request status.",
                      "properties": {
                        "code": {
                          "type": "integer",
                          "description": "The HTTP status code, repeated in the body."
                        },
                        "message": {
                          "type": "string",
                          "description": "A short status message, for example `ok`."
                        }
                      }
                    },
                    "code": {
                      "type": "integer",
                      "description": "The HTTP status code, repeated."
                    },
                    "message": {
                      "type": "string",
                      "description": "A short status message, repeated."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired access token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "object",
                      "description": "Error details.",
                      "properties": {
                        "message": {
                          "type": "string",
                          "description": "Error message."
                        },
                        "code": {
                          "type": "integer",
                          "description": "HTTP status code."
                        },
                        "error_type": {
                          "type": "string",
                          "description": "Error type."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Not authorized": {
                    "value": "{\n  \"status\": {\n    \"message\": \"You are not authorized to access this page.\",\n    \"code\": 401,\n    \"error_type\": \"Exceptions::AccessDenied\"\n  }\n}"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "app_key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your Yotpo app key (store ID).",
            "example": "YOUR_APP_KEY"
          }
        ]
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "value": "application/json",
        "key": "Content-Type"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```