---
title: "updateAnonymizeAfterDate - Update anonymization date for orders"
method: PUT
path: "/v1/orders/anonymize-after"
tags: ["Orders"]
---

# updateAnonymizeAfterDate - Update anonymization date for orders

`PUT /v1/orders/anonymize-after`

<div class="extension-title">Description</div>

Updates the anonymization date for orders in the Mirakl Connect platform.
Use this API to indicated after which date orders should be anonymized by Connect.
The anonymization process is irreversible and should be used with caution.


<div class="api-description-extension">
<div class="extension-title">Call Frequency</div>

<div class="recommended-call-frequency">Recommended usage: Once per order when the anonymization date is set</div>
<div class="max-call-frequency">Maximum usage: Every time the anonymization date needs to be changed</div>
</div>

## Request body

- UpdateAnonymizeAfterRequest
  - `orders` UpdateAnonymizeAfterRequestItem[], required
    - `anonymize_after` string, date-time, required — The date after which the order should be anonymized. The date must be in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ) and in the futur relative to time of call (note: a tolerance of few minutes will be tolerated to prevent false positive errors)
    - `channel_id` string, required — The ID of the channel on which the order was placed.
    - `channel_order_id` string, required — The ID of the order on the channel.
    - `channel_store_id` string, required — Store identifier on the sales channel.
    - `sub_channel_code` string — Code of the sub-channel

## Response `204`

Successfully updated the anonymize_after date for all orders of the request. No additional content is provided.

## Other responses

- `400` — At least one the item of the payload is invalid. The entire request is canceled, none of the anonymize_after date have been updated. Common errors include: - referencing an order that does not exist - trying to set an anonymize_after date in the past Please refer to the error message for more details.

---

[API](https://skmtc.net/mirakl/apis/mirakl-connect-channel-platform-apis.md) · [All operations](https://skmtc.net/mirakl/apis/mirakl-connect-channel-platform-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mirakl/mirakl-connect-channel-platform-apis/revisions/7810ddb35640/schema)
