Passports
Archive a passport (irreversible).
Irreversible. Public viewer returns 404, the GS1 Digital Link URL stops resolving and the QR code dies for good, unless the passport has been forwarded to a new provider. Use ONLY for products that never shipped — archiving a passport for a product already in customers' hands breaks every QR scan they'll ever make.
The HTTP method is POST and the path includes a literal archive segment, both intentional friction. Fires the passport.archived webhook.
post/api/v1/passports/{id}/archive
Request
- Base URL: https://app.tracepass.eu
- URL: https://app.tracepass.eu/api/v1/passports/{id}/archive
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.tracepass.eu/api/oauth/authorize, token URL https://app.tracepass.eu/api/oauth/token, scopes: passports:write)
Response
Archived. Idempotent — an already archived passport returns 200 with the existing document.
Example response
{
"_id": "6650a1b2c3d4e5f6a7b8c9d0",
"companyId": "6650a1b2c3d4e5f6a7b8c9d0",
"productId": "6650a1b2c3d4e5f6a7b8c9d0",
"templateId": "6650a1b2c3d4e5f6a7b8c9d0",
"identifier": {
"gtin": "04012345000015"
},
"gs1": {
"gtin": "04012345000015",
"serialNumber": "BP-48V-100-000001",
"digitalLinkUri": "https://id.tracepass.eu/p/01/04012345000015/21/BP-48V-100-000001"
},
"lineage": {
"predecessors": [
{
"internalPassportId": "6650a1b2c3d4e5f6a7b8c9d0"
}
]
},
"successors": [
{
"passportId": "6650a1b2c3d4e5f6a7b8c9d0"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.