Approve a unit conversion for one supplier item (ADMIN+, dashboard user)
POST
/unit-conversions
const url = 'https://api.invogi.com/v1/unit-conversions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"supplierId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","itemCode":"example","fromUnit":"example","toUnit":"example","factor":"example","evidenceReference":"example"}'};
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/unit-conversions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "supplierId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "itemCode": "example", "fromUnit": "example", "toUnit": "example", "factor": "example", "evidenceReference": "example" }'1 fromUnit = factor toUnit, used in either direction. Evidence is required. Replace a conversion by archiving it and approving another.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”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.
Idempotency-Key
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
supplierId
required
string format: uuid
itemCode
required
string
fromUnit
required
string
toUnit
required
string
factor
required
Positive decimal with at most 12 whole digits and six decimal places
string
evidenceReference
required
string
Example generated
{ "supplierId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "itemCode": "example", "fromUnit": "example", "toUnit": "example", "factor": "example", "evidenceReference": "example"}Responses
Section titled “Responses”The conversion
Media typeapplication/json
object
id
string format: uuid
supplierId
string format: uuid
itemCode
string
fromUnit
string
toUnit
string
factor
string
evidenceReference
string
archivedAt
string | null format: date-time
organizationId
string
createdByUserId
null | string
createdAt
string format: date-time
archivedByUserId
null | string
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "supplierId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "itemCode": "example", "fromUnit": "example", "toUnit": "example", "factor": "example", "evidenceReference": "example", "archivedAt": "2026-04-15T12:00:00Z", "organizationId": "example", "createdByUserId": "example", "createdAt": "2026-04-15T12:00:00Z", "archivedByUserId": "example"}Invalid request
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json