Archive a price decision (ADMIN+, dashboard user)
POST
/price-precedences/{precedenceId}/archive
const url = 'https://api.invogi.com/v1/price-precedences/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/archive';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.invogi.com/v1/price-precedences/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/archive \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”precedenceId
required
string format: uuid
Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Responses
Section titled “Responses”The decision
Media typeapplication/json
object
id
string format: uuid
supplierId
string format: uuid
itemCode
string
variant
string | null
preferredScheduleId
string format: uuid
preferredScheduleName
string
evidenceReference
string
createdAt
string format: date-time
archivedAt
string | null format: date-time
organizationId
string
createdByUserId
null | string
archivedByUserId
null | string
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "supplierId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "itemCode": "example", "variant": "example", "preferredScheduleId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "preferredScheduleName": "example", "evidenceReference": "example", "createdAt": "2026-04-15T12:00:00Z", "archivedAt": "2026-04-15T12:00:00Z", "organizationId": "example", "createdByUserId": "example", "archivedByUserId": "example"}