Skip to content

Record which price list applies when two active lists both price an item (ADMIN+, dashboard user)

POST
/price-precedences
curl --request POST \
--url https://api.invogi.com/v1/price-precedences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "supplierId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "itemCode": "example", "variant": "example", "preferredScheduleId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "evidenceReference": "example" }'

Used by runs started afterwards, and only among prices that apply on the line’s date; it never creates a price. Replaces the item’s earlier decision. Evidence (who confirmed it, and where) is required.

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.

Idempotency-Key
string
Media typeapplication/json
object
supplierId
required
string format: uuid
itemCode
required
string
variant
string | null
preferredScheduleId
required

One of this supplier’s schedules

string format: uuid
evidenceReference
required
string
<= 500 characters

Example generated

{
"supplierId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"itemCode": "example",
"variant": "example",
"preferredScheduleId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"evidenceReference": "example"
}

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"
}

Invalid request

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

API key lacks required scope/role

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

Resource not found

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}