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

# Order deleted

export const scope_0 = "event:write"

Send this event any time an order is deleted in your system. This will remove the order from Smile and cancel any points the customer had been awarded for it. The only required [order property](/guides/deprecated/custom-platform/custom-backend-int/custom-order-events/custom-order-updated) when sending this type of event is the `external_id` property.

<Note>
  If an order has been refunded and you want the associated points to be revoked, send a [customer updated event](/guides/deprecated/custom-platform/custom-backend-int/custom-customer-events/custom-customer-updated) instead.
</Note>

<Callout icon="key" iconType="regular">
  This endpoint requires the **{scope_0}** scope.
</Callout>

<Panel>
  <RequestExample>
    ```shell Delete an order theme={null}
    curl --request POST \
      --url https://api.smile.io/v1/events/ \
      --header 'Content-Type: application/json' \
      --header 'Authorization: Bearer {token}' \
      --data '
    {
      "event": {
        "topic": "order/deleted",
        "data": {
          "external_id": "100"
        }
      }
    }'
    ```
  </RequestExample>

  <ResponseExample>
    ```json 202 theme={null}
    ```
  </ResponseExample>
</Panel>
