---
title: "Regenerate the customer-facing lookup token"
method: POST
path: "/api/v1/storefront/orders/{id}/regenerate-lookup-token"
tags: ["storefront"]
---

# Regenerate the customer-facing lookup token

`POST /api/v1/storefront/orders/{id}/regenerate-lookup-token`

## Request

- Base URL: `https://api.foundryims.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.foundryims.com/api/v1/storefront/orders/{id}/regenerate-lookup-token`
- Auth: HTTP bearer

Mint a fresh lookup token for an order, invalidating the previous one.
Useful when a customer loses the order confirmation email — the
storefront calls this and emails the new link.

Auth: standard storefront key. The endpoint enforces channel
ownership server-side; a key bound to channel A cannot regenerate
tokens for orders on channel B.

Returns `{ lookupToken }` (24-char base64url) ONCE — the old token
is immediately invalid.

## Path parameters

- `id` string, required

## Response `200`

---

[API](https://skmtc.dev/foundryims/apis/foundry-storefront-api.md) · [All operations](https://skmtc.dev/foundryims/apis/foundry-storefront-api/llms.txt) · [OpenAPI document](https://skmtc.dev/foundryims/apis/foundry-storefront-api/revisions/c6b0410da596?raw)
