Append a draft revision (ANALYST+, dashboard user)
const url = 'https://api.invogi.com/v1/price-schedules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/revisions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"dateBasis":"INVOICE_DATE","evidenceReference":"example","sourceNote":"example","items":[{"itemCode":"example","variant":"example","unit":"example","currency":"example","netPrice":"example","priceBaseQuantity":"1","effectiveFrom":"2026-04-15","effectiveTo":"2026-04-15","sourceRowNumber":1}],"expectedLatestRevisionId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","dataProfile":{"profileId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","revisionId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","clientDiagnostics":{"inputRowCount":1,"rejectedRowCount":1,"warningRowCount":1,"unusedColumnCount":1}}}'};
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-schedules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/revisions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "dateBasis": "INVOICE_DATE", "evidenceReference": "example", "sourceNote": "example", "items": [ { "itemCode": "example", "variant": "example", "unit": "example", "currency": "example", "netPrice": "example", "priceBaseQuantity": "1", "effectiveFrom": "2026-04-15", "effectiveTo": "2026-04-15", "sourceRowNumber": 1 } ], "expectedLatestRevisionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "dataProfile": { "profileId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "revisionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "clientDiagnostics": { "inputRowCount": 1, "rejectedRowCount": 1, "warningRowCount": 1, "unusedColumnCount": 1 } } }'expectedLatestRevisionId must be the newest revision, or 409.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Agreed non-negative net price for priceBaseQuantity units; at most 18 whole digits and six decimal places
Positive quantity with at most 12 whole digits and six decimal places
Inclusive
Exclusive
The exact ACTIVE revision an import used. Refused with 409 if the profile is archived or the revision is not the active one, and with 400 if the dataset kind or scope does not match the route.
object
Counts the browser observed, stored labelled as client-reported
object
Responses
Section titled “Responses”The new draft revision
object
Example
{ "dateBasis": "INVOICE_DATE"}Invalid request
Conflicting idempotency key or resource processing state