{"info":{"title":"Carbon API","version":"1.0.0","description":"Carbon's service-layer API — read and write your manufacturing data the safe way."},"servers":[{"url":"https://app.carbon.ms/api/v1"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A Carbon API key (`crbn_…`) sent as a Bearer token."}}},"openapi":"3.1.1","paths":{"/account/getNotificationPreferences":{"post":{"operationId":"account.getNotificationPreferences","summary":"get notification preferences","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"channel":{"type":"string"},"enabled":{"type":"boolean"}},"required":["topic","channel","enabled"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/account/upsertNotificationPreference":{"post":{"operationId":"account.upsertNotificationPreference","summary":"upsert notification preference","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string"},"channel":{"type":"string","enum":["email","slack"]},"enabled":{"type":"boolean"}},"required":["topic","channel","enabled"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/account/deleteUserAttributeValue":{"post":{"operationId":"account.deleteUserAttributeValue","summary":"delete user attribute value","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userAttributeId":{"type":"string"},"userAttributeValueId":{"type":"string"}},"required":["userAttributeId","userAttributeValueId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/account/getAccount":{"post":{"operationId":"account.getAccount","summary":"get account","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"about":{"type":"string"},"acknowledgedITAR":{"type":"boolean"},"active":{"type":["boolean","null"]},"admin":{"type":["boolean","null"]},"avatarUrl":{"type":["string","null"]},"createdAt":{"type":"string"},"developer":{"type":["boolean","null"]},"email":{"type":"string"},"firstName":{"type":"string"},"flags":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"fullName":{"type":["string","null"]},"id":{"type":"string"},"isConsoleOperator":{"type":"boolean"},"lastName":{"type":"string"},"phone":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["about","acknowledgedITAR","active","admin","avatarUrl","createdAt","developer","email","firstName","flags","fullName","id","isConsoleOperator","lastName","phone","updatedAt"]}}}}}}},"/account/getCurrentUser":{"post":{"operationId":"account.getCurrentUser","summary":"return the connected user's own profile (id, email, name)","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"fullName":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["id","email","firstName","lastName","fullName","avatarUrl"]}}}}}}},"/account/getAttributes":{"post":{"operationId":"account.getAttributes","summary":"get attributes","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"isPublic":{"type":"boolean"}},"required":["isPublic"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"emoji":{"type":["string","null"]},"companyId":{"type":["string","null"]},"userAttribute":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"listOptions":{"type":["array","null"],"items":{"type":"string"}},"canSelfManage":{"type":["boolean","null"]},"attributeDataType":{"type":"object","properties":{"id":{"type":"number"},"isBoolean":{"type":"boolean"},"isDate":{"type":"boolean"},"isNumeric":{"type":"boolean"},"isText":{"type":"boolean"},"isUser":{"type":"boolean"},"isFile":{"type":"boolean"}},"required":["id","isBoolean","isDate","isNumeric","isText","isUser","isFile"]},"userAttributeValue":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"valueBoolean":{"type":["boolean","null"]},"valueDate":{"type":["string","null"]},"valueNumeric":{"type":["number","null"]},"valueText":{"type":["string","null"]},"valueUser":{"type":["string","null"]},"valueFile":{"type":["string","null"]}},"required":["id","valueBoolean","valueDate","valueNumeric","valueText","valueUser","valueFile"]}}},"required":["id","name","listOptions","canSelfManage","attributeDataType","userAttributeValue"]}}},"required":["id","name","emoji","companyId","userAttribute"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/account/getPrivateAttributes":{"post":{"operationId":"account.getPrivateAttributes","summary":"get private attributes","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"emoji":{"type":["string","null"]},"companyId":{"type":["string","null"]},"userAttribute":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"listOptions":{"type":["array","null"],"items":{"type":"string"}},"canSelfManage":{"type":["boolean","null"]},"attributeDataType":{"type":"object","properties":{"id":{"type":"number"},"isBoolean":{"type":"boolean"},"isDate":{"type":"boolean"},"isNumeric":{"type":"boolean"},"isText":{"type":"boolean"},"isUser":{"type":"boolean"},"isFile":{"type":"boolean"}},"required":["id","isBoolean","isDate","isNumeric","isText","isUser","isFile"]},"userAttributeValue":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"valueBoolean":{"type":["boolean","null"]},"valueDate":{"type":["string","null"]},"valueNumeric":{"type":["number","null"]},"valueText":{"type":["string","null"]},"valueUser":{"type":["string","null"]},"valueFile":{"type":["string","null"]}},"required":["id","valueBoolean","valueDate","valueNumeric","valueText","valueUser","valueFile"]}}},"required":["id","name","listOptions","canSelfManage","attributeDataType","userAttributeValue"]}}},"required":["id","name","emoji","companyId","userAttribute"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/account/getPublicAttributes":{"post":{"operationId":"account.getPublicAttributes","summary":"get public attributes","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"emoji":{"type":["string","null"]},"companyId":{"type":["string","null"]},"userAttribute":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"listOptions":{"type":["array","null"],"items":{"type":"string"}},"canSelfManage":{"type":["boolean","null"]},"attributeDataType":{"type":"object","properties":{"id":{"type":"number"},"isBoolean":{"type":"boolean"},"isDate":{"type":"boolean"},"isNumeric":{"type":"boolean"},"isText":{"type":"boolean"},"isUser":{"type":"boolean"},"isFile":{"type":"boolean"}},"required":["id","isBoolean","isDate","isNumeric","isText","isUser","isFile"]},"userAttributeValue":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"valueBoolean":{"type":["boolean","null"]},"valueDate":{"type":["string","null"]},"valueNumeric":{"type":["number","null"]},"valueText":{"type":["string","null"]},"valueUser":{"type":["string","null"]},"valueFile":{"type":["string","null"]}},"required":["id","valueBoolean","valueDate","valueNumeric","valueText","valueUser","valueFile"]}}},"required":["id","name","listOptions","canSelfManage","attributeDataType","userAttributeValue"]}}},"required":["id","name","emoji","companyId","userAttribute"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/account/getAllAttributeCategories":{"post":{"operationId":"account.getAllAttributeCategories","summary":"get all attribute categories","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"emoji":{"type":["string","null"]},"companyId":{"type":["string","null"]},"userAttribute":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"listOptions":{"type":["array","null"],"items":{"type":"string"}},"canSelfManage":{"type":["boolean","null"]},"attributeDataType":{"type":"object","properties":{"id":{"type":"number"},"isBoolean":{"type":"boolean"},"isDate":{"type":"boolean"},"isNumeric":{"type":"boolean"},"isText":{"type":"boolean"},"isUser":{"type":"boolean"},"isFile":{"type":"boolean"}},"required":["id","isBoolean","isDate","isNumeric","isText","isUser","isFile"]},"userAttributeValue":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"valueBoolean":{"type":["boolean","null"]},"valueDate":{"type":["string","null"]},"valueNumeric":{"type":["number","null"]},"valueText":{"type":["string","null"]},"valueUser":{"type":["string","null"]},"valueFile":{"type":["string","null"]}},"required":["id","valueBoolean","valueDate","valueNumeric","valueText","valueUser","valueFile"]}}},"required":["id","name","listOptions","canSelfManage","attributeDataType","userAttributeValue"]}}},"required":["id","name","emoji","companyId","userAttribute"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/account/getAttributeCategoryWithValues":{"post":{"operationId":"account.getAttributeCategoryWithValues","summary":"get attribute category with values","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"categoryId":{"type":"string"}},"required":["categoryId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"emoji":{"type":["string","null"]},"companyId":{"type":["string","null"]},"public":{"type":["boolean","null"]},"userAttribute":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"listOptions":{"type":["array","null"],"items":{"type":"string"}},"canSelfManage":{"type":["boolean","null"]},"attributeDataType":{"type":"object","properties":{"id":{"type":"number"},"isBoolean":{"type":"boolean"},"isDate":{"type":"boolean"},"isNumeric":{"type":"boolean"},"isText":{"type":"boolean"},"isUser":{"type":"boolean"},"isFile":{"type":"boolean"}},"required":["id","isBoolean","isDate","isNumeric","isText","isUser","isFile"]},"userAttributeValue":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"valueBoolean":{"type":["boolean","null"]},"valueDate":{"type":["string","null"]},"valueNumeric":{"type":["number","null"]},"valueText":{"type":["string","null"]},"valueUser":{"type":["string","null"]},"valueFile":{"type":["string","null"]}},"required":["id","valueBoolean","valueDate","valueNumeric","valueText","valueUser","valueFile"]}}},"required":["id","name","listOptions","canSelfManage","attributeDataType","userAttributeValue"]}}},"required":["id","name","emoji","companyId","public","userAttribute"]}}}}}}},"/account/updateAvatar":{"post":{"operationId":"account.updateAvatar","summary":"update avatar","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"avatarUrl":{"type":["string","null"]}},"required":["avatarUrl"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/account/updatePublicAccount":{"post":{"operationId":"account.updatePublicAccount","summary":"update public account","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"about":{"type":"string"},"phone":{"type":"string"}},"required":["id","firstName","lastName"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/account/upsertUserAttributeValue":{"post":{"operationId":"account.upsertUserAttributeValue","summary":"upsert user attribute value","tags":["account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userAttributeValueId":{"type":"string"},"userAttributeId":{"type":"string"},"value":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"number"}]},"type":{"type":"string"}},"required":["userAttributeId","value","type"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/getTrialBalance":{"post":{"operationId":"accounting.getTrialBalance","summary":"get trial balance","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startDate":{"type":["string","null"]},"endDate":{"type":["string","null"]}},"required":["startDate","endDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountClass":{"type":"string","enum":["Expense","Asset","Liability","Equity","Revenue"]},"accountId":{"type":"string"},"accountName":{"type":"string"},"accountNumber":{"type":"string"},"creditBalance":{"type":"number"},"debitBalance":{"type":"number"},"incomeBalance":{"type":"string","enum":["Balance Sheet","Income Statement"]},"netChange":{"type":"number"}},"required":["accountClass","accountId","accountName","accountNumber","creditBalance","debitBalance","incomeBalance","netChange"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getAccountLedger":{"post":{"operationId":"accounting.getAccountLedger","summary":"get account ledger","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"},"companyIds":{"type":"array","items":{"type":"string"}},"startDate":{"type":["string","null"]},"endDate":{"type":["string","null"]},"limit":{"type":"number"},"offset":{"type":"number"}},"required":["accountId","startDate","endDate","limit","offset"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"journalId":{"type":"string"},"accountId":{"type":["string","null"]},"amount":{"type":"number"},"quantity":{"type":"number"},"accrual":{"type":"boolean"},"description":{"type":["string","null"]},"documentType":{"type":["string","null"],"enum":["Charge","Payment","Sales Shipment","Purchase Receipt","Purchase Invoice","Transfer Shipment","Job Consumption","Job Receipt","Batch Split","Maintenance Consumption","Non-Conformance","Inbound Inspection","Inventory Count","Scrap","Batch Merge","Receipt","Invoice","Credit Memo","Blanket Order","Return Order","Production Event","Job Close","Memo","Inventory Adjustment","Reimbursement","Maintenance Event"]},"documentId":{"type":["string","null"]},"documentLineReference":{"type":["string","null"]},"externalDocumentId":{"type":["string","null"]},"intercompanyPartnerId":{"type":["string","null"]},"journalLineReference":{"type":"string"},"companyId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"tags":{"type":["array","null"],"items":{"type":"string"}},"createdAt":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"postingDate":{"type":"string"},"journalEntryId":{"type":"string"},"status":{"type":"string","enum":["Draft","Posted","Reversed"]},"sourceType":{"type":"string","enum":["Charge","Payment","Sales Shipment","Sales Invoice","Sales Return Receipt","Purchase Receipt","Purchase Invoice","Purchase Return Shipment","Transfer Receipt","Job Consumption","Job Receipt","Non-Conformance","Inbound Inspection","Sales Return Shipment","Credit Memo","Production Event","Job Close","Inventory Adjustment","Reimbursement","Maintenance Event","Manual","Purchase Return","Sales Return","Production Order","Asset Depreciation","Asset Disposal","Debit Memo","Opening Balance"]},"journalDescription":{"type":["string","null"]}},"required":["id","journalId","accountId","amount","quantity","accrual","description","documentType","documentId","documentLineReference","externalDocumentId","intercompanyPartnerId","journalLineReference","companyId","customFields","tags","createdAt","updatedAt","updatedBy","postingDate","journalEntryId","status","sourceType","journalDescription"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getAccountLedgerSummary":{"post":{"operationId":"accounting.getAccountLedgerSummary","summary":"get account ledger summary","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"},"startDate":{"type":["string","null"]},"endDate":{"type":["string","null"]}},"required":["accountId","startDate","endDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"opening":{"type":"number"},"netChange":{"type":"number"},"closing":{"type":"number"}},"required":["opening","netChange","closing"]}}}}}}},"/accounting/getFinancialStatementBalances":{"post":{"operationId":"accounting.getFinancialStatementBalances","summary":"get financial statement balances","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startDate":{"type":["string","null"]},"endDate":{"type":["string","null"]},"includeCurrentYearEarnings":{"type":"boolean"}},"required":["startDate","endDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"netChange":{"type":"number"},"balance":{"type":"number"},"balanceAtDate":{"type":"number"},"accountType":{"type":["string","null"],"enum":["Bank","Cash","Accounts Receivable","Accounts Payable","Inventory","Fixed Asset","Accumulated Depreciation","Other Current Asset","Other Asset","Other Current Liability","Long Term Liability","Equity - No Close","Equity - Close","Retained Earnings","Income","Cost of Goods Sold","Expense","Other Income","Other Expense","Tax","Investments"]},"active":{"type":["boolean","null"]},"class":{"type":["string","null"],"enum":["Expense","Asset","Liability","Equity","Revenue"]},"companyGroupId":{"type":["string","null"]},"consolidatedRate":{"type":["string","null"],"enum":["Average","Current","Historical"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"incomeBalance":{"type":["string","null"],"enum":["Balance Sheet","Income Statement"]},"isGroup":{"type":["boolean","null"]},"isSystem":{"type":["boolean","null"]},"name":{"type":["string","null"]},"number":{"type":["string","null"]},"parentId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["netChange","balance","balanceAtDate","accountType","active","class","companyGroupId","consolidatedRate","createdAt","createdBy","customFields","id","incomeBalance","isGroup","isSystem","name","number","parentId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getAccountPeriodSeries":{"post":{"operationId":"accounting.getAccountPeriodSeries","summary":"get account period series","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"start":{"type":"string"},"periodEnds":{"type":"array","items":{"type":"string"}}},"required":["start","periodEnds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string"},"balanceAtDate":{"type":"number"},"netChange":{"type":"number"},"periodEnd":{"type":"string"}},"required":["accountId","balanceAtDate","netChange","periodEnd"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getFinancialStatementPeriodSeries":{"post":{"operationId":"accounting.getFinancialStatementPeriodSeries","summary":"multi-period financial statement balances: one column per bucket, powered by the accountTreeBalancePeriodSeries RPC (snapshot-based, single journal scan)","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"buckets":{"type":"array","items":{}},"includeCurrentYearEarnings":{"type":"boolean"},"translate":{"type":"object","properties":{"targetCurrency":{"type":"string"}},"required":["targetCurrency"]}},"required":["buckets"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getConsolidatedPeriodSeries":{"post":{"operationId":"accounting.getConsolidatedPeriodSeries","summary":"multi-company, multi-period consolidation — the period-series sibling of getConsolidatedBalances: per-company series (including auto-resolved elimination entit…","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"companyIds":{"type":"array","items":{"type":"string"}},"targetCurrency":{"type":"string"},"args":{"type":"object","properties":{"buckets":{"type":"array","items":{}},"includeCurrentYearEarnings":{"type":"boolean"}},"required":["buckets"]}},"required":["companyIds","targetCurrency","args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getReportPins":{"post":{"operationId":"accounting.getReportPins","summary":"get report pins","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"reportKey":{"type":"string"},"pinned":{"type":"boolean"}},"required":["reportKey","pinned"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/upsertReportPin":{"post":{"operationId":"accounting.upsertReportPin","summary":"upsert report pin","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reportKey":{"type":"string"},"pinned":{"type":"boolean"}},"required":["reportKey","pinned"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/getAccountsInScope":{"post":{"operationId":"accounting.getAccountsInScope","summary":"the leaf accounts inside a report's account scope — the universe the per-report account multi-select filters within","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scope":{"anyOf":[{"type":"object","properties":{"classes":{"type":"array","items":{"type":"string","enum":["Asset","Liability","Equity","Revenue","Expense"]}}},"required":["classes"]},{"type":"object","properties":{"types":{"type":"array","items":{"type":"string","enum":["Bank","Cash","Accounts Receivable","Accounts Payable","Inventory","Fixed Asset","Accumulated Depreciation","Other Current Asset","Other Asset","Other Current Liability","Long Term Liability","Equity - No Close","Equity - Close","Retained Earnings","Income","Cost of Goods Sold","Expense","Other Income","Other Expense","Tax","Investments"]}}},"required":["types"]},{"type":"object","properties":{"source":{"type":"string","enum":["scrapAccounts"]}},"required":["source"]}]},"scrapAccountIds":{"type":"array","items":{"type":"string"}}},"required":["scope"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":["string","null"]},"name":{"type":"string"}},"required":["id","number","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getDimensionPivot":{"post":{"operationId":"accounting.getDimensionPivot","summary":"get dimension pivot","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"report":{"type":"object","properties":{"key":{"type":"string","enum":["revenue","expenses","assets","inventory-change","scrap"]},"accountScope":{"anyOf":[{"type":"object","properties":{"classes":{"type":"array","items":{"type":"string","enum":["Asset","Liability","Equity","Revenue","Expense"]}}},"required":["classes"]},{"type":"object","properties":{"types":{"type":"array","items":{"type":"string","enum":["Bank","Cash","Accounts Receivable","Accounts Payable","Inventory","Fixed Asset","Accumulated Depreciation","Other Current Asset","Other Asset","Other Current Liability","Long Term Liability","Equity - No Close","Equity - Close","Retained Earnings","Income","Cost of Goods Sold","Expense","Other Income","Other Expense","Tax","Investments"]}}},"required":["types"]},{"type":"object","properties":{"source":{"type":"string","enum":["scrapAccounts"]}},"required":["source"]}]},"defaultRows":{"type":"array","items":{"type":"string"}}},"required":["key","accountScope","defaultRows"]},"scrapAccountIds":{"type":"array","items":{"type":"string"}},"startDate":{"type":"string"},"endDate":{"type":"string"},"periodEnds":{"type":"array","items":{"type":"string"}},"state":{"type":"object","properties":{"rows":{"default":[],"maxItems":2,"type":"array","items":{"type":"string","minLength":1}},"columnAxis":{"default":{"type":"period","bucket":"month"},"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"period"},"bucket":{"type":"string","enum":["month","quarter","year"]}},"required":["type","bucket"]},{"type":"object","properties":{"type":{"type":"string","const":"dimension"},"dimensionId":{"type":"string","minLength":1}},"required":["type","dimensionId"]}]},"measure":{"default":"amount","type":"string","enum":["amount","quantity","count"]},"percentOfTotal":{"default":false,"type":"boolean"},"sort":{"default":null,"anyOf":[{"type":"object","properties":{"key":{"type":"string","minLength":1},"direction":{"type":"string","enum":["asc","desc"]}},"required":["key","direction"]},{"type":"null"}]},"filters":{"default":[],"type":"array","items":{"type":"object","properties":{"dimensionId":{"type":"string","minLength":1},"valueIds":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["dimensionId","valueIds"]}},"accountIds":{"default":[],"type":"array","items":{"type":"string","minLength":1}}}}},"required":["report","startDate","endDate","state"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"array","items":{"type":"object","properties":{"rowValue1Id":{"type":["string","null"]},"rowValue2Id":{"type":["string","null"]},"columnKey":{"type":["string","null"]},"amount":{"type":"number"},"quantity":{"type":"number"},"lineCount":{"type":"number"}},"required":["rowValue1Id","rowValue2Id","columnKey","amount","quantity","lineCount"]}},"columnKeys":{"type":"array","items":{"type":"string"}},"hasMore":{"type":"boolean"},"valueNames":{"type":"object","additionalProperties":{"type":"string"}}},"required":["groups","columnKeys","hasMore","valueNames"]}}}}}}},"/accounting/getDimensionPivotLines":{"post":{"operationId":"accounting.getDimensionPivotLines","summary":"drill-through: the journal lines behind one pivot cell","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"report":{"type":"object","properties":{"key":{"type":"string","enum":["revenue","expenses","assets","inventory-change","scrap"]},"accountScope":{"anyOf":[{"type":"object","properties":{"classes":{"type":"array","items":{"type":"string","enum":["Asset","Liability","Equity","Revenue","Expense"]}}},"required":["classes"]},{"type":"object","properties":{"types":{"type":"array","items":{"type":"string","enum":["Bank","Cash","Accounts Receivable","Accounts Payable","Inventory","Fixed Asset","Accumulated Depreciation","Other Current Asset","Other Asset","Other Current Liability","Long Term Liability","Equity - No Close","Equity - Close","Retained Earnings","Income","Cost of Goods Sold","Expense","Other Income","Other Expense","Tax","Investments"]}}},"required":["types"]},{"type":"object","properties":{"source":{"type":"string","enum":["scrapAccounts"]}},"required":["source"]}]},"defaultRows":{"type":"array","items":{"type":"string"}}},"required":["key","accountScope","defaultRows"]},"scrapAccountIds":{"type":"array","items":{"type":"string"}},"startDate":{"type":"string"},"endDate":{"type":"string"},"filters":{},"rowDimension1":{"type":"string"},"rowValue1":{"type":"string"},"rowValue1IsNull":{"type":"boolean"},"rowDimension2":{"type":"string"},"rowValue2":{"type":"string"},"rowValue2IsNull":{"type":"boolean"},"columnDimension":{"type":"string"},"columnValue":{"type":"string"},"columnValueIsNull":{"type":"boolean"},"columnPeriodStart":{"type":"string"},"columnPeriodEnd":{"type":"string"},"accountIds":{"type":"array","items":{"type":"string"}}},"required":["report","startDate","endDate","filters"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string"},"accountName":{"type":"string"},"accountNumber":{"type":"string"},"amount":{"type":"number"},"description":{"type":"string"},"documentId":{"type":"string"},"documentType":{"type":"string"},"id":{"type":"string"},"journalEntryId":{"type":"string"},"postingDate":{"type":"string"},"quantity":{"type":"number"}},"required":["accountId","accountName","accountNumber","amount","description","documentId","documentType","id","journalEntryId","postingDate","quantity"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getPurchaseLinePivot":{"post":{"operationId":"accounting.getPurchaseLinePivot","summary":"get purchase line pivot","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"periodEnds":{"type":"array","items":{"type":"string"}},"state":{"type":"object","properties":{"rows":{"default":[],"maxItems":2,"type":"array","items":{"type":"string","minLength":1}},"columnAxis":{"default":{"type":"period","bucket":"month"},"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"period"},"bucket":{"type":"string","enum":["month","quarter","year"]}},"required":["type","bucket"]},{"type":"object","properties":{"type":{"type":"string","const":"dimension"},"dimensionId":{"type":"string","minLength":1}},"required":["type","dimensionId"]}]},"measure":{"default":"amount","type":"string","enum":["amount","quantity","count"]},"percentOfTotal":{"default":false,"type":"boolean"},"sort":{"default":null,"anyOf":[{"type":"object","properties":{"key":{"type":"string","minLength":1},"direction":{"type":"string","enum":["asc","desc"]}},"required":["key","direction"]},{"type":"null"}]},"filters":{"default":[],"type":"array","items":{"type":"object","properties":{"dimensionId":{"type":"string","minLength":1},"valueIds":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["dimensionId","valueIds"]}},"accountIds":{"default":[],"type":"array","items":{"type":"string","minLength":1}}}}},"required":["startDate","endDate","state"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"array","items":{"type":"object","properties":{"rowValue1Id":{"type":["string","null"]},"rowValue2Id":{"type":["string","null"]},"columnKey":{"type":["string","null"]},"amount":{"type":"number"},"quantity":{"type":"number"},"lineCount":{"type":"number"}},"required":["rowValue1Id","rowValue2Id","columnKey","amount","quantity","lineCount"]}},"columnKeys":{"type":"array","items":{"type":"string"}},"hasMore":{"type":"boolean"},"valueNames":{"type":"object","additionalProperties":{"type":"string"}}},"required":["groups","columnKeys","hasMore","valueNames"]}}}}}}},"/accounting/getPurchaseLinePivotLines":{"post":{"operationId":"accounting.getPurchaseLinePivotLines","summary":"get purchase line pivot lines","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"rowField1":{"type":"string"},"rowValue1":{"type":"string"},"rowField2":{"type":"string"},"rowValue2":{"type":"string"},"columnField":{"type":"string"},"columnValue":{"type":"string"},"columnPeriodStart":{"type":"string"},"columnPeriodEnd":{"type":"string"}},"required":["startDate","endDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number"},"description":{"type":"string"},"id":{"type":"string"},"invoiceReadableId":{"type":"string"},"itemReadableId":{"type":"string"},"postingDate":{"type":"string"},"quantity":{"type":"number"},"supplierName":{"type":"string"}},"required":["amount","description","id","invoiceReadableId","itemReadableId","postingDate","quantity","supplierName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getReportViews":{"post":{"operationId":"accounting.getReportViews","summary":"get report views","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reportKey":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"config":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"reportKey":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"visibility":{"type":"string","enum":["Private","Company"]}},"required":["companyId","config","createdAt","createdBy","id","name","reportKey","updatedAt","updatedBy","visibility"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/upsertReportView":{"post":{"operationId":"accounting.upsertReportView","summary":"upsert report view","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"view":{"anyOf":[{"type":"object","properties":{"reportKey":{"type":"string"},"name":{"type":"string"},"visibility":{"type":"string","enum":["Private","Company"]},"config":{}},"required":["reportKey","name","visibility","config"]},{"type":"object","properties":{"id":{"type":"string"},"reportKey":{"type":"string"},"name":{"type":"string"},"visibility":{"type":"string","enum":["Private","Company"]},"config":{}},"required":["id","reportKey","name","visibility","config"]}]}},"required":["view"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"config":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"reportKey":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"visibility":{"type":"string","enum":["Private","Company"]}},"required":["companyId","config","createdAt","createdBy","id","name","reportKey","updatedAt","updatedBy","visibility"]}}}}}}},"/accounting/deleteReportView":{"post":{"operationId":"accounting.deleteReportView","summary":"delete report view","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/getCompaniesInGroup":{"post":{"operationId":"accounting.getCompaniesInGroup","summary":"get companies in group","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"baseCurrencyCode":{"type":"string"},"timezone":{"type":"string"},"parentCompanyId":{"type":["string","null"]},"isEliminationEntity":{"type":"boolean"}},"required":["id","name","baseCurrencyCode","timezone","parentCompanyId","isEliminationEntity"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/deleteAccount":{"post":{"operationId":"accounting.deleteAccount","summary":"delete account","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"}},"required":["accountId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/deletePaymentTerm":{"post":{"operationId":"accounting.deletePaymentTerm","summary":"delete payment term","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"paymentTermId":{"type":"string"}},"required":["paymentTermId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/getAccount":{"post":{"operationId":"accounting.getAccount","summary":"get account","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"}},"required":["accountId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accountType":{"type":["string","null"],"enum":["Bank","Cash","Accounts Receivable","Accounts Payable","Inventory","Fixed Asset","Accumulated Depreciation","Other Current Asset","Other Asset","Other Current Liability","Long Term Liability","Equity - No Close","Equity - Close","Retained Earnings","Income","Cost of Goods Sold","Expense","Other Income","Other Expense","Tax","Investments"]},"active":{"type":"boolean"},"class":{"type":["string","null"],"enum":["Expense","Asset","Liability","Equity","Revenue"]},"companyGroupId":{"type":"string"},"consolidatedRate":{"type":"string","enum":["Average","Current","Historical"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"incomeBalance":{"type":"string","enum":["Balance Sheet","Income Statement"]},"isGroup":{"type":"boolean"},"isSystem":{"type":"boolean"},"name":{"type":"string"},"number":{"type":["string","null"]},"parentId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountType","active","class","companyGroupId","consolidatedRate","createdAt","createdBy","customFields","id","incomeBalance","isGroup","isSystem","name","number","parentId","tags","updatedAt","updatedBy"]}}}}}}},"/accounting/getAccounts":{"post":{"operationId":"accounting.getAccounts","summary":"get accounts","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountType":{"type":["string","null"],"enum":["Bank","Cash","Accounts Receivable","Accounts Payable","Inventory","Fixed Asset","Accumulated Depreciation","Other Current Asset","Other Asset","Other Current Liability","Long Term Liability","Equity - No Close","Equity - Close","Retained Earnings","Income","Cost of Goods Sold","Expense","Other Income","Other Expense","Tax","Investments"]},"active":{"type":"boolean"},"class":{"type":["string","null"],"enum":["Expense","Asset","Liability","Equity","Revenue"]},"companyGroupId":{"type":"string"},"consolidatedRate":{"type":"string","enum":["Average","Current","Historical"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"incomeBalance":{"type":"string","enum":["Balance Sheet","Income Statement"]},"isGroup":{"type":"boolean"},"isSystem":{"type":"boolean"},"name":{"type":"string"},"number":{"type":["string","null"]},"parentId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountType","active","class","companyGroupId","consolidatedRate","createdAt","createdBy","customFields","id","incomeBalance","isGroup","isSystem","name","number","parentId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getAccountsList":{"post":{"operationId":"accounting.getAccountsList","summary":"get accounts list","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"isGroup":{"type":["boolean","null"]},"incomeBalance":{"type":["string","null"],"enum":["Balance Sheet","Income Statement"]},"classes":{"type":"array","items":{"type":"string","enum":["Asset","Liability","Equity","Revenue","Expense"]}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":["string","null"]},"name":{"type":"string"},"incomeBalance":{"type":"string","enum":["Balance Sheet","Income Statement"]},"class":{"type":["string","null"],"enum":["Expense","Asset","Liability","Equity","Revenue"]}},"required":["id","number","name","incomeBalance","class"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getGroupAccounts":{"post":{"operationId":"accounting.getGroupAccounts","summary":"get group accounts","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":["string","null"]},"name":{"type":"string"},"incomeBalance":{"type":"string","enum":["Balance Sheet","Income Statement"]},"class":{"type":["string","null"],"enum":["Expense","Asset","Liability","Equity","Revenue"]},"accountType":{"type":["string","null"],"enum":["Bank","Cash","Accounts Receivable","Accounts Payable","Inventory","Fixed Asset","Accumulated Depreciation","Other Current Asset","Other Asset","Other Current Liability","Long Term Liability","Equity - No Close","Equity - Close","Retained Earnings","Income","Cost of Goods Sold","Expense","Other Income","Other Expense","Tax","Investments"]}},"required":["id","number","name","incomeBalance","class","accountType"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getBaseCurrency":{"post":{"operationId":"accounting.getBaseCurrency","summary":"get base currency","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"code":{"type":"string"},"companyGroupId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"decimalPlaces":{"type":"number"},"historicalExchangeRate":{"type":["number","null"]},"id":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","code","companyGroupId","createdAt","createdBy","customFields","decimalPlaces","historicalExchangeRate","id","tags","updatedAt","updatedBy"]}}}}}}},"/accounting/getChartOfAccounts":{"post":{"operationId":"accounting.getChartOfAccounts","summary":"get chart of accounts","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"incomeBalance":{"type":["string","null"],"enum":["Income Statement","Balance Sheet"]},"startDate":{"type":["string","null"]},"endDate":{"type":["string","null"]}},"required":["incomeBalance","startDate","endDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"netChange":{"type":"number"},"balance":{"type":"number"},"balanceAtDate":{"type":"number"},"accountType":{"type":["string","null"],"enum":["Bank","Cash","Accounts Receivable","Accounts Payable","Inventory","Fixed Asset","Accumulated Depreciation","Other Current Asset","Other Asset","Other Current Liability","Long Term Liability","Equity - No Close","Equity - Close","Retained Earnings","Income","Cost of Goods Sold","Expense","Other Income","Other Expense","Tax","Investments"]},"active":{"type":["boolean","null"]},"class":{"type":["string","null"],"enum":["Expense","Asset","Liability","Equity","Revenue"]},"companyGroupId":{"type":["string","null"]},"consolidatedRate":{"type":["string","null"],"enum":["Average","Current","Historical"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"incomeBalance":{"type":["string","null"],"enum":["Balance Sheet","Income Statement"]},"isGroup":{"type":["boolean","null"]},"isSystem":{"type":["boolean","null"]},"name":{"type":["string","null"]},"number":{"type":["string","null"]},"parentId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["netChange","balance","balanceAtDate","accountType","active","class","companyGroupId","consolidatedRate","createdAt","createdBy","customFields","id","incomeBalance","isGroup","isSystem","name","number","parentId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getCurrency":{"post":{"operationId":"accounting.getCurrency","summary":"get currency","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currencyId":{"type":"string"}},"required":["currencyId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"code":{"type":"string"},"companyGroupId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"decimalPlaces":{"type":"number"},"historicalExchangeRate":{"type":["number","null"]},"id":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"currencyCode":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["active","code","companyGroupId","createdAt","createdBy","customFields","decimalPlaces","historicalExchangeRate","id","tags","updatedAt","updatedBy","currencyCode"]}}}}}}},"/accounting/getBaseCurrencyDecimalPlaces":{"post":{"operationId":"accounting.getBaseCurrencyDecimalPlaces","summary":"settlement decimals for the company's base currency","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/accounting/getCurrencyByCode":{"post":{"operationId":"accounting.getCurrencyByCode","summary":"get currency by code","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currencyCode":{"type":"string"}},"required":["currencyCode"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":["boolean","null"]},"code":{"type":["string","null"]},"companyGroupId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"decimalPlaces":{"type":["number","null"]},"historicalExchangeRate":{"type":["number","null"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","code","companyGroupId","createdAt","createdBy","customFields","decimalPlaces","historicalExchangeRate","id","name","tags","updatedAt","updatedBy"]}}}}}}},"/accounting/getExchangeRate":{"post":{"operationId":"accounting.getExchangeRate","summary":"the one sanctioned answer to \"how many units of `currencyCode` per 1 unit of THIS company's base currency, right now\"","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currencyCode":{"type":"string"}},"required":["currencyCode"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/accounting/getExchangeRates":{"post":{"operationId":"accounting.getExchangeRates","summary":"every active currency of the company's group, resolved for THIS company, with provenance: 'base' | 'override' | 'market' | 'missing'","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"currencyCode":{"type":"string"},"decimalPlaces":{"type":"number"},"rate":{"type":"number"},"rateUpdatedAt":{"type":"string"},"source":{"type":"string"}},"required":["active","currencyCode","decimalPlaces","rate","rateUpdatedAt","source"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/upsertExchangeRateOverride":{"post":{"operationId":"accounting.upsertExchangeRateOverride","summary":"upsert exchange rate override","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currencyCode":{"type":"string"},"rate":{"type":"number"}},"required":["currencyCode","rate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/deleteExchangeRateOverride":{"post":{"operationId":"accounting.deleteExchangeRateOverride","summary":"delete exchange rate override","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currencyCode":{"type":"string"}},"required":["currencyCode"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/getCurrencies":{"post":{"operationId":"accounting.getCurrencies","summary":"get currencies","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"code":{"type":["string","null"]},"companyGroupId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"decimalPlaces":{"type":["number","null"]},"historicalExchangeRate":{"type":["number","null"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","code","companyGroupId","createdAt","createdBy","customFields","decimalPlaces","historicalExchangeRate","id","name","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getCurrenciesList":{"post":{"operationId":"accounting.getCurrenciesList","summary":"the full ISO currency list for pickers, carrying the company group's configured `decimalPlaces` where the currency has been set up","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"decimalPlaces":{"type":["number","null"]},"code":{"type":"string"},"name":{"type":"string"}},"required":["decimalPlaces","code","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getCurrentAccountingPeriod":{"post":{"operationId":"accounting.getCurrentAccountingPeriod","summary":"get current accounting period","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string"}},"required":["date"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"closedAt":{"type":["string","null"]},"closedBy":{"type":["string","null"]},"closeStatus":{"type":"string","enum":["Open","Locked","Closed"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"endDate":{"type":"string"},"fiscalYear":{"type":["number","null"]},"id":{"type":"string"},"lockedAt":{"type":["string","null"]},"lockedBy":{"type":["string","null"]},"periodNumber":{"type":["number","null"]},"startDate":{"type":"string"},"status":{"type":"string","enum":["Inactive","Active"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["closedAt","closedBy","closeStatus","companyId","createdAt","createdBy","endDate","fiscalYear","id","lockedAt","lockedBy","periodNumber","startDate","status","updatedAt","updatedBy"]}}}}}}},"/accounting/getOrCreateAccountingPeriod":{"post":{"operationId":"accounting.getOrCreateAccountingPeriod","summary":"get or create accounting period","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string"},"source":{}},"required":["date"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/accounting/getAccountingPeriods":{"post":{"operationId":"accounting.getAccountingPeriods","summary":"get accounting periods","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"status":{"type":"string","enum":["Inactive","Active"]},"closeStatus":{"type":"string","enum":["Open","Locked","Closed"]},"fiscalYear":{"type":["number","null"]},"periodNumber":{"type":["number","null"]},"lockedAt":{"type":["string","null"]},"lockedBy":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closedBy":{"type":["string","null"]}},"required":["id","startDate","endDate","status","closeStatus","fiscalYear","periodNumber","lockedAt","lockedBy","closedAt","closedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getAccountingPeriodDeletability":{"post":{"operationId":"accounting.getAccountingPeriodDeletability","summary":"get accounting period deletability","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"periodId":{"type":"string"}},"required":["periodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"canDelete":{"type":"boolean"},"reason":{"type":["string","null"]},"closeStatus":{"type":"string","enum":["Open","Locked","Closed"]},"journalCount":{"type":"number"},"startDate":{"type":"string"}},"required":["canDelete","reason","closeStatus","journalCount","startDate"]}}}}}}},"/accounting/deleteAccountingPeriod":{"post":{"operationId":"accounting.deleteAccountingPeriod","summary":"delete accounting period","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"periodId":{"type":"string"}},"required":["periodId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/accounting/getFiscalCalendarCommitted":{"post":{"operationId":"accounting.getFiscalCalendarCommitted","summary":"get fiscal calendar committed","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"committed":{"type":"boolean"}},"required":["committed"]}}}}}}},"/accounting/lockAccountingPeriod":{"post":{"operationId":"accounting.lockAccountingPeriod","summary":"lock accounting period","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"periodId":{"type":"string"}},"required":["periodId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/accounting/unlockAccountingPeriod":{"post":{"operationId":"accounting.unlockAccountingPeriod","summary":"unlock accounting period","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"periodId":{"type":"string"}},"required":["periodId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/accounting/closePeriodWithChecklist":{"post":{"operationId":"accounting.closePeriodWithChecklist","summary":"close period with checklist","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"periodId":{"type":"string"}},"required":["periodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/createFiscalYearPeriods":{"post":{"operationId":"accounting.createFiscalYearPeriods","summary":"create fiscal year periods","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fiscalYear":{"type":"number"}},"required":["fiscalYear"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/accounting/getPeriodExternalGlSyncReadiness":{"post":{"operationId":"accounting.getPeriodExternalGlSyncReadiness","summary":"the \"External GL sync complete\" close auto-check (autoCheckKey \"external-gl-sync\"): every journal posted into the period must carry a terminal disposition (Com…","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["startDate","endDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"failing":{"type":"boolean"},"count":{"type":"number"},"postingSyncEnabled":{"type":"boolean"}},"required":["failing","count","postingSyncEnabled"]}}}}}}},"/accounting/getPeriodCloseReadiness":{"post":{"operationId":"accounting.getPeriodCloseReadiness","summary":"get period close readiness","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"periodId":{"type":"string"}},"required":["periodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"checks":{"type":"array","items":{"type":"object","properties":{"autoCheckKey":{"type":"string"},"severity":{"type":"string","enum":["Warning","Blocker"]},"label":{"type":"string"},"failing":{"type":"boolean"},"count":{"type":"number"},"documents":{"type":["array","null"],"items":{"type":"object","properties":{"documentType":{"type":"string","enum":["Payment","Sales Invoice","Purchase Invoice","Receipt","Shipment","Credit Memo","Debit Memo","Journal Entry"]},"id":{"type":"string"},"readableId":{"type":"string"},"status":{"type":"string"}},"required":["documentType","id","readableId","status"]}}},"required":["autoCheckKey","severity","label","failing","count"]}},"blockers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"count":{"type":"number"}},"required":["key","label","count"]}},"warnings":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"count":{"type":"number"}},"required":["key","label","count"]}}},"required":["checks","blockers","warnings"]}}}}}}},"/accounting/getPeriodCloseChecklist":{"post":{"operationId":"accounting.getPeriodCloseChecklist","summary":"idempotently instantiate the checklist for a period from active definitions, then overlay live readiness","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"periodId":{"type":"string"}},"required":["periodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"readiness":{"type":"object","properties":{"blockers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"count":{"type":"number"}},"required":["key","label","count"]}},"warnings":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"count":{"type":"number"}},"required":["key","label","count"]}}},"required":["blockers","warnings"]},"tasks":{"type":"array","items":{}},"canClose":{"type":"boolean"},"blockingReason":{"type":["string","null"]},"autoTaskStates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Open","Skipped","Done"]}},"required":["id","status"]}}},"required":["readiness","tasks","canClose","blockingReason","autoTaskStates"]}}}}}}},"/accounting/completeCloseTask":{"post":{"operationId":"accounting.completeCloseTask","summary":"complete close task","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"taskId":{"type":"string"},"notes":{"type":"string"}},"required":["taskId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/accounting/skipCloseTask":{"post":{"operationId":"accounting.skipCloseTask","summary":"skip close task","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"taskId":{"type":"string"},"skippedReason":{"type":"string"}},"required":["taskId","skippedReason"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/accounting/getPeriodCloseTaskDefinitions":{"post":{"operationId":"accounting.getPeriodCloseTaskDefinitions","summary":"get period close task definitions","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"companyId":{"type":"string"},"name":{"type":"string"},"taskType":{"type":"string","enum":["Manual","Auto","Action"]},"autoCheckKey":{"type":["string","null"]},"sortOrder":{"type":"number"},"required":{"type":"boolean"},"severity":{"type":["string","null"],"enum":["Warning","Blocker"]},"active":{"type":"boolean"},"isSystem":{"type":"boolean"},"defaultAssigneeId":{"type":["string","null"]}},"required":["id","companyId","name","taskType","autoCheckKey","sortOrder","required","severity","active","isSystem","defaultAssigneeId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getDefaultAccounts":{"post":{"operationId":"accounting.getDefaultAccounts","summary":"get default accounts","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accumulatedDepreciationAccount":{"type":"string"},"accumulatedDepreciationOnDisposalAccount":{"type":"string"},"assetAquisitionCostAccount":{"type":"string"},"assetAquisitionCostOnDisposalAccount":{"type":"string"},"assetDepreciationExpenseAccount":{"type":"string"},"assetGainOnDisposalAccount":{"type":"string"},"assetLossOnDisposalAccount":{"type":"string"},"bankCashAccount":{"type":"string"},"bankForeignCurrencyAccount":{"type":"string"},"bankLocalCurrencyAccount":{"type":"string"},"companyId":{"type":"string"},"costOfGoodsSoldAccount":{"type":"string"},"currencyTranslationAccount":{"type":"string"},"customerPaymentDiscountAccount":{"type":"string"},"customerWriteOffAccount":{"type":"string"},"deferredTaxExpenseAccountId":{"type":["string","null"]},"deferredTaxLiabilityAccountId":{"type":["string","null"]},"employeeReimbursementsPayableAccount":{"type":["string","null"]},"finishedGoodsAccount":{"type":"string"},"goodsReceivedNotInvoicedAccount":{"type":"string"},"indirectCostAccount":{"type":"string"},"intercompanyPayablesAccount":{"type":["string","null"]},"intercompanyReceivablesAccount":{"type":["string","null"]},"interestAccount":{"type":"string"},"inventoryAdjustmentVarianceAccount":{"type":"string"},"laborAbsorptionAccount":{"type":["string","null"]},"laborAndMachineVarianceAccount":{"type":"string"},"lotSizeVarianceAccount":{"type":"string"},"maintenanceAccount":{"type":"string"},"materialVarianceAccount":{"type":"string"},"overheadAbsorptionAccount":{"type":["string","null"]},"overheadVarianceAccount":{"type":"string"},"payablesAccount":{"type":"string"},"prepaymentAccount":{"type":"string"},"purchaseTaxPayableAccount":{"type":"string"},"purchaseVarianceAccount":{"type":"string"},"rawMaterialsAccount":{"type":"string"},"realizedExchangeGainAccount":{"type":"string"},"realizedExchangeLossAccount":{"type":"string"},"receivablesAccount":{"type":"string"},"retainedEarningsAccount":{"type":"string"},"reverseChargeSalesTaxPayableAccount":{"type":"string"},"roundingAccount":{"type":"string"},"salesAccount":{"type":"string"},"salesDiscountAccount":{"type":"string"},"salesReturnsAccount":{"type":["string","null"]},"salesShippingRevenueAccount":{"type":["string","null"]},"salesTaxPayableAccount":{"type":"string"},"scrapAccount":{"type":["string","null"]},"serviceChargeAccount":{"type":"string"},"subcontractingVarianceAccount":{"type":"string"},"supplierPaymentDiscountAccount":{"type":"string"},"supplierPrepaymentAccount":{"type":"string"},"supplierWriteOffAccount":{"type":"string"},"updatedBy":{"type":["string","null"]},"workInProgressAccount":{"type":"string"}},"required":["accumulatedDepreciationAccount","accumulatedDepreciationOnDisposalAccount","assetAquisitionCostAccount","assetAquisitionCostOnDisposalAccount","assetDepreciationExpenseAccount","assetGainOnDisposalAccount","assetLossOnDisposalAccount","bankCashAccount","bankForeignCurrencyAccount","bankLocalCurrencyAccount","companyId","costOfGoodsSoldAccount","currencyTranslationAccount","customerPaymentDiscountAccount","customerWriteOffAccount","deferredTaxExpenseAccountId","deferredTaxLiabilityAccountId","employeeReimbursementsPayableAccount","finishedGoodsAccount","goodsReceivedNotInvoicedAccount","indirectCostAccount","intercompanyPayablesAccount","intercompanyReceivablesAccount","interestAccount","inventoryAdjustmentVarianceAccount","laborAbsorptionAccount","laborAndMachineVarianceAccount","lotSizeVarianceAccount","maintenanceAccount","materialVarianceAccount","overheadAbsorptionAccount","overheadVarianceAccount","payablesAccount","prepaymentAccount","purchaseTaxPayableAccount","purchaseVarianceAccount","rawMaterialsAccount","realizedExchangeGainAccount","realizedExchangeLossAccount","receivablesAccount","retainedEarningsAccount","reverseChargeSalesTaxPayableAccount","roundingAccount","salesAccount","salesDiscountAccount","salesReturnsAccount","salesShippingRevenueAccount","salesTaxPayableAccount","scrapAccount","serviceChargeAccount","subcontractingVarianceAccount","supplierPaymentDiscountAccount","supplierPrepaymentAccount","supplierWriteOffAccount","updatedBy","workInProgressAccount"]}}}}}}},"/accounting/getScrapAccountIds":{"post":{"operationId":"accounting.getScrapAccountIds","summary":"the GL account ids scrap postings offset to, for the scrap analytics report's account scope (accountScope.source === \"scrapAccounts\")","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"string"}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getFiscalYearSettings":{"post":{"operationId":"accounting.getFiscalYearSettings","summary":"get fiscal year settings","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"startMonth":{"type":"string","enum":["January","February","March","April","May","June","July","August","September","October","November","December"]},"taxStartMonth":{"type":"string","enum":["January","February","March","April","May","June","July","August","September","October","November","December"]},"updatedBy":{"type":"string"}},"required":["companyId","startMonth","taxStartMonth","updatedBy"]}}}}}}},"/accounting/getPaymentTerm":{"post":{"operationId":"accounting.getPaymentTerm","summary":"get payment term","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"paymentTermId":{"type":"string"}},"required":["paymentTermId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"calculationMethod":{"type":"string","enum":["Net","End of Month","Day of Month"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"daysDiscount":{"type":"number"},"daysDue":{"type":"number"},"discountPercentage":{"type":"number"},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","calculationMethod","companyId","createdAt","createdBy","customFields","daysDiscount","daysDue","discountPercentage","id","name","tags","updatedAt","updatedBy"]}}}}}}},"/accounting/getPaymentTerms":{"post":{"operationId":"accounting.getPaymentTerms","summary":"get payment terms","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"calculationMethod":{"type":"string","enum":["Net","End of Month","Day of Month"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"daysDiscount":{"type":"number"},"daysDue":{"type":"number"},"discountPercentage":{"type":"number"},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","calculationMethod","companyId","createdAt","createdBy","customFields","daysDiscount","daysDue","discountPercentage","id","name","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getPaymentTermsList":{"post":{"operationId":"accounting.getPaymentTermsList","summary":"get payment terms list","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/updateDefaultAccounts":{"post":{"operationId":"accounting.updateDefaultAccounts","summary":"save both defaults sections atomically after validating the effective mapping","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rawMaterialsAccount":{"type":"string","minLength":1},"finishedGoodsAccount":{"type":"string","minLength":1},"goodsReceivedNotInvoicedAccount":{"type":"string","minLength":1},"workInProgressAccount":{"type":"string","minLength":1},"receivablesAccount":{"type":"string","minLength":1},"bankCashAccount":{"type":"string","minLength":1},"bankLocalCurrencyAccount":{"type":"string","minLength":1},"bankForeignCurrencyAccount":{"type":"string","minLength":1},"assetAquisitionCostAccount":{"type":"string","minLength":1},"assetAquisitionCostOnDisposalAccount":{"type":"string","minLength":1},"accumulatedDepreciationAccount":{"type":"string","minLength":1},"accumulatedDepreciationOnDisposalAccount":{"type":"string","minLength":1},"prepaymentAccount":{"type":"string","minLength":1},"supplierPrepaymentAccount":{"type":"string","minLength":1},"payablesAccount":{"type":"string","minLength":1},"employeeReimbursementsPayableAccount":{"type":"string"},"salesTaxPayableAccount":{"type":"string","minLength":1},"purchaseTaxPayableAccount":{"type":"string","minLength":1},"reverseChargeSalesTaxPayableAccount":{"type":"string","minLength":1},"retainedEarningsAccount":{"type":"string","minLength":1},"currencyTranslationAccount":{"type":"string","minLength":1},"deferredTaxLiabilityAccountId":{"type":"string","minLength":1},"salesAccount":{"type":"string","minLength":1},"salesShippingRevenueAccount":{"type":"string","minLength":1},"salesDiscountAccount":{"type":"string","minLength":1},"costOfGoodsSoldAccount":{"type":"string","minLength":1},"purchaseVarianceAccount":{"type":"string","minLength":1},"inventoryAdjustmentVarianceAccount":{"type":"string","minLength":1},"scrapAccount":{"type":"string"},"materialVarianceAccount":{"type":"string","minLength":1},"laborAndMachineVarianceAccount":{"type":"string","minLength":1},"overheadVarianceAccount":{"type":"string","minLength":1},"lotSizeVarianceAccount":{"type":"string","minLength":1},"subcontractingVarianceAccount":{"type":"string","minLength":1},"laborAbsorptionAccount":{"type":"string","minLength":1},"overheadAbsorptionAccount":{"type":"string"},"indirectCostAccount":{"type":"string","minLength":1},"maintenanceAccount":{"type":"string","minLength":1},"assetDepreciationExpenseAccount":{"type":"string","minLength":1},"assetGainOnDisposalAccount":{"type":"string","minLength":1},"assetLossOnDisposalAccount":{"type":"string","minLength":1},"serviceChargeAccount":{"type":"string","minLength":1},"interestAccount":{"type":"string","minLength":1},"supplierPaymentDiscountAccount":{"type":"string","minLength":1},"customerPaymentDiscountAccount":{"type":"string","minLength":1},"customerWriteOffAccount":{"type":"string","minLength":1},"supplierWriteOffAccount":{"type":"string","minLength":1},"realizedExchangeGainAccount":{"type":"string","minLength":1},"realizedExchangeLossAccount":{"type":"string","minLength":1},"roundingAccount":{"type":"string","minLength":1},"deferredTaxExpenseAccountId":{"type":"string","minLength":1}},"required":["rawMaterialsAccount","finishedGoodsAccount","goodsReceivedNotInvoicedAccount","workInProgressAccount","receivablesAccount","bankCashAccount","bankLocalCurrencyAccount","bankForeignCurrencyAccount","assetAquisitionCostAccount","assetAquisitionCostOnDisposalAccount","accumulatedDepreciationAccount","accumulatedDepreciationOnDisposalAccount","prepaymentAccount","supplierPrepaymentAccount","payablesAccount","salesTaxPayableAccount","purchaseTaxPayableAccount","reverseChargeSalesTaxPayableAccount","retainedEarningsAccount","currencyTranslationAccount","deferredTaxLiabilityAccountId","salesAccount","salesDiscountAccount","costOfGoodsSoldAccount","purchaseVarianceAccount","inventoryAdjustmentVarianceAccount","materialVarianceAccount","laborAndMachineVarianceAccount","overheadVarianceAccount","lotSizeVarianceAccount","subcontractingVarianceAccount","laborAbsorptionAccount","indirectCostAccount","maintenanceAccount","assetDepreciationExpenseAccount","assetGainOnDisposalAccount","assetLossOnDisposalAccount","serviceChargeAccount","interestAccount","supplierPaymentDiscountAccount","customerPaymentDiscountAccount","customerWriteOffAccount","supplierWriteOffAccount","realizedExchangeGainAccount","realizedExchangeLossAccount","roundingAccount","deferredTaxExpenseAccountId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/updateFiscalYearSettings":{"post":{"operationId":"accounting.updateFiscalYearSettings","summary":"update fiscal year settings","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startMonth":{"type":"string","enum":["January","February","March","April","May","June","July","August","September","October","November","December"]},"taxStartMonth":{"type":"string","enum":["January","February","March","April","May","June","July","August","September","October","November","December"]}},"required":["startMonth","taxStartMonth"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/upsertAccount":{"post":{"operationId":"accounting.upsertAccount","summary":"upsert account","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"number":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"name":{"type":"string","minLength":1},"parentId":{"type":"string"},"isGroup":{"type":"boolean"},"accountType":{"type":"string","enum":["Bank","Cash","Accounts Receivable","Accounts Payable","Inventory","Fixed Asset","Accumulated Depreciation","Other Current Asset","Other Asset","Other Current Liability","Long Term Liability","Equity - No Close","Equity - Close","Retained Earnings","Income","Cost of Goods Sold","Expense","Other Income","Other Expense","Tax","Investments"]},"incomeBalance":{"type":"string","enum":["Balance Sheet","Income Statement"]},"class":{"type":"string","enum":["Asset","Liability","Equity","Revenue","Expense"]},"consolidatedRate":{"type":"string","enum":["Average","Current","Historical"]},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","incomeBalance","class","consolidatedRate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/upsertCurrency":{"post":{"operationId":"accounting.upsertCurrency","summary":"upsert currency","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1},"decimalPlaces":{"type":"number","minimum":0,"maximum":4},"historicalExchangeRate":{"type":"number","exclusiveMinimum":0},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["code","decimalPlaces"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/upsertPaymentTerm":{"post":{"operationId":"accounting.upsertPaymentTerm","summary":"upsert payment term","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"daysDue":{"type":"number","minimum":0},"daysDiscount":{"type":"number","minimum":0},"discountPercentage":{"type":"number","minimum":0,"maximum":100},"calculationMethod":{"type":"string","enum":["Net","End of Month","Day of Month"]},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","daysDue","daysDiscount","discountPercentage","calculationMethod"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/deleteCostCenter":{"post":{"operationId":"accounting.deleteCostCenter","summary":"delete cost center","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"costCenterId":{"type":"string"}},"required":["costCenterId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/getCostCenter":{"post":{"operationId":"accounting.getCostCenter","summary":"get cost center","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"costCenterId":{"type":"string"}},"required":["costCenterId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"ownerId":{"type":["string","null"]},"parentCostCenterId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","ownerId","parentCostCenterId","updatedAt","updatedBy"]}}}}}}},"/accounting/getCostCenters":{"post":{"operationId":"accounting.getCostCenters","summary":"get cost centers","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"ownerId":{"type":["string","null"]},"parentCostCenterId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","ownerId","parentCostCenterId","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getCostCentersList":{"post":{"operationId":"accounting.getCostCentersList","summary":"get cost centers list","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getCostCentersTree":{"post":{"operationId":"accounting.getCostCentersTree","summary":"get cost centers tree","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"parentCostCenterId":{"type":["string","null"]},"ownerId":{"type":["string","null"]},"owner":{"type":["object","null"],"properties":{"fullName":{"type":["string","null"]}},"required":["fullName"]}},"required":["id","name","parentCostCenterId","ownerId","owner"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/upsertCostCenter":{"post":{"operationId":"accounting.upsertCostCenter","summary":"upsert cost center","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"parentCostCenterId":{"type":"string"},"ownerId":{"type":"string","minLength":1},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","ownerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/deleteProject":{"post":{"operationId":"accounting.deleteProject","summary":"delete project","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string"}},"required":["projectId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/getProject":{"post":{"operationId":"accounting.getProject","summary":"get project","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string"}},"required":["projectId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","description","id","name","updatedAt","updatedBy"]}}}}}}},"/accounting/getProjects":{"post":{"operationId":"accounting.getProjects","summary":"get projects","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","description","id","name","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/upsertProject":{"post":{"operationId":"accounting.upsertProject","summary":"upsert project","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/getDimensions":{"post":{"operationId":"accounting.getDimensions","summary":"get dimensions","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"companyGroupId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"entityType":{"type":"string","enum":["WorkCenter","Employee","Custom","Location","ItemPostingGroup","SupplierType","CustomerType","Department","CostCenter","Process","FixedAssetClass","Customer","Supplier","Item","ScrapReason","Project"]},"id":{"type":"string"},"name":{"type":"string"},"required":{"type":"boolean"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"dimensionValue":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["active","companyGroupId","createdAt","createdBy","entityType","id","name","required","updatedAt","updatedBy","dimensionValue"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getDimension":{"post":{"operationId":"accounting.getDimension","summary":"get dimension","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dimensionId":{"type":"string"}},"required":["dimensionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyGroupId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"entityType":{"type":"string","enum":["WorkCenter","Employee","Custom","Location","ItemPostingGroup","SupplierType","CustomerType","Department","CostCenter","Process","FixedAssetClass","Customer","Supplier","Item","ScrapReason","Project"]},"id":{"type":"string"},"name":{"type":"string"},"required":{"type":"boolean"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"dimensionValue":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["active","companyGroupId","createdAt","createdBy","entityType","id","name","required","updatedAt","updatedBy","dimensionValue"]}}}}}}},"/accounting/upsertDimension":{"post":{"operationId":"accounting.upsertDimension","summary":"upsert dimension","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dimension":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1},"entityType":{"type":"string","enum":["CostCenter","Custom","Customer","CustomerType","Department","Employee","FixedAssetClass","Item","ItemPostingGroup","Location","Process","Project","ScrapReason","Supplier","SupplierType","WorkCenter"]},"active":{"type":"boolean"},"required":{"type":"boolean"}},"required":["name","entityType"]},{"type":"object","properties":{"name":{"type":"string","minLength":1},"entityType":{"type":"string","enum":["CostCenter","Custom","Customer","CustomerType","Department","Employee","FixedAssetClass","Item","ItemPostingGroup","Location","Process","Project","ScrapReason","Supplier","SupplierType","WorkCenter"]},"active":{"type":"boolean"},"required":{"type":"boolean"},"id":{"type":"string"}},"required":["name","entityType","id"]}],"description":"Include `id` to update that record; leave it out to create a new one."},"dimensionValues":{"type":"array","items":{"type":"string"}}},"required":["dimension"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"companyGroupId":{"type":"string"}},"required":["id","companyGroupId"]}}}}}}},"/accounting/deleteDimension":{"post":{"operationId":"accounting.deleteDimension","summary":"delete dimension","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dimensionId":{"type":"string"}},"required":["dimensionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/getActiveDimensionsWithValues":{"post":{"operationId":"accounting.getActiveDimensionsWithValues","summary":"get active dimensions with values","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"dimensionId":{"type":"string"},"dimensionName":{"type":"string"},"entityType":{"type":"string","enum":["WorkCenter","Employee","Custom","Location","ItemPostingGroup","SupplierType","CustomerType","Department","CostCenter","Process","FixedAssetClass","Customer","Supplier","Item","ScrapReason","Project"]},"required":{"type":"boolean"},"values":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["dimensionId","dimensionName","entityType","required","values"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getJournalLineDimensions":{"post":{"operationId":"accounting.getJournalLineDimensions","summary":"get journal line dimensions","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"journalLineIds":{"type":"array","items":{"type":"string"}}},"required":["journalLineIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"dimensionId":{"type":"string"},"dimensionName":{"type":"string"},"valueId":{"type":"string"},"valueName":{"type":"string"}},"required":["dimensionId","dimensionName","valueId","valueName"]}}}}}}}}},"/accounting/saveJournalLineDimensions":{"post":{"operationId":"accounting.saveJournalLineDimensions","summary":"save journal line dimensions","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"journalLineId":{"type":"string"},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimensionId":{"type":"string"},"valueId":{"type":"string"}},"required":["dimensionId","valueId"]}}},"required":["journalLineId","dimensions"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/translateCompanyBalances":{"post":{"operationId":"accounting.translateCompanyBalances","summary":"translate company balances","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"targetCurrency":{"type":"string"},"periodEnd":{"type":"string"},"periodStart":{"type":"string"},"balances":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"balanceAtDate":{"type":"number"},"consolidatedRate":{"type":["string","null"]},"isGroup":{"type":["boolean","null"]},"class":{"type":["string","null"]}},"required":["id","balanceAtDate","consolidatedRate","isGroup","class"]}}},"required":["targetCurrency","periodEnd","periodStart","balances"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string"},"localBalance":{"type":"number"},"exchangeRate":{"type":"number"},"translatedBalance":{"type":"number"}},"required":["accountId","localBalance","exchangeRate","translatedBalance"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getConsolidatedBalances":{"post":{"operationId":"accounting.getConsolidatedBalances","summary":"get consolidated balances","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"companyIds":{"type":"array","items":{"type":"string"}},"targetCurrency":{"type":"string"},"periodEnd":{"type":"string"},"periodStart":{"type":"string"}},"required":["companyIds","targetCurrency","periodEnd"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"balance":{"type":"number"},"balanceAtDate":{"type":"number"},"netChange":{"type":"number"},"translatedBalance":{"type":"number"},"exchangeRate":{"type":"number"},"accountType":{"type":["string","null"],"enum":["Bank","Cash","Accounts Receivable","Accounts Payable","Inventory","Fixed Asset","Accumulated Depreciation","Other Current Asset","Other Asset","Other Current Liability","Long Term Liability","Equity - No Close","Equity - Close","Retained Earnings","Income","Cost of Goods Sold","Expense","Other Income","Other Expense","Tax","Investments"]},"active":{"type":["boolean","null"]},"class":{"type":["string","null"],"enum":["Expense","Asset","Liability","Equity","Revenue"]},"companyGroupId":{"type":["string","null"]},"consolidatedRate":{"type":["string","null"],"enum":["Average","Current","Historical"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"incomeBalance":{"type":["string","null"],"enum":["Balance Sheet","Income Statement"]},"isGroup":{"type":["boolean","null"]},"isSystem":{"type":["boolean","null"]},"name":{"type":["string","null"]},"number":{"type":["string","null"]},"parentId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["balance","balanceAtDate","netChange","translatedBalance","exchangeRate","accountType","active","class","companyGroupId","consolidatedRate","createdAt","createdBy","customFields","id","incomeBalance","isGroup","isSystem","name","number","parentId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getIntercompanyTransactions":{"post":{"operationId":"accounting.getIntercompanyTransactions","summary":"get intercompany transactions","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"status":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number"},"companyGroupId":{"type":"string"},"createdAt":{"type":"string"},"currencyCode":{"type":"string"},"description":{"type":["string","null"]},"documentId":{"type":["string","null"]},"documentType":{"type":["string","null"],"enum":["Charge","Payment","Sales Shipment","Purchase Receipt","Purchase Invoice","Transfer Shipment","Job Consumption","Job Receipt","Batch Split","Maintenance Consumption","Non-Conformance","Inbound Inspection","Inventory Count","Scrap","Batch Merge","Receipt","Invoice","Credit Memo","Blanket Order","Return Order","Production Event","Job Close","Memo","Inventory Adjustment","Reimbursement","Maintenance Event"]},"eliminationJournalId":{"type":["string","null"]},"id":{"type":"string"},"sourceCompanyId":{"type":"string"},"sourceJournalLineId":{"type":"string"},"status":{"type":"string"},"targetCompanyId":{"type":"string"},"targetJournalLineId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"sourceCompany":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"targetCompany":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["amount","companyGroupId","createdAt","currencyCode","description","documentId","documentType","eliminationJournalId","id","sourceCompanyId","sourceJournalLineId","status","targetCompanyId","targetJournalLineId","updatedAt","sourceCompany","targetCompany"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/createIntercompanyTransaction":{"post":{"operationId":"accounting.createIntercompanyTransaction","summary":"create intercompany transaction","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceCompanyId":{"type":"string","minLength":1},"targetCompanyId":{"type":"string","minLength":1},"amount":{"type":"number","exclusiveMinimum":0},"currencyCode":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"debitAccountId":{"type":"string","minLength":1},"creditAccountId":{"type":"string","minLength":1},"postingDate":{"type":"string"}},"required":["sourceCompanyId","targetCompanyId","amount","currencyCode","description","debitAccountId","creditAccountId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/getIntercompanyEliminationLines":{"post":{"operationId":"accounting.getIntercompanyEliminationLines","summary":"get intercompany elimination lines","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transactionIds":{"type":"array","items":{"type":"string"}}},"required":["transactionIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{}},{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string"},"amount":{"type":"number"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"intercompanyTransactionId":{"type":"string"},"itemId":{"type":["string","null"]},"journalLineId":{"type":"string"},"quantity":{"type":["number","null"]},"role":{"type":"string","enum":["Revenue","Control","COGS","Capitalization"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","amount","companyId","createdAt","createdBy","id","intercompanyTransactionId","itemId","journalLineId","quantity","role","updatedAt","updatedBy"]}},{"type":"null"}]}}}}}}},"/accounting/runIntercompanyMatching":{"post":{"operationId":"accounting.runIntercompanyMatching","summary":"run intercompany matching","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number"},"id":{"type":"string"},"matchedWithId":{"type":"string"},"sourceCompanyId":{"type":"string"},"status":{"type":"string"},"targetCompanyId":{"type":"string"}},"required":["amount","id","matchedWithId","sourceCompanyId","status","targetCompanyId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/generateEliminations":{"post":{"operationId":"accounting.generateEliminations","summary":"generate eliminations","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"regenerate":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/accounting/getIntercompanyBalance":{"post":{"operationId":"accounting.getIntercompanyBalance","summary":"get intercompany balance","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"balance":{"type":"number"},"sourceCompanyId":{"type":"string"},"sourceCompanyName":{"type":"string"},"targetCompanyId":{"type":"string"},"targetCompanyName":{"type":"string"}},"required":["balance","sourceCompanyId","sourceCompanyName","targetCompanyId","targetCompanyName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getExchangeRateHistory":{"post":{"operationId":"accounting.getExchangeRateHistory","summary":"market-rate history for the chart on the exchange-rates page","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currencyCode":{"type":"string"}},"required":["currencyCode"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"effectiveDate":{"type":"string"},"rate":{"type":"number"}},"required":["effectiveDate","rate"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getJournalEntries":{"post":{"operationId":"accounting.getJournalEntries","summary":"get journal entries","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountingPeriodId":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"id":{"type":["string","null"]},"journalEntryId":{"type":["string","null"]},"lineCount":{"type":["number","null"]},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"reversalOfId":{"type":["string","null"]},"reversedById":{"type":["string","null"]},"sourceType":{"type":["string","null"],"enum":["Charge","Payment","Sales Shipment","Sales Invoice","Sales Return Receipt","Purchase Receipt","Purchase Invoice","Purchase Return Shipment","Transfer Receipt","Job Consumption","Job Receipt","Non-Conformance","Inbound Inspection","Sales Return Shipment","Credit Memo","Production Event","Job Close","Inventory Adjustment","Reimbursement","Maintenance Event","Manual","Purchase Return","Sales Return","Production Order","Asset Depreciation","Asset Disposal","Debit Memo","Opening Balance"]},"status":{"type":["string","null"],"enum":["Draft","Posted","Reversed"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"totalCredits":{"type":["number","null"]},"totalDebits":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountingPeriodId","companyId","createdAt","createdBy","customFields","description","id","journalEntryId","lineCount","postedAt","postedBy","postingDate","reversalOfId","reversedById","sourceType","status","tags","totalCredits","totalDebits","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getJournalEntry":{"post":{"operationId":"accounting.getJournalEntry","summary":"get journal entry","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accountingPeriodId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"eliminationKind":{"type":["string","null"],"enum":["IC Balance","IC Revenue"]},"id":{"type":"string"},"journalEntryId":{"type":"string"},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":"string"},"reversalOfId":{"type":["string","null"]},"reversedById":{"type":["string","null"]},"sourceType":{"type":["string","null"],"enum":["Charge","Payment","Sales Shipment","Sales Invoice","Sales Return Receipt","Purchase Receipt","Purchase Invoice","Purchase Return Shipment","Transfer Receipt","Job Consumption","Job Receipt","Non-Conformance","Inbound Inspection","Sales Return Shipment","Credit Memo","Production Event","Job Close","Inventory Adjustment","Reimbursement","Maintenance Event","Manual","Purchase Return","Sales Return","Production Order","Asset Depreciation","Asset Disposal","Debit Memo","Opening Balance"]},"status":{"type":"string","enum":["Draft","Posted","Reversed"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"journalLine":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":["string","null"]},"accrual":{"type":"boolean"},"amount":{"type":"number"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"documentId":{"type":["string","null"]},"documentLineReference":{"type":["string","null"]},"documentType":{"type":["string","null"],"enum":["Charge","Payment","Sales Shipment","Purchase Receipt","Purchase Invoice","Transfer Shipment","Job Consumption","Job Receipt","Batch Split","Maintenance Consumption","Non-Conformance","Inbound Inspection","Inventory Count","Scrap","Batch Merge","Receipt","Invoice","Credit Memo","Blanket Order","Return Order","Production Event","Job Close","Memo","Inventory Adjustment","Reimbursement","Maintenance Event"]},"externalDocumentId":{"type":["string","null"]},"id":{"type":"string"},"intercompanyPartnerId":{"type":["string","null"]},"journalId":{"type":"string"},"journalLineReference":{"type":"string"},"quantity":{"type":"number"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"account":{"type":["object","null"],"properties":{"class":{"type":["string","null"],"enum":["Expense","Asset","Liability","Equity","Revenue"]}},"required":["class"]}},"required":["accountId","accrual","amount","companyId","createdAt","createdBy","customFields","description","documentId","documentLineReference","documentType","externalDocumentId","id","intercompanyPartnerId","journalId","journalLineReference","quantity","tags","updatedAt","updatedBy","account"]}}},"required":["accountingPeriodId","companyId","createdAt","createdBy","customFields","description","eliminationKind","id","journalEntryId","postedAt","postedBy","postingDate","reversalOfId","reversedById","sourceType","status","tags","updatedAt","updatedBy","journalLine"]}}}}}}},"/accounting/createJournalEntry":{"post":{"operationId":"accounting.createJournalEntry","summary":"create journal entry","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"postingDate":{"type":"string","minLength":1},"journalEntryId":{"type":"string"},"sourceType":{"type":"string","enum":["Manual","Purchase Receipt","Purchase Invoice","Purchase Return","Sales Invoice","Sales Shipment","Sales Return","Transfer Receipt","Inventory Adjustment","Production Order","Job Consumption","Job Receipt","Production Event","Job Close","Asset Depreciation","Asset Disposal","Payment","Credit Memo","Debit Memo","Non-Conformance","Inbound Inspection","Opening Balance","Sales Return Receipt","Sales Return Shipment","Purchase Return Shipment","Charge","Reimbursement","Maintenance Event"]}},"required":["postingDate","journalEntryId","sourceType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/deleteJournalEntry":{"post":{"operationId":"accounting.deleteJournalEntry","summary":"delete journal entry","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/saveJournalEntryWithLines":{"post":{"operationId":"accounting.saveJournalEntryWithLines","summary":"save journal entry with lines","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"journalEntryId":{"type":"string"},"postingDate":{"type":"string"},"description":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string"},"description":{"type":"string"},"debit":{"type":"number"},"credit":{"type":"number"},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimensionId":{"type":"string"},"valueId":{"type":"string"}},"required":["dimensionId","valueId"]}}},"required":["accountId","debit","credit"]}}},"required":["journalEntryId","postingDate","lines"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/postJournalEntry":{"post":{"operationId":"accounting.postJournalEntry","summary":"post journal entry","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/getExistingOpeningBalanceEntry":{"post":{"operationId":"accounting.getExistingOpeningBalanceEntry","summary":"get existing opening balance entry","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/createOpeningBalanceJournal":{"post":{"operationId":"accounting.createOpeningBalanceJournal","summary":"create opening balance journal","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"postingDate":{"type":"string"},"balances":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string"},"amount":{"type":"number"}},"required":["accountId","amount"]}}},"required":["postingDate","balances"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/reverseJournalEntry":{"post":{"operationId":"accounting.reverseJournalEntry","summary":"reverse journal entry","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"data":{"type":"object","properties":{"journalEntryId":{"type":"string"}}}},"required":["id","data"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/getFixedAssetClasses":{"post":{"operationId":"accounting.getFixedAssetClasses","summary":"get fixed asset classes","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"depreciationMethod":{"type":"string","enum":["Straight Line","Declining Balance","Units of Production"]},"usefulLifeMonths":{"type":"number"},"residualValuePercent":{"type":"number"},"taxDepreciationMethod":{"type":["string","null"],"enum":["Straight Line","Declining Balance","MACRS"]},"taxUsefulLifeMonths":{"type":["number","null"]},"macrsPropertyClass":{"type":["string","null"],"enum":["3","5","7","10","15","20","27.5","39"]}},"required":["id","name","description","depreciationMethod","usefulLifeMonths","residualValuePercent","taxDepreciationMethod","taxUsefulLifeMonths","macrsPropertyClass"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getFixedAssetClass":{"post":{"operationId":"accounting.getFixedAssetClass","summary":"get fixed asset class","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accumulatedDepreciationAccountId":{"type":"string"},"assetAccountId":{"type":"string"},"bonusDepreciationPercent":{"type":["number","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"depreciationExpenseAccountId":{"type":"string"},"depreciationMethod":{"type":"string","enum":["Straight Line","Declining Balance","Units of Production"]},"description":{"type":["string","null"]},"gainOnDisposalAccountId":{"type":"string"},"id":{"type":"string"},"lossOnDisposalAccountId":{"type":"string"},"macrsConvention":{"type":["string","null"],"enum":["Half-Year","Mid-Quarter"]},"macrsPropertyClass":{"type":["string","null"],"enum":["3","5","7","10","15","20","27.5","39"]},"name":{"type":"string"},"residualValuePercent":{"type":"number"},"taxDepreciationMethod":{"type":["string","null"],"enum":["Straight Line","Declining Balance","MACRS"]},"taxResidualValuePercent":{"type":["number","null"]},"taxUsefulLifeMonths":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"usefulLifeMonths":{"type":"number"},"writeDownAccountId":{"type":"string"},"writeOffAccountId":{"type":"string"}},"required":["accumulatedDepreciationAccountId","assetAccountId","bonusDepreciationPercent","companyId","createdAt","createdBy","customFields","depreciationExpenseAccountId","depreciationMethod","description","gainOnDisposalAccountId","id","lossOnDisposalAccountId","macrsConvention","macrsPropertyClass","name","residualValuePercent","taxDepreciationMethod","taxResidualValuePercent","taxUsefulLifeMonths","updatedAt","updatedBy","usefulLifeMonths","writeDownAccountId","writeOffAccountId"]}}}}}}},"/accounting/getFixedAssetClassesList":{"post":{"operationId":"accounting.getFixedAssetClassesList","summary":"get fixed asset classes list","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"depreciationMethod":{"type":"string","enum":["Straight Line","Declining Balance","Units of Production"]},"usefulLifeMonths":{"type":"number"},"residualValuePercent":{"type":"number"},"taxDepreciationMethod":{"type":["string","null"],"enum":["Straight Line","Declining Balance","MACRS"]},"taxUsefulLifeMonths":{"type":["number","null"]},"taxResidualValuePercent":{"type":["number","null"]},"macrsPropertyClass":{"type":["string","null"],"enum":["3","5","7","10","15","20","27.5","39"]},"macrsConvention":{"type":["string","null"],"enum":["Half-Year","Mid-Quarter"]},"bonusDepreciationPercent":{"type":["number","null"]}},"required":["id","name","depreciationMethod","usefulLifeMonths","residualValuePercent","taxDepreciationMethod","taxUsefulLifeMonths","taxResidualValuePercent","macrsPropertyClass","macrsConvention","bonusDepreciationPercent"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/upsertFixedAssetClass":{"post":{"operationId":"accounting.upsertFixedAssetClass","summary":"upsert fixed asset class","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"anyOf":[{},{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}],"description":"Include `id` to update that record; leave it out to create a new one."}},"required":["data"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/deleteFixedAssetClass":{"post":{"operationId":"accounting.deleteFixedAssetClass","summary":"delete fixed asset class","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/getFixedAssets":{"post":{"operationId":"accounting.getFixedAssets","summary":"get fixed assets","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Draft","Active","Fully Depreciated","Disposed"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"fixedAssetId":{"type":"string"},"fixedAssetClassId":{"type":"string"},"name":{"type":"string"},"serialNumber":{"type":["string","null"]},"status":{"type":"string","enum":["Active","Draft","Fully Depreciated","Disposed"]},"depreciationMethod":{"type":"string","enum":["Straight Line","Declining Balance","Units of Production"]},"acquisitionCost":{"type":"number"},"accumulatedDepreciation":{"type":"number"},"fixedAssetClass":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"location":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["id","fixedAssetId","fixedAssetClassId","name","serialNumber","status","depreciationMethod","acquisitionCost","accumulatedDepreciation","fixedAssetClass","location"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getFixedAsset":{"post":{"operationId":"accounting.getFixedAsset","summary":"get fixed asset","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accumulatedDepreciation":{"type":"number"},"accumulatedTaxDepreciation":{"type":"number"},"acquisitionCost":{"type":"number"},"acquisitionDate":{"type":["string","null"]},"assetLifetimeUsage":{"type":["number","null"]},"bonusDepreciationPercent":{"type":["number","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"depreciationMethod":{"type":"string","enum":["Straight Line","Declining Balance","Units of Production"]},"depreciationStartDate":{"type":["string","null"]},"description":{"type":["string","null"]},"disposalDate":{"type":["string","null"]},"disposalMethod":{"type":["string","null"],"enum":["Sale","Scrapping"]},"fixedAssetClassId":{"type":"string"},"fixedAssetId":{"type":"string"},"id":{"type":"string"},"locationId":{"type":["string","null"]},"macrsConvention":{"type":["string","null"],"enum":["Half-Year","Mid-Quarter"]},"macrsPropertyClass":{"type":["string","null"],"enum":["3","5","7","10","15","20","27.5","39"]},"name":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"residualValuePercent":{"type":"number"},"saleProceeds":{"type":["number","null"]},"serialNumber":{"type":["string","null"]},"status":{"type":"string","enum":["Active","Draft","Fully Depreciated","Disposed"]},"taxDepreciationMethod":{"type":["string","null"],"enum":["Straight Line","Declining Balance","MACRS"]},"taxResidualValuePercent":{"type":["number","null"]},"taxUsefulLifeMonths":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"usefulLifeMonths":{"type":"number"},"fixedAssetClass":{"type":"object","properties":{"accumulatedDepreciationAccountId":{"type":"string"},"assetAccountId":{"type":"string"},"bonusDepreciationPercent":{"type":["number","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"depreciationExpenseAccountId":{"type":"string"},"depreciationMethod":{"type":"string","enum":["Straight Line","Declining Balance","Units of Production"]},"description":{"type":["string","null"]},"gainOnDisposalAccountId":{"type":"string"},"id":{"type":"string"},"lossOnDisposalAccountId":{"type":"string"},"macrsConvention":{"type":["string","null"],"enum":["Half-Year","Mid-Quarter"]},"macrsPropertyClass":{"type":["string","null"],"enum":["3","5","7","10","15","20","27.5","39"]},"name":{"type":"string"},"residualValuePercent":{"type":"number"},"taxDepreciationMethod":{"type":["string","null"],"enum":["Straight Line","Declining Balance","MACRS"]},"taxResidualValuePercent":{"type":["number","null"]},"taxUsefulLifeMonths":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"usefulLifeMonths":{"type":"number"},"writeDownAccountId":{"type":"string"},"writeOffAccountId":{"type":"string"}},"required":["accumulatedDepreciationAccountId","assetAccountId","bonusDepreciationPercent","companyId","createdAt","createdBy","customFields","depreciationExpenseAccountId","depreciationMethod","description","gainOnDisposalAccountId","id","lossOnDisposalAccountId","macrsConvention","macrsPropertyClass","name","residualValuePercent","taxDepreciationMethod","taxResidualValuePercent","taxUsefulLifeMonths","updatedAt","updatedBy","usefulLifeMonths","writeDownAccountId","writeOffAccountId"]},"location":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["accumulatedDepreciation","accumulatedTaxDepreciation","acquisitionCost","acquisitionDate","assetLifetimeUsage","bonusDepreciationPercent","companyId","createdAt","createdBy","customFields","depreciationMethod","depreciationStartDate","description","disposalDate","disposalMethod","fixedAssetClassId","fixedAssetId","id","locationId","macrsConvention","macrsPropertyClass","name","notes","residualValuePercent","saleProceeds","serialNumber","status","taxDepreciationMethod","taxResidualValuePercent","taxUsefulLifeMonths","updatedAt","updatedBy","usefulLifeMonths","fixedAssetClass","location"]}}}}}}},"/accounting/getFixedAssetsList":{"post":{"operationId":"accounting.getFixedAssetsList","summary":"get fixed assets list","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"fixedAssetId":{"type":"string"},"name":{"type":"string"}},"required":["id","fixedAssetId","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getFixedAssetsListForSale":{"post":{"operationId":"accounting.getFixedAssetsListForSale","summary":"get fixed assets list for sale","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"fixedAssetId":{"type":"string"},"name":{"type":"string"}},"required":["id","fixedAssetId","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/insertFixedAsset":{"post":{"operationId":"accounting.insertFixedAsset","summary":"insert fixed asset","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fixedAssetId":{"type":"string"},"fixedAssetClassId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"serialNumber":{"type":"string"},"depreciationMethod":{"type":"string"},"usefulLifeMonths":{"type":"number"},"residualValuePercent":{"type":"number"},"assetLifetimeUsage":{"type":["number","null"]},"locationId":{"type":"string"},"status":{"type":"string"},"taxDepreciationMethod":{"type":["string","null"]},"taxUsefulLifeMonths":{"type":["number","null"]},"taxResidualValuePercent":{"type":["number","null"]},"macrsPropertyClass":{"type":["string","null"]},"macrsConvention":{"type":["string","null"]},"bonusDepreciationPercent":{"type":["number","null"]}},"required":["fixedAssetClassId","name","depreciationMethod","usefulLifeMonths","residualValuePercent"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"fixedAssetId":{"type":"string"}},"required":["id","fixedAssetId"]}}}}}}},"/accounting/updateFixedAsset":{"post":{"operationId":"accounting.updateFixedAsset","summary":"update fixed asset","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"fixedAssetClassId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"serialNumber":{"type":["string","null"]},"depreciationMethod":{"type":"string","enum":["Straight Line","Declining Balance","Units of Production"]},"usefulLifeMonths":{"type":"number"},"residualValuePercent":{"type":"number"},"assetLifetimeUsage":{"type":["number","null"]},"locationId":{"type":["string","null"]},"taxDepreciationMethod":{"type":["string","null"],"enum":["Straight Line","Declining Balance","MACRS"]},"taxUsefulLifeMonths":{"type":["number","null"]},"taxResidualValuePercent":{"type":["number","null"]},"macrsPropertyClass":{"type":["string","null"],"enum":["3","5","7","10","15","20","27.5","39"]},"macrsConvention":{"type":["string","null"],"enum":["Half-Year","Mid-Quarter"]},"bonusDepreciationPercent":{"type":["number","null"]}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/accounting/deleteFixedAsset":{"post":{"operationId":"accounting.deleteFixedAsset","summary":"delete fixed asset","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/insertDepreciationRun":{"post":{"operationId":"accounting.insertDepreciationRun","summary":"insert depreciation run","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"depreciationRunId":{"type":"string"},"periodEnd":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"fixedAssetId":{"type":"string"},"amount":{"type":"number"},"taxAmount":{"type":["number","null"]}},"required":["fixedAssetId","amount"]}}},"required":["periodEnd","lines"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"depreciationRunId":{"type":"string"}},"required":["id","depreciationRunId"]}}}}}}},"/accounting/deleteDepreciationRun":{"post":{"operationId":"accounting.deleteDepreciationRun","summary":"delete depreciation run","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/accounting/getDepreciationRuns":{"post":{"operationId":"accounting.getDepreciationRuns","summary":"get depreciation runs","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"depreciationRunId":{"type":"string"},"periodEnd":{"type":"string"},"status":{"type":"string"},"postedAt":{"type":["string","null"]}},"required":["id","depreciationRunId","periodEnd","status","postedAt"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getDepreciationRun":{"post":{"operationId":"accounting.getDepreciationRun","summary":"get depreciation run","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"depreciationRunId":{"type":"string"},"id":{"type":"string"},"periodEnd":{"type":"string"},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"status":{"type":"string"},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","depreciationRunId","id","periodEnd","postedAt","postedBy","status","updatedBy"]}}}}}}},"/accounting/getDepreciationRunLines":{"post":{"operationId":"accounting.getDepreciationRunLines","summary":"get depreciation run lines","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"depreciationRunId":{"type":"string"}},"required":["depreciationRunId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"number"},"taxAmount":{"type":["number","null"]},"journalId":{"type":["string","null"]},"fixedAsset":{"type":"object","properties":{"id":{"type":"string"},"fixedAssetId":{"type":"string"},"name":{"type":"string"},"acquisitionCost":{"type":"number"},"accumulatedDepreciation":{"type":"number"},"accumulatedTaxDepreciation":{"type":"number"},"residualValuePercent":{"type":"number"}},"required":["id","fixedAssetId","name","acquisitionCost","accumulatedDepreciation","accumulatedTaxDepreciation","residualValuePercent"]}},"required":["id","amount","taxAmount","journalId","fixedAsset"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getAssetDepreciationHistory":{"post":{"operationId":"accounting.getAssetDepreciationHistory","summary":"get asset depreciation history","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fixedAssetId":{"type":"string"}},"required":["fixedAssetId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"number"},"taxAmount":{"type":["number","null"]},"journalId":{"type":["string","null"]},"depreciationRun":{"type":"object","properties":{"id":{"type":"string"},"depreciationRunId":{"type":"string"},"periodEnd":{"type":"string"},"status":{"type":"string"}},"required":["id","depreciationRunId","periodEnd","status"]}},"required":["id","amount","taxAmount","journalId","depreciationRun"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getFixedAssetDisposal":{"post":{"operationId":"accounting.getFixedAssetDisposal","summary":"get fixed asset disposal","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fixedAssetId":{"type":"string"}},"required":["fixedAssetId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"disposalDate":{"type":"string"},"disposalMethod":{"type":"string","enum":["Sale","Scrapping"]},"fixedAssetId":{"type":"string"},"gainLoss":{"type":"number"},"id":{"type":"string"},"journalId":{"type":["string","null"]},"netBookValueAtDisposal":{"type":"number"},"saleProceeds":{"type":"number"},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","disposalDate","disposalMethod","fixedAssetId","gainLoss","id","journalId","netBookValueAtDisposal","saleProceeds","updatedBy"]}}}}}}},"/accounting/getFixedAssetUsageLogs":{"post":{"operationId":"accounting.getFixedAssetUsageLogs","summary":"get fixed asset usage logs","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fixedAssetId":{"type":"string"}},"required":["fixedAssetId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"fixedAssetId":{"type":"string"},"id":{"type":"string"},"periodEnd":{"type":"string"},"periodStart":{"type":"string"},"unitsProduced":{"type":"number"},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","fixedAssetId","id","periodEnd","periodStart","unitsProduced","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getJournalSyncCompleteness":{"post":{"operationId":"accounting.getJournalSyncCompleteness","summary":"the I1 completeness check: every Posted journal since the posting-sync start date must carry exactly one recorded disposition in the accountingSyncOperation le…","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"integrationId":{"type":"string"},"syncFromDate":{"type":"string"},"accountingPeriodId":{"type":"string"}},"required":["integrationId","syncFromDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"totalJournals":{"type":"number"},"dispositions":{"type":"object","properties":{"synced":{"type":"number"},"pending":{"type":"number"},"blocked":{"type":"number"},"excluded":{"type":"number"},"skipped":{"type":"number"},"docBacked":{"type":"object","properties":{"delivered":{"type":"number"},"undelivered":{"type":"number"}},"required":["delivered","undelivered"]}},"required":["synced","pending","blocked","excluded","skipped","docBacked"]},"unaccountedJournalIds":{"type":"array","items":{"type":"string"}},"undeliveredDocBackedJournalIds":{"type":"array","items":{"type":"string"}}},"required":["totalJournals","dispositions","unaccountedJournalIds","undeliveredDocBackedJournalIds"]}}}}}}},"/accounting/getAccountingSyncTieOut":{"post":{"operationId":"accounting.getAccountingSyncTieOut","summary":"the tie-out grid: every persisted cell for the company, joined with account and period identity, newest period first","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"integration":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}},{"type":"null"}]},"accountingPeriodId":{"type":["string","null"]},"accountId":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/accounting/getAccountingSyncTieOutCell":{"post":{"operationId":"accounting.getAccountingSyncTieOutCell","summary":"one tie-out cell plus its drill-down: the posted journals dated inside the cell's period with at least one line on the cell's account, each with the latest acc…","tags":["accounting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cellId":{"type":"string"}},"required":["cellId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"cell":{},"journals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"journalEntryId":{"type":"string"},"postingDate":{"type":"string"},"sourceType":{"type":["string","null"]},"status":{"type":"string"},"accountAmount":{"type":"number"},"syncStatus":{"type":["string","null"]}},"required":["id","journalEntryId","postingDate","sourceType","status","accountAmount","syncStatus"]}},"truncated":{"type":"boolean"}},"required":["cell","journals","truncated"]}}}}}}},"/documents/deleteDocument":{"post":{"operationId":"documents.deleteDocument","summary":"delete document","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/documents/getDocument":{"post":{"operationId":"documents.getDocument","summary":"get document","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"documentId":{"type":"string"}},"required":["documentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"description":{"type":["string","null"]},"extension":{"type":["string","null"]},"favorite":{"type":["boolean","null"]},"id":{"type":["string","null"]},"labels":{"type":["array","null"],"items":{"type":"string"}},"lastActivityAt":{"type":["string","null"]},"name":{"type":["string","null"]},"path":{"type":["string","null"]},"readGroups":{"type":["array","null"],"items":{"type":"string"}},"size":{"type":["number","null"]},"sourceDocument":{"type":["string","null"],"enum":["Sales Invoice","Purchase Invoice","Purchase Order","Sales Order","Customer","Supplier","Job","Part","Purchase Return Order","Quote","Receipt","Request for Quote","Sales Return Order","Service","Shipment","Material","Tool","Fixture","Consumable","Issue","Gauge Calibration Record","Purchasing Request for Quote","Supplier Quote"]},"sourceDocumentId":{"type":["string","null"]},"type":{"type":["string","null"],"enum":["Other","Archive","Document","Presentation","PDF","Spreadsheet","Text","Image","Video","Audio","Model"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"writeGroups":{"type":["array","null"],"items":{"type":"string"}}},"required":["active","companyId","createdAt","createdBy","description","extension","favorite","id","labels","lastActivityAt","name","path","readGroups","size","sourceDocument","sourceDocumentId","type","updatedAt","updatedBy","writeGroups"]}}}}}}},"/documents/getDocuments":{"post":{"operationId":"documents.getDocuments","summary":"get documents","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"favorite":{"type":"boolean"},"recent":{"type":"boolean"},"active":{"type":"boolean"}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"description":{"type":["string","null"]},"extension":{"type":["string","null"]},"favorite":{"type":["boolean","null"]},"id":{"type":["string","null"]},"labels":{"type":["array","null"],"items":{"type":"string"}},"lastActivityAt":{"type":["string","null"]},"name":{"type":["string","null"]},"path":{"type":["string","null"]},"readGroups":{"type":["array","null"],"items":{"type":"string"}},"size":{"type":["number","null"]},"sourceDocument":{"type":["string","null"],"enum":["Sales Invoice","Purchase Invoice","Purchase Order","Sales Order","Customer","Supplier","Job","Part","Purchase Return Order","Quote","Receipt","Request for Quote","Sales Return Order","Service","Shipment","Material","Tool","Fixture","Consumable","Issue","Gauge Calibration Record","Purchasing Request for Quote","Supplier Quote"]},"sourceDocumentId":{"type":["string","null"]},"type":{"type":["string","null"],"enum":["Other","Archive","Document","Presentation","PDF","Spreadsheet","Text","Image","Video","Audio","Model"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"writeGroups":{"type":["array","null"],"items":{"type":"string"}}},"required":["active","companyId","createdAt","createdBy","description","extension","favorite","id","labels","lastActivityAt","name","path","readGroups","size","sourceDocument","sourceDocumentId","type","updatedAt","updatedBy","writeGroups"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/documents/getDocumentExtensions":{"post":{"operationId":"documents.getDocumentExtensions","summary":"get document extensions","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"extension":{"type":"string"}},"required":["extension"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/documents/getDocumentLabels":{"post":{"operationId":"documents.getDocumentLabels","summary":"get document labels","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"label":{"type":["string","null"]},"userId":{"type":["string","null"]}},"required":["label","userId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/documents/moveDocumentToTrash":{"post":{"operationId":"documents.moveDocumentToTrash","summary":"move document to trash","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/documents/restoreDocument":{"post":{"operationId":"documents.restoreDocument","summary":"restore document","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/documents/upsertDocument":{"post":{"operationId":"documents.upsertDocument","summary":"upsert document","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":50},"extension":{"type":"string"},"description":{"type":"string"},"labels":{"type":"array","items":{"type":"string","minLength":1,"maxLength":50}},"readGroups":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"writeGroups":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"path":{"type":"string"},"size":{"type":"number"},"sourceDocument":{"type":"string","enum":["Job","Gauge Calibration Record","Issue","Purchase Order","Purchase Invoice","Quote","Request for Quote","Purchasing Request for Quote","Supplier Quote","Sales Order","Sales Invoice","Sales Return Order","Purchase Return Order","Shipment","Supplier","Customer","Part","Material","Tool","Consumable","Service"]},"sourceDocumentId":{"type":"string"},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","readGroups","writeGroups"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"extension":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"readGroups":{"type":["array","null"],"items":{"type":"string"}},"size":{"type":"number"},"sourceDocument":{"type":["string","null"],"enum":["Sales Invoice","Purchase Invoice","Purchase Order","Sales Order","Customer","Supplier","Job","Part","Purchase Return Order","Quote","Receipt","Request for Quote","Sales Return Order","Service","Shipment","Material","Tool","Fixture","Consumable","Issue","Gauge Calibration Record","Purchasing Request for Quote","Supplier Quote"]},"sourceDocumentId":{"type":["string","null"]},"type":{"type":"string","enum":["Other","Archive","Document","Presentation","PDF","Spreadsheet","Text","Image","Video","Audio","Model"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"writeGroups":{"type":["array","null"],"items":{"type":"string"}}},"required":["active","companyId","createdAt","createdBy","description","extension","id","name","path","readGroups","size","sourceDocument","sourceDocumentId","type","updatedAt","updatedBy","writeGroups"]}}}}}}},"/documents/createDocumentUploadUrl":{"post":{"operationId":"documents.createDocumentUploadUrl","summary":"create a presigned upload URL for a document in the \"private\" bucket","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"type":"string"},"entityId":{"type":"string"},"name":{"type":"string"}},"required":["folder","entityId","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"signedUrl":{"type":"string"},"token":{"type":"string"},"path":{"type":"string"}},"required":["signedUrl","token","path"]}}}}}}},"/documents/insertUploadedDocument":{"post":{"operationId":"documents.insertUploadedDocument","summary":"register the metadata row for a file already uploaded to storage","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"name":{"type":"string"},"size":{"type":"number"},"sourceDocument":{"type":"string","enum":["Job","Gauge Calibration Record","Issue","Purchase Order","Purchase Invoice","Quote","Request for Quote","Purchasing Request for Quote","Supplier Quote","Sales Order","Sales Invoice","Sales Return Order","Purchase Return Order","Shipment","Supplier","Customer","Part","Material","Tool","Consumable","Service"]},"sourceDocumentId":{"type":"string"}},"required":["path","name","size"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"extension":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"readGroups":{"type":["array","null"],"items":{"type":"string"}},"size":{"type":"number"},"sourceDocument":{"type":["string","null"],"enum":["Sales Invoice","Purchase Invoice","Purchase Order","Sales Order","Customer","Supplier","Job","Part","Purchase Return Order","Quote","Receipt","Request for Quote","Sales Return Order","Service","Shipment","Material","Tool","Fixture","Consumable","Issue","Gauge Calibration Record","Purchasing Request for Quote","Supplier Quote"]},"sourceDocumentId":{"type":["string","null"]},"type":{"type":"string","enum":["Other","Archive","Document","Presentation","PDF","Spreadsheet","Text","Image","Video","Audio","Model"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"writeGroups":{"type":["array","null"],"items":{"type":"string"}}},"required":["active","companyId","createdAt","createdBy","description","extension","id","name","path","readGroups","size","sourceDocument","sourceDocumentId","type","updatedAt","updatedBy","writeGroups"]}}}}}}},"/documents/updateDocumentFavorite":{"post":{"operationId":"documents.updateDocumentFavorite","summary":"update document favorite","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"favorite":{"type":"boolean"}},"required":["id","favorite"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/documents/updateDocumentLabels":{"post":{"operationId":"documents.updateDocumentLabels","summary":"update document labels","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"documentId":{"type":"string","minLength":20},"labels":{"type":"array","items":{"type":"string","minLength":1,"maxLength":50}}},"required":["documentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/documents/insertDocumentExtraction":{"post":{"operationId":"documents.insertDocumentExtraction","summary":"insert document extraction","tags":["documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"storagePath":{"type":"string"},"documentType":{"type":"string","enum":["purchaseInvoice","salesRfq"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"}},"required":["storagePath","documentType","sourceDocument"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"companyId":{"type":"string"}},"required":["id","companyId"]}}}}}}},"/inventory/deleteBatchProperty":{"post":{"operationId":"inventory.deleteBatchProperty","summary":"delete batch property","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deleteKanban":{"post":{"operationId":"inventory.deleteKanban","summary":"delete kanban","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kanbanId":{"type":"string"}},"required":["kanbanId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deleteReceipt":{"post":{"operationId":"inventory.deleteReceipt","summary":"delete receipt","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"}},"required":["receiptId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deleteReceiptLine":{"post":{"operationId":"inventory.deleteReceiptLine","summary":"delete receipt line","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receiptLineId":{"type":"string"}},"required":["receiptLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deleteStorageUnit":{"post":{"operationId":"inventory.deleteStorageUnit","summary":"delete storage unit","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"storageUnitId":{"type":"string"}},"required":["storageUnitId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deleteStorageUnitCascade":{"post":{"operationId":"inventory.deleteStorageUnitCascade","summary":"deletes a storage unit along with every descendant in its subtree","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"storageUnitId":{"type":"string"}},"required":["storageUnitId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deleteShipment":{"post":{"operationId":"inventory.deleteShipment","summary":"delete shipment","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shipmentId":{"type":"string"}},"required":["shipmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deleteShipmentLine":{"post":{"operationId":"inventory.deleteShipmentLine","summary":"delete shipment line","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shipmentLineId":{"type":"string"}},"required":["shipmentLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deleteShippingMethod":{"post":{"operationId":"inventory.deleteShippingMethod","summary":"delete shipping method","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shippingMethodId":{"type":"string"}},"required":["shippingMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deleteStockTransfer":{"post":{"operationId":"inventory.deleteStockTransfer","summary":"delete stock transfer","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stockTransferId":{"type":"string"}},"required":["stockTransferId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deleteStockTransferLine":{"post":{"operationId":"inventory.deleteStockTransferLine","summary":"delete stock transfer line","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stockTransferLineId":{"type":"string"}},"required":["stockTransferLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deleteWarehouseTransfer":{"post":{"operationId":"inventory.deleteWarehouseTransfer","summary":"delete warehouse transfer","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transferId":{"type":"string"}},"required":["transferId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deleteWarehouseTransferLine":{"post":{"operationId":"inventory.deleteWarehouseTransferLine","summary":"delete warehouse transfer line","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transferLineId":{"type":"string"}},"required":["transferLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/getItemLedgerPage":{"post":{"operationId":"inventory.getItemLedgerPage","summary":"get item ledger page","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"},"sortDescending":{"type":"boolean"},"page":{"type":"number"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"comment":{"type":["string","null"]},"companyId":{"type":"string"},"correctionOfItemLedgerId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"documentId":{"type":["string","null"]},"documentLineId":{"type":["string","null"]},"documentType":{"type":["string","null"],"enum":["Sales Shipment","Sales Invoice","Sales Return Receipt","Sales Credit Memo","Purchase Receipt","Purchase Invoice","Purchase Return Shipment","Purchase Credit Memo","Transfer Shipment","Transfer Receipt","Service Shipment","Service Invoice","Service Credit Memo","Posted Assembly","Inventory Receipt","Inventory Shipment","Direct Transfer","Job Consumption","Job Receipt","Batch Split","Purchase Order","Maintenance Consumption","Non-Conformance","Inbound Inspection","Inventory Count","Scrap","Sales Return Shipment","Batch Merge"]},"entryNumber":{"type":"number"},"entryType":{"type":"string","enum":["Purchase","Sale","Positive Adjmt.","Negative Adjmt.","Transfer","Consumption","Output","Assembly Consumption","Assembly Output"]},"externalDocumentId":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"locationId":{"type":["string","null"]},"postingDate":{"type":"string"},"quantity":{"type":"number"},"scrapReasonId":{"type":["string","null"]},"storageUnitId":{"type":["string","null"]},"trackedEntityId":{"type":["string","null"]},"trackedEntityStatus":{"type":["string","null"],"enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]},"storageUnit":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]},"trackedEntity":{"type":["object","null"],"properties":{"readableId":{"type":["string","null"]}},"required":["readableId"]}},"required":["comment","companyId","correctionOfItemLedgerId","createdAt","createdBy","documentId","documentLineId","documentType","entryNumber","entryType","externalDocumentId","id","itemId","locationId","postingDate","quantity","scrapReasonId","storageUnitId","trackedEntityId","trackedEntityStatus","updatedBy","storageUnit","trackedEntity"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getItemLedgerActivity":{"post":{"operationId":"inventory.getItemLedgerActivity","summary":"keyset-paginated item-ledger activity for the per-item Activity panel","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"},"entryNumber":{"type":"number"},"direction":{"type":"string","enum":["older","newer"]},"inclusive":{"type":"boolean"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"comment":{"type":["string","null"]},"companyId":{"type":"string"},"correctionOfItemLedgerId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"documentId":{"type":["string","null"]},"documentLineId":{"type":["string","null"]},"documentType":{"type":["string","null"],"enum":["Sales Shipment","Sales Invoice","Sales Return Receipt","Sales Credit Memo","Purchase Receipt","Purchase Invoice","Purchase Return Shipment","Purchase Credit Memo","Transfer Shipment","Transfer Receipt","Service Shipment","Service Invoice","Service Credit Memo","Posted Assembly","Inventory Receipt","Inventory Shipment","Direct Transfer","Job Consumption","Job Receipt","Batch Split","Purchase Order","Maintenance Consumption","Non-Conformance","Inbound Inspection","Inventory Count","Scrap","Sales Return Shipment","Batch Merge"]},"entryNumber":{"type":"number"},"entryType":{"type":"string","enum":["Purchase","Sale","Positive Adjmt.","Negative Adjmt.","Transfer","Consumption","Output","Assembly Consumption","Assembly Output"]},"externalDocumentId":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"locationId":{"type":["string","null"]},"postingDate":{"type":"string"},"quantity":{"type":"number"},"scrapReasonId":{"type":["string","null"]},"storageUnitId":{"type":["string","null"]},"trackedEntityId":{"type":["string","null"]},"trackedEntityStatus":{"type":["string","null"],"enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]},"storageUnit":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]},"trackedEntity":{"type":["object","null"],"properties":{"readableId":{"type":["string","null"]}},"required":["readableId"]}},"required":["comment","companyId","correctionOfItemLedgerId","createdAt","createdBy","documentId","documentLineId","documentType","entryNumber","entryType","externalDocumentId","id","itemId","locationId","postingDate","quantity","scrapReasonId","storageUnitId","trackedEntityId","trackedEntityStatus","updatedBy","storageUnit","trackedEntity"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getItemLedgerBalance":{"post":{"operationId":"inventory.getItemLedgerBalance","summary":"on-hand quantity of an item at a location right after ledger entry `entryNumber` (omit it for on-hand now), on the same definition as the inventory table's On…","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"},"entryNumber":{"type":"number"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/inventory/getBatchProperties":{"post":{"operationId":"inventory.getBatchProperties","summary":"get batch properties","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"type":"array","items":{"type":"string"}}},"required":["itemIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"dataType":{"type":"string","enum":["boolean","text","numeric","list","date","material"]},"id":{"type":"string"},"itemId":{"type":"string"},"label":{"type":"string"},"listOptions":{"type":["array","null"],"items":{"type":"string"}},"sortOrder":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","dataType","id","itemId","label","listOptions","sortOrder","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getInventoryItems":{"post":{"operationId":"inventory.getInventoryItems","summary":"get inventory items","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}},"required":["locationId","args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"daysRemaining":{"type":"number"},"demandAccumulationPeriod":{"type":"number"},"demandAccumulationSafetyStock":{"type":"number"},"demandForecast":{"type":"number"},"dimension":{"type":"string"},"dimensionId":{"type":"string"},"finish":{"type":"string"},"finishId":{"type":"string"},"grade":{"type":"string"},"gradeId":{"type":"string"},"id":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"leadTime":{"type":"number"},"lotSize":{"type":"number"},"materialFormId":{"type":"string"},"materialSubstanceId":{"type":"string"},"materialType":{"type":"string"},"materialTypeId":{"type":"string"},"maximumInventoryQuantity":{"type":"number"},"maximumOrderQuantity":{"type":"number"},"minimumOrderQuantity":{"type":"number"},"name":{"type":"string"},"orderMultiple":{"type":"number"},"quantityOnHand":{"type":"number"},"quantityOnHold":{"type":"number"},"quantityOnProductionDemand":{"type":"number"},"quantityOnProductionOrder":{"type":"number"},"quantityOnPurchaseOrder":{"type":"number"},"quantityOnSalesOrder":{"type":"number"},"quantityRejected":{"type":"number"},"readableId":{"type":"string"},"readableIdWithRevision":{"type":"string"},"reorderingPolicy":{"type":"string","enum":["Manual Reorder","Demand-Based Reorder","Fixed Reorder Quantity","Maximum Quantity"]},"reorderPoint":{"type":"number"},"reorderQuantity":{"type":"number"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"storageTypeIds":{"type":"array","items":{"type":"string"}},"storageUnitIds":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"unitOfMeasureCode":{"type":"string"},"usageLast30Days":{"type":"number"},"usageLast90Days":{"type":"number"}},"required":["active","daysRemaining","demandAccumulationPeriod","demandAccumulationSafetyStock","demandForecast","dimension","dimensionId","finish","finishId","grade","gradeId","id","itemTrackingType","leadTime","lotSize","materialFormId","materialSubstanceId","materialType","materialTypeId","maximumInventoryQuantity","maximumOrderQuantity","minimumOrderQuantity","name","orderMultiple","quantityOnHand","quantityOnHold","quantityOnProductionDemand","quantityOnProductionOrder","quantityOnPurchaseOrder","quantityOnSalesOrder","quantityRejected","readableId","readableIdWithRevision","reorderingPolicy","reorderPoint","reorderQuantity","replenishmentSystem","storageTypeIds","storageUnitIds","tags","thumbnailPath","type","unitOfMeasureCode","usageLast30Days","usageLast90Days"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getInventoryItemsCount":{"post":{"operationId":"inventory.getInventoryItemsCount","summary":"get inventory items count","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}},"required":["locationId","args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getInventoryValuation":{"post":{"operationId":"inventory.getInventoryValuation","summary":"get inventory valuation","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asOfDate":{"type":["string","null"]},"locationId":{"type":["string","null"]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"costingMethod":{"type":"string","enum":["Average","Standard","LIFO","FIFO"]},"itemId":{"type":"string"},"locationId":{"type":"string"},"locationName":{"type":"string"},"name":{"type":"string"},"quantityOnHand":{"type":"number"},"quantityOnHold":{"type":"number"},"quantityRejected":{"type":"number"},"readableIdWithRevision":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"thumbnailPath":{"type":"string"},"totalValue":{"type":"number"},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"unitCost":{"type":"number"},"unitOfMeasureCode":{"type":"string"}},"required":["costingMethod","itemId","locationId","locationName","name","quantityOnHand","quantityOnHold","quantityRejected","readableIdWithRevision","replenishmentSystem","thumbnailPath","totalValue","type","unitCost","unitOfMeasureCode"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getInventoryValuationTieOut":{"post":{"operationId":"inventory.getInventoryValuationTieOut","summary":"get inventory valuation tie out","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asOfDate":{"type":["string","null"]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string"},"accountKind":{"type":"string"},"accountName":{"type":"string"},"glBalance":{"type":"number"},"subledgerValue":{"type":"number"},"variance":{"type":"number"}},"required":["accountId","accountKind","accountName","glBalance","subledgerValue","variance"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/createInventoryReconciliationJournal":{"post":{"operationId":"inventory.createInventoryReconciliationJournal","summary":"create inventory reconciliation journal","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asOfDate":{"type":"string"}},"required":["asOfDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"journalId":{"type":"string"}},"required":["journalId"]}}}}}}},"/inventory/getKanbans":{"post":{"operationId":"inventory.getKanbans","summary":"get kanbans","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}},"required":["locationId","args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"autoRelease":{"type":["boolean","null"]},"autoStartJob":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"completedBarcodeOverride":{"type":["string","null"]},"conversionFactor":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"fromStorageUnitId":{"type":["string","null"]},"fromStorageUnitName":{"type":["string","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"jobId":{"type":["string","null"]},"jobReadableId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"name":{"type":["string","null"]},"purchaseUnitOfMeasureCode":{"type":["string","null"]},"quantity":{"type":["number","null"]},"readableIdWithRevision":{"type":["string","null"]},"replenishmentSystem":{"type":["string","null"],"enum":["Transfer","Buy","Make"]},"storageUnitId":{"type":["string","null"]},"storageUnitName":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierName":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["autoRelease","autoStartJob","companyId","completedBarcodeOverride","conversionFactor","createdAt","createdBy","fromStorageUnitId","fromStorageUnitName","id","itemId","jobId","jobReadableId","locationId","locationName","name","purchaseUnitOfMeasureCode","quantity","readableIdWithRevision","replenishmentSystem","storageUnitId","storageUnitName","supplierId","supplierName","thumbnailPath","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getKanban":{"post":{"operationId":"inventory.getKanban","summary":"get kanban","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kanbanId":{"type":"string"}},"required":["kanbanId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"autoRelease":{"type":["boolean","null"]},"autoStartJob":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"completedBarcodeOverride":{"type":["string","null"]},"conversionFactor":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"fromStorageUnitId":{"type":["string","null"]},"fromStorageUnitName":{"type":["string","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"jobId":{"type":["string","null"]},"jobReadableId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"name":{"type":["string","null"]},"purchaseUnitOfMeasureCode":{"type":["string","null"]},"quantity":{"type":["number","null"]},"readableIdWithRevision":{"type":["string","null"]},"replenishmentSystem":{"type":["string","null"],"enum":["Transfer","Buy","Make"]},"storageUnitId":{"type":["string","null"]},"storageUnitName":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierName":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["autoRelease","autoStartJob","companyId","completedBarcodeOverride","conversionFactor","createdAt","createdBy","fromStorageUnitId","fromStorageUnitName","id","itemId","jobId","jobReadableId","locationId","locationName","name","purchaseUnitOfMeasureCode","quantity","readableIdWithRevision","replenishmentSystem","storageUnitId","storageUnitName","supplierId","supplierName","thumbnailPath","updatedAt","updatedBy"]}}}}}}},"/inventory/getStockTransfer":{"post":{"operationId":"inventory.getStockTransfer","summary":"get stock transfer","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stockTransferId":{"type":"string"}},"required":["stockTransferId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"locationId":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"status":{"type":"string","enum":["Completed","Draft","In Progress","Released"]},"stockTransferId":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","completedAt","createdAt","createdBy","customFields","id","locationId","notes","status","stockTransferId","tags","updatedAt","updatedBy"]}}}}}}},"/inventory/getStockTransferLine":{"post":{"operationId":"inventory.getStockTransferLine","summary":"get stock transfer line","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stockTransferLineId":{"type":"string"}},"required":["stockTransferLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"fromStorageUnitId":{"type":["string","null"]},"fromStorageUnitName":{"type":["string","null"]},"id":{"type":["string","null"]},"itemDescription":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"jobId":{"type":["string","null"]},"jobMaterialId":{"type":["string","null"]},"outstandingQuantity":{"type":["number","null"]},"pickedQuantity":{"type":["number","null"]},"quantity":{"type":["number","null"]},"requiresBatchTracking":{"type":["boolean","null"]},"requiresSerialTracking":{"type":["boolean","null"]},"stockTransferId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"toStorageUnitId":{"type":["string","null"]},"toStorageUnitName":{"type":["string","null"]},"trackedEntityId":{"type":["string","null"]},"unitOfMeasure":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","fromStorageUnitId","fromStorageUnitName","id","itemDescription","itemId","itemReadableId","jobId","jobMaterialId","outstandingQuantity","pickedQuantity","quantity","requiresBatchTracking","requiresSerialTracking","stockTransferId","thumbnailPath","toStorageUnitId","toStorageUnitName","trackedEntityId","unitOfMeasure","updatedAt","updatedBy"]}}}}}}},"/inventory/getStockTransferLines":{"post":{"operationId":"inventory.getStockTransferLines","summary":"get stock transfer lines","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stockTransferId":{"type":"string"}},"required":["stockTransferId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"fromStorageUnitId":{"type":["string","null"]},"fromStorageUnitName":{"type":["string","null"]},"id":{"type":["string","null"]},"itemDescription":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"jobId":{"type":["string","null"]},"jobMaterialId":{"type":["string","null"]},"outstandingQuantity":{"type":["number","null"]},"pickedQuantity":{"type":["number","null"]},"quantity":{"type":["number","null"]},"requiresBatchTracking":{"type":["boolean","null"]},"requiresSerialTracking":{"type":["boolean","null"]},"stockTransferId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"toStorageUnitId":{"type":["string","null"]},"toStorageUnitName":{"type":["string","null"]},"trackedEntityId":{"type":["string","null"]},"unitOfMeasure":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","fromStorageUnitId","fromStorageUnitName","id","itemDescription","itemId","itemReadableId","jobId","jobMaterialId","outstandingQuantity","pickedQuantity","quantity","requiresBatchTracking","requiresSerialTracking","stockTransferId","thumbnailPath","toStorageUnitId","toStorageUnitName","trackedEntityId","unitOfMeasure","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getStockTransferTracking":{"post":{"operationId":"inventory.getStockTransferTracking","summary":"get stock transfer tracking","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stockTransferId":{"type":"string"}},"required":["stockTransferId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"trackedActivityInput":{"type":"array","items":{"type":"object","properties":{"trackedEntityId":{"type":"string"}},"required":["trackedEntityId"]}}},"required":["attributes","trackedActivityInput"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getStockTransfers":{"post":{"operationId":"inventory.getStockTransfers","summary":"get stock transfers","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"locationId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"locationId":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"status":{"type":"string","enum":["Completed","Draft","In Progress","Released"]},"stockTransferId":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","completedAt","createdAt","createdBy","customFields","id","locationId","notes","status","stockTransferId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getDefaultStorageUnitOrStorageUnitWithHighestQuantity":{"post":{"operationId":"inventory.getDefaultStorageUnitOrStorageUnitWithHighestQuantity","summary":"get default storage unit or storage unit with highest quantity","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["string","null"]}}}}}}},"/inventory/getReceipts":{"post":{"operationId":"inventory.getReceipts","summary":"get receipts","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"externalDocumentId":{"type":["string","null"]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoiced":{"type":["boolean","null"]},"locationId":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"receiptId":{"type":"string"},"sourceDocument":{"type":["string","null"],"enum":["Sales Invoice","Purchase Invoice","Purchase Order","Sales Order","Purchase Return Order","Sales Return Order","Inbound Transfer","Outbound Transfer","Manufacturing Consumption","Manufacturing Output"]},"sourceDocumentId":{"type":["string","null"]},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Pending","Draft","Posted","Voided"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","customFields","externalDocumentId","id","internalNotes","invoiced","locationId","postedBy","postingDate","receiptId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","supplierId","supplierInteractionId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getReceipt":{"post":{"operationId":"inventory.getReceipt","summary":"get receipt","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"}},"required":["receiptId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"externalDocumentId":{"type":["string","null"]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoiced":{"type":["boolean","null"]},"locationId":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"receiptId":{"type":"string"},"sourceDocument":{"type":["string","null"],"enum":["Sales Invoice","Purchase Invoice","Purchase Order","Sales Order","Purchase Return Order","Sales Return Order","Inbound Transfer","Outbound Transfer","Manufacturing Consumption","Manufacturing Output"]},"sourceDocumentId":{"type":["string","null"]},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Pending","Draft","Posted","Voided"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","customFields","externalDocumentId","id","internalNotes","invoiced","locationId","postedBy","postingDate","receiptId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","supplierId","supplierInteractionId","tags","updatedAt","updatedBy"]}}}}}}},"/inventory/getReceiptLines":{"post":{"operationId":"inventory.getReceiptLines","summary":"get receipt lines","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"}},"required":["receiptId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"conversionFactor":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"description":{"type":["string","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"lineId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"orderQuantity":{"type":["number","null"]},"outstandingQuantity":{"type":["number","null"]},"receiptId":{"type":["string","null"]},"receivedQuantity":{"type":["number","null"]},"requiresBatchTracking":{"type":["boolean","null"]},"requiresSerialTracking":{"type":["boolean","null"]},"storageUnitId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"unitOfMeasure":{"type":["string","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","conversionFactor","createdAt","createdBy","description","id","itemId","itemReadableId","lineId","locationId","orderQuantity","outstandingQuantity","receiptId","receivedQuantity","requiresBatchTracking","requiresSerialTracking","storageUnitId","thumbnailPath","unitOfMeasure","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getReceiptTracking":{"post":{"operationId":"inventory.getReceiptTracking","summary":"get receipt tracking","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"}},"required":["receiptId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getReceiptLineTracking":{"post":{"operationId":"inventory.getReceiptLineTracking","summary":"get receipt line tracking","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receiptLineId":{"type":"string"}},"required":["receiptLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/reconcileReceiptSerialEntities":{"post":{"operationId":"inventory.reconcileReceiptSerialEntities","summary":"deletes stale serial tracked entities for a receipt's serial-tracked lines before posting","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"receivedQuantity":{"type":["number","null"]},"requiresSerialTracking":{"type":["boolean","null"]}},"required":["id","receivedQuantity"]}}},"required":["receiptId","lines"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/inventory/getReceiptFiles":{"post":{"operationId":"inventory.getReceiptFiles","summary":"get receipt files","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineIds":{"type":"array","items":{"type":"string"}}},"required":["lineIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getSerialNumbersForItem":{"post":{"operationId":"inventory.getSerialNumbersForItem","summary":"get serial numbers for item","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getAvailableTrackedEntities":{"post":{"operationId":"inventory.getAvailableTrackedEntities","summary":"available tracked entities for an item at a location, one row per entity, with its bin, on-hand, and FEFO/FIFO order keys — for the shared TrackedEntityPicker","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"},"excludeLineside":{"type":"boolean"},"excludeAllocated":{"type":"boolean"},"excludeLineId":{"type":["string","null"]}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"availableQuantity":{"type":"number"},"createdAt":{"type":"string"},"expirationDate":{"type":"string"},"readableId":{"type":"string"},"status":{"type":"string"},"storageUnitId":{"type":"string"},"storageUnitName":{"type":"string"},"trackedEntityId":{"type":"string"}},"required":["availableQuantity","createdAt","expirationDate","readableId","status","storageUnitId","storageUnitName","trackedEntityId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getPickOrder":{"post":{"operationId":"inventory.getPickOrder","summary":"the configured tracked-entity pick order for an item at a location, used as the picker's default sort","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","enum":["LIFO","FIFO","Default","FEFO"]}}}}}}},"/inventory/getBatchNumbersForItem":{"post":{"operationId":"inventory.getBatchNumbersForItem","summary":"get batch numbers for item","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"isReadOnly":{"type":"boolean"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getStorageUnitsList":{"post":{"operationId":"inventory.getStorageUnitsList","summary":"get storage units list","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getStorageUnitsListForLocation":{"post":{"operationId":"inventory.getStorageUnitsListForLocation","summary":"get storage units list for location","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getStorageUnitsTreeForLocation":{"post":{"operationId":"inventory.getStorageUnitsTreeForLocation","summary":"get storage units tree for location","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"parentId":{"type":["string","null"]},"depth":{"type":"number"},"ancestorPath":{"type":"array","items":{"type":"string"}}},"required":["id","name","parentId","depth","ancestorPath"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getStorageUnits":{"post":{"operationId":"inventory.getStorageUnits","summary":"get storage units","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}},"required":["locationId","args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"ancestorPath":{"type":["array","null"],"items":{"type":"string"}},"companyId":{"type":["string","null"]},"depth":{"type":["number","null"]},"id":{"type":["string","null"]},"locationId":{"type":["string","null"]},"name":{"type":["string","null"]},"parentId":{"type":["string","null"]},"storageTypeIds":{"type":["array","null"],"items":{"type":"string"}},"warehouseId":{"type":["string","null"]}},"required":["active","ancestorPath","companyId","depth","id","locationId","name","parentId","storageTypeIds","warehouseId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getStorageUnit":{"post":{"operationId":"inventory.getStorageUnit","summary":"get storage unit","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"storageUnitId":{"type":"string"}},"required":["storageUnitId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"isWorkCenterDefault":{"type":"boolean"},"locationId":{"type":"string"},"name":{"type":"string"},"parentId":{"type":["string","null"]},"storageTypeIds":{"type":"array","items":{"type":"string"}},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"warehouseId":{"type":["string","null"]},"workCenterId":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","customFields","id","isWorkCenterDefault","locationId","name","parentId","storageTypeIds","tags","updatedAt","updatedBy","warehouseId","workCenterId"]}}}}}}},"/inventory/getEffectiveWorkCenterId":{"post":{"operationId":"inventory.getEffectiveWorkCenterId","summary":"get effective work center id","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"storageUnitId":{"type":"string"}},"required":["storageUnitId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/inventory/getStorageUnitRoots":{"post":{"operationId":"inventory.getStorageUnitRoots","summary":"get storage unit roots","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}},"required":["locationId","args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"ancestorPath":{"type":["array","null"],"items":{"type":"string"}},"companyId":{"type":["string","null"]},"depth":{"type":["number","null"]},"id":{"type":["string","null"]},"locationId":{"type":["string","null"]},"name":{"type":["string","null"]},"parentId":{"type":["string","null"]},"storageTypeIds":{"type":["array","null"],"items":{"type":"string"}},"warehouseId":{"type":["string","null"]}},"required":["active","ancestorPath","companyId","depth","id","locationId","name","parentId","storageTypeIds","warehouseId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getStorageUnitChildren":{"post":{"operationId":"inventory.getStorageUnitChildren","summary":"get storage unit children","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"parentId":{"type":"string"}},"required":["parentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"ancestorPath":{"type":["array","null"],"items":{"type":"string"}},"companyId":{"type":["string","null"]},"depth":{"type":["number","null"]},"id":{"type":["string","null"]},"locationId":{"type":["string","null"]},"name":{"type":["string","null"]},"parentId":{"type":["string","null"]},"storageTypeIds":{"type":["array","null"],"items":{"type":"string"}},"warehouseId":{"type":["string","null"]}},"required":["active","ancestorPath","companyId","depth","id","locationId","name","parentId","storageTypeIds","warehouseId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getStorageUnitSubtrees":{"post":{"operationId":"inventory.getStorageUnitSubtrees","summary":"get storage unit subtrees","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"rootIds":{"type":"array","items":{"type":"string"}},"maxDepth":{"type":"number"}},"required":["locationId","rootIds","maxDepth"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{}},{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"ancestorPath":{"type":["array","null"],"items":{"type":"string"}},"companyId":{"type":["string","null"]},"depth":{"type":["number","null"]},"id":{"type":["string","null"]},"locationId":{"type":["string","null"]},"name":{"type":["string","null"]},"parentId":{"type":["string","null"]},"storageTypeIds":{"type":["array","null"],"items":{"type":"string"}},"warehouseId":{"type":["string","null"]}},"required":["active","ancestorPath","companyId","depth","id","locationId","name","parentId","storageTypeIds","warehouseId"]}},{"type":"null"}]}}}}}}},"/inventory/getStorageUnitParentIdsWithChildren":{"post":{"operationId":"inventory.getStorageUnitParentIdsWithChildren","summary":"get storage unit parent ids with children","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"string"}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/searchStorageUnitsWithAncestors":{"post":{"operationId":"inventory.searchStorageUnitsWithAncestors","summary":"search storage units with ancestors","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"search":{"type":"string"}},"required":["locationId","search"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"rows":{"type":"array","items":{}},"expandedParentIds":{"type":"array","items":{}},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]}},"required":["rows","expandedParentIds","error"]},{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"ancestorPath":{"type":["array","null"],"items":{"type":"string"}},"companyId":{"type":["string","null"]},"depth":{"type":["number","null"]},"id":{"type":["string","null"]},"locationId":{"type":["string","null"]},"name":{"type":["string","null"]},"parentId":{"type":["string","null"]},"storageTypeIds":{"type":["array","null"],"items":{"type":"string"}},"warehouseId":{"type":["string","null"]}},"required":["active","ancestorPath","companyId","depth","id","locationId","name","parentId","storageTypeIds","warehouseId"]}},"expandedParentIds":{"type":"array","items":{"type":"string"}},"error":{"type":"null"}},"required":["rows","expandedParentIds","error"]}]}}}}}}},"/inventory/getStockMovements":{"post":{"operationId":"inventory.getStockMovements","summary":"get stock movements","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"comment":{"type":["string","null"]},"companyId":{"type":["string","null"]},"correctionOfItemLedgerId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"documentId":{"type":["string","null"]},"documentLineId":{"type":["string","null"]},"documentType":{"type":["string","null"],"enum":["Sales Shipment","Sales Invoice","Sales Return Receipt","Sales Credit Memo","Purchase Receipt","Purchase Invoice","Purchase Return Shipment","Purchase Credit Memo","Transfer Shipment","Transfer Receipt","Service Shipment","Service Invoice","Service Credit Memo","Posted Assembly","Inventory Receipt","Inventory Shipment","Direct Transfer","Job Consumption","Job Receipt","Batch Split","Purchase Order","Maintenance Consumption","Non-Conformance","Inbound Inspection","Inventory Count","Scrap","Sales Return Shipment","Batch Merge"]},"entryNumber":{"type":["number","null"]},"entryType":{"type":["string","null"],"enum":["Purchase","Sale","Positive Adjmt.","Negative Adjmt.","Transfer","Consumption","Output","Assembly Consumption","Assembly Output"]},"externalDocumentId":{"type":["string","null"]},"id":{"type":["string","null"]},"isCorrection":{"type":["boolean","null"]},"itemDescription":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"quantity":{"type":["number","null"]},"scrapReasonId":{"type":["string","null"]},"storageUnitId":{"type":["string","null"]},"storageUnitName":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"trackedEntityId":{"type":["string","null"]},"trackedEntityReadableId":{"type":["string","null"]},"trackedEntityStatus":{"type":["string","null"],"enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["comment","companyId","correctionOfItemLedgerId","createdAt","createdBy","documentId","documentLineId","documentType","entryNumber","entryType","externalDocumentId","id","isCorrection","itemDescription","itemId","itemReadableId","itemType","locationId","locationName","postingDate","quantity","scrapReasonId","storageUnitId","storageUnitName","thumbnailPath","trackedEntityId","trackedEntityReadableId","trackedEntityStatus","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getShipments":{"post":{"operationId":"inventory.getShipments","summary":"get shipments","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"externalDocumentId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoiced":{"type":["boolean","null"]},"locationId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"shipmentId":{"type":"string"},"shippingMethodId":{"type":["string","null"]},"sourceDocument":{"type":["string","null"],"enum":["Sales Invoice","Purchase Invoice","Purchase Order","Sales Order","Purchase Return Order","Sales Return Order","Inbound Transfer","Outbound Transfer"]},"sourceDocumentId":{"type":["string","null"]},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Pending","Draft","Posted","Voided"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"trackingNumber":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","customerId","customFields","externalDocumentId","externalNotes","id","internalNotes","invoiced","locationId","opportunityId","postedBy","postingDate","shipmentId","shippingMethodId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","supplierId","supplierInteractionId","tags","trackingNumber","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getShipment":{"post":{"operationId":"inventory.getShipment","summary":"get shipment","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shipmentId":{"type":"string"}},"required":["shipmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"externalDocumentId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoiced":{"type":["boolean","null"]},"locationId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"shipmentId":{"type":"string"},"shippingMethodId":{"type":["string","null"]},"sourceDocument":{"type":["string","null"],"enum":["Sales Invoice","Purchase Invoice","Purchase Order","Sales Order","Purchase Return Order","Sales Return Order","Inbound Transfer","Outbound Transfer"]},"sourceDocumentId":{"type":["string","null"]},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Pending","Draft","Posted","Voided"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"trackingNumber":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","customerId","customFields","externalDocumentId","externalNotes","id","internalNotes","invoiced","locationId","opportunityId","postedBy","postingDate","shipmentId","shippingMethodId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","supplierId","supplierInteractionId","tags","trackingNumber","updatedAt","updatedBy"]}}}}}}},"/inventory/getShipmentLines":{"post":{"operationId":"inventory.getShipmentLines","summary":"get shipment lines","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shipmentId":{"type":"string"}},"required":["shipmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"description":{"type":["string","null"]},"fulfillmentId":{"type":["string","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"lineId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"orderQuantity":{"type":["number","null"]},"outstandingQuantity":{"type":["number","null"]},"requiresBatchTracking":{"type":["boolean","null"]},"requiresSerialTracking":{"type":["boolean","null"]},"shipmentId":{"type":["string","null"]},"shippedQuantity":{"type":["number","null"]},"storageUnitId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"unitOfMeasure":{"type":["string","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"fulfillment":{"type":["object","null"],"properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"jobId":{"type":["string","null"]},"quantity":{"type":"number"},"salesOrderLineId":{"type":"string"},"type":{"type":"string","enum":["Inventory","Job"]},"updatedBy":{"type":["string","null"]},"job":{"type":["object","null"],"properties":{"actualTime":{"type":["number","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]},"deadlineType":{"type":"string","enum":["No Deadline","ASAP","Soft Deadline","Hard Deadline"]},"dueDate":{"type":["string","null"]},"estimatedTime":{"type":["number","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"jobId":{"type":"string"},"locationId":{"type":"string"},"modelUploadId":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]},"priority":{"type":"number"},"productionQuantity":{"type":["number","null"]},"projectedCompletionAt":{"type":["string","null"]},"quantity":{"type":"number"},"quantityComplete":{"type":"number"},"quantityReceivedToInventory":{"type":"number"},"quantityShipped":{"type":"number"},"quoteId":{"type":["string","null"]},"quoteLineId":{"type":["string","null"]},"releasedDate":{"type":["string","null"]},"salesOrderId":{"type":["string","null"]},"salesOrderLineId":{"type":["string","null"]},"scheduleOutdatedAt":{"type":["string","null"]},"scheduleOutdatedReason":{"type":["string","null"]},"scrapQuantity":{"type":"number"},"secondsToComplete":{"type":["number","null"]},"startDate":{"type":["string","null"]},"status":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"storageUnitId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitOfMeasureCode":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["actualTime","assignee","companyId","completedDate","configuration","createdAt","createdBy","customerId","customFields","deadlineType","dueDate","estimatedTime","id","itemId","jobId","locationId","modelUploadId","notes","priority","productionQuantity","projectedCompletionAt","quantity","quantityComplete","quantityReceivedToInventory","quantityShipped","quoteId","quoteLineId","releasedDate","salesOrderId","salesOrderLineId","scheduleOutdatedAt","scheduleOutdatedReason","scrapQuantity","secondsToComplete","startDate","status","storageUnitId","tags","unitOfMeasureCode","updatedAt","updatedBy"]}},"required":["companyId","createdAt","createdBy","id","jobId","quantity","salesOrderLineId","type","updatedBy","job"]}},"required":["companyId","createdAt","createdBy","description","fulfillmentId","id","itemId","itemReadableId","lineId","locationId","orderQuantity","outstandingQuantity","requiresBatchTracking","requiresSerialTracking","shipmentId","shippedQuantity","storageUnitId","thumbnailPath","unitOfMeasure","unitPrice","updatedAt","updatedBy","fulfillment"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getShipmentLinesWithDetails":{"post":{"operationId":"inventory.getShipmentLinesWithDetails","summary":"get shipment lines with details","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shipmentId":{"type":"string"}},"required":["shipmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"description":{"type":["string","null"]},"fulfillmentId":{"type":["string","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"lineId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"orderQuantity":{"type":["number","null"]},"outstandingQuantity":{"type":["number","null"]},"requiresBatchTracking":{"type":["boolean","null"]},"requiresSerialTracking":{"type":["boolean","null"]},"shipmentId":{"type":["string","null"]},"shippedQuantity":{"type":["number","null"]},"storageUnitId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"unitOfMeasure":{"type":["string","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","description","fulfillmentId","id","itemId","itemReadableId","lineId","locationId","orderQuantity","outstandingQuantity","requiresBatchTracking","requiresSerialTracking","shipmentId","shippedQuantity","storageUnitId","thumbnailPath","unitOfMeasure","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getShipmentFiles":{"post":{"operationId":"inventory.getShipmentFiles","summary":"get shipment files","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineIds":{"type":"array","items":{"type":"string"}}},"required":["lineIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getShipmentRelatedItems":{"post":{"operationId":"inventory.getShipmentRelatedItems","summary":"get shipment related items","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shipmentId":{"type":"string"},"sourceDocumentId":{"type":"string"}},"required":["shipmentId","sourceDocumentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"invoices":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customerId":{"type":"string"},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"dateDue":{"type":["string","null"]},"dateIssued":{"type":["string","null"]},"datePaid":{"type":["string","null"]},"exchangeRate":{"type":"number"},"exchangeRateUpdatedAt":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"invoiceCustomerContactId":{"type":["string","null"]},"invoiceCustomerId":{"type":["string","null"]},"invoiceCustomerLocationId":{"type":["string","null"]},"invoiceId":{"type":"string"},"locationId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"paymentTermId":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"shipmentId":{"type":["string","null"]},"status":{"type":"string","enum":["Pending","Draft","Voided","Overdue","Return","Paid","Partially Paid","Submitted","Credit Note Issued"]},"subtotal":{"type":"number"},"tags":{"type":["array","null"],"items":{"type":"string"}},"totalAmount":{"type":"number"},"totalDiscount":{"type":"number"},"totalTax":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","currencyCode","customerId","customerReference","customFields","dateDue","dateIssued","datePaid","exchangeRate","exchangeRateUpdatedAt","externalNotes","id","internalNotes","invoiceCustomerContactId","invoiceCustomerId","invoiceCustomerLocationId","invoiceId","locationId","opportunityId","paymentTermId","postingDate","shipmentId","status","subtotal","tags","totalAmount","totalDiscount","totalTax","updatedAt","updatedBy"]}}},"required":["invoices"]}}}}}}},"/inventory/getShipmentTracking":{"post":{"operationId":"inventory.getShipmentTracking","summary":"get shipment tracking","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shipmentId":{"type":"string"}},"required":["shipmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getShipmentLineTracking":{"post":{"operationId":"inventory.getShipmentLineTracking","summary":"get shipment line tracking","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shipmentLineId":{"type":"string"}},"required":["shipmentLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getShippingMethod":{"post":{"operationId":"inventory.getShippingMethod","summary":"get shipping method","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shippingMethodId":{"type":"string"}},"required":["shippingMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"carrier":{"type":"string","enum":["Other","UPS","FedEx","USPS","DHL"]},"carrierAccountId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"trackingUrl":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","carrier","carrierAccountId","companyId","createdAt","createdBy","customFields","id","name","tags","trackingUrl","updatedAt","updatedBy"]}}}}}}},"/inventory/getShippingMethods":{"post":{"operationId":"inventory.getShippingMethods","summary":"get shipping methods","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"carrier":{"type":"string","enum":["Other","UPS","FedEx","USPS","DHL"]},"carrierAccountId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"trackingUrl":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","carrier","carrierAccountId","companyId","createdAt","createdBy","customFields","id","name","tags","trackingUrl","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getShippingMethodsList":{"post":{"operationId":"inventory.getShippingMethodsList","summary":"get shipping methods list","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getShippingTermsList":{"post":{"operationId":"inventory.getShippingTermsList","summary":"get shipping terms list","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/mergeTrackedEntities":{"post":{"operationId":"inventory.mergeTrackedEntities","summary":"merge tracked entities","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trackedEntityIds":{"type":"array","items":{"type":"string"}},"readableId":{"type":["string","null"]}},"required":["trackedEntityIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"trackedEntityId":{"type":["string","null"]},"readableId":{"type":["string","null"]},"error":{"type":["string","null"]}}}}}}}}},"/inventory/getTrackedEntities":{"post":{"operationId":"inventory.getTrackedEntities","summary":"get tracked entities","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getTrackedEntitiesByMakeMethodId":{"post":{"operationId":"inventory.getTrackedEntitiesByMakeMethodId","summary":"get tracked entities by make method id","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobMakeMethodId":{"type":"string"}},"required":["jobMakeMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getTrackedEntity":{"post":{"operationId":"inventory.getTrackedEntity","summary":"get tracked entity","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trackedEntityId":{"type":"string"}},"required":["trackedEntityId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}}}}}}},"/inventory/updateTrackedEntityExpiry":{"post":{"operationId":"inventory.updateTrackedEntityExpiry","summary":"manual override of a tracked entity's expirationDate","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trackedEntityId":{"type":"string"},"expirationDate":{"type":["string","null"]},"reason":{"type":"string"},"source":{"type":"string"}},"required":["trackedEntityId","expirationDate","reason"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/getTrackedEntitiesByOperationId":{"post":{"operationId":"inventory.getTrackedEntitiesByOperationId","summary":"get tracked entities by operation id","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string"}},"required":["operationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getWarehouseTransfers":{"post":{"operationId":"inventory.getWarehouseTransfers","summary":"get warehouse transfers","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"expectedReceiptDate":{"type":["string","null"]},"fromLocationId":{"type":"string"},"id":{"type":"string"},"notes":{"type":["string","null"]},"reference":{"type":["string","null"]},"status":{"type":"string","enum":["Completed","Cancelled","Draft","To Receive","To Ship","To Ship and Receive"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"toLocationId":{"type":"string"},"transferDate":{"type":["string","null"]},"transferId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"fromLocation":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"toLocation":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["companyId","createdAt","createdBy","customFields","expectedReceiptDate","fromLocationId","id","notes","reference","status","tags","toLocationId","transferDate","transferId","updatedAt","updatedBy","fromLocation","toLocation"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getWarehouseTransfer":{"post":{"operationId":"inventory.getWarehouseTransfer","summary":"get warehouse transfer","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transferId":{"type":"string"}},"required":["transferId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"expectedReceiptDate":{"type":["string","null"]},"fromLocationId":{"type":"string"},"id":{"type":"string"},"notes":{"type":["string","null"]},"reference":{"type":["string","null"]},"status":{"type":"string","enum":["Completed","Cancelled","Draft","To Receive","To Ship","To Ship and Receive"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"toLocationId":{"type":"string"},"transferDate":{"type":["string","null"]},"transferId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"fromLocation":{"type":"object","properties":{"addressLine1":{"type":"string"},"addressLine2":{"type":["string","null"]},"city":{"type":"string"},"code":{"type":["string","null"]},"companyId":{"type":"string"},"countryCode":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"name":{"type":"string"},"postalCode":{"type":"string"},"requiresStaffing":{"type":"boolean"},"stateProvince":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"timezone":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["addressLine1","addressLine2","city","code","companyId","countryCode","createdAt","createdBy","customFields","id","latitude","longitude","name","postalCode","requiresStaffing","stateProvince","tags","timezone","updatedAt","updatedBy"]},"toLocation":{"type":"object","properties":{"addressLine1":{"type":"string"},"addressLine2":{"type":["string","null"]},"city":{"type":"string"},"code":{"type":["string","null"]},"companyId":{"type":"string"},"countryCode":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"name":{"type":"string"},"postalCode":{"type":"string"},"requiresStaffing":{"type":"boolean"},"stateProvince":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"timezone":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["addressLine1","addressLine2","city","code","companyId","countryCode","createdAt","createdBy","customFields","id","latitude","longitude","name","postalCode","requiresStaffing","stateProvince","tags","timezone","updatedAt","updatedBy"]}},"required":["companyId","createdAt","createdBy","customFields","expectedReceiptDate","fromLocationId","id","notes","reference","status","tags","toLocationId","transferDate","transferId","updatedAt","updatedBy","fromLocation","toLocation"]}}}}}}},"/inventory/getWarehouseTransferLine":{"post":{"operationId":"inventory.getWarehouseTransferLine","summary":"get warehouse transfer line","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transferId":{"type":"string"},"lineId":{"type":"string"}},"required":["transferId","lineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"fromLocationId":{"type":"string"},"fromStorageUnitId":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"notes":{"type":["string","null"]},"quantity":{"type":"number"},"receivedQuantity":{"type":"number"},"shippedQuantity":{"type":"number"},"toLocationId":{"type":"string"},"toStorageUnitId":{"type":["string","null"]},"transferId":{"type":"string"},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"warehouseTransfer":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"expectedReceiptDate":{"type":["string","null"]},"fromLocationId":{"type":"string"},"id":{"type":"string"},"notes":{"type":["string","null"]},"reference":{"type":["string","null"]},"status":{"type":"string","enum":["Completed","Cancelled","Draft","To Receive","To Ship","To Ship and Receive"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"toLocationId":{"type":"string"},"transferDate":{"type":["string","null"]},"transferId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"fromLocation":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"toLocation":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["companyId","createdAt","createdBy","customFields","expectedReceiptDate","fromLocationId","id","notes","reference","status","tags","toLocationId","transferDate","transferId","updatedAt","updatedBy","fromLocation","toLocation"]}},"required":["companyId","createdAt","createdBy","customFields","fromLocationId","fromStorageUnitId","id","itemId","notes","quantity","receivedQuantity","shippedQuantity","toLocationId","toStorageUnitId","transferId","unitOfMeasureCode","updatedAt","updatedBy","warehouseTransfer"]}}}}}}},"/inventory/getWarehouseTransferLines":{"post":{"operationId":"inventory.getWarehouseTransferLines","summary":"get warehouse transfer lines","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transferId":{"type":"string"}},"required":["transferId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"fromLocationId":{"type":"string"},"fromStorageUnitId":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"notes":{"type":["string","null"]},"quantity":{"type":"number"},"receivedQuantity":{"type":"number"},"shippedQuantity":{"type":"number"},"toLocationId":{"type":"string"},"toStorageUnitId":{"type":["string","null"]},"transferId":{"type":"string"},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"item":{"type":"object","properties":{"active":{"type":"boolean"},"assignee":{"type":["string","null"]},"changeOrderId":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"defaultMethodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":["string","null"]},"embedding":{},"id":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"modelUploadId":{"type":["string","null"]},"mpn":{"type":["string","null"]},"name":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"readableId":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":["string","null"]},"revisionStatus":{"type":"string","enum":["Production","Design","Prototype","Obsolete"]},"sourcingType":{"type":"string","enum":["Specified","Drop Ship","Ship from Inventory"]},"thumbnailPath":{"type":["string","null"]},"trackingMethod":{"type":["string","null"]},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","assignee","changeOrderId","companyId","createdAt","createdBy","defaultMethodType","description","embedding","id","itemTrackingType","modelUploadId","mpn","name","notes","readableId","readableIdWithRevision","replenishmentSystem","revision","revisionStatus","sourcingType","thumbnailPath","trackingMethod","type","unitOfMeasureCode","updatedAt","updatedBy"]},"fromStorageUnit":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]},"toStorageUnit":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]}},"required":["companyId","createdAt","createdBy","customFields","fromLocationId","fromStorageUnitId","id","itemId","notes","quantity","receivedQuantity","shippedQuantity","toLocationId","toStorageUnitId","transferId","unitOfMeasureCode","updatedAt","updatedBy","item","fromStorageUnit","toStorageUnit"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/insertManualInventoryAdjustment":{"post":{"operationId":"inventory.insertManualInventoryAdjustment","summary":"insert manual inventory adjustment","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"locationId":{"type":"string"},"storageUnitId":{"type":"string"},"originalStorageUnitId":{"type":"string"},"adjustmentType":{"type":"string","enum":["Positive Adjmt.","Negative Adjmt.","Set Quantity","Scrap","Unscrap"]},"quantity":{"type":"number"},"trackedEntityId":{"type":"string"},"readableId":{"type":"string"},"expirationDate":{"type":"string"},"comment":{"type":"string"},"scrapReasonId":{"type":"string"},"unscrapOfItemLedgerId":{"type":"string"}},"required":["itemId","adjustmentType","quantity"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/getStockMovementEffectiveQuantity":{"post":{"operationId":"inventory.getStockMovementEffectiveQuantity","summary":"get stock movement effective quantity","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemLedgerId":{"type":"string"}},"required":["itemLedgerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"rootId":{"type":"string"},"effectiveQuantity":{"type":"number"}},"required":["rootId","effectiveQuantity"]}}}}}}},"/inventory/correctStockMovement":{"post":{"operationId":"inventory.correctStockMovement","summary":"correct stock movement","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"correctedQuantity":{"type":"number"},"comment":{"type":"string"},"itemLedgerId":{"type":"string"}},"required":["correctedQuantity","itemLedgerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/getInventoryCounts":{"post":{"operationId":"inventory.getInventoryCounts","summary":"get inventory counts","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"inventoryCountId":{"type":"string"},"isBlind":{"type":"boolean"},"locationId":{"type":"string"},"notes":{"type":["string","null"]},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"scope":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"snapshotAt":{"type":["string","null"]},"status":{"type":"string","enum":["Pending","Draft","Posted"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","inventoryCountId","isBlind","locationId","notes","postedAt","postedBy","scope","snapshotAt","status","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getInventoryCount":{"post":{"operationId":"inventory.getInventoryCount","summary":"get inventory count","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"inventoryCountId":{"type":"string"},"isBlind":{"type":"boolean"},"locationId":{"type":"string"},"notes":{"type":["string","null"]},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"scope":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"snapshotAt":{"type":["string","null"]},"status":{"type":"string","enum":["Pending","Draft","Posted"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","inventoryCountId","isBlind","locationId","notes","postedAt","postedBy","scope","snapshotAt","status","updatedAt","updatedBy"]}}}}}}},"/inventory/getInventoryCountLines":{"post":{"operationId":"inventory.getInventoryCountLines","summary":"get inventory count lines","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inventoryCountId":{"type":"string"},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}},"required":["inventoryCountId","args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"countedAt":{"type":["string","null"]},"countedBy":{"type":["string","null"]},"countedQuantity":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"dimension":{"type":["string","null"]},"dimensionId":{"type":["string","null"]},"finish":{"type":["string","null"]},"finishId":{"type":["string","null"]},"grade":{"type":["string","null"]},"gradeId":{"type":["string","null"]},"id":{"type":["string","null"]},"inventoryCountId":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemReadableIdWithRevision":{"type":["string","null"]},"itemThumbnailPath":{"type":["string","null"]},"itemTrackingType":{"type":["string","null"],"enum":["Inventory","Non-Inventory","Serial","Batch"]},"locationId":{"type":["string","null"]},"materialFormId":{"type":["string","null"]},"materialSubstanceId":{"type":["string","null"]},"materialType":{"type":["string","null"]},"materialTypeId":{"type":["string","null"]},"postedItemLedgerId":{"type":["string","null"]},"readableId":{"type":["string","null"]},"storageTypeIds":{"type":["array","null"],"items":{"type":"string"}},"storageUnitId":{"type":["string","null"]},"systemQuantity":{"type":["number","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"trackedEntityId":{"type":["string","null"]},"type":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"variance":{"type":["number","null"]}},"required":["companyId","countedAt","countedBy","countedQuantity","createdAt","createdBy","customFields","dimension","dimensionId","finish","finishId","grade","gradeId","id","inventoryCountId","itemId","itemName","itemReadableIdWithRevision","itemThumbnailPath","itemTrackingType","locationId","materialFormId","materialSubstanceId","materialType","materialTypeId","postedItemLedgerId","readableId","storageTypeIds","storageUnitId","systemQuantity","tags","trackedEntityId","type","unitOfMeasureCode","updatedAt","updatedBy","variance"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getInventoryCountLineSummary":{"post":{"operationId":"inventory.getInventoryCountLineSummary","summary":"get inventory count line summary","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inventoryCountId":{"type":"string"}},"required":["inventoryCountId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"uncounted":{"type":"number"},"variances":{"type":"number"}},"required":["uncounted","variances"]}}}}}}},"/inventory/getInventoryCountMovements":{"post":{"operationId":"inventory.getInventoryCountMovements","summary":"get inventory count movements","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inventoryCountId":{"type":"string"}},"required":["inventoryCountId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"comment":{"type":["string","null"]},"companyId":{"type":["string","null"]},"correctionOfItemLedgerId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"documentId":{"type":["string","null"]},"documentLineId":{"type":["string","null"]},"documentType":{"type":["string","null"],"enum":["Sales Shipment","Sales Invoice","Sales Return Receipt","Sales Credit Memo","Purchase Receipt","Purchase Invoice","Purchase Return Shipment","Purchase Credit Memo","Transfer Shipment","Transfer Receipt","Service Shipment","Service Invoice","Service Credit Memo","Posted Assembly","Inventory Receipt","Inventory Shipment","Direct Transfer","Job Consumption","Job Receipt","Batch Split","Purchase Order","Maintenance Consumption","Non-Conformance","Inbound Inspection","Inventory Count","Scrap","Sales Return Shipment","Batch Merge"]},"entryNumber":{"type":["number","null"]},"entryType":{"type":["string","null"],"enum":["Purchase","Sale","Positive Adjmt.","Negative Adjmt.","Transfer","Consumption","Output","Assembly Consumption","Assembly Output"]},"externalDocumentId":{"type":["string","null"]},"id":{"type":["string","null"]},"isCorrection":{"type":["boolean","null"]},"itemDescription":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"quantity":{"type":["number","null"]},"scrapReasonId":{"type":["string","null"]},"storageUnitId":{"type":["string","null"]},"storageUnitName":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"trackedEntityId":{"type":["string","null"]},"trackedEntityReadableId":{"type":["string","null"]},"trackedEntityStatus":{"type":["string","null"],"enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["comment","companyId","correctionOfItemLedgerId","createdAt","createdBy","documentId","documentLineId","documentType","entryNumber","entryType","externalDocumentId","id","isCorrection","itemDescription","itemId","itemReadableId","itemType","locationId","locationName","postingDate","quantity","scrapReasonId","storageUnitId","storageUnitName","thumbnailPath","trackedEntityId","trackedEntityReadableId","trackedEntityStatus","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/insertInventoryCount":{"post":{"operationId":"inventory.insertInventoryCount","summary":"insert inventory count","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inventoryCountId":{"type":"string"},"locationId":{"type":"string"},"isBlind":{"type":"boolean"},"notes":{"type":["string","null"]},"scope":{},"customFields":{}},"required":["inventoryCountId","locationId","isBlind"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/deleteInventoryCount":{"post":{"operationId":"inventory.deleteInventoryCount","summary":"delete inventory count","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/generateInventoryCountLines":{"post":{"operationId":"inventory.generateInventoryCountLines","summary":"generate inventory count lines","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inventoryCountId":{"type":"string"},"locationId":{"type":"string"},"storageUnitIds":{"type":"array","items":{"type":"string"}},"itemType":{"type":"string"}},"required":["inventoryCountId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/inventory/updateInventoryCountLine":{"post":{"operationId":"inventory.updateInventoryCountLine","summary":"update inventory count line","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"countedQuantity":{"type":"number","minimum":0},"countedBy":{"type":"string"}},"required":["id","countedBy"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["object","null"],"properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/updateInventoryCountStatus":{"post":{"operationId":"inventory.updateInventoryCountStatus","summary":"update inventory count status","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Pending","Posted"]},"expectedStatus":{"type":"string","enum":["Draft","Pending","Posted"]}},"required":["id","status"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/updateBatchPropertyOrder":{"post":{"operationId":"inventory.updateBatchPropertyOrder","summary":"update batch property order","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"sortOrder":{"type":"number","minimum":0},"batchPropertyGroupId":{"type":["string","null"]}},"required":["id","sortOrder"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/updateStockTransferStatus":{"post":{"operationId":"inventory.updateStockTransferStatus","summary":"update stock transfer status","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Released","In Progress","Completed"]},"assignee":{"type":["string","null"]},"completedAt":{"type":["string","null"]}},"required":["id","status","completedAt"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/upsertBatchProperty":{"post":{"operationId":"inventory.upsertBatchProperty","summary":"upsert batch property","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"itemId":{"type":"string","minLength":1},"label":{"type":"string","minLength":1},"dataType":{"type":"string","enum":["text","numeric","boolean","list","date"]},"listOptions":{"type":"array","items":{"type":"string","minLength":1}},"configurationParameterGroupId":{"type":"string"}},"required":["itemId","label","dataType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/upsertKanban":{"post":{"operationId":"inventory.upsertKanban","summary":"upsert kanban","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Transfer"]},"autoRelease":{"type":"boolean"},"autoStartJob":{"type":"boolean"},"completedBarcodeOverride":{"type":"string"},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"locationId":{"type":"string","minLength":1},"storageUnitId":{"type":"string"},"fromStorageUnitId":{"type":"string"},"supplierId":{"type":"string"},"purchaseUnitOfMeasureCode":{"type":"string"},"conversionFactor":{"default":1,"type":"number","minimum":0},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["itemId","replenishmentSystem","quantity","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/upsertReceipt":{"post":{"operationId":"inventory.upsertReceipt","summary":"upsert receipt","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"sourceDocument":{"type":"string","enum":["Sales Return Order","Purchase Order","Purchase Invoice","Inbound Transfer"]},"sourceDocumentId":{"type":"string","minLength":1},"externalDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":"string"},"supplierId":{"type":"string"},"receiptId":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["sourceDocumentId","receiptId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/upsertStorageUnit":{"post":{"operationId":"inventory.upsertStorageUnit","summary":"upsert storage unit","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"locationId":{"type":"string","minLength":1},"warehouseId":{"type":"string"},"parentId":{"type":"string"},"workCenterId":{"type":"string"},"storageTypeIds":{"type":"array","items":{"type":"string"}},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/upsertShippingMethod":{"post":{"operationId":"inventory.upsertShippingMethod","summary":"upsert shipping method","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"carrier":{"type":"string","enum":["UPS","FedEx","USPS","DHL","Other"]},"carrierAccountId":{"type":"string"},"trackingUrl":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","carrier"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/upsertShipment":{"post":{"operationId":"inventory.upsertShipment","summary":"upsert shipment","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"sourceDocument":{"type":"string","enum":["Sales Order","Sales Return Order","Purchase Order","Purchase Return Order","Outbound Transfer"]},"sourceDocumentId":{"type":"string","minLength":1},"trackingNumber":{"type":"string"},"shippingMethodId":{"type":"string"},"sourceDocumentReadableId":{"type":"string"},"customerId":{"type":"string"},"shipmentId":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["sourceDocumentId","shipmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/upsertStockTransferLine":{"post":{"operationId":"inventory.upsertStockTransferLine","summary":"upsert stock transfer line","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stockTransferId":{"type":"string","minLength":1},"itemId":{"type":"string","minLength":1},"fromStorageUnitId":{"type":"string"},"toStorageUnitId":{"type":"string"},"quantity":{"type":"number","minimum":0},"pickedQuantity":{"type":"number","minimum":0},"requiresBatchTracking":{"type":"string","enum":["true","false"]},"requiresSerialTracking":{"type":"string","enum":["true","false"]},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["stockTransferId","itemId","quantity","requiresBatchTracking","requiresSerialTracking"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/updateWarehouseTransferStatus":{"post":{"operationId":"inventory.updateWarehouseTransferStatus","summary":"update warehouse transfer status","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transferId":{"type":"string"},"status":{"type":"string","enum":["Draft","To Ship and Receive","To Ship","To Receive","Completed","Cancelled"]}},"required":["transferId","status"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/upsertWarehouseTransferLine":{"post":{"operationId":"inventory.upsertWarehouseTransferLine","summary":"upsert warehouse transfer line","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"line":{"anyOf":[{"type":"object","properties":{"createdAt":{"type":"string"},"customFields":{},"fromLocationId":{"type":"string"},"fromStorageUnitId":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"notes":{"type":["string","null"]},"quantity":{"type":"number"},"receivedQuantity":{"type":"number"},"shippedQuantity":{"type":"number"},"toLocationId":{"type":"string"},"toStorageUnitId":{"type":["string","null"]},"transferId":{"type":"string"},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["fromLocationId","itemId","toLocationId","transferId"]},{"type":"object","properties":{"createdAt":{"type":"string"},"customFields":{},"fromLocationId":{"type":"string"},"fromStorageUnitId":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"notes":{"type":["string","null"]},"quantity":{"type":"number"},"receivedQuantity":{"type":"number"},"shippedQuantity":{"type":"number"},"toLocationId":{"type":"string"},"toStorageUnitId":{"type":["string","null"]},"transferId":{"type":"string"},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["id"]}]}},"required":["line"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"fromLocationId":{"type":"string"},"fromStorageUnitId":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"notes":{"type":["string","null"]},"quantity":{"type":"number"},"receivedQuantity":{"type":"number"},"shippedQuantity":{"type":"number"},"toLocationId":{"type":"string"},"toStorageUnitId":{"type":["string","null"]},"transferId":{"type":"string"},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","fromLocationId","fromStorageUnitId","id","itemId","notes","quantity","receivedQuantity","shippedQuantity","toLocationId","toStorageUnitId","transferId","unitOfMeasureCode","updatedAt","updatedBy"]}}}}}}},"/inventory/getDefaultStorageUnitForJob":{"post":{"operationId":"inventory.getDefaultStorageUnitForJob","summary":"get default storage unit for job","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["string","null"]}}}}}}},"/inventory/getStorageUnitTree":{"post":{"operationId":"inventory.getStorageUnitTree","summary":"get storage unit tree","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"parentId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"warehouseId":{"type":["string","null"]},"name":{"type":["string","null"]},"active":{"type":["boolean","null"]},"storageTypeIds":{"type":["array","null"],"items":{"type":"string"}},"companyId":{"type":["string","null"]},"depth":{"type":["number","null"]},"ancestorPath":{"type":["array","null"],"items":{"type":"string"}}},"required":["id","parentId","locationId","warehouseId","name","active","storageTypeIds","companyId","depth","ancestorPath"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getStorageUnitDescendants":{"post":{"operationId":"inventory.getStorageUnitDescendants","summary":"get storage unit descendants","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"storageUnitId":{"type":"string"}},"required":["storageUnitId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"parentId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"warehouseId":{"type":["string","null"]},"name":{"type":["string","null"]},"active":{"type":["boolean","null"]},"storageTypeIds":{"type":["array","null"],"items":{"type":"string"}},"companyId":{"type":["string","null"]},"depth":{"type":["number","null"]},"ancestorPath":{"type":["array","null"],"items":{"type":"string"}}},"required":["id","parentId","locationId","warehouseId","name","active","storageTypeIds","companyId","depth","ancestorPath"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/expandStorageUnitIdsWithDescendants":{"post":{"operationId":"inventory.expandStorageUnitIdsWithDescendants","summary":"expand storage unit ids with descendants","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"storageUnitIds":{"type":"array","items":{"type":"string"}}},"required":["storageUnitIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"string"}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getStorageTypeUsage":{"post":{"operationId":"inventory.getStorageTypeUsage","summary":"get storage type usage","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/deleteStorageTypeWithCascade":{"post":{"operationId":"inventory.deleteStorageTypeWithCascade","summary":"delete storage type with cascade","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]}},"required":["error"]}]}}}}}}},"/inventory/getStorageTypes":{"post":{"operationId":"inventory.getStorageTypes","summary":"get storage types","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getStorageType":{"post":{"operationId":"inventory.getStorageType","summary":"get storage type","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","updatedAt","updatedBy"]}}}}}}},"/inventory/getStorageTypesList":{"post":{"operationId":"inventory.getStorageTypesList","summary":"get storage types list","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/upsertStorageType":{"post":{"operationId":"inventory.upsertStorageType","summary":"upsert storage type","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/getShelfLifeForItems":{"post":{"operationId":"inventory.getShelfLifeForItems","summary":"get shelf life for items","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"type":"array","items":{"type":"string"}}},"required":["itemIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{}},{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"mode":{"type":"string","enum":["Fixed Duration","Calculated","Set on Receipt"]},"days":{"type":["number","null"]}},"required":["itemId","mode","days"]}},{"type":"null"}]}}}}}}},"/inventory/getTrackedEntityExpirations":{"post":{"operationId":"inventory.getTrackedEntityExpirations","summary":"map of trackedEntityId → expirationDate (or null) for a set of ids","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trackedEntityIds":{"type":"array","items":{"type":"string"}}},"required":["trackedEntityIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":["string","null"]}}}}}}}},"/inventory/getPickingLists":{"post":{"operationId":"inventory.getPickingLists","summary":"get picking lists","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{"type":["string","null"]},"assignee":{"type":["string","null"]},"locationId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"assigneeAvatarUrl":{"type":["string","null"]},"assigneeName":{"type":["string","null"]},"companyId":{"type":["string","null"]},"completedLineCount":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"dueDate":{"type":["string","null"]},"id":{"type":["string","null"]},"lineCount":{"type":["number","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"pickingListId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Completed","Cancelled","Draft","In Progress","Partial"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","assigneeAvatarUrl","assigneeName","companyId","completedLineCount","createdAt","createdBy","customFields","dueDate","id","lineCount","locationId","locationName","notes","pickingListId","status","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getPickingList":{"post":{"operationId":"inventory.getPickingList","summary":"get picking list","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pickingListId":{"type":"string"}},"required":["pickingListId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"dueDate":{"type":["string","null"]},"id":{"type":"string"},"locationId":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"pickingListId":{"type":"string"},"status":{"type":"string","enum":["Completed","Cancelled","Draft","In Progress","Partial"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"location":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"assigneeUser":{"type":["object","null"],"properties":{"fullName":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["fullName","avatarUrl"]}},"required":["assignee","companyId","createdAt","createdBy","customFields","dueDate","id","locationId","notes","pickingListId","status","updatedAt","updatedBy","location","assigneeUser"]}}}}}}},"/inventory/getPicksByJobMaterial":{"post":{"operationId":"inventory.getPicksByJobMaterial","summary":"get picks by job material","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"itemReadableId":{"type":"string"},"isSubstitute":{"type":"boolean"},"quantityToPick":{"type":"number"},"quantityPicked":{"type":"number"},"pickingListId":{"type":"string"},"pickingListReadableId":{"type":"string"},"pickingListStatus":{"type":"string"}},"required":["itemId","itemReadableId","isSubstitute","quantityToPick","quantityPicked","pickingListId","pickingListReadableId","pickingListStatus"]}}}}}}}}},"/inventory/getPickingListLines":{"post":{"operationId":"inventory.getPickingListLines","summary":"get picking list lines","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pickingListId":{"type":"string"}},"required":["pickingListId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"jobId":{"type":"string"},"jobMaterialId":{"type":"string"},"jobOperationId":{"type":["string","null"]},"outstandingQuantity":{"type":["number","null"]},"pickingListId":{"type":"string"},"quantityPicked":{"type":"number"},"quantityReturned":{"type":"number"},"quantityToPick":{"type":"number"},"status":{"type":"string","enum":["Pending","Cancelled","Picked","Short"]},"storageUnitId":{"type":["string","null"]},"toStorageUnitId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"item":{"type":"object","properties":{"name":{"type":"string"},"readableId":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"unitOfMeasureCode":{"type":["string","null"]}},"required":["name","readableId","itemTrackingType","unitOfMeasureCode"]},"jobMaterial":{"type":"object","properties":{"itemId":{"type":"string"},"quantity":{"type":"number"},"substitutionFactor":{"type":["number","null"]},"item":{"type":"object","properties":{"readableId":{"type":"string"},"itemSupersession":{"type":["object","null"],"properties":{"conversionFactor":{"type":"number"}},"required":["conversionFactor"]}},"required":["readableId","itemSupersession"]}},"required":["itemId","quantity","substitutionFactor","item"]},"job":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]},"jobOperation":{"type":["object","null"],"properties":{"order":{"type":"number"},"processId":{"type":"string"},"workCenterId":{"type":["string","null"]},"process":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"workCenter":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]}},"required":["order","processId","workCenterId","process","workCenter"]},"storageUnit":{"type":["object","null"],"properties":{"name":{"type":"string"},"locationId":{"type":"string"}},"required":["name","locationId"]},"toStorageUnit":{"type":["object","null"],"properties":{"name":{"type":"string"},"locationId":{"type":"string"}},"required":["name","locationId"]},"trackedEntities":{"type":"array","items":{"type":"object","properties":{"trackedEntityId":{"type":"string"},"quantity":{"type":"number"},"quantityPicked":{"type":"number"},"trackedEntity":{"type":"object","properties":{"readableId":{"type":["string","null"]}},"required":["readableId"]}},"required":["trackedEntityId","quantity","quantityPicked","trackedEntity"]}}},"required":["companyId","createdAt","createdBy","customFields","id","itemId","jobId","jobMaterialId","jobOperationId","outstandingQuantity","pickingListId","quantityPicked","quantityReturned","quantityToPick","status","storageUnitId","toStorageUnitId","updatedAt","updatedBy","item","jobMaterial","job","jobOperation","storageUnit","toStorageUnit","trackedEntities"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/getPickingListAvailability":{"post":{"operationId":"inventory.getPickingListAvailability","summary":"per-line WAREHOUSE (non-lineside, incl","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pickingListId":{"type":"string"}},"required":["pickingListId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/inventory/getPickingListRecommendations":{"post":{"operationId":"inventory.getPickingListRecommendations","summary":"the recommended tracked entities (serial/batch lots) for each tracked picking line, in pick order — surfaced as at-a-glance subtext before the picker opens","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pickingListId":{"type":"string"}},"required":["pickingListId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"trackedEntityId":{"type":"string"},"readableId":{"type":["string","null"]}},"required":["trackedEntityId","readableId"]}}}}}}}}},"/inventory/getPickingListLine":{"post":{"operationId":"inventory.getPickingListLine","summary":"get picking list line","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"}},"required":["lineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"jobId":{"type":"string"},"jobMaterialId":{"type":"string"},"jobOperationId":{"type":["string","null"]},"outstandingQuantity":{"type":["number","null"]},"pickingListId":{"type":"string"},"quantityPicked":{"type":"number"},"quantityReturned":{"type":"number"},"quantityToPick":{"type":"number"},"status":{"type":"string","enum":["Pending","Cancelled","Picked","Short"]},"storageUnitId":{"type":["string","null"]},"toStorageUnitId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"item":{"type":"object","properties":{"name":{"type":"string"},"readableId":{"type":"string"}},"required":["name","readableId"]},"job":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]},"jobOperation":{"type":["object","null"],"properties":{"order":{"type":"number"},"processId":{"type":"string"},"workCenterId":{"type":["string","null"]},"process":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"workCenter":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]}},"required":["order","processId","workCenterId","process","workCenter"]},"storageUnit":{"type":["object","null"],"properties":{"name":{"type":"string"},"locationId":{"type":"string"}},"required":["name","locationId"]},"toStorageUnit":{"type":["object","null"],"properties":{"name":{"type":"string"},"locationId":{"type":"string"}},"required":["name","locationId"]},"pickingList":{"type":"object","properties":{"pickingListId":{"type":"string"},"status":{"type":"string","enum":["Completed","Cancelled","Draft","In Progress","Partial"]}},"required":["pickingListId","status"]}},"required":["companyId","createdAt","createdBy","customFields","id","itemId","jobId","jobMaterialId","jobOperationId","outstandingQuantity","pickingListId","quantityPicked","quantityReturned","quantityToPick","status","storageUnitId","toStorageUnitId","updatedAt","updatedBy","item","job","jobOperation","storageUnit","toStorageUnit","pickingList"]}}}}}}},"/inventory/getPickingListLineTrackedEntities":{"post":{"operationId":"inventory.getPickingListLineTrackedEntities","summary":"get picking list line tracked entities","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"}},"required":["lineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"pickingListLineId":{"type":"string"},"quantity":{"type":"number"},"quantityPicked":{"type":"number"},"trackedEntityId":{"type":"string"},"trackedEntity":{"type":"object","properties":{"readableId":{"type":["string","null"]},"quantity":{"type":"number"},"expirationDate":{"type":["string","null"]}},"required":["readableId","quantity","expirationDate"]}},"required":["companyId","pickingListLineId","quantity","quantityPicked","trackedEntityId","trackedEntity"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/setPickingListLineTrackedEntity":{"post":{"operationId":"inventory.setPickingListLineTrackedEntity","summary":"pick (or unpick) a tracked (serial/batch) lot for a picking line","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pickingListLineId":{"type":"string"},"trackedEntityId":{"type":"string"},"fromStorageUnitId":{"type":["string","null"]},"quantity":{"type":"number"},"unpick":{"type":"boolean"}},"required":["pickingListLineId","trackedEntityId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/upsertPickingList":{"post":{"operationId":"inventory.upsertPickingList","summary":"upsert picking list","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string","minLength":1},"assignee":{"type":"string"},"dueDate":{"type":"string"},"notes":{"type":"string"},"pickingListId":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["locationId","pickingListId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/getUnresolvedPickingListLines":{"post":{"operationId":"inventory.getUnresolvedPickingListLines","summary":"get unresolved picking list lines","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pickingListId":{"type":"string"}},"required":["pickingListId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"unresolved":{"type":"array","items":{"type":"object","properties":{"itemName":{"type":"string"},"outstanding":{"type":"number"}},"required":["itemName","outstanding"]}},"hasShort":{"type":"boolean"},"error":{}},"required":["unresolved","hasShort","error"]}}}}}}},"/inventory/cancelOpenPickingListsForJob":{"post":{"operationId":"inventory.cancelOpenPickingListsForJob","summary":"cancel open picking lists for job","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":["object","null"],"properties":{"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["name","message"]}},"required":["error"]}}}}}}},"/inventory/updatePickingListStatus":{"post":{"operationId":"inventory.updatePickingListStatus","summary":"update picking list status","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pickingListId":{"type":"string"},"status":{"type":"string","enum":["Draft","In Progress","Completed","Cancelled","Partial"]}},"required":["pickingListId","status"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/deletePickingList":{"post":{"operationId":"inventory.deletePickingList","summary":"delete picking list","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pickingListId":{"type":"string"}},"required":["pickingListId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/inventory/getPickingSchedule":{"post":{"operationId":"inventory.getPickingSchedule","summary":"get picking schedule","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"search":{"type":["string","null"]}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string"},"customerName":{"type":"string"},"deadlineType":{"type":"string","enum":["No Deadline","ASAP","Soft Deadline","Hard Deadline"]},"dueDate":{"type":"string"},"itemDescription":{"type":"string"},"itemId":{"type":"string"},"itemReadableId":{"type":"string"},"jobId":{"type":"string"},"jobMakeMethodId":{"type":"string"},"jobOperationId":{"type":"string"},"jobReadableId":{"type":"string"},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"operationDescription":{"type":"string"},"operationOrder":{"type":"number"},"operationQuantity":{"type":"number"},"operationStatus":{"type":"string","enum":["Todo","Done","In Progress","Ready","Paused","Canceled","Waiting"]},"partsToPickCount":{"type":"number"},"processName":{"type":"string"},"quantityComplete":{"type":"number"},"quantityReworked":{"type":"number"},"quantityScrapped":{"type":"number"},"salesOrderId":{"type":"string"},"salesOrderLineId":{"type":"string"},"salesOrderReadableId":{"type":"string"},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"tags":{"type":"array","items":{"type":"string"}},"targetQuantity":{"type":"number"},"thumbnailPath":{"type":"string"},"totalQuantityToPick":{"type":"number"},"workCenterId":{"type":"string"},"workCenterName":{"type":"string"}},"required":["customerId","customerName","deadlineType","dueDate","itemDescription","itemId","itemReadableId","jobId","jobMakeMethodId","jobOperationId","jobReadableId","laborTime","laborUnit","machineTime","machineUnit","operationDescription","operationOrder","operationQuantity","operationStatus","partsToPickCount","processName","quantityComplete","quantityReworked","quantityScrapped","salesOrderId","salesOrderLineId","salesOrderReadableId","setupTime","setupUnit","tags","targetQuantity","thumbnailPath","totalQuantityToPick","workCenterId","workCenterName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/inventory/generatePickingList":{"post":{"operationId":"inventory.generatePickingList","summary":"generate picking list","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobOperationIds":{"type":"array","items":{"type":"string"}},"locationId":{"type":"string"},"assignee":{"type":["string","null"]},"dueDate":{"type":["string","null"]}},"required":["jobOperationIds","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"pickingListId":{"type":"string"}},"required":["id","pickingListId"]}}}}}}},"/inventory/pickPickingListLine":{"post":{"operationId":"inventory.pickPickingListLine","summary":"pick, partial-pick (short), or unpick a picking line","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pickingListLineId":{"type":"string"},"quantity":{"type":"number"},"markShort":{"type":"boolean"}},"required":["pickingListLineId","quantity"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/inventory/insertStockTransfer":{"post":{"operationId":"inventory.insertStockTransfer","summary":"Create a stock transfer with lines. Generates sequence ID automatically.","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"fromStorageUnitId":{"type":["string","null"]},"toStorageUnitId":{"type":["string","null"]},"quantity":{"type":"number"},"requiresSerialTracking":{"type":"boolean"},"requiresBatchTracking":{"type":"boolean"}},"required":["itemId"]}},"stockTransferId":{"type":"string"},"customFields":{}},"required":["locationId","lines"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"stockTransferId":{"type":"string"}},"required":["id","stockTransferId"]}}}}}}},"/inventory/insertWarehouseTransfer":{"post":{"operationId":"inventory.insertWarehouseTransfer","summary":"Create a warehouse transfer between locations. Generates sequence ID automatically.","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fromLocationId":{"type":"string"},"toLocationId":{"type":"string"},"transferId":{"type":"string"},"status":{"type":"string","enum":["Draft","To Ship and Receive","To Ship","To Receive","Completed","Cancelled"]},"transferDate":{"type":"string"},"expectedReceiptDate":{"type":"string"},"notes":{"type":"string"},"reference":{"type":"string"},"customFields":{}},"required":["fromLocationId","toLocationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"transferId":{"type":"string"}},"required":["id","transferId"]}}}}}}},"/inventory/updateWarehouseTransfer":{"post":{"operationId":"inventory.updateWarehouseTransfer","summary":"Update an existing warehouse transfer","tags":["inventory"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"fromLocationId":{"type":"string"},"toLocationId":{"type":"string"},"transferId":{"type":"string"},"status":{"type":"string","enum":["Draft","To Ship and Receive","To Ship","To Receive","Completed","Cancelled"]},"transferDate":{"type":"string"},"expectedReceiptDate":{"type":"string"},"notes":{"type":"string"},"reference":{"type":"string"},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/invoicing/computeInvoiceDateDue":{"post":{"operationId":"invoicing.computeInvoiceDateDue","summary":"compute an invoice's Due Date from its Issue Date and Payment Term","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dateIssued":{"anyOf":[{"type":"string"},{"type":"null"}]},"paymentTermId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["dateIssued","paymentTermId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["string","null"]}}}}}}},"/invoicing/computeEarlyPaymentDiscounts":{"post":{"operationId":"invoicing.computeEarlyPaymentDiscounts","summary":"early-payment (cash) discount per invoice, for seeding a payment's applications","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asOfDate":{"type":"string"},"currencyDecimals":{"type":"number"},"invoices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"balance":{"type":"number"},"dateIssued":{"type":["string","null"]},"paymentTermId":{"type":["string","null"]}},"required":["id","balance","dateIssued","paymentTermId"]}}},"required":["asOfDate","currencyDecimals","invoices"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/invoicing/createPurchaseInvoiceFromPurchaseOrder":{"post":{"operationId":"invoicing.createPurchaseInvoiceFromPurchaseOrder","summary":"create purchase invoice from purchase order","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderId":{"type":"string"}},"required":["purchaseOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/invoicing/createSalesInvoiceFromSalesOrder":{"post":{"operationId":"invoicing.createSalesInvoiceFromSalesOrder","summary":"create sales invoice from sales order","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderId":{"type":"string"}},"required":["salesOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/invoicing/createSalesInvoiceFromShipment":{"post":{"operationId":"invoicing.createSalesInvoiceFromShipment","summary":"create sales invoice from shipment","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shipmentId":{"type":"string"}},"required":["shipmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/invoicing/deletePurchaseInvoice":{"post":{"operationId":"invoicing.deletePurchaseInvoice","summary":"delete purchase invoice","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseInvoiceId":{"type":"string"}},"required":["purchaseInvoiceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/invoicing/deletePurchaseInvoiceLine":{"post":{"operationId":"invoicing.deletePurchaseInvoiceLine","summary":"delete purchase invoice line","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseInvoiceLineId":{"type":"string"}},"required":["purchaseInvoiceLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/invoicing/deleteSalesInvoice":{"post":{"operationId":"invoicing.deleteSalesInvoice","summary":"delete sales invoice","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesInvoiceId":{"type":"string"}},"required":["salesInvoiceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/invoicing/deleteSalesInvoiceLine":{"post":{"operationId":"invoicing.deleteSalesInvoiceLine","summary":"delete sales invoice line","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesInvoiceLineId":{"type":"string"}},"required":["salesInvoiceLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/invoicing/getPurchaseInvoice":{"post":{"operationId":"invoicing.getPurchaseInvoice","summary":"get purchase invoice","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseInvoiceId":{"type":"string"}},"required":["purchaseInvoiceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"balance":{"type":["number","null"]},"baseStatus":{"type":["string","null"],"enum":["Open","Pending","Draft","Voided","Overdue","Return","Debit Note Issued","Paid","Partially Paid"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"dateDue":{"type":["string","null"]},"dateIssued":{"type":["string","null"]},"datePaid":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoiceId":{"type":["string","null"]},"invoiceSupplierContactId":{"type":["string","null"]},"invoiceSupplierId":{"type":["string","null"]},"invoiceSupplierLocationId":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"locationId":{"type":["string","null"]},"orderTotal":{"type":["number","null"]},"paymentTermId":{"type":["string","null"]},"paymentTermName":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"status":{"type":["string","null"]},"subtotal":{"type":["number","null"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"supplierReference":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"totalAmount":{"type":["number","null"]},"totalDiscount":{"type":["number","null"]},"totalTax":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","balance","baseStatus","companyId","createdAt","createdBy","currencyCode","customFields","dateDue","dateIssued","datePaid","exchangeRate","exchangeRateUpdatedAt","id","internalNotes","invoiceId","invoiceSupplierContactId","invoiceSupplierId","invoiceSupplierLocationId","itemType","locationId","orderTotal","paymentTermId","paymentTermName","postingDate","status","subtotal","supplierId","supplierInteractionId","supplierReference","thumbnailPath","totalAmount","totalDiscount","totalTax","updatedAt","updatedBy"]}}}}}}},"/invoicing/getPurchaseInvoices":{"post":{"operationId":"invoicing.getPurchaseInvoices","summary":"get purchase invoices","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"supplierId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"invoiceId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"invoiceSupplierId":{"type":["string","null"]},"supplierReference":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"dateIssued":{"type":["string","null"]},"dateDue":{"type":["string","null"]},"datePaid":{"type":["string","null"]},"balance":{"type":["number","null"]},"assignee":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"orderTotal":{"type":["number","null"]},"status":{"type":["string","null"]},"paymentTermName":{"type":["string","null"]}},"required":["id","invoiceId","supplierId","invoiceSupplierId","supplierReference","postingDate","dateIssued","dateDue","datePaid","balance","assignee","createdBy","createdAt","updatedBy","updatedAt","customFields","companyId","thumbnailPath","itemType","orderTotal","status","paymentTermName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getPurchaseInvoiceDelivery":{"post":{"operationId":"invoicing.getPurchaseInvoiceDelivery","summary":"get purchase invoice delivery","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseInvoiceId":{"type":"string"}},"required":["purchaseInvoiceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"incoterm":{"type":["string","null"],"enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":["string","null"]},"locationId":{"type":["string","null"]},"shippingMethodId":{"type":["string","null"]},"shippingTermId":{"type":["string","null"]},"supplierShippingCost":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","customFields","id","incoterm","incotermLocation","locationId","shippingMethodId","shippingTermId","supplierShippingCost","updatedAt","updatedBy"]}}}}}}},"/invoicing/getPurchaseInvoiceLines":{"post":{"operationId":"invoicing.getPurchaseInvoiceLines","summary":"get purchase invoice lines","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseInvoiceId":{"type":"string"}},"required":["purchaseInvoiceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":["string","null"]},"accountName":{"type":["string","null"]},"assetId":{"type":["string","null"]},"assetName":{"type":["string","null"]},"assetReadableId":{"type":["string","null"]},"companyId":{"type":["string","null"]},"conversionFactor":{"type":["number","null"]},"costCenterId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"extendedPrice":{"type":["number","null"]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"inventoryUnitOfMeasureCode":{"type":["string","null"]},"invoiceId":{"type":["string","null"]},"invoiceLineType":{"type":["string","null"],"enum":["Fixed Asset","Part","Service","Material","Tool","Fixture","Consumable","Comment","G/L Account"]},"itemDescription":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"jobOperationId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"modelUploadId":{"type":["string","null"]},"ownerId":{"type":["string","null"]},"purchaseOrderId":{"type":["string","null"]},"purchaseOrderLineId":{"type":["string","null"]},"purchaseUnitOfMeasureCode":{"type":["string","null"]},"quantity":{"type":["number","null"]},"requiredDate":{"type":["string","null"]},"serviceId":{"type":["string","null"]},"shippingCost":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"storageUnitId":{"type":["string","null"]},"supplierExtendedPrice":{"type":["number","null"]},"supplierPartId":{"type":["string","null"]},"supplierShippingCost":{"type":["number","null"]},"supplierTaxAmount":{"type":["number","null"]},"supplierUnitPrice":{"type":["number","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxAmount":{"type":["number","null"]},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"totalAmount":{"type":["number","null"]},"unitCost":{"type":["number","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","accountName","assetId","assetName","assetReadableId","companyId","conversionFactor","costCenterId","createdAt","createdBy","customFields","description","exchangeRate","extendedPrice","id","internalNotes","inventoryUnitOfMeasureCode","invoiceId","invoiceLineType","itemDescription","itemId","itemName","itemReadableId","jobOperationId","locationId","modelUploadId","ownerId","purchaseOrderId","purchaseOrderLineId","purchaseUnitOfMeasureCode","quantity","requiredDate","serviceId","shippingCost","sortOrder","storageUnitId","supplierExtendedPrice","supplierPartId","supplierShippingCost","supplierTaxAmount","supplierUnitPrice","tags","taxAmount","taxPercent","thumbnailPath","totalAmount","unitCost","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getPurchaseInvoiceLine":{"post":{"operationId":"invoicing.getPurchaseInvoiceLine","summary":"get purchase invoice line","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseInvoiceLineId":{"type":"string"}},"required":["purchaseInvoiceLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":["string","null"]},"assetId":{"type":["string","null"]},"companyId":{"type":"string"},"conversionFactor":{"type":["number","null"]},"costCenterId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"exchangeRate":{"type":"number"},"extendedPrice":{"type":["number","null"]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"inventoryUnitOfMeasureCode":{"type":["string","null"]},"invoiceId":{"type":"string"},"invoiceLineType":{"type":"string","enum":["Fixed Asset","Part","Service","Material","Tool","Fixture","Consumable","Comment","G/L Account"]},"itemId":{"type":["string","null"]},"jobOperationId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"modelUploadId":{"type":["string","null"]},"ownerId":{"type":["string","null"]},"projectId":{"type":["string","null"]},"purchaseOrderId":{"type":["string","null"]},"purchaseOrderLineId":{"type":["string","null"]},"purchaseUnitOfMeasureCode":{"type":["string","null"]},"quantity":{"type":"number"},"requiredDate":{"type":["string","null"]},"serviceId":{"type":["string","null"]},"shippingCost":{"type":["number","null"]},"sortOrder":{"type":"number"},"storageUnitId":{"type":["string","null"]},"supplierExtendedPrice":{"type":["number","null"]},"supplierShippingCost":{"type":"number"},"supplierTaxAmount":{"type":"number"},"supplierUnitPrice":{"type":"number"},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxAmount":{"type":["number","null"]},"taxPercent":{"type":["number","null"]},"totalAmount":{"type":["number","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","assetId","companyId","conversionFactor","costCenterId","createdAt","createdBy","customFields","description","exchangeRate","extendedPrice","id","internalNotes","inventoryUnitOfMeasureCode","invoiceId","invoiceLineType","itemId","jobOperationId","locationId","modelUploadId","ownerId","projectId","purchaseOrderId","purchaseOrderLineId","purchaseUnitOfMeasureCode","quantity","requiredDate","serviceId","shippingCost","sortOrder","storageUnitId","supplierExtendedPrice","supplierShippingCost","supplierTaxAmount","supplierUnitPrice","tags","taxAmount","taxPercent","totalAmount","unitPrice","updatedAt","updatedBy"]}}}}}}},"/invoicing/getSalesInvoice":{"post":{"operationId":"invoicing.getSalesInvoice","summary":"get sales invoice","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesInvoiceId":{"type":"string"}},"required":["salesInvoiceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"balance":{"type":["number","null"]},"baseStatus":{"type":["string","null"],"enum":["Pending","Draft","Voided","Overdue","Return","Paid","Partially Paid","Submitted","Credit Note Issued"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"dateDue":{"type":["string","null"]},"dateIssued":{"type":["string","null"]},"datePaid":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoiceCustomerContactId":{"type":["string","null"]},"invoiceCustomerId":{"type":["string","null"]},"invoiceCustomerLocationId":{"type":["string","null"]},"invoiceId":{"type":["string","null"]},"invoiceTotal":{"type":["number","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"lines":{"type":["array","null"],"items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"locationId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"paymentTermId":{"type":["string","null"]},"paymentTermName":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"shipmentId":{"type":["string","null"]},"status":{"type":["string","null"]},"subtotal":{"type":["number","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"totalAmount":{"type":["number","null"]},"totalDiscount":{"type":["number","null"]},"totalTax":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","balance","baseStatus","companyId","createdAt","createdBy","currencyCode","customerId","customerReference","customFields","dateDue","dateIssued","datePaid","exchangeRate","exchangeRateUpdatedAt","externalNotes","id","internalNotes","invoiceCustomerContactId","invoiceCustomerId","invoiceCustomerLocationId","invoiceId","invoiceTotal","itemType","lines","locationId","opportunityId","paymentTermId","paymentTermName","postingDate","shipmentId","status","subtotal","tags","thumbnailPath","totalAmount","totalDiscount","totalTax","updatedAt","updatedBy"]}}}}}}},"/invoicing/getSalesInvoiceCustomerDetails":{"post":{"operationId":"invoicing.getSalesInvoiceCustomerDetails","summary":"get sales invoice customer details","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesInvoiceId":{"type":"string"}},"required":["salesInvoiceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"customerAddressLine1":{"type":["string","null"]},"customerAddressLine2":{"type":["string","null"]},"customerCity":{"type":["string","null"]},"customerCountryCode":{"type":["string","null"]},"customerCountryName":{"type":["string","null"]},"customerEori":{"type":["string","null"]},"customerName":{"type":["string","null"]},"customerPostalCode":{"type":["string","null"]},"customerStateProvince":{"type":["string","null"]},"customerTaxId":{"type":["string","null"]},"customerVatNumber":{"type":["string","null"]},"id":{"type":["string","null"]},"invoiceAddressLine1":{"type":["string","null"]},"invoiceAddressLine2":{"type":["string","null"]},"invoiceCity":{"type":["string","null"]},"invoiceCountryCode":{"type":["string","null"]},"invoiceCountryName":{"type":["string","null"]},"invoiceCustomerName":{"type":["string","null"]},"invoicePostalCode":{"type":["string","null"]},"invoiceStateProvince":{"type":["string","null"]},"shipmentAddressLine1":{"type":["string","null"]},"shipmentAddressLine2":{"type":["string","null"]},"shipmentCity":{"type":["string","null"]},"shipmentCountryCode":{"type":["string","null"]},"shipmentCountryName":{"type":["string","null"]},"shipmentCustomerName":{"type":["string","null"]},"shipmentPostalCode":{"type":["string","null"]},"shipmentStateProvince":{"type":["string","null"]}},"required":["customerAddressLine1","customerAddressLine2","customerCity","customerCountryCode","customerCountryName","customerEori","customerName","customerPostalCode","customerStateProvince","customerTaxId","customerVatNumber","id","invoiceAddressLine1","invoiceAddressLine2","invoiceCity","invoiceCountryCode","invoiceCountryName","invoiceCustomerName","invoicePostalCode","invoiceStateProvince","shipmentAddressLine1","shipmentAddressLine2","shipmentCity","shipmentCountryCode","shipmentCountryName","shipmentCustomerName","shipmentPostalCode","shipmentStateProvince"]}}}}}}},"/invoicing/getSalesInvoices":{"post":{"operationId":"invoicing.getSalesInvoices","summary":"get sales invoices","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"customerId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"invoiceId":{"type":["string","null"]},"status":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"invoiceCustomerId":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"dateIssued":{"type":["string","null"]},"dateDue":{"type":["string","null"]},"datePaid":{"type":["string","null"]},"balance":{"type":["number","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"invoiceTotal":{"type":["number","null"]},"paymentTermName":{"type":["string","null"]}},"required":["id","invoiceId","status","customerId","customerReference","invoiceCustomerId","postingDate","dateIssued","dateDue","datePaid","balance","assignee","companyId","customFields","createdAt","createdBy","updatedAt","updatedBy","thumbnailPath","itemType","invoiceTotal","paymentTermName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getSalesInvoiceShipment":{"post":{"operationId":"invoicing.getSalesInvoiceShipment","summary":"get sales invoice shipment","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesInvoiceId":{"type":"string"}},"required":["salesInvoiceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"incoterm":{"type":["string","null"],"enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":["string","null"]},"locationId":{"type":["string","null"]},"shippingCost":{"type":"number"},"shippingMethodId":{"type":["string","null"]},"shippingTermId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","incoterm","incotermLocation","locationId","shippingCost","shippingMethodId","shippingTermId","updatedAt","updatedBy"]}}}}}}},"/invoicing/getSalesInvoiceLines":{"post":{"operationId":"invoicing.getSalesInvoiceLines","summary":"get sales invoice lines","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesInvoiceId":{"type":"string"}},"required":["salesInvoiceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":["string","null"]},"addOnCost":{"type":["number","null"]},"assetId":{"type":["string","null"]},"assetName":{"type":["string","null"]},"assetReadableId":{"type":["string","null"]},"companyId":{"type":["string","null"]},"convertedAddOnCost":{"type":["number","null"]},"convertedNonTaxableAddOnCost":{"type":["number","null"]},"convertedSetupPrice":{"type":["number","null"]},"convertedShippingCost":{"type":["number","null"]},"convertedUnitPrice":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoiceId":{"type":["string","null"]},"invoiceLineType":{"type":["string","null"],"enum":["Fixed Asset","Part","Service","Material","Tool","Fixture","Consumable","Comment"]},"itemDescription":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelUploadId":{"type":["string","null"]},"nonTaxableAddOnCost":{"type":["number","null"]},"opportunityId":{"type":["string","null"]},"quantity":{"type":["number","null"]},"salesOrderId":{"type":["string","null"]},"salesOrderLineId":{"type":["string","null"]},"setupPrice":{"type":["number","null"]},"shippingCost":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"storageUnitId":{"type":["string","null"]},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","addOnCost","assetId","assetName","assetReadableId","companyId","convertedAddOnCost","convertedNonTaxableAddOnCost","convertedSetupPrice","convertedShippingCost","convertedUnitPrice","createdAt","createdBy","customerPartId","customFields","description","exchangeRate","externalNotes","id","internalNotes","invoiceId","invoiceLineType","itemDescription","itemId","itemName","itemReadableId","locationId","methodType","modelUploadId","nonTaxableAddOnCost","opportunityId","quantity","salesOrderId","salesOrderLineId","setupPrice","shippingCost","sortOrder","storageUnitId","taxPercent","thumbnailPath","unitCost","unitOfMeasureCode","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getSalesInvoiceLine":{"post":{"operationId":"invoicing.getSalesInvoiceLine","summary":"get sales invoice line","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesInvoiceLineId":{"type":"string"}},"required":["salesInvoiceLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":["string","null"]},"addOnCost":{"type":"number"},"assetId":{"type":["string","null"]},"companyId":{"type":"string"},"convertedAddOnCost":{"type":["number","null"]},"convertedNonTaxableAddOnCost":{"type":["number","null"]},"convertedSetupPrice":{"type":["number","null"]},"convertedShippingCost":{"type":["number","null"]},"convertedUnitPrice":{"type":["number","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"exchangeRate":{"type":"number"},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoiceId":{"type":"string"},"invoiceLineType":{"type":"string","enum":["Fixed Asset","Part","Service","Material","Tool","Fixture","Consumable","Comment"]},"itemId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelUploadId":{"type":["string","null"]},"nonTaxableAddOnCost":{"type":"number"},"opportunityId":{"type":["string","null"]},"quantity":{"type":"number"},"salesOrderId":{"type":["string","null"]},"salesOrderLineId":{"type":["string","null"]},"setupPrice":{"type":"number"},"shippingCost":{"type":"number"},"sortOrder":{"type":"number"},"storageUnitId":{"type":["string","null"]},"taxPercent":{"type":"number"},"unitOfMeasureCode":{"type":"string"},"unitPrice":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","addOnCost","assetId","companyId","convertedAddOnCost","convertedNonTaxableAddOnCost","convertedSetupPrice","convertedShippingCost","convertedUnitPrice","createdAt","createdBy","customFields","description","exchangeRate","externalNotes","id","internalNotes","invoiceId","invoiceLineType","itemId","locationId","methodType","modelUploadId","nonTaxableAddOnCost","opportunityId","quantity","salesOrderId","salesOrderLineId","setupPrice","shippingCost","sortOrder","storageUnitId","taxPercent","unitOfMeasureCode","unitPrice","updatedAt","updatedBy"]}}}}}}},"/invoicing/updatePurchaseInvoiceExchangeRate":{"post":{"operationId":"invoicing.updatePurchaseInvoiceExchangeRate","summary":"update purchase invoice exchange rate","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"exchangeRate":{"type":"number"}},"required":["id","exchangeRate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/invoicing/updatePurchaseInvoiceStatus":{"post":{"operationId":"invoicing.updatePurchaseInvoiceStatus","summary":"update purchase invoice status","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Pending","Partially Paid","Open","Debit Note Issued","Paid","Voided","Overdue"]},"assignee":{"type":"null"},"datePaid":{"type":["string","null"]}},"required":["id","status","assignee"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/invoicing/updateSalesInvoiceExchangeRate":{"post":{"operationId":"invoicing.updateSalesInvoiceExchangeRate","summary":"update sales invoice exchange rate","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"exchangeRate":{"type":"number"}},"required":["id","exchangeRate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/invoicing/updateSalesInvoiceStatus":{"post":{"operationId":"invoicing.updateSalesInvoiceStatus","summary":"update sales invoice status","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Pending","Partially Paid","Submitted","Credit Note Issued","Paid","Voided","Overdue"]},"assignee":{"type":"null"},"datePaid":{"type":["string","null"]}},"required":["id","status","assignee"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/invoicing/insertPurchaseInvoice":{"post":{"operationId":"invoicing.insertPurchaseInvoice","summary":"insert purchase invoice","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"},"invoiceId":{"type":"string"},"supplierReference":{"type":"string"},"paymentTermId":{"type":"string"},"currencyCode":{"type":"string"},"locationId":{"type":"string"},"invoiceSupplierId":{"type":"string"},"invoiceSupplierContactId":{"type":"string"},"invoiceSupplierLocationId":{"type":"string"},"dateIssued":{"type":"string"},"dateDue":{"type":"string"},"exchangeRate":{"type":"number"},"exchangeRateUpdatedAt":{"type":"string"},"supplierShippingCost":{"type":"number"},"customFields":{}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"invoiceId":{"type":"string"}},"required":["id","invoiceId"]}}}}}}},"/invoicing/updatePurchaseInvoice":{"post":{"operationId":"invoicing.updatePurchaseInvoice","summary":"update purchase invoice","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"invoiceId":{"type":"string"},"supplierId":{"type":"string"},"supplierReference":{"type":["string","null"]},"paymentTermId":{"type":["string","null"]},"currencyCode":{"type":"string"},"locationId":{"type":"string"},"invoiceSupplierId":{"type":["string","null"]},"invoiceSupplierContactId":{"type":["string","null"]},"invoiceSupplierLocationId":{"type":["string","null"]},"dateIssued":{"type":["string","null"]},"dateDue":{"type":["string","null"]},"exchangeRate":{"type":"number"},"exchangeRateUpdatedAt":{"type":"string"},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/invoicing/upsertPurchaseInvoiceDelivery":{"post":{"operationId":"invoicing.upsertPurchaseInvoiceDelivery","summary":"upsert purchase invoice delivery","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"locationId":{"type":"string"},"shippingMethodId":{"type":"string"},"shippingTermId":{"type":"string"},"supplierShippingCost":{"default":0,"type":"number"},"incoterm":{"type":"string","enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":"string"},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/invoicing/upsertPurchaseInvoiceLine":{"post":{"operationId":"invoicing.upsertPurchaseInvoiceLine","summary":"upsert purchase invoice line","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"invoiceId":{"type":"string","minLength":1},"invoiceLineType":{"type":"string","enum":["Part","Material","Tool","Consumable","Service","Fixture","G/L Account","Fixed Asset","Comment"]},"purchaseOrderId":{"type":"string"},"purchaseOrderLineId":{"type":"string"},"itemId":{"type":"string"},"accountId":{"type":"string"},"costCenterId":{"type":"string"},"assetId":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"number"},"purchaseUnitOfMeasureCode":{"type":"string"},"inventoryUnitOfMeasureCode":{"type":"string"},"conversionFactor":{"type":"number"},"supplierUnitPrice":{"type":"number"},"supplierShippingCost":{"default":0,"type":"number"},"supplierTaxAmount":{"default":0,"type":"number"},"taxPercent":{"default":0,"type":"number","minimum":0,"maximum":1},"requiredDate":{"type":"string"},"locationId":{"type":"string"},"storageUnitId":{"type":"string"},"exchangeRate":{"type":"number"},"customFields":{},"id":{"type":"string"}},"required":["invoiceId","invoiceLineType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/invoicing/updatePurchaseInvoiceLineOrder":{"post":{"operationId":"invoicing.updatePurchaseInvoiceLineOrder","summary":"update purchase invoice line order","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"invoiceId":{"type":"string"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["invoiceId","updates"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/invoicing/insertSalesInvoice":{"post":{"operationId":"invoicing.insertSalesInvoice","summary":"insert sales invoice","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"invoiceId":{"type":"string"},"customerReference":{"type":"string"},"paymentTermId":{"type":"string"},"currencyCode":{"type":"string"},"locationId":{"type":"string"},"invoiceCustomerId":{"type":"string"},"invoiceCustomerContactId":{"type":"string"},"invoiceCustomerLocationId":{"type":"string"},"dateIssued":{"type":"string"},"dateDue":{"type":"string"},"exchangeRate":{"type":"number"},"exchangeRateUpdatedAt":{"type":"string"},"customFields":{}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"invoiceId":{"type":"string"}},"required":["id","invoiceId"]}}}}}}},"/invoicing/updateSalesInvoice":{"post":{"operationId":"invoicing.updateSalesInvoice","summary":"update sales invoice","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"invoiceId":{"type":"string"},"customerId":{"type":"string"},"customerReference":{"type":["string","null"]},"paymentTermId":{"type":["string","null"]},"currencyCode":{"type":"string"},"locationId":{"type":"string"},"invoiceCustomerId":{"type":["string","null"]},"invoiceCustomerContactId":{"type":["string","null"]},"invoiceCustomerLocationId":{"type":["string","null"]},"dateIssued":{"type":["string","null"]},"dateDue":{"type":["string","null"]},"exchangeRate":{"type":"number"},"exchangeRateUpdatedAt":{"type":"string"},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/invoicing/upsertSalesInvoiceShipment":{"post":{"operationId":"invoicing.upsertSalesInvoiceShipment","summary":"upsert sales invoice shipment","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"locationId":{"type":"string"},"shippingMethodId":{"type":"string"},"shippingTermId":{"type":"string"},"shippingCost":{"default":0,"type":"number"},"incoterm":{"type":"string","enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":"string"},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/invoicing/upsertSalesInvoiceLine":{"post":{"operationId":"invoicing.upsertSalesInvoiceLine","summary":"upsert sales invoice line","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"invoiceId":{"type":"string","minLength":1},"invoiceLineType":{"type":"string","enum":["Part","Material","Tool","Consumable","Service","Fixture","Fixed Asset"]},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"purchaseOrderId":{"type":"string"},"purchaseOrderLineId":{"type":"string"},"itemId":{"type":"string"},"accountId":{"type":"string"},"assetId":{"type":"string"},"addOnCost":{"default":0,"type":"number"},"nonTaxableAddOnCost":{"default":0,"type":"number"},"description":{"type":"string"},"quantity":{"type":"number"},"unitOfMeasureCode":{"default":"EA","type":"string"},"unitPrice":{"type":"number"},"shippingCost":{"default":0,"type":"number"},"taxPercent":{"default":0,"type":"number"},"locationId":{"type":"string"},"storageUnitId":{"type":"string"},"exchangeRate":{"type":"number"},"customFields":{},"id":{"type":"string"}},"required":["invoiceId","invoiceLineType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/invoicing/updateSalesInvoiceLineOrder":{"post":{"operationId":"invoicing.updateSalesInvoiceLineOrder","summary":"update sales invoice line order","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"invoiceId":{"type":"string"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["invoiceId","updates"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/invoicing/getPayment":{"post":{"operationId":"invoicing.getPayment","summary":"get payment","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"bankAccount":{"type":"string"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":["string","null"]},"exchangeRate":{"type":"number"},"id":{"type":"string"},"journalId":{"type":["string","null"]},"memo":{"type":["string","null"]},"paymentDate":{"type":"string"},"paymentId":{"type":"string"},"paymentType":{"type":"string","enum":["Receipt","Disbursement"]},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"reference":{"type":["string","null"]},"status":{"type":"string","enum":["Draft","Posted","Voided"]},"supplierId":{"type":["string","null"]},"totalAmount":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"voidedBy":{"type":["string","null"]}},"required":["bankAccount","companyId","createdAt","createdBy","currencyCode","customerId","customFields","employeeId","exchangeRate","id","journalId","memo","paymentDate","paymentId","paymentType","postedAt","postedBy","postingDate","reference","status","supplierId","totalAmount","updatedAt","updatedBy","voidedAt","voidedBy"]}}}}}}},"/invoicing/getPayments":{"post":{"operationId":"invoicing.getPayments","summary":"get payments","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"paymentType":{"type":["string","null"],"enum":["Receipt","Disbursement"]},"status":{"type":["string","null"],"enum":["Draft","Posted","Voided"]},"customerId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"counterpartyIds":{"type":["array","null"],"items":{"type":"string"}}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"bankAccount":{"type":"string"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":["string","null"]},"exchangeRate":{"type":"number"},"id":{"type":"string"},"journalId":{"type":["string","null"]},"memo":{"type":["string","null"]},"paymentDate":{"type":"string"},"paymentId":{"type":"string"},"paymentType":{"type":"string","enum":["Receipt","Disbursement"]},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"reference":{"type":["string","null"]},"status":{"type":"string","enum":["Draft","Posted","Voided"]},"supplierId":{"type":["string","null"]},"totalAmount":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"voidedBy":{"type":["string","null"]}},"required":["bankAccount","companyId","createdAt","createdBy","currencyCode","customerId","customFields","employeeId","exchangeRate","id","journalId","memo","paymentDate","paymentId","paymentType","postedAt","postedBy","postingDate","reference","status","supplierId","totalAmount","updatedAt","updatedBy","voidedAt","voidedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getCharge":{"post":{"operationId":"invoicing.getCharge","summary":"get charge","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"number"},"cardAccountId":{"type":"string"},"cardHolderName":{"type":["string","null"]},"cardLast4":{"type":["string","null"]},"chargeId":{"type":"string"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":"number"},"id":{"type":"string"},"integration":{"type":"string"},"journalId":{"type":["string","null"]},"memo":{"type":["string","null"]},"merchantName":{"type":["string","null"]},"offsetAccountId":{"type":["string","null"]},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"status":{"type":"string","enum":["Draft","Posted","Voided"]},"supplierId":{"type":["string","null"]},"transactionDate":{"type":"string"},"type":{"type":"string","enum":["Charge","Credit","Payment","Cashback","Repayment"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"voidedBy":{"type":["string","null"]},"chargeLine":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string"},"amount":{"type":"number"},"chargeId":{"type":"string"},"companyId":{"type":"string"},"costCenterId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"id":{"type":"string"},"projectId":{"type":["string","null"]},"sequence":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","amount","chargeId","companyId","costCenterId","createdAt","createdBy","customFields","description","id","projectId","sequence","updatedAt","updatedBy"]}}},"required":["amount","cardAccountId","cardHolderName","cardLast4","chargeId","companyId","createdAt","createdBy","currencyCode","customFields","exchangeRate","id","integration","journalId","memo","merchantName","offsetAccountId","postedAt","postedBy","postingDate","status","supplierId","transactionDate","type","updatedAt","updatedBy","voidedAt","voidedBy","chargeLine"]}}}}}}},"/invoicing/getCharges":{"post":{"operationId":"invoicing.getCharges","summary":"get charges","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"type":{"type":["string","null"],"enum":["Charge","Credit","Payment","Cashback","Repayment"]},"status":{"type":["string","null"],"enum":["Draft","Posted","Voided"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number"},"cardAccountId":{"type":"string"},"cardHolderName":{"type":["string","null"]},"cardLast4":{"type":["string","null"]},"chargeId":{"type":"string"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":"number"},"id":{"type":"string"},"integration":{"type":"string"},"journalId":{"type":["string","null"]},"memo":{"type":["string","null"]},"merchantName":{"type":["string","null"]},"offsetAccountId":{"type":["string","null"]},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"status":{"type":"string","enum":["Draft","Posted","Voided"]},"supplierId":{"type":["string","null"]},"transactionDate":{"type":"string"},"type":{"type":"string","enum":["Charge","Credit","Payment","Cashback","Repayment"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"voidedBy":{"type":["string","null"]}},"required":["amount","cardAccountId","cardHolderName","cardLast4","chargeId","companyId","createdAt","createdBy","currencyCode","customFields","exchangeRate","id","integration","journalId","memo","merchantName","offsetAccountId","postedAt","postedBy","postingDate","status","supplierId","transactionDate","type","updatedAt","updatedBy","voidedAt","voidedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getReimbursement":{"post":{"operationId":"invoicing.getReimbursement","summary":"get reimbursement","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"number"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":"string"},"exchangeRate":{"type":"number"},"id":{"type":"string"},"integration":{"type":"string"},"journalId":{"type":["string","null"]},"notes":{"type":["string","null"]},"payableAccountId":{"type":["string","null"]},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"reference":{"type":["string","null"]},"reimbursementDate":{"type":"string"},"reimbursementId":{"type":"string"},"status":{"type":"string","enum":["Draft","Posted","Voided"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"voidedBy":{"type":["string","null"]},"reimbursementLine":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string"},"amount":{"type":"number"},"companyId":{"type":"string"},"costCenterId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"id":{"type":"string"},"projectId":{"type":["string","null"]},"reimbursementId":{"type":"string"},"sequence":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"reimbursementLineDimension":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"dimensionId":{"type":"string"},"id":{"type":"string"},"reimbursementLineId":{"type":"string"},"valueId":{"type":"string"}},"required":["companyId","createdAt","dimensionId","id","reimbursementLineId","valueId"]}}},"required":["accountId","amount","companyId","costCenterId","createdAt","createdBy","customFields","description","id","projectId","reimbursementId","sequence","updatedAt","updatedBy","reimbursementLineDimension"]}}},"required":["amount","companyId","createdAt","createdBy","currencyCode","customFields","employeeId","exchangeRate","id","integration","journalId","notes","payableAccountId","postedAt","postedBy","postingDate","reference","reimbursementDate","reimbursementId","status","updatedAt","updatedBy","voidedAt","voidedBy","reimbursementLine"]}}}}}}},"/invoicing/getReimbursements":{"post":{"operationId":"invoicing.getReimbursements","summary":"get reimbursements","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Draft","Posted","Voided"]},"employeeId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":"string"},"exchangeRate":{"type":"number"},"id":{"type":"string"},"integration":{"type":"string"},"journalId":{"type":["string","null"]},"notes":{"type":["string","null"]},"payableAccountId":{"type":["string","null"]},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"reference":{"type":["string","null"]},"reimbursementDate":{"type":"string"},"reimbursementId":{"type":"string"},"status":{"type":"string","enum":["Draft","Posted","Voided"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"voidedBy":{"type":["string","null"]}},"required":["amount","companyId","createdAt","createdBy","currencyCode","customFields","employeeId","exchangeRate","id","integration","journalId","notes","payableAccountId","postedAt","postedBy","postingDate","reference","reimbursementDate","reimbursementId","status","updatedAt","updatedBy","voidedAt","voidedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/updateReimbursement":{"post":{"operationId":"invoicing.updateReimbursement","summary":"header edit","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"reimbursementDate":{"type":"string","minLength":1},"currencyCode":{"type":"string","minLength":1},"exchangeRate":{"default":1,"type":"number","exclusiveMinimum":0},"amount":{"type":"number","exclusiveMinimum":0},"reference":{"type":"string"},"notes":{"type":"string"},"customFields":{}},"required":["id","reimbursementDate","currencyCode","amount"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"reimbursementId":{"type":"string"}},"required":["id","reimbursementId"]}}}}}}},"/invoicing/upsertReimbursementLines":{"post":{"operationId":"invoicing.upsertReimbursementLines","summary":"replace every coding line of a Draft reimbursement, transactionally","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reimbursementId":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string","minLength":1},"costCenterId":{"type":["string","null"]},"projectId":{"type":["string","null"]},"description":{"type":["string","null"]},"amount":{"type":"number","exclusiveMinimum":0},"dimensions":{"default":[],"type":"array","items":{"type":"object","properties":{"dimensionId":{"type":"string","minLength":1},"valueId":{"type":"string","minLength":1}},"required":["dimensionId","valueId"]}}},"required":["accountId","amount"]}}},"required":["reimbursementId","lines"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/invoicing/getInvoiceSettlements":{"post":{"operationId":"invoicing.getInvoiceSettlements","summary":"get invoice settlements","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"paymentId":{"type":"string"}},"required":["paymentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getInvoiceSettlementsForInvoice":{"post":{"operationId":"invoicing.getInvoiceSettlementsForInvoice","summary":"get invoice settlements for invoice","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"side":{"type":"string","enum":["sales","purchase"]},"invoiceId":{"type":"string"}},"required":["side","invoiceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sourceAmount":{"type":["number","null"]},"appliedAmount":{"type":"number"},"discountAmount":{"type":"number"},"writeOffAmount":{"type":"number"},"fxGainLossAmount":{"type":["number","null"]},"targetExchangeRate":{"type":"number"},"sourceExchangeRate":{"type":["number","null"]},"appliedDate":{"type":"string"},"source":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["payment"]},"id":{"type":"string"},"readableId":{"type":"string"},"status":{"type":["string","null"]},"date":{"type":["string","null"]},"currencyCode":{"type":"string"}},"required":["type","id","readableId","status","date","currencyCode"]},{"type":"object","properties":{"type":{"type":"string","enum":["memo"]},"id":{"type":"string"},"readableId":{"type":"string"},"status":{"type":["string","null"]},"date":{"type":["string","null"]},"currencyCode":{"type":"string"},"direction":{"type":"string"}},"required":["type","id","readableId","status","date","currencyCode","direction"]}]}},"required":["id","sourceAmount","appliedAmount","discountAmount","writeOffAmount","fxGainLossAmount","targetExchangeRate","sourceExchangeRate","appliedDate","source"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getMemoApplications":{"post":{"operationId":"invoicing.getMemoApplications","summary":"get memo applications","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"memoId":{"type":"string"}},"required":["memoId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"appliedAmount":{"type":"number"},"appliedDate":{"type":"string"},"target":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["salesInvoice"]},"id":{"type":"string"},"readableId":{"type":"string"}},"required":["type","id","readableId"]},{"type":"object","properties":{"type":{"type":"string","enum":["purchaseInvoice"]},"id":{"type":"string"},"readableId":{"type":"string"}},"required":["type","id","readableId"]},{"type":"object","properties":{"type":{"type":"string","enum":["memo"]},"id":{"type":"string"},"readableId":{"type":"string"}},"required":["type","id","readableId"]},{"type":"object","properties":{"type":{"type":"string","enum":["reimbursement"]},"id":{"type":"string"},"readableId":{"type":"string"}},"required":["type","id","readableId"]}]}},"required":["id","appliedAmount","appliedDate","target"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getOpenSalesInvoicesForCustomer":{"post":{"operationId":"invoicing.getOpenSalesInvoicesForCustomer","summary":"get open sales invoices for customer","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"currencyCode":{"type":"string"}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"currencyCode":{"type":"string"},"balance":{"type":"number"},"remainingDocument":{"type":"number"},"status":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"paymentTermId":{"type":["string","null"]},"totalAmount":{"type":["number","null"]},"dateDue":{"type":["string","null"]},"dateIssued":{"type":["string","null"]},"invoiceId":{"type":["string","null"]}},"required":["id","currencyCode","balance","remainingDocument","status","exchangeRate","paymentTermId","totalAmount","dateDue","dateIssued","invoiceId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getOpenPurchaseInvoicesForSupplier":{"post":{"operationId":"invoicing.getOpenPurchaseInvoicesForSupplier","summary":"get open purchase invoices for supplier","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"},"currencyCode":{"type":"string"}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"currencyCode":{"type":"string"},"balance":{"type":"number"},"remainingDocument":{"type":"number"},"status":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"paymentTermId":{"type":["string","null"]},"totalAmount":{"type":["number","null"]},"dateDue":{"type":["string","null"]},"dateIssued":{"type":["string","null"]},"invoiceId":{"type":["string","null"]}},"required":["id","currencyCode","balance","remainingDocument","status","exchangeRate","paymentTermId","totalAmount","dateDue","dateIssued","invoiceId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getOpenReimbursementsForEmployee":{"post":{"operationId":"invoicing.getOpenReimbursementsForEmployee","summary":"posted reimbursements an employee is still owed money on — the apply table's target list when a payment's payee is an employee, and the source of the balance t…","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"},"currencyCode":{"type":"string"}},"required":["employeeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reimbursementId":{"type":"string"},"reimbursementDate":{"type":"string"},"currencyCode":{"type":"string"},"exchangeRate":{"type":"number"},"totalAmount":{"type":"number"},"balance":{"type":"number"},"remainingDocument":{"type":"number"}},"required":["id","reimbursementId","reimbursementDate","currencyCode","exchangeRate","totalAmount","balance","remainingDocument"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getPaymentCurrencyConfiguration":{"post":{"operationId":"invoicing.getPaymentCurrencyConfiguration","summary":"get payment currency configuration","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currencyCode":{"type":"string"}},"required":["currencyCode"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"baseCurrencyCode":{"type":"string"},"currencyDecimals":{"type":"number"}},"required":["baseCurrencyCode","currencyDecimals"]}}}}}}},"/invoicing/getAvailableOnAccountCreditSources":{"post":{"operationId":"invoicing.getAvailableOnAccountCreditSources","summary":"get available on account credit sources","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"party":{"anyOf":[{"type":"object","properties":{"paymentType":{"type":"string","enum":["Receipt"]},"customerId":{"type":"string"}},"required":["paymentType","customerId"]},{"type":"object","properties":{"paymentType":{"type":"string","enum":["Disbursement"]},"supplierId":{"type":"string"}},"required":["paymentType","supplierId"]}]},"currencyCode":{"type":"string"}},"required":["party","currencyCode"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"sources":{"type":"array","items":{"type":"object","properties":{"paymentId":{"type":"string"},"postingDate":{"type":"string"},"exchangeRate":{"type":"number"},"remainingDocument":{"type":"number"},"remainingBase":{"type":"number"}},"required":["paymentId","postingDate","exchangeRate","remainingDocument","remainingBase"]}},"availableDocumentAmount":{"type":"number"},"availableBaseAmount":{"type":"number"}},"required":["sources","availableDocumentAmount","availableBaseAmount"]}}}}}}},"/invoicing/getAvailableOnAccountCredit":{"post":{"operationId":"invoicing.getAvailableOnAccountCredit","summary":"base-total contract for other readers; the composer uses typed document sources","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"party":{"anyOf":[{"type":"object","properties":{"paymentType":{"type":"string","enum":["Receipt"]},"customerId":{"type":"string"}},"required":["paymentType","customerId"]},{"type":"object","properties":{"paymentType":{"type":"string","enum":["Disbursement"]},"supplierId":{"type":"string"}},"required":["paymentType","supplierId"]}]}},"required":["party"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/invoicing/upsertPayment":{"post":{"operationId":"invoicing.upsertPayment","summary":"upsert payment","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"paymentType":{"type":"string","enum":["Receipt","Disbursement"]},"customerId":{"type":"string"},"supplierId":{"type":"string"},"employeeId":{"type":"string"},"paymentDate":{"type":"string","minLength":1},"currencyCode":{"type":"string","minLength":1},"exchangeRate":{"default":1,"type":"number","exclusiveMinimum":0},"totalAmount":{"type":"number","minimum":0},"bankAccount":{"type":"string","minLength":1},"reference":{"type":"string"},"memo":{"type":"string"},"paymentId":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["paymentType","paymentDate","currencyCode","totalAmount","bankAccount"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"paymentId":{"type":"string"}},"required":["id","paymentId"]}}}}}}},"/invoicing/deletePayment":{"post":{"operationId":"invoicing.deletePayment","summary":"delete payment","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/invoicing/replaceInvoiceSettlements":{"post":{"operationId":"invoicing.replaceInvoiceSettlements","summary":"replace invoice settlements","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"paymentId":{"type":"string"},"applications":{"type":"array","items":{"type":"object","properties":{"memoId":{"type":"string"},"targetSalesInvoiceId":{"type":"string"},"targetPurchaseInvoiceId":{"type":"string"},"targetMemoId":{"type":"string"},"targetReimbursementId":{"type":"string"},"sourceAmount":{"type":"number","minimum":0},"appliedAmount":{"default":0,"type":"number","minimum":0},"discountAmount":{"default":0,"type":"number","minimum":0},"writeOffAmount":{"default":0,"type":"number","minimum":0},"targetExchangeRate":{"type":"number","exclusiveMinimum":0},"sourceExchangeRate":{"type":"number","exclusiveMinimum":0},"appliedDate":{"type":"string","minLength":1}},"required":["targetExchangeRate","sourceExchangeRate","appliedDate"]}}},"required":["paymentId","applications"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/invoicing/getMemo":{"post":{"operationId":"invoicing.getMemo","summary":"get memo","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"number"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"direction":{"type":"string","enum":["Credit","Debit"]},"exchangeRate":{"type":"number"},"id":{"type":"string"},"journalId":{"type":["string","null"]},"memoDate":{"type":"string"},"memoId":{"type":"string"},"notes":{"type":["string","null"]},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"purchaseReturnOrderId":{"type":["string","null"]},"reasonAccount":{"type":["string","null"]},"reference":{"type":["string","null"]},"salesReturnOrderId":{"type":["string","null"]},"status":{"type":"string","enum":["Draft","Posted","Voided"]},"supplierId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"voidedBy":{"type":["string","null"]}},"required":["amount","companyId","createdAt","createdBy","currencyCode","customerId","customFields","direction","exchangeRate","id","journalId","memoDate","memoId","notes","postedAt","postedBy","postingDate","purchaseReturnOrderId","reasonAccount","reference","salesReturnOrderId","status","supplierId","updatedAt","updatedBy","voidedAt","voidedBy"]}}}}}}},"/invoicing/getMemos":{"post":{"operationId":"invoicing.getMemos","summary":"get memos","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"direction":{"type":["string","null"],"enum":["Credit","Debit"]},"status":{"type":["string","null"],"enum":["Draft","Posted","Voided"]},"counterpartyIds":{"type":["array","null"],"items":{"type":"string"}},"party":{"type":["string","null"],"enum":["customer","supplier"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"direction":{"type":"string","enum":["Credit","Debit"]},"exchangeRate":{"type":"number"},"id":{"type":"string"},"journalId":{"type":["string","null"]},"memoDate":{"type":"string"},"memoId":{"type":"string"},"notes":{"type":["string","null"]},"postedAt":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"purchaseReturnOrderId":{"type":["string","null"]},"reasonAccount":{"type":["string","null"]},"reference":{"type":["string","null"]},"salesReturnOrderId":{"type":["string","null"]},"status":{"type":"string","enum":["Draft","Posted","Voided"]},"supplierId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"voidedAt":{"type":["string","null"]},"voidedBy":{"type":["string","null"]}},"required":["amount","companyId","createdAt","createdBy","currencyCode","customerId","customFields","direction","exchangeRate","id","journalId","memoDate","memoId","notes","postedAt","postedBy","postingDate","purchaseReturnOrderId","reasonAccount","reference","salesReturnOrderId","status","supplierId","updatedAt","updatedBy","voidedAt","voidedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/upsertMemo":{"post":{"operationId":"invoicing.upsertMemo","summary":"upsert memo","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"direction":{"type":"string","enum":["Credit","Debit"]},"customerId":{"type":"string"},"supplierId":{"type":"string"},"memoDate":{"type":"string","minLength":1},"currencyCode":{"type":"string","minLength":1},"exchangeRate":{"default":1,"type":"number","exclusiveMinimum":0},"amount":{"type":"number","exclusiveMinimum":0},"reference":{"type":"string"},"notes":{"type":"string"},"memoId":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["direction","memoDate","currencyCode","amount"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"memoId":{"type":"string"}},"required":["id","memoId"]}}}}}}},"/invoicing/deleteMemo":{"post":{"operationId":"invoicing.deleteMemo","summary":"delete memo","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/invoicing/getAvailableCreditsForParty":{"post":{"operationId":"invoicing.getAvailableCreditsForParty","summary":"get available credits for party","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"party":{"anyOf":[{"type":"object","properties":{"side":{"type":"string","enum":["sales"]},"customerId":{"type":"string"}},"required":["side","customerId"]},{"type":"object","properties":{"side":{"type":"string","enum":["purchase"]},"supplierId":{"type":"string"}},"required":["side","supplierId"]}]},"excludePaymentId":{"type":"string"},"currencyCode":{"type":"string"}},"required":["party"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"memoId":{"type":"string"},"direction":{"type":"string"},"currencyCode":{"type":"string"},"exchangeRate":{"type":"number"},"amount":{"type":"number"},"remaining":{"type":"number"},"remainingDocument":{"type":"number"}},"required":["id","memoId","direction","currencyCode","exchangeRate","amount","remaining","remainingDocument"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getCompanyHasOpenCredits":{"post":{"operationId":"invoicing.getCompanyHasOpenCredits","summary":"get company has open credits","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"side":{"type":"string","enum":["sales","purchase"]}},"required":["side"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/invoicing/getStagedCreditsForPayment":{"post":{"operationId":"invoicing.getStagedCreditsForPayment","summary":"get staged credits for payment","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"paymentId":{"type":"string"},"side":{"type":"string","enum":["sales","purchase"]}},"required":["paymentId","side"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"memoId":{"type":"string"},"invoiceId":{"type":"string"},"amount":{"type":"number"},"sourceAmount":{"type":["number","null"]}},"required":["memoId","invoiceId","amount","sourceAmount"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/applyCreditsToInvoices":{"post":{"operationId":"invoicing.applyCreditsToInvoices","summary":"apply credits to invoices","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"paymentId":{"type":"string"},"appliedDate":{"type":"string"},"side":{"type":"string","enum":["sales","purchase"]},"applications":{"type":"array","items":{"type":"object","properties":{"memoId":{"type":"string"},"invoiceId":{"type":"string"},"amount":{"type":"number"},"sourceAmount":{"type":"number"}},"required":["memoId","invoiceId","amount"]}}},"required":["paymentId","appliedDate","side","applications"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/invoicing/getArTieOut":{"post":{"operationId":"invoicing.getArTieOut","summary":"get ar tie out","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asOfDate":{"type":"string"}},"required":["asOfDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"glBalance":{"type":"number"},"subledgerBalance":{"type":"number"},"variance":{"type":"number"}},"required":["glBalance","subledgerBalance","variance"]}}}}}}},"/invoicing/getApTieOut":{"post":{"operationId":"invoicing.getApTieOut","summary":"get ap tie out","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asOfDate":{"type":"string"}},"required":["asOfDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"glBalance":{"type":"number"},"subledgerBalance":{"type":"number"},"variance":{"type":"number"}},"required":["glBalance","subledgerBalance","variance"]}}}}}}},"/invoicing/getArOpenByCustomer":{"post":{"operationId":"invoicing.getArOpenByCustomer","summary":"get ar open by customer","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asOfDate":{"type":"string"}},"required":["asOfDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"currencyCode":{"type":"string"},"customerId":{"type":"string"},"dateDue":{"type":"string"},"documentId":{"type":"string"},"documentNumber":{"type":"string"},"documentType":{"type":"string"},"exchangeRate":{"type":"number"},"openInBase":{"type":"number"},"openInCurrency":{"type":"number"},"settled":{"type":"number"},"totalAmount":{"type":"number"}},"required":["currencyCode","customerId","dateDue","documentId","documentNumber","documentType","exchangeRate","openInBase","openInCurrency","settled","totalAmount"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getApOpenBySupplier":{"post":{"operationId":"invoicing.getApOpenBySupplier","summary":"get ap open by supplier","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asOfDate":{"type":"string"}},"required":["asOfDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"currencyCode":{"type":"string"},"dateDue":{"type":"string"},"documentId":{"type":"string"},"documentNumber":{"type":"string"},"documentType":{"type":"string"},"exchangeRate":{"type":"number"},"openInBase":{"type":"number"},"openInCurrency":{"type":"number"},"settled":{"type":"number"},"supplierId":{"type":"string"},"totalAmount":{"type":"number"}},"required":["currencyCode","dateDue","documentId","documentNumber","documentType","exchangeRate","openInBase","openInCurrency","settled","supplierId","totalAmount"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getArAging":{"post":{"operationId":"invoicing.getArAging","summary":"get ar aging","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asOfDate":{"type":"string"},"options":{"type":"object","properties":{"agingMethod":{"type":"string","enum":["dueDate","documentDate"]},"bucketDays":{}}}},"required":["asOfDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"bucket1":{"type":"number"},"bucket2":{"type":"number"},"bucket3":{"type":"number"},"bucket4":{"type":"number"},"current":{"type":"number"},"customerId":{"type":"string"},"paymentTerm":{"type":"string"},"total":{"type":"number"},"unapplied":{"type":"number"}},"required":["bucket1","bucket2","bucket3","bucket4","current","customerId","paymentTerm","total","unapplied"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/invoicing/getApAging":{"post":{"operationId":"invoicing.getApAging","summary":"get ap aging","tags":["invoicing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asOfDate":{"type":"string"},"options":{"type":"object","properties":{"agingMethod":{"type":"string","enum":["dueDate","documentDate"]},"bucketDays":{}}}},"required":["asOfDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"bucket1":{"type":"number"},"bucket2":{"type":"number"},"bucket3":{"type":"number"},"bucket4":{"type":"number"},"current":{"type":"number"},"paymentTerm":{"type":"string"},"supplierId":{"type":"string"},"total":{"type":"number"},"unapplied":{"type":"number"}},"required":["bucket1","bucket2","bucket3","bucket4","current","paymentTerm","supplierId","total","unapplied"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/activateMethodVersion":{"post":{"operationId":"items.activateMethodVersion","summary":"activate method version","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"convertedId":{"type":"string"}},"required":["convertedId"]}}}}}}},"/items/copyItem":{"post":{"operationId":"items.copyItem","summary":"copy item","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"targetId":{"type":"string","minLength":1},"sourceId":{"type":"string","minLength":1},"billOfMaterial":{"type":"boolean"},"billOfProcess":{"type":"boolean"},"parameters":{"type":"boolean"},"tools":{"type":"boolean"},"steps":{"type":"boolean"},"workInstructions":{"type":"boolean"}},"required":["targetId","sourceId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/items/copyMakeMethod":{"post":{"operationId":"items.copyMakeMethod","summary":"copy make method","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"targetId":{"type":"string","minLength":1},"sourceId":{"type":"string","minLength":1},"billOfMaterial":{"type":"boolean"},"billOfProcess":{"type":"boolean"},"parameters":{"type":"boolean"},"tools":{"type":"boolean"},"steps":{"type":"boolean"},"workInstructions":{"type":"boolean"}},"required":["targetId","sourceId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/items/createRevision":{"post":{"operationId":"items.createRevision","summary":"create revision","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item":{},"revision":{"type":"string"},"active":{"type":"boolean"}},"required":["item","revision"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/getNextRevision":{"post":{"operationId":"items.getNextRevision","summary":"get next revision","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maxRevision":{"type":"string"}},"required":["maxRevision"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/items/deleteConfigurationParameter":{"post":{"operationId":"items.deleteConfigurationParameter","summary":"delete configuration parameter","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteConfigurationRule":{"post":{"operationId":"items.deleteConfigurationRule","summary":"delete configuration rule","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"field":{"type":"string"},"itemId":{"type":"string"}},"required":["field","itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteItemCustomerPart":{"post":{"operationId":"items.deleteItemCustomerPart","summary":"delete item customer part","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteSupplierPart":{"post":{"operationId":"items.deleteSupplierPart","summary":"delete supplier part","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteConfigurationParameterGroup":{"post":{"operationId":"items.deleteConfigurationParameterGroup","summary":"delete configuration parameter group","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteItem":{"post":{"operationId":"items.deleteItem","summary":"delete item","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteItemPostingGroup":{"post":{"operationId":"items.deleteItemPostingGroup","summary":"delete item posting group","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteMaterialDimension":{"post":{"operationId":"items.deleteMaterialDimension","summary":"delete material dimension","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteMaterialFinish":{"post":{"operationId":"items.deleteMaterialFinish","summary":"delete material finish","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteMaterialForm":{"post":{"operationId":"items.deleteMaterialForm","summary":"delete material form","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteMaterialGrade":{"post":{"operationId":"items.deleteMaterialGrade","summary":"delete material grade","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteMaterialSubstance":{"post":{"operationId":"items.deleteMaterialSubstance","summary":"delete material substance","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteMethodMaterial":{"post":{"operationId":"items.deleteMethodMaterial","summary":"delete method material","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/assertMethodOperationIsDraft":{"post":{"operationId":"items.assertMethodOperationIsDraft","summary":"assert method operation is draft","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string"}},"required":["operationId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/items/deleteMethodOperationStep":{"post":{"operationId":"items.deleteMethodOperationStep","summary":"delete method operation step","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteMethodOperationStepSlide":{"post":{"operationId":"items.deleteMethodOperationStepSlide","summary":"delete method operation step slide","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteMethodOperationParameter":{"post":{"operationId":"items.deleteMethodOperationParameter","summary":"delete method operation parameter","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteMethodOperationTool":{"post":{"operationId":"items.deleteMethodOperationTool","summary":"delete method operation tool","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/deleteUnitOfMeasure":{"post":{"operationId":"items.deleteUnitOfMeasure","summary":"delete unit of measure","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/getConfigurationParameters":{"post":{"operationId":"items.getConfigurationParameters","summary":"get configuration parameters","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"id":{"type":"string"},"isUngrouped":{"type":"boolean"},"itemId":{"type":"string"},"name":{"type":"string"},"sortOrder":{"type":"number"}},"required":["companyId","id","isUngrouped","itemId","name","sortOrder"]}},"parameters":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"configurationParameterGroupId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"dataType":{"type":"string","enum":["boolean","text","numeric","list","date","material"]},"id":{"type":"string"},"itemId":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"},"listOptions":{"type":["array","null"],"items":{"type":"string"}},"materialFormFilterId":{"type":["string","null"]},"sortOrder":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","configurationParameterGroupId","createdAt","createdBy","dataType","id","itemId","key","label","listOptions","materialFormFilterId","sortOrder","updatedAt","updatedBy"]}}},"required":["groups","parameters"]}}}}}}},"/items/getConfigurationRules":{"post":{"operationId":"items.getConfigurationRules","summary":"get configuration rules","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"companyId":{"type":"string"},"field":{"type":"string"},"itemId":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":["string","null"]}},"required":["code","companyId","field","itemId","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getConsumable":{"post":{"operationId":"items.getConsumable","summary":"get consumable","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"assignee":{"type":"string"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultMethodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":"string"},"id":{"type":"string"},"itemPostingGroupId":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"modelName":{"type":"string"},"modelPath":{"type":"string"},"modelSize":{"type":"number"},"modelUploadId":{"type":"string"},"mpn":{"type":"string"},"name":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"readableId":{"type":"string"},"readableIdWithRevision":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":"string"},"revisions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"supplierIds":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"unitOfMeasure":{"type":"string"},"unitOfMeasureCode":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"}},"required":["active","assignee","companyId","createdAt","createdBy","customFields","defaultMethodType","description","id","itemPostingGroupId","itemTrackingType","modelName","modelPath","modelSize","modelUploadId","mpn","name","notes","readableId","readableIdWithRevision","replenishmentSystem","revision","revisions","supplierIds","tags","thumbnailPath","unitOfMeasure","unitOfMeasureCode","updatedAt","updatedBy"]}}}}}}},"/items/getConsumables":{"post":{"operationId":"items.getConsumables","summary":"get consumables","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"supplierId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"assignee":{"type":["string","null"]},"defaultMethodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":["string","null"]},"itemTrackingType":{"type":["string","null"],"enum":["Inventory","Non-Inventory","Serial","Batch"]},"name":{"type":["string","null"]},"replenishmentSystem":{"type":["string","null"],"enum":["Buy","Make","Buy and Make"]},"readableIdWithRevision":{"type":["string","null"]},"id":{"type":["string","null"]},"companyId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"supplierIds":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"tags":{"type":["array","null"],"items":{"type":"string"}},"itemPostingGroupId":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"supersessionMode":{"type":["string","null"],"enum":["Consume First","Prefer New","Stock Only","No Stock"]},"mpn":{"type":["string","null"]},"suppliers":{"type":["array","null"],"items":{"type":"string"}}},"required":["active","assignee","defaultMethodType","description","itemTrackingType","name","replenishmentSystem","readableIdWithRevision","id","companyId","thumbnailPath","supplierIds","customFields","tags","itemPostingGroupId","createdBy","createdAt","updatedBy","updatedAt","supersessionMode","mpn","suppliers"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getConsumablesList":{"post":{"operationId":"items.getConsumablesList","summary":"get consumables list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"readableIdWithRevision":{"type":"string"}},"required":["id","name","readableIdWithRevision"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getItem":{"post":{"operationId":"items.getItem","summary":"get item","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"assignee":{"type":["string","null"]},"changeOrderId":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"defaultMethodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":["string","null"]},"embedding":{},"id":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"modelUploadId":{"type":["string","null"]},"mpn":{"type":["string","null"]},"name":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"readableId":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":["string","null"]},"revisionStatus":{"type":"string","enum":["Production","Design","Prototype","Obsolete"]},"sourcingType":{"type":"string","enum":["Specified","Drop Ship","Ship from Inventory"]},"thumbnailPath":{"type":["string","null"]},"trackingMethod":{"type":["string","null"]},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","assignee","changeOrderId","companyId","createdAt","createdBy","defaultMethodType","description","embedding","id","itemTrackingType","modelUploadId","mpn","name","notes","readableId","readableIdWithRevision","replenishmentSystem","revision","revisionStatus","sourcingType","thumbnailPath","trackingMethod","type","unitOfMeasureCode","updatedAt","updatedBy"]}}}}}}},"/items/getItemCost":{"post":{"operationId":"items.getItemCost","summary":"get item cost","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"costingMethod":{"type":"string","enum":["Average","Standard","LIFO","FIFO"]},"costIsAdjusted":{"type":"boolean"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemId":{"type":"string"},"itemPostingGroupId":{"type":["string","null"]},"standardCost":{"type":"number"},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitCost":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"readableIdWithRevision":{"type":["string","null"]}},"required":["companyId","costingMethod","costIsAdjusted","createdAt","createdBy","customFields","itemId","itemPostingGroupId","standardCost","tags","unitCost","updatedAt","updatedBy","readableIdWithRevision"]}}}}}}},"/items/getItemCostHistory":{"post":{"operationId":"items.getItemCostHistory","summary":"get item cost history","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"adjustment":{"type":"boolean"},"appliesToCostLedgerId":{"type":["string","null"]},"companyId":{"type":"string"},"cost":{"type":"number"},"costLedgerType":{"type":"string","enum":["Direct Cost","Revaluation","Rounding","Indirect Cost","Variance","Total"]},"createdAt":{"type":"string"},"documentId":{"type":["string","null"]},"documentType":{"type":["string","null"],"enum":["Sales Shipment","Sales Invoice","Sales Return Receipt","Sales Credit Memo","Purchase Receipt","Purchase Invoice","Purchase Return Shipment","Purchase Credit Memo","Transfer Shipment","Transfer Receipt","Service Shipment","Service Invoice","Service Credit Memo","Posted Assembly","Inventory Receipt","Inventory Shipment","Direct Transfer","Job Consumption","Job Receipt","Batch Split","Purchase Order","Maintenance Consumption","Non-Conformance","Inbound Inspection","Inventory Count","Scrap","Sales Return Shipment","Batch Merge"]},"entryNumber":{"type":"number"},"externalDocumentId":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"itemLedgerType":{"type":"string","enum":["Purchase","Sale","Positive Adjmt.","Negative Adjmt.","Transfer","Consumption","Output","Assembly Consumption","Assembly Output"]},"nominalCost":{"type":"number"},"postingDate":{"type":"string"},"quantity":{"type":"number"},"remainingQuantity":{"type":"number"},"supplierId":{"type":["string","null"]}},"required":["adjustment","appliesToCostLedgerId","companyId","cost","costLedgerType","createdAt","documentId","documentType","entryNumber","externalDocumentId","id","itemId","itemLedgerType","nominalCost","postingDate","quantity","remainingQuantity","supplierId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getItemCustomerPart":{"post":{"operationId":"items.getItemCustomerPart","summary":"get item customer part","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customerId":{"type":"string"},"customerPartId":{"type":"string"},"customerPartRevision":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"customer":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["companyId","customerId","customerPartId","customerPartRevision","id","itemId","customer"]}}}}}}},"/items/getItemCustomerParts":{"post":{"operationId":"items.getItemCustomerParts","summary":"get item customer parts","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"customerId":{"type":"string"},"customerPartId":{"type":"string"},"customerPartRevision":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"customer":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["companyId","customerId","customerPartId","customerPartRevision","id","itemId","customer"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getItemDemand":{"post":{"operationId":"items.getItemDemand","summary":"get item demand","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"},"periods":{"type":"array","items":{"type":"string"}}},"required":["itemId","locationId","periods"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"actuals":{"type":"array","items":{"type":"object","properties":{"actualQuantity":{"type":"number"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"itemId":{"type":"string"},"locationId":{"type":"string"},"notes":{"type":["string","null"]},"periodId":{"type":"string"},"sourceType":{"type":"string","enum":["Sales Order","Job Material"]},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"}},"required":["actualQuantity","companyId","createdAt","createdBy","itemId","locationId","notes","periodId","sourceType","updatedAt","updatedBy"]}},"forecasts":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"confidence":{"type":["number","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"forecastMethod":{"type":["string","null"]},"forecastQuantity":{"type":"number"},"itemId":{"type":"string"},"locationId":{"type":"string"},"notes":{"type":["string","null"]},"periodId":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"}},"required":["companyId","confidence","createdAt","createdBy","forecastMethod","forecastQuantity","itemId","locationId","notes","periodId","updatedAt","updatedBy"]}},"projections":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"confidence":{"type":["number","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"forecastMethod":{"type":["string","null"]},"forecastQuantity":{"type":"number"},"id":{"type":"string"},"itemId":{"type":"string"},"locationId":{"type":"string"},"notes":{"type":["string","null"]},"periodId":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"}},"required":["companyId","confidence","createdAt","createdBy","forecastMethod","forecastQuantity","id","itemId","locationId","notes","periodId","updatedAt","updatedBy"]}},"error":{"type":["object","null"],"properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]}},"required":["actuals","forecasts","projections","error"]}}}}}}},"/items/getDemandForecastSources":{"post":{"operationId":"items.getDemandForecastSources","summary":"get demand forecast sources","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"},"periods":{"type":"array","items":{"type":"string"}}},"required":["itemId","locationId","periods"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":["string","null"]},"periodId":{"type":"string"},"sourceType":{"type":"string","enum":["Sales Order","Job Material","Demand Projection"]},"quantity":{"type":"number"},"jobId":{"type":["string","null"]},"salesOrderLineId":{"type":["string","null"]},"demandProjectionId":{"type":["string","null"]},"parentItemId":{"type":"string"},"parentItem":{"type":"object","properties":{"id":{"type":"string"},"readableId":{"type":"string"},"name":{"type":"string"}},"required":["id","readableId","name"]},"redirectedFromItemId":{"type":["string","null"]},"redirectedFromItem":{"type":["object","null"],"properties":{"id":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]}},"required":["id","readableIdWithRevision"]},"job":{"type":["object","null"],"properties":{"id":{"type":"string"},"jobId":{"type":"string"},"dueDate":{"type":["string","null"]},"status":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]}},"required":["id","jobId","dueDate","status"]},"salesOrderLine":{"type":["object","null"],"properties":{"id":{"type":"string"},"salesOrderId":{"type":"string"},"promisedDate":{"type":["string","null"]},"salesOrder":{"type":"object","properties":{"id":{"type":"string"},"salesOrderId":{"type":"string"}},"required":["id","salesOrderId"]}},"required":["id","salesOrderId","promisedDate","salesOrder"]},"demandProjection":{"type":["object","null"],"properties":{"id":{"type":"string"},"forecastQuantity":{"type":"number"},"forecastMethod":{"type":["string","null"]},"confidence":{"type":["number","null"]},"notes":{"type":["string","null"]},"period":{"type":"object","properties":{"startDate":{"type":"string"}},"required":["startDate"]},"createdBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","forecastQuantity","forecastMethod","confidence","notes","period","createdBy","createdAt"]}},"required":["itemId","locationId","periodId","sourceType","quantity","jobId","salesOrderLineId","demandProjectionId","parentItemId","parentItem","redirectedFromItemId","redirectedFromItem","job","salesOrderLine","demandProjection"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getItemFiles":{"post":{"operationId":"items.getItemFiles","summary":"get item files","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":["string","null"]},"updated_at":{"type":["string","null"]},"created_at":{"type":["string","null"]},"last_accessed_at":{"type":["string","null"]},"metadata":{"type":["object","null"],"additionalProperties":{}},"bucket_id":{"type":["string","null"]},"owner":{"type":["string","null"]},"buckets":{"type":["object","null"],"properties":{"id":{"type":"string"},"type":{"anyOf":[{},{"type":"string","enum":["STANDARD"]},{"type":"string","enum":["ANALYTICS"]},{"type":"null"}]},"name":{"type":"string"},"owner":{"type":"string"},"file_size_limit":{"type":["number","null"]},"allowed_mime_types":{"type":["array","null"],"items":{"type":"string"}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"public":{"type":"boolean"},"versioning_status":{"type":["string","null"],"enum":["DISABLED","ENABLED","SUSPENDED"]}},"required":["id","name","owner","created_at","updated_at","public"]},"version":{"type":["string","null"]},"archived_at":{"type":["string","null"]},"is_delete_marker":{"type":["boolean","null"]},"is_versioned":{"type":["boolean","null"]}},"required":["name","id","updated_at","created_at","last_accessed_at","metadata"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getItemPostingGroup":{"post":{"operationId":"items.getItemPostingGroup","summary":"get item posting group","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","customFields","description","id","name","tags","updatedAt","updatedBy"]}}}}}}},"/items/getItemPostingGroups":{"post":{"operationId":"items.getItemPostingGroups","summary":"get item posting groups","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","customFields","description","id","name","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getItemPostingGroupsList":{"post":{"operationId":"items.getItemPostingGroupsList","summary":"get item posting groups list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getItemManufacturing":{"post":{"operationId":"items.getItemManufacturing","summary":"get item manufacturing","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"conversionFactor":{"type":"number"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemId":{"type":"string"},"leadTime":{"type":"number"},"lotSize":{"type":["number","null"]},"manufacturingBlocked":{"type":"boolean"},"preferredSupplierId":{"type":["string","null"]},"purchasingBlocked":{"type":"boolean"},"purchasingUnitOfMeasureCode":{"type":["string","null"]},"requiresConfiguration":{"type":"boolean"},"scrapPercentage":{"type":"number"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","conversionFactor","createdAt","createdBy","customFields","itemId","leadTime","lotSize","manufacturingBlocked","preferredSupplierId","purchasingBlocked","purchasingUnitOfMeasureCode","requiresConfiguration","scrapPercentage","tags","updatedAt","updatedBy"]}}}}}}},"/items/getItemPlanning":{"post":{"operationId":"items.getItemPlanning","summary":"get item planning","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"critical":{"type":"boolean"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"demandAccumulationIncludesInventory":{"type":"boolean"},"demandAccumulationPeriod":{"type":"number"},"demandAccumulationSafetyStock":{"type":"number"},"itemId":{"type":"string"},"locationId":{"type":"string"},"maximumInventoryQuantity":{"type":"number"},"maximumOrderQuantity":{"type":"number"},"minimumOrderQuantity":{"type":"number"},"minimumReserveQuantity":{"type":"number"},"orderMultiple":{"type":"number"},"reorderingPolicy":{"type":"string","enum":["Manual Reorder","Demand-Based Reorder","Fixed Reorder Quantity","Maximum Quantity"]},"reorderPoint":{"type":"number"},"reorderQuantity":{"type":"number"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","critical","customFields","demandAccumulationIncludesInventory","demandAccumulationPeriod","demandAccumulationSafetyStock","itemId","locationId","maximumInventoryQuantity","maximumOrderQuantity","minimumOrderQuantity","minimumReserveQuantity","orderMultiple","reorderingPolicy","reorderPoint","reorderQuantity","tags","updatedAt","updatedBy"]}}}}}}},"/items/getItemQuantities":{"post":{"operationId":"items.getItemQuantities","summary":"get item quantities","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"daysRemaining":{"type":"number"},"demandAccumulationPeriod":{"type":"number"},"demandAccumulationSafetyStock":{"type":"number"},"demandForecast":{"type":"number"},"dimension":{"type":"string"},"dimensionId":{"type":"string"},"finish":{"type":"string"},"finishId":{"type":"string"},"grade":{"type":"string"},"gradeId":{"type":"string"},"id":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"leadTime":{"type":"number"},"lotSize":{"type":"number"},"materialFormId":{"type":"string"},"materialSubstanceId":{"type":"string"},"materialType":{"type":"string"},"materialTypeId":{"type":"string"},"maximumInventoryQuantity":{"type":"number"},"maximumOrderQuantity":{"type":"number"},"minimumOrderQuantity":{"type":"number"},"name":{"type":"string"},"orderMultiple":{"type":"number"},"quantityOnHand":{"type":"number"},"quantityOnHold":{"type":"number"},"quantityOnProductionDemand":{"type":"number"},"quantityOnProductionOrder":{"type":"number"},"quantityOnPurchaseOrder":{"type":"number"},"quantityOnSalesOrder":{"type":"number"},"quantityRejected":{"type":"number"},"readableId":{"type":"string"},"readableIdWithRevision":{"type":"string"},"reorderingPolicy":{"type":"string","enum":["Manual Reorder","Demand-Based Reorder","Fixed Reorder Quantity","Maximum Quantity"]},"reorderPoint":{"type":"number"},"reorderQuantity":{"type":"number"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"storageTypeIds":{"type":"array","items":{"type":"string"}},"storageUnitIds":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"unitOfMeasureCode":{"type":"string"},"usageLast30Days":{"type":"number"},"usageLast90Days":{"type":"number"}},"required":["active","daysRemaining","demandAccumulationPeriod","demandAccumulationSafetyStock","demandForecast","dimension","dimensionId","finish","finishId","grade","gradeId","id","itemTrackingType","leadTime","lotSize","materialFormId","materialSubstanceId","materialType","materialTypeId","maximumInventoryQuantity","maximumOrderQuantity","minimumOrderQuantity","name","orderMultiple","quantityOnHand","quantityOnHold","quantityOnProductionDemand","quantityOnProductionOrder","quantityOnPurchaseOrder","quantityOnSalesOrder","quantityRejected","readableId","readableIdWithRevision","reorderingPolicy","reorderPoint","reorderQuantity","replenishmentSystem","storageTypeIds","storageUnitIds","tags","thumbnailPath","type","unitOfMeasureCode","usageLast30Days","usageLast90Days"]}}}}}}},"/items/getItemStockQuantitiesByLocation":{"post":{"operationId":"items.getItemStockQuantitiesByLocation","summary":"on-hand quantity per item for the Item picker's badge, as a plain map","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"number"}}}}}}}},"/items/getItemReplenishment":{"post":{"operationId":"items.getItemReplenishment","summary":"get item replenishment","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"conversionFactor":{"type":"number"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemId":{"type":"string"},"leadTime":{"type":"number"},"lotSize":{"type":["number","null"]},"manufacturingBlocked":{"type":"boolean"},"preferredSupplierId":{"type":["string","null"]},"purchasingBlocked":{"type":"boolean"},"purchasingUnitOfMeasureCode":{"type":["string","null"]},"requiresConfiguration":{"type":"boolean"},"scrapPercentage":{"type":"number"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","conversionFactor","createdAt","createdBy","customFields","itemId","leadTime","lotSize","manufacturingBlocked","preferredSupplierId","purchasingBlocked","purchasingUnitOfMeasureCode","requiresConfiguration","scrapPercentage","tags","updatedAt","updatedBy"]}}}}}}},"/items/getItemSupersession":{"post":{"operationId":"items.getItemSupersession","summary":"get item supersession","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"conversionFactor":{"type":"number"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"discontinuationDate":{"type":["string","null"]},"itemId":{"type":"string"},"successorEffectivityDate":{"type":["string","null"]},"successorItemId":{"type":["string","null"]},"supersessionMode":{"type":"string","enum":["Consume First","Prefer New","Stock Only","No Stock"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"successor":{"type":["object","null"],"properties":{"id":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]},"name":{"type":"string"}},"required":["id","readableIdWithRevision","name"]}},"required":["companyId","conversionFactor","createdAt","createdBy","discontinuationDate","itemId","successorEffectivityDate","successorItemId","supersessionMode","updatedAt","updatedBy","successor"]}}}}}}},"/items/getItemSupersessionsForItems":{"post":{"operationId":"items.getItemSupersessionsForItems","summary":"get item supersessions for items","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"type":"array","items":{"type":"string"}}},"required":["itemIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{}},{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"supersessionMode":{"type":"string","enum":["Consume First","Prefer New","Stock Only","No Stock"]},"successorItemId":{"type":["string","null"]},"successorEffectivityDate":{"type":["string","null"]},"conversionFactor":{"type":"number"},"successor":{"type":["object","null"],"properties":{"readableIdWithRevision":{"type":["string","null"]}},"required":["readableIdWithRevision"]}},"required":["itemId","supersessionMode","successorItemId","successorEffectivityDate","conversionFactor","successor"]}},{"type":"null"}]}}}}}}},"/items/getItemSupersededBy":{"post":{"operationId":"items.getItemSupersededBy","summary":"get item superseded by","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"supersessionMode":{"type":"string","enum":["Consume First","Prefer New","Stock Only","No Stock"]},"successorEffectivityDate":{"type":["string","null"]},"predecessor":{"type":"object","properties":{"id":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]},"name":{"type":"string"}},"required":["id","readableIdWithRevision","name"]}},"required":["itemId","supersessionMode","successorEffectivityDate","predecessor"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getSupersessionChain":{"post":{"operationId":"items.getSupersessionChain","summary":"get supersession chain","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"supersessionMode":{"type":"string","enum":["Consume First","Prefer New","Stock Only","No Stock"]},"successorItemId":{"type":["string","null"]},"successorEffectivityDate":{"type":["string","null"]},"successor":{"type":["object","null"],"properties":{"id":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]},"name":{"type":"string"}},"required":["id","readableIdWithRevision","name"]}},"required":["itemId","supersessionMode","successorItemId","successorEffectivityDate","successor"]}},"supersededBy":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"supersessionMode":{"type":"string","enum":["Consume First","Prefer New","Stock Only","No Stock"]},"successorEffectivityDate":{"type":["string","null"]},"predecessor":{"type":"object","properties":{"id":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]},"name":{"type":"string"}},"required":["id","readableIdWithRevision","name"]}},"required":["itemId","supersessionMode","successorEffectivityDate","predecessor"]}}},"required":["chain","supersededBy"]}}}}}}},"/items/getItemStorageUnitQuantities":{"post":{"operationId":"items.getItemStorageUnitQuantities","summary":"get item storage unit quantities","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"quantity":{"type":"number"},"readableId":{"type":"string"},"storageUnitId":{"type":"string"},"storageUnitName":{"type":"string"},"trackedEntityId":{"type":"string"}},"required":["itemId","quantity","readableId","storageUnitId","storageUnitName","trackedEntityId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getItemSupply":{"post":{"operationId":"items.getItemSupply","summary":"get item supply","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"},"periods":{"type":"array","items":{"type":"string"}}},"required":["itemId","locationId","periods"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"actuals":{"type":"array","items":{"type":"object","properties":{"actualQuantity":{"type":"number"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"itemId":{"type":"string"},"locationId":{"type":"string"},"notes":{"type":["string","null"]},"periodId":{"type":"string"},"sourceType":{"type":"string","enum":["Purchase Order","Production Order"]},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"}},"required":["actualQuantity","companyId","createdAt","createdBy","itemId","locationId","notes","periodId","sourceType","updatedAt","updatedBy"]}},"forecasts":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"confidence":{"type":["number","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"forecastMethod":{"type":["string","null"]},"forecastQuantity":{"type":"number"},"itemId":{"type":"string"},"locationId":{"type":"string"},"notes":{"type":["string","null"]},"periodId":{"type":"string"},"sourceType":{"type":["string","null"],"enum":["Purchase Order","Production Order"]},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"}},"required":["companyId","confidence","createdAt","createdBy","forecastMethod","forecastQuantity","itemId","locationId","notes","periodId","sourceType","updatedAt","updatedBy"]}}},"required":["actuals","forecasts"]}}}}}}},"/items/getItemUnitSalePrice":{"post":{"operationId":"items.getItemUnitSalePrice","summary":"get item unit sale price","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"allowInvoiceDiscount":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemId":{"type":"string"},"priceIncludesTax":{"type":"boolean"},"salesBlocked":{"type":"boolean"},"salesUnitOfMeasureCode":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitSalePrice":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["allowInvoiceDiscount","companyId","createdAt","createdBy","currencyCode","customFields","itemId","priceIncludesTax","salesBlocked","salesUnitOfMeasureCode","tags","unitSalePrice","updatedAt","updatedBy"]}}}}}}},"/items/getJobMaterialUsageForItem":{"post":{"operationId":"items.getJobMaterialUsageForItem","summary":"get job material usage for item","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"byMaterialId":{"type":"object","additionalProperties":{"type":"number"}},"byJobId":{"type":"object","additionalProperties":{"type":"number"}}},"required":["byMaterialId","byJobId"]}}}}}}},"/items/getMaterialUsedIn":{"post":{"operationId":"items.getMaterialUsedIn","summary":"get material used in","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"issues":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","documentReadableId","documentId"]}},"jobMaterials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","methodType","documentReadableId","documentId"]}},"maintenanceDispatchItems":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","documentReadableId","documentId"]}},"methodMaterials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"documentId":{"type":"string"},"version":{"type":"number"},"documentReadableId":{"type":["string","null"]},"documentParentId":{"type":"string"},"itemType":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]}},"required":["id","methodType","documentId","version","documentReadableId","documentParentId","itemType"]}},"purchaseOrderLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","documentReadableId","documentId"]}},"receiptLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","documentReadableId","documentId"]}},"quoteMaterials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"documentParentId":{"type":"string"},"documentId":{"type":"string"},"documentReadableId":{"type":["string","null"]}},"required":["id","methodType","documentParentId","documentId","documentReadableId"]}},"salesOrderLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","methodType","documentReadableId","documentId"]}},"shipmentLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","documentReadableId","documentId"]}},"supplierQuotes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","documentReadableId","documentId"]}},"inspections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["id","documentReadableId"]}},"jobMaterialUsage":{"type":"object","properties":{"byMaterialId":{"type":"object","additionalProperties":{"type":"number"}},"byJobId":{"type":"object","additionalProperties":{"type":"number"}}},"required":["byMaterialId","byJobId"]}},"required":["issues","jobMaterials","maintenanceDispatchItems","methodMaterials","purchaseOrderLines","receiptLines","quoteMaterials","salesOrderLines","shipmentLines","supplierQuotes","inspections","jobMaterialUsage"]}}}}}}},"/items/getMakeMethods":{"post":{"operationId":"items.getMakeMethods","summary":"get make methods","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"changeOrderId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"status":{"type":"string","enum":["Active","Draft","Archived"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"}},"required":["changeOrderId","companyId","createdAt","createdBy","customFields","id","itemId","status","tags","updatedAt","updatedBy","version"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMakeMethodById":{"post":{"operationId":"items.getMakeMethodById","summary":"get make method by id","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"makeMethodId":{"type":"string"}},"required":["makeMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"changeOrderId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"status":{"type":"string","enum":["Active","Draft","Archived"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"}},"required":["changeOrderId","companyId","createdAt","createdBy","customFields","id","itemId","status","tags","updatedAt","updatedBy","version"]}}}}}}},"/items/getMaterial":{"post":{"operationId":"items.getMaterial","summary":"get material","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"assignee":{"type":"string"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultMethodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":"string"},"dimensionId":{"type":"string"},"dimensions":{"type":"string"},"finish":{"type":"string"},"finishId":{"type":"string"},"grade":{"type":"string"},"gradeId":{"type":"string"},"id":{"type":"string"},"itemPostingGroupId":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"materialForm":{"type":"string"},"materialFormId":{"type":"string"},"materialSubstance":{"type":"string"},"materialSubstanceId":{"type":"string"},"materialType":{"type":"string"},"materialTypeId":{"type":"string"},"modelName":{"type":"string"},"modelPath":{"type":"string"},"modelSize":{"type":"number"},"modelUploadId":{"type":"string"},"mpn":{"type":"string"},"name":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"readableId":{"type":"string"},"readableIdWithRevision":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":"string"},"revisions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"supplierIds":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"unitOfMeasure":{"type":"string"},"unitOfMeasureCode":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"}},"required":["active","assignee","companyId","createdAt","createdBy","customFields","defaultMethodType","description","dimensionId","dimensions","finish","finishId","grade","gradeId","id","itemPostingGroupId","itemTrackingType","materialForm","materialFormId","materialSubstance","materialSubstanceId","materialType","materialTypeId","modelName","modelPath","modelSize","modelUploadId","mpn","name","notes","readableId","readableIdWithRevision","replenishmentSystem","revision","revisions","supplierIds","tags","thumbnailPath","unitOfMeasure","unitOfMeasureCode","updatedAt","updatedBy"]}}}}}}},"/items/getMaterials":{"post":{"operationId":"items.getMaterials","summary":"get materials","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"supplierId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"defaultMethodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":["string","null"]},"itemTrackingType":{"type":["string","null"],"enum":["Inventory","Non-Inventory","Serial","Batch"]},"name":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"revision":{"type":["string","null"]},"readableId":{"type":["string","null"]},"readableIdWithRevision":{"type":["string","null"]},"id":{"type":["string","null"]},"companyId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"supplierIds":{"type":["string","null"]},"unitOfMeasure":{"type":["string","null"]},"revisions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"materialForm":{"type":["string","null"]},"materialSubstance":{"type":["string","null"]},"dimensions":{"type":["string","null"]},"finish":{"type":["string","null"]},"grade":{"type":["string","null"]},"materialType":{"type":["string","null"]},"materialSubstanceId":{"type":["string","null"]},"materialFormId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"tags":{"type":["array","null"],"items":{"type":"string"}},"itemPostingGroupId":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"supersessionMode":{"type":["string","null"],"enum":["Consume First","Prefer New","Stock Only","No Stock"]},"mpn":{"type":["string","null"]},"suppliers":{"type":["array","null"],"items":{"type":"string"}}},"required":["active","defaultMethodType","description","itemTrackingType","name","unitOfMeasureCode","revision","readableId","readableIdWithRevision","id","companyId","thumbnailPath","supplierIds","unitOfMeasure","revisions","materialForm","materialSubstance","dimensions","finish","grade","materialType","materialSubstanceId","materialFormId","customFields","tags","itemPostingGroupId","createdBy","createdAt","updatedBy","updatedAt","supersessionMode","mpn","suppliers"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMaterialsList":{"post":{"operationId":"items.getMaterialsList","summary":"get materials list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"readableIdWithRevision":{"type":"string"}},"required":["id","name","readableIdWithRevision"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMaterialDimension":{"post":{"operationId":"items.getMaterialDimension","summary":"get material dimension","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"id":{"type":"string"},"isMetric":{"type":"boolean"},"materialFormId":{"type":"string"},"name":{"type":"string"}},"required":["companyId","id","isMetric","materialFormId","name"]}}}}}}},"/items/getMaterialDimensions":{"post":{"operationId":"items.getMaterialDimensions","summary":"get material dimensions","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"isMetric":{"type":"boolean"}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"formName":{"type":["string","null"]},"id":{"type":["string","null"]},"isMetric":{"type":["boolean","null"]},"materialFormId":{"type":["string","null"]},"name":{"type":["string","null"]}},"required":["companyId","formName","id","isMetric","materialFormId","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMaterialDimensionList":{"post":{"operationId":"items.getMaterialDimensionList","summary":"get material dimension list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materialFormId":{"type":"string"},"isMetric":{"type":"boolean"}},"required":["materialFormId","isMetric"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"id":{"type":"string"},"isMetric":{"type":"boolean"},"materialFormId":{"type":"string"},"name":{"type":"string"}},"required":["companyId","id","isMetric","materialFormId","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMaterialFinish":{"post":{"operationId":"items.getMaterialFinish","summary":"get material finish","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"id":{"type":"string"},"materialSubstanceId":{"type":"string"},"name":{"type":"string"}},"required":["companyId","id","materialSubstanceId","name"]}}}}}}},"/items/getMaterialFinishes":{"post":{"operationId":"items.getMaterialFinishes","summary":"get material finishes","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"id":{"type":["string","null"]},"materialSubstanceId":{"type":["string","null"]},"name":{"type":["string","null"]},"substanceName":{"type":["string","null"]}},"required":["companyId","id","materialSubstanceId","name","substanceName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMaterialFinishList":{"post":{"operationId":"items.getMaterialFinishList","summary":"get material finish list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materialSubstanceId":{"type":"string"}},"required":["materialSubstanceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"id":{"type":"string"},"materialSubstanceId":{"type":"string"},"name":{"type":"string"}},"required":["companyId","id","materialSubstanceId","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMaterialForm":{"post":{"operationId":"items.getMaterialForm","summary":"get material form","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["code","companyId","createdAt","createdBy","customFields","id","name","tags","updatedAt","updatedBy"]}}}}}}},"/items/getMaterialForms":{"post":{"operationId":"items.getMaterialForms","summary":"get material forms","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["code","companyId","createdAt","createdBy","customFields","id","name","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMaterialFormsList":{"post":{"operationId":"items.getMaterialFormsList","summary":"get material forms list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"code":{"type":"string"},"companyId":{"type":["string","null"]}},"required":["id","name","code","companyId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMaterialGrades":{"post":{"operationId":"items.getMaterialGrades","summary":"get material grades","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"id":{"type":["string","null"]},"materialSubstanceId":{"type":["string","null"]},"name":{"type":["string","null"]},"substanceName":{"type":["string","null"]}},"required":["companyId","id","materialSubstanceId","name","substanceName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMaterialGrade":{"post":{"operationId":"items.getMaterialGrade","summary":"get material grade","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"id":{"type":"string"},"materialSubstanceId":{"type":"string"},"name":{"type":"string"}},"required":["companyId","id","materialSubstanceId","name"]}}}}}}},"/items/getMaterialGradeList":{"post":{"operationId":"items.getMaterialGradeList","summary":"get material grade list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materialSubstanceId":{"type":"string"}},"required":["materialSubstanceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"id":{"type":"string"},"materialSubstanceId":{"type":"string"},"name":{"type":"string"}},"required":["companyId","id","materialSubstanceId","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMaterialSubstance":{"post":{"operationId":"items.getMaterialSubstance","summary":"get material substance","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["code","companyId","createdAt","createdBy","customFields","id","name","tags","updatedAt","updatedBy"]}}}}}}},"/items/getMaterialSubstances":{"post":{"operationId":"items.getMaterialSubstances","summary":"get material substances","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["code","companyId","createdAt","createdBy","customFields","id","name","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMaterialSubstancesList":{"post":{"operationId":"items.getMaterialSubstancesList","summary":"get material substances list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"code":{"type":"string"},"companyId":{"type":["string","null"]}},"required":["id","name","code","companyId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMethodMaterial":{"post":{"operationId":"items.getMethodMaterial","summary":"get method material","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materialId":{"type":"string"}},"required":["materialId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"itemType":{"type":"string"},"kit":{"type":"boolean"},"makeMethodId":{"type":"string"},"materialMakeMethodId":{"type":["string","null"]},"methodOperationId":{"type":["string","null"]},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":"number"},"productionQuantity":{"type":["number","null"]},"quantity":{"type":"number"},"scrapQuantity":{"type":"number"},"sourcingType":{"type":"string","enum":["Specified","Drop Ship","Ship from Inventory"]},"storageUnitIds":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitOfMeasureCode":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"item":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["companyId","createdAt","createdBy","customFields","id","itemId","itemType","kit","makeMethodId","materialMakeMethodId","methodOperationId","methodType","order","productionQuantity","quantity","scrapQuantity","sourcingType","storageUnitIds","tags","unitOfMeasureCode","updatedAt","updatedBy","item"]}}}}}}},"/items/getMethodMaterials":{"post":{"operationId":"items.getMethodMaterials","summary":"get method materials","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"itemType":{"type":"string"},"kit":{"type":"boolean"},"makeMethodId":{"type":"string"},"materialMakeMethodId":{"type":["string","null"]},"methodOperationId":{"type":["string","null"]},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":"number"},"productionQuantity":{"type":["number","null"]},"quantity":{"type":"number"},"scrapQuantity":{"type":"number"},"sourcingType":{"type":"string","enum":["Specified","Drop Ship","Ship from Inventory"]},"storageUnitIds":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitOfMeasureCode":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"item":{"type":"object","properties":{"name":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]}},"required":["name","readableIdWithRevision"]},"makeMethod":{"type":"object","properties":{"item":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"name":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]}},"required":["id","type","name","readableIdWithRevision"]}},"required":["item"]}},"required":["companyId","createdAt","createdBy","customFields","id","itemId","itemType","kit","makeMethodId","materialMakeMethodId","methodOperationId","methodType","order","productionQuantity","quantity","scrapQuantity","sourcingType","storageUnitIds","tags","unitOfMeasureCode","updatedAt","updatedBy","item","makeMethod"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMethodMaterialsByMakeMethod":{"post":{"operationId":"items.getMethodMaterialsByMakeMethod","summary":"get method materials by make method","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"makeMethodId":{"type":"string"}},"required":["makeMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"itemType":{"type":"string"},"kit":{"type":"boolean"},"makeMethodId":{"type":"string"},"materialMakeMethodId":{"type":["string","null"]},"methodOperationId":{"type":["string","null"]},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":"number"},"productionQuantity":{"type":["number","null"]},"quantity":{"type":"number"},"scrapQuantity":{"type":"number"},"sourcingType":{"type":"string","enum":["Specified","Drop Ship","Ship from Inventory"]},"storageUnitIds":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitOfMeasureCode":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"item":{"type":"object","properties":{"name":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"defaultMethodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"sourcingType":{"type":"string","enum":["Specified","Drop Ship","Ship from Inventory"]}},"required":["name","itemTrackingType","replenishmentSystem","defaultMethodType","sourcingType"]},"methodMaterialStep":{"type":"array","items":{"type":"object","properties":{"methodOperationStepId":{"type":"string"},"quantity":{"type":["number","null"]}},"required":["methodOperationStepId","quantity"]}}},"required":["companyId","createdAt","createdBy","customFields","id","itemId","itemType","kit","makeMethodId","materialMakeMethodId","methodOperationId","methodType","order","productionQuantity","quantity","scrapQuantity","sourcingType","storageUnitIds","tags","unitOfMeasureCode","updatedAt","updatedBy","item","methodMaterialStep"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMethodOperations":{"post":{"operationId":"items.getMethodOperations","summary":"get method operations","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assemblyInstructionId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":"string"},"id":{"type":"string"},"inspectionDocumentId":{"type":["string","null"]},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"makeMethodId":{"type":"string"},"operationLeadTime":{"type":["number","null"]},"operationMinimumCost":{"type":["number","null"]},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationSupplierProcessId":{"type":["string","null"]},"operationType":{"type":"string","enum":["Inspection","Process","Assembly","Outside Processing"]},"operationUnitCost":{"type":["number","null"]},"order":{"type":"number"},"procedureId":{"type":["string","null"]},"processId":{"type":"string"},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workInstruction":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"makeMethod":{"type":"object","properties":{"item":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"name":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]}},"required":["id","type","name","readableIdWithRevision"]}},"required":["item"]}},"required":["assemblyInstructionId","companyId","createdAt","createdBy","customFields","description","id","inspectionDocumentId","laborTime","laborUnit","machineTime","machineUnit","makeMethodId","operationLeadTime","operationMinimumCost","operationOrder","operationSupplierProcessId","operationType","operationUnitCost","order","procedureId","processId","setupTime","setupUnit","tags","updatedAt","updatedBy","workCenterId","workInstruction","makeMethod"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMethodOperationsByMakeMethodId":{"post":{"operationId":"items.getMethodOperationsByMakeMethodId","summary":"get method operations by make method id","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"makeMethodId":{"type":"string"}},"required":["makeMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assemblyInstructionId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":"string"},"id":{"type":"string"},"inspectionDocumentId":{"type":["string","null"]},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"makeMethodId":{"type":"string"},"operationLeadTime":{"type":["number","null"]},"operationMinimumCost":{"type":["number","null"]},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationSupplierProcessId":{"type":["string","null"]},"operationType":{"type":"string","enum":["Inspection","Process","Assembly","Outside Processing"]},"operationUnitCost":{"type":["number","null"]},"order":{"type":"number"},"procedureId":{"type":["string","null"]},"processId":{"type":"string"},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workInstruction":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"methodOperationTool":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"operationId":{"type":"string"},"quantity":{"type":"number"},"toolId":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":["string","null"]},"methodOperationToolStep":{"type":"array","items":{"type":"object","properties":{"methodOperationStepId":{"type":"string"}},"required":["methodOperationStepId"]}}},"required":["companyId","createdAt","createdBy","id","operationId","quantity","toolId","updatedAt","updatedBy","methodOperationToolStep"]}},"methodOperationParameter":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"key":{"type":"string"},"operationId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"value":{"type":"string"}},"required":["companyId","createdAt","createdBy","id","key","operationId","updatedAt","updatedBy","value"]}},"methodOperationStep":{"type":"array","items":{"type":"object","properties":{"assemblyInstructionStepId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]},"fileTypes":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"listValues":{"type":["array","null"],"items":{"type":"string"}},"maxValue":{"type":["number","null"]},"minValue":{"type":["number","null"]},"name":{"type":"string"},"operationId":{"type":"string"},"required":{"type":["boolean","null"]},"sortOrder":{"type":"number"},"type":{"type":"string","enum":["Value","Measurement","Checkbox","Timestamp","Person","List","File","Task","Inspection"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"methodOperationStepSlide":{"type":"array","items":{"type":"object","properties":{"annotations":{"anyOf":[{},{"type":"null"}]},"caption":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"imagePath":{"type":["string","null"]},"modelUploadId":{"type":["string","null"]},"size":{"type":"string"},"sortOrder":{"type":"number"},"stepId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["annotations","caption","companyId","createdAt","createdBy","id","imagePath","modelUploadId","size","sortOrder","stepId","updatedAt","updatedBy"]}}},"required":["assemblyInstructionStepId","companyId","createdAt","createdBy","description","fileTypes","id","listValues","maxValue","minValue","name","operationId","required","sortOrder","type","unitOfMeasureCode","updatedAt","updatedBy","methodOperationStepSlide"]}}},"required":["assemblyInstructionId","companyId","createdAt","createdBy","customFields","description","id","inspectionDocumentId","laborTime","laborUnit","machineTime","machineUnit","makeMethodId","operationLeadTime","operationMinimumCost","operationOrder","operationSupplierProcessId","operationType","operationUnitCost","order","procedureId","processId","setupTime","setupUnit","tags","updatedAt","updatedBy","workCenterId","workInstruction","methodOperationTool","methodOperationParameter","methodOperationStep"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMethodTree":{"post":{"operationId":"items.getMethodTree","summary":"get method tree","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"makeMethodId":{"type":"string"}},"required":["makeMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"data":{"type":"object","properties":{"description":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"isPickDescendant":{"type":"boolean"},"isRoot":{"type":"boolean"},"itemId":{"type":"string"},"itemReadableId":{"type":"string"},"itemTrackingType":{"type":"string"},"itemType":{"type":"string"},"kit":{"type":"boolean"},"makeMethodId":{"type":"string"},"materialMakeMethodId":{"type":"string"},"methodMaterialId":{"type":"string"},"methodOperationStepIds":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"operationId":{"type":"string"},"order":{"type":"number"},"parentMaterialId":{"type":"string"},"quantity":{"type":"number"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":"string"},"storageUnitIds":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"unitCost":{"type":"number"},"unitOfMeasureCode":{"type":"string"},"version":{"type":"number"}},"required":["description","externalId","isPickDescendant","isRoot","itemId","itemReadableId","itemTrackingType","itemType","kit","makeMethodId","materialMakeMethodId","methodMaterialId","methodOperationStepIds","methodType","operationId","order","parentMaterialId","quantity","replenishmentSystem","revision","storageUnitIds","unitCost","unitOfMeasureCode","version"]},"children":{"type":"array","items":{"type":"object"}}},"required":["id","data","children"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMethodTreeArray":{"post":{"operationId":"items.getMethodTreeArray","summary":"get method tree array","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"makeMethodId":{"type":"string"}},"required":["makeMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"isPickDescendant":{"type":"boolean"},"isRoot":{"type":"boolean"},"itemId":{"type":"string"},"itemReadableId":{"type":"string"},"itemTrackingType":{"type":"string"},"itemType":{"type":"string"},"kit":{"type":"boolean"},"makeMethodId":{"type":"string"},"materialMakeMethodId":{"type":"string"},"methodMaterialId":{"type":"string"},"methodOperationStepIds":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"operationId":{"type":"string"},"order":{"type":"number"},"parentMaterialId":{"type":"string"},"quantity":{"type":"number"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":"string"},"storageUnitIds":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"unitCost":{"type":"number"},"unitOfMeasureCode":{"type":"string"},"version":{"type":"number"}},"required":["description","externalId","isPickDescendant","isRoot","itemId","itemReadableId","itemTrackingType","itemType","kit","makeMethodId","materialMakeMethodId","methodMaterialId","methodOperationStepIds","methodType","operationId","order","parentMaterialId","quantity","replenishmentSystem","revision","storageUnitIds","unitCost","unitOfMeasureCode","version"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getBomItemAttributes":{"post":{"operationId":"items.getBomItemAttributes","summary":"get bom item attributes","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"type":"array","items":{"type":"string"}}},"required":["itemIds"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/items/getOpenJobMaterials":{"post":{"operationId":"items.getOpenJobMaterials","summary":"get open job materials","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"parentMaterialId":{"type":["string","null"]},"jobMakeMethodId":{"type":["string","null"]},"jobId":{"type":["string","null"]},"quantity":{"type":["number","null"]},"quantityPerParent":{"type":["number","null"]},"documentReadableId":{"type":["string","null"]},"documentId":{"type":["string","null"]},"dueDate":{"type":["string","null"]}},"required":["id","parentMaterialId","jobMakeMethodId","jobId","quantity","quantityPerParent","documentReadableId","documentId","dueDate"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getOpenProductionOrders":{"post":{"operationId":"items.getOpenProductionOrders","summary":"get open production orders","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"quantity":{"type":["number","null"]},"documentReadableId":{"type":["string","null"]},"documentId":{"type":["string","null"]},"dueDate":{"type":["string","null"]}},"required":["id","quantity","documentReadableId","documentId","dueDate"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getOpenPurchaseOrderLines":{"post":{"operationId":"items.getOpenPurchaseOrderLines","summary":"get open purchase order lines","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"quantity":{"type":["number","null"]},"dueDate":{"type":["string","null"]},"documentReadableId":{"type":["string","null"]},"documentId":{"type":["string","null"]}},"required":["id","quantity","dueDate","documentReadableId","documentId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getOpenSalesOrderLines":{"post":{"operationId":"items.getOpenSalesOrderLines","summary":"get open sales order lines","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"quantity":{"type":["number","null"]},"dueDate":{"type":["string","null"]},"documentReadableId":{"type":["string","null"]},"documentId":{"type":["string","null"]}},"required":["id","quantity","dueDate","documentReadableId","documentId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getPart":{"post":{"operationId":"items.getPart","summary":"get part","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"assignee":{"type":"string"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultMethodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":"string"},"id":{"type":"string"},"itemPostingGroupId":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"modelId":{"type":"string"},"modelName":{"type":"string"},"modelPath":{"type":"string"},"modelSize":{"type":"number"},"mpn":{"type":"string"},"name":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"readableId":{"type":"string"},"readableIdWithRevision":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":"string"},"revisions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"sourcingType":{"type":"string","enum":["Specified","Drop Ship","Ship from Inventory"]},"tags":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"unitOfMeasure":{"type":"string"},"unitOfMeasureCode":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"}},"required":["active","assignee","companyId","createdAt","createdBy","customFields","defaultMethodType","description","id","itemPostingGroupId","itemTrackingType","modelId","modelName","modelPath","modelSize","mpn","name","notes","readableId","readableIdWithRevision","replenishmentSystem","revision","revisions","sourcingType","tags","thumbnailPath","unitOfMeasure","unitOfMeasureCode","updatedAt","updatedBy"]}}}}}}},"/items/getParts":{"post":{"operationId":"items.getParts","summary":"get parts","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"supplierId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"defaultMethodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":["string","null"]},"itemTrackingType":{"type":["string","null"],"enum":["Inventory","Non-Inventory","Serial","Batch"]},"name":{"type":["string","null"]},"replenishmentSystem":{"type":["string","null"],"enum":["Buy","Make","Buy and Make"]},"unitOfMeasureCode":{"type":["string","null"]},"revision":{"type":["string","null"]},"readableId":{"type":["string","null"]},"readableIdWithRevision":{"type":["string","null"]},"id":{"type":["string","null"]},"companyId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"supplierIds":{"type":["string","null"]},"revisions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"tags":{"type":["array","null"],"items":{"type":"string"}},"itemPostingGroupId":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"supersessionMode":{"type":["string","null"],"enum":["Consume First","Prefer New","Stock Only","No Stock"]},"mpn":{"type":["string","null"]},"suppliers":{"type":["array","null"],"items":{"type":"string"}}},"required":["active","defaultMethodType","description","itemTrackingType","name","replenishmentSystem","unitOfMeasureCode","revision","readableId","readableIdWithRevision","id","companyId","thumbnailPath","supplierIds","revisions","customFields","tags","itemPostingGroupId","createdBy","createdAt","updatedBy","updatedAt","supersessionMode","mpn","suppliers"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getItemMpnsList":{"post":{"operationId":"items.getItemMpnsList","summary":"get item mpns list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"mpn":{"type":"string"}},"required":["mpn"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getPartsList":{"post":{"operationId":"items.getPartsList","summary":"get parts list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"readableIdWithRevision":{"type":"string"}},"required":["id","name","readableIdWithRevision"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getPartUsedIn":{"post":{"operationId":"items.getPartUsedIn","summary":"get part used in","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"issues":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","documentReadableId","documentId"]}},"jobMaterials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","methodType","documentReadableId","documentId"]}},"jobs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["id","documentReadableId"]}},"maintenanceDispatchItems":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","documentReadableId","documentId"]}},"methodMaterials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"documentId":{"type":"string"},"version":{"type":"number"},"documentReadableId":{"type":["string","null"]},"documentParentId":{"type":"string"},"itemType":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]}},"required":["id","methodType","documentId","version","documentReadableId","documentParentId","itemType"]}},"purchaseOrderLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","documentReadableId","documentId"]}},"receiptLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","documentReadableId","documentId"]}},"quoteLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","methodType","documentReadableId","documentId"]}},"quoteMaterials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"documentParentId":{"type":"string"},"documentId":{"type":"string"},"documentReadableId":{"type":["string","null"]}},"required":["id","methodType","documentParentId","documentId","documentReadableId"]}},"salesOrderLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","methodType","documentReadableId","documentId"]}},"shipmentLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","documentReadableId","documentId"]}},"supplierQuotes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"documentId":{"type":"string"}},"required":["id","documentReadableId","documentId"]}},"assemblyInstructions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"},"version":{"type":"number"}},"required":["id","documentReadableId","version"]}},"inspections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["id","documentReadableId"]}},"jobMaterialUsage":{"type":"object","properties":{"byMaterialId":{"type":"object","additionalProperties":{"type":"number"}},"byJobId":{"type":"object","additionalProperties":{"type":"number"}}},"required":["byMaterialId","byJobId"]}},"required":["issues","jobMaterials","jobs","maintenanceDispatchItems","methodMaterials","purchaseOrderLines","receiptLines","quoteLines","quoteMaterials","salesOrderLines","shipmentLines","supplierQuotes","assemblyInstructions","inspections","jobMaterialUsage"]}}}}}}},"/items/getPickMethod":{"post":{"operationId":"items.getPickMethod","summary":"get pick method","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultStorageUnitId":{"type":["string","null"]},"itemId":{"type":"string"},"locationId":{"type":"string"},"sortMethod":{"type":"string","enum":["LIFO","FIFO","Default","FEFO"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","defaultStorageUnitId","itemId","locationId","sortMethod","updatedAt","updatedBy"]}}}}}}},"/items/getPickMethods":{"post":{"operationId":"items.getPickMethods","summary":"get pick methods","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultStorageUnitId":{"type":["string","null"]},"itemId":{"type":"string"},"locationId":{"type":"string"},"sortMethod":{"type":"string","enum":["LIFO","FIFO","Default","FEFO"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","defaultStorageUnitId","itemId","locationId","sortMethod","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getServices":{"post":{"operationId":"items.getServices","summary":"get services","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"group":{"type":["string","null"]},"supplierId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"defaultMethodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":["string","null"]},"name":{"type":["string","null"]},"replenishmentSystem":{"type":["string","null"],"enum":["Buy","Make","Buy and Make"]},"revision":{"type":["string","null"]},"readableIdWithRevision":{"type":["string","null"]},"id":{"type":["string","null"]},"companyId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"supplierIds":{"type":["string","null"]},"revisions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"tags":{"type":["array","null"],"items":{"type":"string"}},"itemPostingGroupId":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"suppliers":{"type":["array","null"],"items":{"type":"string"}}},"required":["active","defaultMethodType","description","name","replenishmentSystem","revision","readableIdWithRevision","id","companyId","thumbnailPath","supplierIds","revisions","customFields","tags","itemPostingGroupId","createdBy","createdAt","updatedBy","updatedAt","suppliers"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getService":{"post":{"operationId":"items.getService","summary":"get service","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"assignee":{"type":"string"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultMethodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":"string"},"id":{"type":"string"},"itemPostingGroupId":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"modelId":{"type":"string"},"modelName":{"type":"string"},"modelPath":{"type":"string"},"modelSize":{"type":"number"},"mpn":{"type":"string"},"name":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"readableId":{"type":"string"},"readableIdWithRevision":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":"string"},"revisions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"sourcingType":{"type":"string","enum":["Specified","Drop Ship","Ship from Inventory"]},"tags":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"unitOfMeasure":{"type":"string"},"unitOfMeasureCode":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"}},"required":["active","assignee","companyId","createdAt","createdBy","customFields","defaultMethodType","description","id","itemPostingGroupId","itemTrackingType","modelId","modelName","modelPath","modelSize","mpn","name","notes","readableId","readableIdWithRevision","replenishmentSystem","revision","revisions","sourcingType","tags","thumbnailPath","unitOfMeasure","unitOfMeasureCode","updatedAt","updatedBy"]}}}}}}},"/items/getServicesList":{"post":{"operationId":"items.getServicesList","summary":"get services list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"readableIdWithRevision":{"type":"string"}},"required":["id","name","readableIdWithRevision"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getSupplierParts":{"post":{"operationId":"items.getSupplierParts","summary":"get supplier parts","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"conversionFactor":{"type":"number"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"minimumOrderQuantity":{"type":["number","null"]},"orderMultiple":{"type":["number","null"]},"supplierId":{"type":"string"},"supplierPartId":{"type":["string","null"]},"supplierUnitOfMeasureCode":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","conversionFactor","createdAt","createdBy","customFields","id","itemId","minimumOrderQuantity","orderMultiple","supplierId","supplierPartId","supplierUnitOfMeasureCode","tags","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getTool":{"post":{"operationId":"items.getTool","summary":"get tool","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"assignee":{"type":"string"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultMethodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":"string"},"id":{"type":"string"},"itemPostingGroupId":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"modelId":{"type":"string"},"modelName":{"type":"string"},"modelPath":{"type":"string"},"modelSize":{"type":"number"},"mpn":{"type":"string"},"name":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"readableId":{"type":"string"},"readableIdWithRevision":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":"string"},"revisions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"sourcingType":{"type":"string","enum":["Specified","Drop Ship","Ship from Inventory"]},"tags":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"},"unitOfMeasure":{"type":"string"},"unitOfMeasureCode":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"}},"required":["active","assignee","companyId","createdAt","createdBy","customFields","defaultMethodType","description","id","itemPostingGroupId","itemTrackingType","modelId","modelName","modelPath","modelSize","mpn","name","notes","readableId","readableIdWithRevision","replenishmentSystem","revision","revisions","sourcingType","tags","thumbnailPath","unitOfMeasure","unitOfMeasureCode","updatedAt","updatedBy"]}}}}}}},"/items/getTools":{"post":{"operationId":"items.getTools","summary":"get tools","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"supplierId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"assignee":{"type":["string","null"]},"defaultMethodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":["string","null"]},"itemTrackingType":{"type":["string","null"],"enum":["Inventory","Non-Inventory","Serial","Batch"]},"name":{"type":["string","null"]},"replenishmentSystem":{"type":["string","null"],"enum":["Buy","Make","Buy and Make"]},"revision":{"type":["string","null"]},"readableIdWithRevision":{"type":["string","null"]},"id":{"type":["string","null"]},"companyId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"supplierIds":{"type":["string","null"]},"revisions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"tags":{"type":["array","null"],"items":{"type":"string"}},"itemPostingGroupId":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"supersessionMode":{"type":["string","null"],"enum":["Consume First","Prefer New","Stock Only","No Stock"]},"mpn":{"type":["string","null"]},"suppliers":{"type":["array","null"],"items":{"type":"string"}}},"required":["active","assignee","defaultMethodType","description","itemTrackingType","name","replenishmentSystem","revision","readableIdWithRevision","id","companyId","thumbnailPath","supplierIds","revisions","customFields","tags","itemPostingGroupId","createdBy","createdAt","updatedBy","updatedAt","supersessionMode","mpn","suppliers"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getToolsList":{"post":{"operationId":"items.getToolsList","summary":"get tools list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"readableIdWithRevision":{"type":"string"}},"required":["id","name","readableIdWithRevision"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getUnitOfMeasure":{"post":{"operationId":"items.getUnitOfMeasure","summary":"get unit of measure","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"code":{"type":"string"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","code","companyId","createdAt","createdBy","customFields","id","name","tags","updatedAt","updatedBy"]}}}}}}},"/items/getUnitOfMeasureUsage":{"post":{"operationId":"items.getUnitOfMeasureUsage","summary":"which tables still reference a unit of measure, and how many rows each; empty means safe to delete (or id not visible to the caller)","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"count":{"type":"number"},"tableName":{"type":"string"}},"required":["count","tableName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getUnitOfMeasures":{"post":{"operationId":"items.getUnitOfMeasures","summary":"get unit of measures","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"code":{"type":"string"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","code","companyId","createdAt","createdBy","customFields","id","name","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getUnitOfMeasuresList":{"post":{"operationId":"items.getUnitOfMeasuresList","summary":"get unit of measures list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"}},"required":["name","code"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/updateConfigurationParameterGroupOrder":{"post":{"operationId":"items.updateConfigurationParameterGroupOrder","summary":"update configuration parameter group order","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"sortOrder":{"type":"number","minimum":0}},"required":["id","sortOrder"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/updateDefaultRevision":{"post":{"operationId":"items.updateDefaultRevision","summary":"update default revision","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"readableId":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"companyId":{"type":["string","null"]}},"required":["id","readableId","readableIdWithRevision","type","companyId"]}}}}}}},"/items/updateConfigurationParameterOrder":{"post":{"operationId":"items.updateConfigurationParameterOrder","summary":"update configuration parameter order","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"sortOrder":{"type":"number","minimum":0},"configurationParameterGroupId":{"type":["string","null"]}},"required":["id","sortOrder"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/updateItemCost":{"post":{"operationId":"items.updateItemCost","summary":"update item cost","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"cost":{"type":"object","properties":{"unitCost":{"type":"number"}},"required":["unitCost"]}},"required":["itemId","cost"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/updateMaterialOrder":{"post":{"operationId":"items.updateMaterialOrder","summary":"update material order","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"order":{"type":"number"}},"required":["id","order"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/updateOperationOrder":{"post":{"operationId":"items.updateOperationOrder","summary":"update operation order","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"order":{"type":"number"}},"required":["id","order"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/updateRevision":{"post":{"operationId":"items.updateRevision","summary":"update revision","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"string"}},"required":["id","revision"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/upsertConfigurationParameter":{"post":{"operationId":"items.upsertConfigurationParameter","summary":"upsert configuration parameter","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"itemId":{"type":"string","minLength":1},"key":{"type":"string"},"label":{"type":"string","minLength":1},"dataType":{"type":"string","enum":["text","numeric","boolean","list","material","date"]},"listOptions":{"type":"array","items":{"type":"string","minLength":1}},"configurationParameterGroupId":{"type":"string"},"materialFormFilterId":{"type":"string"}},"required":["itemId","label","dataType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/upsertConfigurationParameterGroup":{"post":{"operationId":"items.upsertConfigurationParameterGroup","summary":"upsert configuration parameter group","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/upsertConfigurationRule":{"post":{"operationId":"items.upsertConfigurationRule","summary":"upsert configuration rule","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"field":{"type":"string","minLength":1},"code":{"type":"string","minLength":1},"itemId":{"type":"string"}},"required":["field","code","itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/getRecipeProcessIdsForItem":{"post":{"operationId":"items.getRecipeProcessIdsForItem","summary":"return the distinct processIds referenced by methodOperation rows on the item's active makeMethod","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"string"}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getItemShelfLife":{"post":{"operationId":"items.getItemShelfLife","summary":"fetch the shelf-life policy for an item","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["Fixed Duration","Calculated","Set on Receipt"]},"days":{"type":["number","null"]},"triggerProcessId":{"type":["string","null"]},"triggerTiming":{"type":"string","enum":["Before","After"]},"calculateFromBom":{"type":"boolean"}},"required":["mode","days","triggerProcessId","triggerTiming","calculateFromBom"]}}}}}}},"/items/getBomHasShelfLifeManagedInput":{"post":{"operationId":"items.getBomHasShelfLifeManagedInput","summary":"returns true when the item's active make-method has at least one BOM input with a managed shelf-life policy","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/items/upsertPickMethodWithShelfLife":{"post":{"operationId":"items.upsertPickMethodWithShelfLife","summary":"atomic counterpart to {@link upsertPickMethod} + {@link upsertItemShelfLife}","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"},"defaultStorageUnitId":{"type":["string","null"]},"sortMethod":{"type":"string","enum":["Default","FEFO","FIFO","LIFO"]},"customFields":{},"shelfLife":{"type":"object","properties":{"mode":{"type":"string","enum":["NotManaged","Fixed Duration","Calculated","Set on Receipt"]},"days":{"type":"number"},"triggerProcessId":{"type":"string"},"triggerTiming":{"type":"string","enum":["Before","After"]},"calculateFromBom":{"type":"boolean"}}}},"required":["itemId","locationId","shelfLife"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/items/cascadeItemTrackingType":{"post":{"operationId":"items.cascadeItemTrackingType","summary":"cascades a change to item.itemTrackingType onto the snapshot columns `requiresSerialTracking` and `requiresBatchTracking` on child rows that belong to OPEN par…","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"type":"array","items":{"type":"string"}},"newType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]}},"required":["itemIds","newType"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/items/updateItemMethodAndSourcing":{"post":{"operationId":"items.updateItemMethodAndSourcing","summary":"updates item-level method/sourcing columns and mirrors the change down to every methodMaterial that references the item — in a single transaction, so the item…","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"type":"array","items":{"type":"string"}},"itemUpdate":{"type":"object","properties":{"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"defaultMethodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"sourcingType":{"type":"string","enum":["Specified","Drop Ship","Ship from Inventory"]}}},"cascade":{"type":"object","properties":{"sourcingType":{"type":"string","enum":["Specified","Drop Ship","Ship from Inventory"]},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]}}}},"required":["itemIds","itemUpdate","cascade"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/items/upsertConsumable":{"post":{"operationId":"items.upsertConsumable","summary":"creates a consumable (item row and consumable row) or updates one; on update `id` is the item id (uuid) or the consumable's readable id and the write is a full…","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":255,"description":"Updates the existing record with this key; creates one when there is none."},"readableId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string"},"mpn":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"defaultMethodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"postingGroupId":{"type":"string"},"unitOfMeasureCode":{"type":"string","minLength":1},"unitCost":{"type":"number","minimum":0},"defaultStorageUnitId":{"type":"string"},"shelfLifeMode":{"type":"string","enum":["NotManaged","Fixed Duration","Calculated","Set on Receipt"]},"shelfLifeDays":{"type":"number","exclusiveMinimum":0},"shelfLifeTriggerProcessId":{"type":"string"},"shelfLifeTriggerTiming":{"type":"string","enum":["Before","After"]},"shelfLifeCalculateFromBom":{"type":"boolean"},"customFields":{}},"required":["id","name","replenishmentSystem","defaultMethodType","itemTrackingType","unitOfMeasureCode"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/items/matchItemIdByText":{"post":{"operationId":"items.matchItemIdByText","summary":"best-effort match of extracted text to an existing item","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"candidates":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"required":["candidates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["string","null"]}}}}}}},"/items/resolveItemIdFromExtractedText":{"post":{"operationId":"items.resolveItemIdFromExtractedText","summary":"resolve extracted document line text to an item id: first through the party's part mapping (customerPartToItem / supplierPart), then by exact readableId/name m…","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"party":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["customer"]},"id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","id"]},{"type":"object","properties":{"type":{"type":"string","enum":["supplier"]},"id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","id"]}]},"candidates":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"required":["party","candidates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["string","null"]}}}}}}},"/items/upsertPart":{"post":{"operationId":"items.upsertPart","summary":"creates a part (item row and part row) or updates one; on update `id` is the item id (uuid) or the part's readable id and the write is a full replace, so omitt…","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":255,"description":"Updates the existing record with this key; creates one when there is none."},"readableId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string"},"mpn":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"defaultMethodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"postingGroupId":{"type":"string"},"unitOfMeasureCode":{"type":"string","minLength":1},"unitCost":{"type":"number","minimum":0},"defaultStorageUnitId":{"type":"string"},"shelfLifeMode":{"type":"string","enum":["NotManaged","Fixed Duration","Calculated","Set on Receipt"]},"shelfLifeDays":{"type":"number","exclusiveMinimum":0},"shelfLifeTriggerProcessId":{"type":"string"},"shelfLifeTriggerTiming":{"type":"string","enum":["Before","After"]},"shelfLifeCalculateFromBom":{"type":"boolean"},"revision":{"type":"string","minLength":1},"modelUploadId":{"type":"string"},"lotSize":{"type":"number","minimum":0},"customFields":{}},"required":["id","name","replenishmentSystem","defaultMethodType","itemTrackingType","unitOfMeasureCode","revision"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/items/updateItem":{"post":{"operationId":"items.updateItem","summary":"update item","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":255},"readableId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string"},"mpn":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"defaultMethodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"postingGroupId":{"type":"string"},"unitOfMeasureCode":{"type":"string","minLength":1},"unitCost":{"type":"number","minimum":0},"defaultStorageUnitId":{"type":"string"},"shelfLifeMode":{"type":"string","enum":["NotManaged","Fixed Duration","Calculated","Set on Receipt"]},"shelfLifeDays":{"type":"number","exclusiveMinimum":0},"shelfLifeTriggerProcessId":{"type":"string"},"shelfLifeTriggerTiming":{"type":"string","enum":["Before","After"]},"shelfLifeCalculateFromBom":{"type":"boolean"},"type":{"type":"string","enum":["Part","Material","Tool","Service","Consumable","Fixture"]}},"required":["id","name","replenishmentSystem","defaultMethodType","itemTrackingType","unitOfMeasureCode","type"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/upsertItemCost":{"post":{"operationId":"items.upsertItemCost","summary":"upsert item cost","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"itemPostingGroupId":{"type":"string"},"costingMethod":{"type":"string","enum":["Standard","Average","FIFO","LIFO"]},"unitCost":{"type":"number","minimum":0},"customFields":{}},"required":["itemId","costingMethod","unitCost"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/upsertPickMethod":{"post":{"operationId":"items.upsertPickMethod","summary":"upsert pick method","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1,"description":"Updates the existing record with this key; creates one when there is none."},"locationId":{"type":"string","minLength":1,"description":"Updates the existing record with this key; creates one when there is none."},"defaultStorageUnitId":{"type":"string"},"sortMethod":{"type":"string","enum":["Default","FEFO","FIFO","LIFO"]},"customFields":{}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/upsertItemManufacturing":{"post":{"operationId":"items.upsertItemManufacturing","summary":"upsert item manufacturing","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"requiresConfiguration":{"type":"boolean"},"lotSize":{"type":"number","minimum":0},"scrapPercentage":{"type":"number","minimum":0},"leadTime":{"type":"number","minimum":0},"customFields":{}},"required":["itemId","lotSize","scrapPercentage","leadTime"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/upsertItemPlanning":{"post":{"operationId":"items.upsertItemPlanning","summary":"upsert item planning","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1,"description":"Updates the existing record with this key; creates one when there is none."},"locationId":{"type":"string","minLength":1,"description":"Updates the existing record with this key; creates one when there is none."},"reorderingPolicy":{"type":"string","enum":["Manual Reorder","Demand-Based Reorder","Fixed Reorder Quantity","Maximum Quantity"]},"demandAccumulationPeriod":{"type":"number","minimum":1},"demandAccumulationSafetyStock":{"type":"number","minimum":0},"reorderPoint":{"type":"number","minimum":0},"reorderQuantity":{"type":"number","minimum":0},"maximumInventoryQuantity":{"type":"number","minimum":0},"minimumOrderQuantity":{"type":"number","minimum":0},"maximumOrderQuantity":{"type":"number","minimum":0},"orderMultiple":{"type":"number","minimum":1},"customFields":{}},"required":["itemId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/upsertItemPurchasing":{"post":{"operationId":"items.upsertItemPurchasing","summary":"upsert item purchasing","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"preferredSupplierId":{"type":"string"},"conversionFactor":{"type":"number","minimum":0},"leadTime":{"type":"number","minimum":0},"purchasingUnitOfMeasureCode":{"type":"string"}},"required":["itemId","conversionFactor","leadTime"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/upsertItemSupersession":{"post":{"operationId":"items.upsertItemSupersession","summary":"upsert item supersession","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"supersessionMode":{"type":"string","enum":["Consume First","Prefer New","Stock Only","No Stock"]},"successorItemId":{"type":"string"},"discontinuationDate":{"type":"string"},"successorEffectivityDate":{"type":"string"},"conversionFactor":{"type":"number","exclusiveMinimum":0},"locationId":{"type":"string"},"minimumReserveQuantity":{"type":"number","minimum":0}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/upsertItemPostingGroup":{"post":{"operationId":"items.upsertItemPostingGroup","summary":"upsert item posting group","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertSupplierPart":{"post":{"operationId":"items.upsertSupplierPart","summary":"upsert supplier part","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"supplierId":{"type":"string","minLength":1},"supplierPartId":{"type":"string"},"supplierUnitOfMeasureCode":{"type":"string"},"minimumOrderQuantity":{"type":"number","minimum":0},"orderMultiple":{"type":"number","minimum":1},"conversionFactor":{"type":"number","minimum":0},"unitPrice":{"type":"number","minimum":0},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["itemId","supplierId","minimumOrderQuantity","conversionFactor"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertItemCustomerPart":{"post":{"operationId":"items.upsertItemCustomerPart","summary":"upsert item customer part","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"customerId":{"type":"string","minLength":1},"customerPartId":{"type":"string"},"customerPartRevision":{"type":"string"},"id":{"type":"string"}},"required":["itemId","customerId","customerPartId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertItemUnitSalePrice":{"post":{"operationId":"items.upsertItemUnitSalePrice","summary":"upsert item unit sale price","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"unitSalePrice":{"type":"number","minimum":0},"customFields":{}},"required":["itemId","unitSalePrice"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/upsertMakeMethodVersion":{"post":{"operationId":"items.upsertMakeMethodVersion","summary":"upsert make method version","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"copyFromId":{"type":"string","minLength":1},"activeVersionId":{"type":"string"},"version":{"type":"number","minimum":0}},"required":["copyFromId","version"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"itemId":{"type":"string"},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]}},"required":["id","itemId","type"]}}}}}}},"/items/upsertMethodMaterial":{"post":{"operationId":"items.upsertMethodMaterial","summary":"upsert method material","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Updates the existing record with this key; creates one when there is none."},"makeMethodId":{"type":"string","minLength":1},"order":{"type":"number","minimum":0},"itemType":{"type":"string","enum":["Part","Material","Consumable"]},"kit":{"type":"string","enum":["true","false"]},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"sourcingType":{"type":"string","enum":["Specified","Drop Ship","Ship from Inventory"]},"itemId":{"type":"string"},"methodOperationId":{"type":"string"},"quantity":{"type":"number","minimum":0},"unitOfMeasureCode":{"type":"string","minLength":1},"storageUnitIds":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},"customFields":{}},"required":["id","makeMethodId","order","itemType","methodType","sourcingType","quantity","unitOfMeasureCode"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertMethodOperation":{"post":{"operationId":"items.upsertMethodOperation","summary":"upsert method operation","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"makeMethodId":{"type":"string","minLength":0},"order":{"type":"number","minimum":0},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationType":{"type":"string","enum":["Process","Assembly","Inspection","Outside Processing"]},"processId":{"type":"string","minLength":1},"workCenterId":{"type":"string"},"procedureId":{"type":"string"},"assemblyInstructionId":{"type":"string"},"inspectionDocumentId":{"type":"string"},"description":{"type":"string","minLength":0},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"setupTime":{"type":"number","minimum":0},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"laborTime":{"type":"number","minimum":0},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineTime":{"type":"number","minimum":0},"operationSupplierProcessId":{"type":"string"},"operationMinimumCost":{"type":"number","minimum":0},"operationUnitCost":{"type":"number","minimum":0},"operationLeadTime":{"type":"number","minimum":0},"customFields":{},"id":{"type":"string","description":"Updates the existing record with this key; creates one when there is none."}},"required":["makeMethodId","order","operationOrder","operationType","processId","description"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertMethodOperationStep":{"post":{"operationId":"items.upsertMethodOperationStep","summary":"upsert method operation step","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"type":{"type":"string","enum":["Task","Value","Measurement","Checkbox","Timestamp","Person","List","File","Inspection"]},"unitOfMeasureCode":{"type":"string"},"minValue":{"type":["number","null"]},"maxValue":{"type":["number","null"]},"listValues":{"type":"array","items":{"type":"string"}},"sortOrder":{"type":"number","minimum":0},"id":{"type":"string","description":"Send to update that record; omit to create a new one."},"updatedAt":{"type":"string"}},"required":["operationId","name","description","type"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/duplicateMethodOperationStep":{"post":{"operationId":"items.duplicateMethodOperationStep","summary":"duplicate method operation step","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertMethodOperationStepSlide":{"post":{"operationId":"items.upsertMethodOperationStepSlide","summary":"upsert method operation step slide","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stepId":{"type":"string","minLength":1},"imagePath":{"type":"string"},"modelUploadId":{"type":"string"},"caption":{"type":"string"},"sortOrder":{"type":"number","minimum":0},"size":{"type":"string","enum":["small","medium","large"]},"annotations":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."},"updatedAt":{"type":"string"}},"required":["stepId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertMethodOperationParameter":{"post":{"operationId":"items.upsertMethodOperationParameter","summary":"upsert method operation parameter","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","minLength":1},"key":{"type":"string","minLength":1},"value":{"type":"string","minLength":1},"id":{"type":"string","description":"Send to update that record; omit to create a new one."},"updatedAt":{"type":"string"}},"required":["operationId","key","value"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertMethodOperationTool":{"post":{"operationId":"items.upsertMethodOperationTool","summary":"upsert method operation tool","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","minLength":1},"toolId":{"type":"string","minLength":1},"quantity":{"type":"number","minimum":0.000001},"id":{"type":"string","description":"Send to update that record; omit to create a new one."},"updatedAt":{"type":"string"}},"required":["operationId","toolId","quantity"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/setMethodMaterialStepLink":{"post":{"operationId":"items.setMethodMaterialStepLink","summary":"set method material step link","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"methodMaterialId":{"type":"string"},"methodOperationStepId":{"type":"string"},"linked":{"type":"boolean"},"quantity":{"type":["number","null"]}},"required":["methodMaterialId","methodOperationStepId","linked"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/setMethodOperationToolStepLink":{"post":{"operationId":"items.setMethodOperationToolStepLink","summary":"set method operation tool step link","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string"},"toolId":{"type":"string"},"methodOperationStepId":{"type":"string"},"linked":{"type":"boolean"}},"required":["operationId","toolId","methodOperationStepId","linked"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/upsertMaterial":{"post":{"operationId":"items.upsertMaterial","summary":"creates a material or updates one by item id or readable id; an update keeps any optional field it leaves out, and `sizes` adds a revision per new size","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":255,"description":"Updates the existing record with this key; creates one when there is none."},"readableId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string"},"mpn":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"defaultMethodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"postingGroupId":{"type":"string"},"unitOfMeasureCode":{"type":"string","minLength":1},"unitCost":{"type":"number","minimum":0},"defaultStorageUnitId":{"type":"string"},"shelfLifeMode":{"type":"string","enum":["NotManaged","Fixed Duration","Calculated","Set on Receipt"]},"shelfLifeDays":{"type":"number","exclusiveMinimum":0},"shelfLifeTriggerProcessId":{"type":"string"},"shelfLifeTriggerTiming":{"type":"string","enum":["Before","After"]},"shelfLifeCalculateFromBom":{"type":"boolean"},"materialSubstanceId":{"type":"string"},"materialFormId":{"type":"string"},"materialTypeId":{"type":"string"},"finishId":{"type":"string"},"gradeId":{"type":"string"},"dimensionId":{"type":"string"},"sizes":{"type":"array","items":{"type":"string"}},"customFields":{}},"required":["id","name","replenishmentSystem","defaultMethodType","itemTrackingType","unitOfMeasureCode"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/items/updateMaterialProperties":{"post":{"operationId":"items.updateMaterialProperties","summary":"changes a material's substance, shape, type, finish, grade or dimension by item id or readable id, as the item properties panel does","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"materialSubstanceId":{"type":["string","null"]},"materialFormId":{"type":["string","null"]},"materialTypeId":{"type":["string","null"]},"finishId":{"type":["string","null"]},"gradeId":{"type":["string","null"]},"dimensionId":{"type":["string","null"]}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"dimensionId":{"type":["string","null"]},"finishId":{"type":["string","null"]},"gradeId":{"type":["string","null"]},"materialFormId":{"type":["string","null"]},"materialSubstanceId":{"type":["string","null"]},"materialTypeId":{"type":["string","null"]},"active":{"type":["boolean","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultMethodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":["string","null"]},"dimensions":{"type":["string","null"]},"externalId":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"finish":{"type":["string","null"]},"grade":{"type":["string","null"]},"id":{"type":["string","null"]},"itemPostingGroupId":{"type":["string","null"]},"itemTrackingType":{"type":["string","null"],"enum":["Inventory","Non-Inventory","Serial","Batch"]},"materialForm":{"type":["string","null"]},"materialSubstance":{"type":["string","null"]},"materialType":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"mpn":{"type":["string","null"]},"name":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"readableId":{"type":["string","null"]},"readableIdWithRevision":{"type":["string","null"]},"replenishmentSystem":{"type":["string","null"],"enum":["Buy","Make","Buy and Make"]},"revision":{"type":["string","null"]},"revisions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"supersessionMode":{"type":["string","null"],"enum":["Consume First","Prefer New","Stock Only","No Stock"]},"supplierIds":{"type":["string","null"]},"suppliers":{"type":["array","null"],"items":{"type":"string"}},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"unitOfMeasure":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["dimensionId","finishId","gradeId","materialFormId","materialSubstanceId","materialTypeId","active","assignee","companyId","createdAt","createdBy","customFields","defaultMethodType","description","dimensions","externalId","finish","grade","id","itemPostingGroupId","itemTrackingType","materialForm","materialSubstance","materialType","modelName","modelPath","modelSize","modelUploadId","mpn","name","notes","readableId","readableIdWithRevision","replenishmentSystem","revision","revisions","supersessionMode","supplierIds","suppliers","tags","thumbnailPath","unitOfMeasure","unitOfMeasureCode","updatedAt","updatedBy"]}}}}}}},"/items/upsertMaterialDimension":{"post":{"operationId":"items.upsertMaterialDimension","summary":"creates a dimension (a named size) for a material shape, or updates the one whose `id` is sent; a new dimension's id is generated","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"materialFormId":{"type":"string","minLength":1},"isMetric":{"type":"boolean"},"id":{"type":"string"}},"required":["name","materialFormId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertMaterialFinish":{"post":{"operationId":"items.upsertMaterialFinish","summary":"creates a finish for a material substance, or updates the one whose `id` is sent; a new finish's id is generated","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materialSubstanceId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":255},"id":{"type":"string"}},"required":["materialSubstanceId","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertMaterialForm":{"post":{"operationId":"items.upsertMaterialForm","summary":"upsert material form","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"code":{"type":"string","minLength":1,"maxLength":10},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","code"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertMaterialGrade":{"post":{"operationId":"items.upsertMaterialGrade","summary":"creates a grade for a material substance, or updates the one whose `id` is sent; a new grade's id is generated","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materialSubstanceId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":255},"id":{"type":"string"}},"required":["materialSubstanceId","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/deleteMaterialType":{"post":{"operationId":"items.deleteMaterialType","summary":"delete material type","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/getMaterialTypes":{"post":{"operationId":"items.getMaterialTypes","summary":"get material types","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"formName":{"type":["string","null"]},"id":{"type":["string","null"]},"materialFormId":{"type":["string","null"]},"materialSubstanceId":{"type":["string","null"]},"name":{"type":["string","null"]},"substanceName":{"type":["string","null"]}},"required":["companyId","formName","id","materialFormId","materialSubstanceId","name","substanceName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getMaterialType":{"post":{"operationId":"items.getMaterialType","summary":"get material type","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"companyId":{"type":["string","null"]},"id":{"type":"string"},"materialFormId":{"type":"string"},"materialSubstanceId":{"type":"string"},"name":{"type":"string"}},"required":["code","companyId","id","materialFormId","materialSubstanceId","name"]}}}}}}},"/items/getMaterialTypeList":{"post":{"operationId":"items.getMaterialTypeList","summary":"get material type list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materialSubstanceId":{"type":"string"},"materialFormId":{"type":"string"}},"required":["materialSubstanceId","materialFormId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"companyId":{"type":["string","null"]},"id":{"type":"string"},"materialFormId":{"type":"string"},"materialSubstanceId":{"type":"string"},"name":{"type":"string"}},"required":["code","companyId","id","materialFormId","materialSubstanceId","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/upsertMaterialType":{"post":{"operationId":"items.upsertMaterialType","summary":"creates a material type for a substance and shape pair, or updates the one whose `id` is sent; a new type's id is generated","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materialSubstanceId":{"type":"string","minLength":1},"materialFormId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":255},"code":{"type":"string","minLength":1,"maxLength":10},"id":{"type":"string"}},"required":["materialSubstanceId","materialFormId","name","code"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertMaterialSubstance":{"post":{"operationId":"items.upsertMaterialSubstance","summary":"upsert material substance","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"code":{"type":"string","minLength":1,"maxLength":10},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","code"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertService":{"post":{"operationId":"items.upsertService","summary":"creates a service (item row and service row) or updates one; on update `id` is the item id (uuid) or the service's readable id and the write is a full replace,…","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":255,"description":"Updates the existing record with this key; creates one when there is none."},"readableId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string"},"mpn":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make"]},"defaultMethodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"itemTrackingType":{"type":"string","const":"Non-Inventory"},"postingGroupId":{"type":"string"},"unitOfMeasureCode":{"type":"string","minLength":1},"unitCost":{"type":"number","minimum":0},"defaultStorageUnitId":{"type":"string"},"shelfLifeMode":{"type":"string","enum":["NotManaged","Fixed Duration","Calculated","Set on Receipt"]},"shelfLifeDays":{"type":"number","exclusiveMinimum":0},"shelfLifeTriggerProcessId":{"type":"string"},"shelfLifeTriggerTiming":{"type":"string","enum":["Before","After"]},"shelfLifeCalculateFromBom":{"type":"boolean"},"revision":{"type":"string","minLength":1},"customFields":{}},"required":["id","name","replenishmentSystem","defaultMethodType","itemTrackingType","unitOfMeasureCode","revision"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"active":{"type":["boolean","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultMethodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"description":{"type":["string","null"]},"externalId":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"itemPostingGroupId":{"type":["string","null"]},"itemTrackingType":{"type":["string","null"],"enum":["Inventory","Non-Inventory","Serial","Batch"]},"name":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"readableId":{"type":["string","null"]},"readableIdWithRevision":{"type":["string","null"]},"replenishmentSystem":{"type":["string","null"],"enum":["Buy","Make","Buy and Make"]},"revision":{"type":["string","null"]},"revisions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"supplierIds":{"type":["string","null"]},"suppliers":{"type":["array","null"],"items":{"type":"string"}},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"unitOfMeasure":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","assignee","companyId","createdAt","createdBy","customFields","defaultMethodType","description","externalId","id","itemPostingGroupId","itemTrackingType","name","notes","readableId","readableIdWithRevision","replenishmentSystem","revision","revisions","supplierIds","suppliers","tags","thumbnailPath","unitOfMeasure","unitOfMeasureCode","updatedAt","updatedBy"]},{"type":"object","properties":{"id":{"type":"string"},"readableId":{"type":"string"}},"required":["id","readableId"]},{"type":"null"}]}}}}}}},"/items/upsertUnitOfMeasure":{"post":{"operationId":"items.upsertUnitOfMeasure","summary":"upsert unit of measure","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":10},"name":{"type":"string","minLength":1,"maxLength":50},"customFields":{},"id":{"type":"string"}},"required":["code","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/upsertTool":{"post":{"operationId":"items.upsertTool","summary":"creates a tool (item row and tool row) or updates one; on update `id` is the item id (uuid) or the tool's readable id and the write is a full replace, so omitt…","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":255,"description":"Updates the existing record with this key; creates one when there is none."},"readableId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string"},"mpn":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"defaultMethodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"postingGroupId":{"type":"string"},"unitOfMeasureCode":{"type":"string","minLength":1},"unitCost":{"type":"number","minimum":0},"defaultStorageUnitId":{"type":"string"},"shelfLifeMode":{"type":"string","enum":["NotManaged","Fixed Duration","Calculated","Set on Receipt"]},"shelfLifeDays":{"type":"number","exclusiveMinimum":0},"shelfLifeTriggerProcessId":{"type":"string"},"shelfLifeTriggerTiming":{"type":"string","enum":["Before","After"]},"shelfLifeCalculateFromBom":{"type":"boolean"},"revision":{"type":"string","minLength":1},"modelUploadId":{"type":"string"},"lotSize":{"type":"number","minimum":0},"customFields":{}},"required":["id","name","replenishmentSystem","defaultMethodType","itemTrackingType","unitOfMeasureCode","revision"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/items/getSupplierPriceBreaksForItems":{"post":{"operationId":"items.getSupplierPriceBreaksForItems","summary":"batch pre-fetch supplier price breaks for multiple items","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"type":"array","items":{"type":"string"}}},"required":["itemIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"priceBreaks":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"number"},"unitPrice":{"type":"number"}},"required":["quantity","unitPrice"]}},"fallbackUnitPrice":{"type":["number","null"]}},"required":["priceBreaks","fallbackUnitPrice"]}}}}}}}},"/items/lookupBuyPrice":{"post":{"operationId":"items.lookupBuyPrice","summary":"async price lookup across ALL suppliers for an item","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"qty":{"type":"number"},"fallbackCost":{"type":"number"}},"required":["itemId","qty","fallbackCost"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/items/getSupplierPartPriceBreaks":{"post":{"operationId":"items.getSupplierPartPriceBreaks","summary":"fetch price breaks array for a specific supplier part","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierPartId":{"type":"string"}},"required":["supplierPartId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"number"},"unitPrice":{"type":"number"}},"required":["quantity","unitPrice"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getChangeNotice":{"post":{"operationId":"items.getChangeNotice","summary":"get change notice","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changeNoticeId":{"type":"string"}},"required":["changeNoticeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"approvalRequirements":{"type":["array","null"],"items":{"type":"string"}},"assignee":{"type":["string","null"]},"changeOrderId":{"type":"string"},"changeOrderTypeId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"dueDate":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"nonConformanceId":{"type":["string","null"]},"openDate":{"type":"string"},"priority":{"type":["string","null"],"enum":["Low","Medium","High","Critical"]},"reasonForChange":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"requiredActionIds":{"type":["array","null"],"items":{"type":"string"}},"sourceId":{"type":["string","null"]},"sourceType":{"type":["string","null"]},"status":{"type":"string","enum":["Cancelled","Draft","Done","Start","Engineering Complete","Implementation"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"type":{"type":"string","enum":["Engineering","Manufacturing","Documentation"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["approvalRequirements","assignee","changeOrderId","changeOrderTypeId","companyId","createdAt","createdBy","customFields","description","dueDate","id","name","nonConformanceId","openDate","priority","reasonForChange","requiredActionIds","sourceId","sourceType","status","tags","type","updatedAt","updatedBy"]}}}}}}},"/items/getChangeNotices":{"post":{"operationId":"items.getChangeNotices","summary":"get change notices","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"affectedItems":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"approvalRequirements":{"type":["array","null"],"items":{"type":"string"}},"assignee":{"type":["string","null"]},"changeOrderId":{"type":["string","null"]},"changeOrderTypeId":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"dueDate":{"type":["string","null"]},"id":{"type":["string","null"]},"itemIds":{"type":["array","null"],"items":{"type":"string"}},"name":{"type":["string","null"]},"nonConformanceId":{"type":["string","null"]},"openDate":{"type":["string","null"]},"priority":{"type":["string","null"],"enum":["Low","Medium","High","Critical"]},"reasonForChange":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"requiredActionIds":{"type":["array","null"],"items":{"type":"string"}},"sourceId":{"type":["string","null"]},"sourceType":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Cancelled","Draft","Done","Start","Engineering Complete","Implementation"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"type":{"type":["string","null"],"enum":["Engineering","Manufacturing","Documentation"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["affectedItems","approvalRequirements","assignee","changeOrderId","changeOrderTypeId","companyId","createdAt","createdBy","customFields","description","dueDate","id","itemIds","name","nonConformanceId","openDate","priority","reasonForChange","requiredActionIds","sourceId","sourceType","status","tags","type","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/insertChangeNotice":{"post":{"operationId":"items.insertChangeNotice","summary":"insert change notice","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changeNoticeId":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["Engineering","Manufacturing","Documentation"]},"priority":{"type":"string"},"changeNoticeTypeId":{"type":"string"},"nonConformanceId":{"type":"string"},"openDate":{"type":"string"},"reasonForChange":{},"description":{},"dueDate":{"type":"string"},"assignee":{"type":"string"},"customFields":{}},"required":["name","openDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"changeNoticeId":{"type":"string"}},"required":["id","changeNoticeId"]}}}}}}},"/items/updateChangeNotice":{"post":{"operationId":"items.updateChangeNotice","summary":"update change notice","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"changeOrderId":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["Engineering","Manufacturing","Documentation"]},"priority":{"type":["string","null"]},"changeOrderTypeId":{"type":["string","null"]},"nonConformanceId":{"type":["string","null"]},"openDate":{"type":"string"},"reasonForChange":{},"description":{},"dueDate":{"type":["string","null"]},"assignee":{"type":["string","null"]},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/deleteChangeNotice":{"post":{"operationId":"items.deleteChangeNotice","summary":"delete change notice","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changeNoticeId":{"type":"string"}},"required":["changeNoticeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/updateChangeNoticeStatus":{"post":{"operationId":"items.updateChangeNoticeStatus","summary":"update change notice status","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"fromStatus":{"type":"string","enum":["Draft","Start","Engineering Complete","Implementation","Done","Cancelled"]},"toStatus":{"type":"string","enum":["Draft","Start","Engineering Complete","Implementation","Done","Cancelled"]},"assignee":{"type":["string","null"]}},"required":["id","fromStatus","toStatus"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Cancelled","Draft","Done","Start","Engineering Complete","Implementation"]}},"required":["id","status"]}}}}}}},"/items/getChangeNoticeTypes":{"post":{"operationId":"items.getChangeNoticeTypes","summary":"get change notice types","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","id","name","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getChangeNoticeTypesList":{"post":{"operationId":"items.getChangeNoticeTypesList","summary":"get change notice types list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getChangeNoticeType":{"post":{"operationId":"items.getChangeNoticeType","summary":"get change notice type","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","id","name","updatedAt","updatedBy"]}}}}}}},"/items/upsertChangeNoticeType":{"post":{"operationId":"items.upsertChangeNoticeType","summary":"upsert change notice type","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changeNoticeType":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"customFields":{}},"required":["name"]},{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"customFields":{}},"required":["id","name"]}],"description":"Include `id` to update that record; leave it out to create a new one."}},"required":["changeNoticeType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/deleteChangeNoticeType":{"post":{"operationId":"items.deleteChangeNoticeType","summary":"delete change notice type","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/getTopLevelProductsForItems":{"post":{"operationId":"items.getTopLevelProductsForItems","summary":"get top level products for items","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"type":"array","items":{"type":"string"}}},"required":["itemIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string"},"sourceItemIds":{"type":"array","items":{"type":"string"}}},"required":["productId","sourceItemIds"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/addChangeNoticeAffectedItem":{"post":{"operationId":"items.addChangeNoticeAffectedItem","summary":"add change notice affected item","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changeNoticeId":{"type":"string"},"itemId":{"type":"string"},"changeType":{"type":"string","enum":["Version","Revision","Replacement Part","New Part"]},"revision":{"type":"string"},"newPart":{"type":"object","properties":{"readableId":{"type":"string"},"name":{"type":"string"},"itemType":{"type":"string","enum":["Part","Tool"]},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]}},"required":["readableId","name","itemType","replenishmentSystem"]}},"required":["changeNoticeId","changeType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"draftMakeMethodId":{"type":["string","null"]}},"required":["id","draftMakeMethodId"]}}}}}}},"/items/updateChangeNoticeAffectedItemChangeType":{"post":{"operationId":"items.updateChangeNoticeAffectedItemChangeType","summary":"update change notice affected item change type","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"changeType":{"type":"string","enum":["Version","Revision","Replacement Part","New Part"]}},"required":["id","changeType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/updateChangeNoticeAffectedItemCutover":{"post":{"operationId":"items.updateChangeNoticeAffectedItemCutover","summary":"update change notice affected item cutover","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"supersessionMode":{"type":"string","enum":["Consume First","Prefer New","Stock Only","No Stock"]},"discontinuationDate":{"type":"string"},"successorEffectivityDate":{"type":"string"}},"required":["id","supersessionMode"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/getChangeNoticeAffectedItems":{"post":{"operationId":"items.getChangeNoticeAffectedItems","summary":"get change notice affected items","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changeNoticeId":{"type":"string"}},"required":["changeNoticeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/removeChangeNoticeAffectedItem":{"post":{"operationId":"items.removeChangeNoticeAffectedItem","summary":"remove change notice affected item","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/findChangeNoticesForItem":{"post":{"operationId":"items.findChangeNoticesForItem","summary":"find change notices for item","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"statuses":{"type":"array","items":{"type":"string","enum":["Draft","Start","Engineering Complete","Implementation","Done","Cancelled"]}}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"changeOrderId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["Cancelled","Draft","Done","Start","Engineering Complete","Implementation"]},"changeOrderTypeId":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","changeOrderId","name","status","changeOrderTypeId","createdAt"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getChangeNoticesForNonConformance":{"post":{"operationId":"items.getChangeNoticesForNonConformance","summary":"get change notices for non conformance","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nonConformanceId":{"type":"string"}},"required":["nonConformanceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"changeOrderId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["Cancelled","Draft","Done","Start","Engineering Complete","Implementation"]}},"required":["id","changeOrderId","name","status"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/findOtherOpenChangeNoticesForItem":{"post":{"operationId":"items.findOtherOpenChangeNoticesForItem","summary":"find other open change notices for item","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"excludeChangeNoticeId":{"type":"string"}},"required":["itemId","excludeChangeNoticeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"changeOrderId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["Cancelled","Draft","Done","Start","Engineering Complete","Implementation"]},"changeOrderTypeId":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","changeOrderId","name","status","changeOrderTypeId","createdAt"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getItemChangeNoticeData":{"post":{"operationId":"items.getItemChangeNoticeData","summary":"get item change notice data","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"changeNotices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"changeOrderId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["Cancelled","Draft","Done","Start","Engineering Complete","Implementation"]},"changeOrderTypeId":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","changeOrderId","name","status","changeOrderTypeId","createdAt"]}},"changeNoticeTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["changeNotices","changeNoticeTypes"]}}}}}}},"/items/getChangeNoticeActions":{"post":{"operationId":"items.getChangeNoticeActions","summary":"get change notice actions","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changeNoticeId":{"type":"string"}},"required":["changeNoticeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"linearIssue":{"type":["object","null"]},"jiraIssue":{"type":["object","null"]},"actionTypeId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"changeOrderId":{"type":"string"},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"dueDate":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"sortOrder":{"type":"number"},"status":{"type":"string","enum":["Pending","Completed","Skipped","In Progress"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["linearIssue","jiraIssue","actionTypeId","assignee","changeOrderId","companyId","completedDate","createdAt","createdBy","dueDate","id","name","notes","sortOrder","status","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/updateChangeNoticeActionStatus":{"post":{"operationId":"items.updateChangeNoticeActionStatus","summary":"update change notice action status","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Pending","In Progress","Completed","Skipped"]}},"required":["id","status"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/deleteChangeNoticeAction":{"post":{"operationId":"items.deleteChangeNoticeAction","summary":"delete change notice action","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/updateChangeNoticeActionOrder":{"post":{"operationId":"items.updateChangeNoticeActionOrder","summary":"update change notice action order","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changeNoticeId":{"type":"string"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["changeNoticeId","updates"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/items/getChangeNoticeRequiredActions":{"post":{"operationId":"items.getChangeNoticeRequiredActions","summary":"get change notice required actions","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","customFields","id","name","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getChangeNoticeRequiredActionsList":{"post":{"operationId":"items.getChangeNoticeRequiredActionsList","summary":"get change notice required actions list","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/items/getChangeNoticeRequiredAction":{"post":{"operationId":"items.getChangeNoticeRequiredAction","summary":"get change notice required action","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","customFields","id","name","updatedAt","updatedBy"]}}}}}}},"/items/upsertChangeNoticeRequiredAction":{"post":{"operationId":"items.upsertChangeNoticeRequiredAction","summary":"upsert change notice required action","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"active":{"type":"boolean"}},"required":["name","active"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/items/deleteChangeNoticeRequiredAction":{"post":{"operationId":"items.deleteChangeNoticeRequiredAction","summary":"delete change notice required action","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/setChangeNoticeActionTasks":{"post":{"operationId":"items.setChangeNoticeActionTasks","summary":"set change notice action tasks","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changeNoticeId":{"type":"string"},"requiredActionIds":{"type":"array","items":{"type":"string"}}},"required":["changeNoticeId","requiredActionIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/items/diffMethod":{"post":{"operationId":"items.diffMethod","summary":"diff method","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","properties":{"baseMaterials":{"type":"array","items":{"type":"object"}},"targetMaterials":{"type":"array","items":{}},"baseOperations":{"type":"array","items":{}},"targetOperations":{"type":"array","items":{}},"baseAttributes":{},"targetAttributes":{},"baseOperationChildren":{"type":"object","additionalProperties":{"type":"object","properties":{"steps":{"type":"array","items":{}},"parameters":{"type":"array","items":{}},"tools":{"type":"array","items":{}}},"required":["steps","parameters","tools"]}},"targetOperationChildren":{}},"required":["baseMaterials","targetMaterials","baseOperations","targetOperations"]}},"required":["input"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"materials":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["added","removed","modified","unchanged"]},"before":{"type":["object","null"],"additionalProperties":{}},"after":{"type":["object","null"],"additionalProperties":{}},"changedFields":{"type":["object","null"],"additionalProperties":{"type":"object","properties":{"before":{},"after":{}},"required":["before","after"]}}},"required":["status","before","after"]}},"operations":{"type":"array","items":{}},"attributes":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["added","removed","modified","unchanged"]},"before":{"type":["object","null"],"additionalProperties":{}},"after":{"type":["object","null"],"additionalProperties":{}},"changedFields":{"type":["object","null"],"additionalProperties":{"type":"object","properties":{"before":{},"after":{}},"required":["before","after"]}}},"required":["status","before","after"]}}},"required":["materials","operations","attributes"]}}}}}}},"/items/getChangeNoticeDiff":{"post":{"operationId":"items.getChangeNoticeDiff","summary":"get change notice diff","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changeNoticeId":{"type":"string"}},"required":["changeNoticeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"affectedItemId":{"type":"string"},"itemId":{"type":"string"},"materials":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["added","removed","modified","unchanged"]},"before":{"type":["object","null"],"additionalProperties":{}},"after":{"type":["object","null"],"additionalProperties":{}},"changedFields":{"type":["object","null"],"additionalProperties":{"type":"object","properties":{"before":{},"after":{}},"required":["before","after"]}}},"required":["status","before","after"]}},"operations":{"type":"array","items":{}},"attributes":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["added","removed","modified","unchanged"]},"before":{"type":["object","null"],"additionalProperties":{}},"after":{"type":["object","null"],"additionalProperties":{}},"changedFields":{"type":["object","null"],"additionalProperties":{"type":"object","properties":{"before":{},"after":{}},"required":["before","after"]}}},"required":["status","before","after"]}},"supplierParts":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["added","removed","modified","unchanged"]},"before":{"type":["object","null"],"additionalProperties":{}},"after":{"type":["object","null"],"additionalProperties":{}},"changedFields":{"type":["object","null"],"additionalProperties":{"type":"object","properties":{"before":{},"after":{}},"required":["before","after"]}}},"required":["status","before","after"]}}},"required":["affectedItemId","itemId","materials","operations","attributes","supplierParts"]}}},"required":["items"]}}}}}}},"/items/createItemDocumentUploadUrl":{"post":{"operationId":"items.createItemDocumentUploadUrl","summary":"create a presigned upload URL for an item (part/material/tool/consumable/service) document","tags":["items"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"name":{"type":"string"}},"required":["itemId","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"signedUrl":{"type":"string"},"token":{"type":"string"},"path":{"type":"string"}},"required":["signedUrl","token","path"]}}}}}}},"/people/deleteAttribute":{"post":{"operationId":"people.deleteAttribute","summary":"delete attribute","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"attributeId":{"type":"string"}},"required":["attributeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/people/deleteAttributeCategory":{"post":{"operationId":"people.deleteAttributeCategory","summary":"delete attribute category","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"attributeCategoryId":{"type":"string"}},"required":["attributeCategoryId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/people/deleteDepartment":{"post":{"operationId":"people.deleteDepartment","summary":"delete department","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"departmentId":{"type":"string"}},"required":["departmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/people/deleteHoliday":{"post":{"operationId":"people.deleteHoliday","summary":"delete holiday","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"holidayId":{"type":"string"}},"required":["holidayId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/people/deleteShift":{"post":{"operationId":"people.deleteShift","summary":"delete shift","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shiftId":{"type":"string"}},"required":["shiftId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/people/getAttribute":{"post":{"operationId":"people.getAttribute","summary":"get attribute","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"attributeId":{"type":"string"}},"required":["attributeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":["boolean","null"]},"attributeDataTypeId":{"type":"number"},"canSelfManage":{"type":["boolean","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"listOptions":{"type":["array","null"],"items":{"type":"string"}},"name":{"type":"string"},"sortOrder":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"userAttributeCategoryId":{"type":"string"},"userAttributeCategory":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["active","attributeDataTypeId","canSelfManage","createdAt","createdBy","id","listOptions","name","sortOrder","updatedAt","updatedBy","userAttributeCategoryId","userAttributeCategory"]}}}}}}},"/people/getAttributeCategories":{"post":{"operationId":"people.getAttributeCategories","summary":"get attribute categories","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"anyOf":[{"type":"string"},{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0}}}]}},"required":["search"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"emoji":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"protected":{"type":["boolean","null"]},"public":{"type":["boolean","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"userAttribute":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"attributeDataType":{"type":"object","properties":{"id":{"type":"number"}},"required":["id"]}},"required":["id","name","attributeDataType"]}}},"required":["active","companyId","createdAt","createdBy","emoji","id","name","protected","public","updatedAt","updatedBy","userAttribute"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getAttributeCategory":{"post":{"operationId":"people.getAttributeCategory","summary":"get attribute category","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"emoji":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"protected":{"type":["boolean","null"]},"public":{"type":["boolean","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"userAttribute":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"sortOrder":{"type":"number"},"attributeDataType":{"type":"object","properties":{"id":{"type":"number"},"label":{"type":"string"},"isBoolean":{"type":"boolean"},"isDate":{"type":"boolean"},"isList":{"type":"boolean"},"isNumeric":{"type":"boolean"},"isText":{"type":"boolean"},"isUser":{"type":"boolean"},"isFile":{"type":"boolean"}},"required":["id","label","isBoolean","isDate","isList","isNumeric","isText","isUser","isFile"]}},"required":["id","name","sortOrder","attributeDataType"]}}},"required":["active","companyId","createdAt","createdBy","emoji","id","name","protected","public","updatedAt","updatedBy","userAttribute"]}}}}}}},"/people/getAttributeDataTypes":{"post":{"operationId":"people.getAttributeDataTypes","summary":"get attribute data types","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"isBoolean":{"type":"boolean"},"isCustomer":{"type":"boolean"},"isDate":{"type":"boolean"},"isFile":{"type":"boolean"},"isList":{"type":"boolean"},"isNumeric":{"type":"boolean"},"isSupplier":{"type":"boolean"},"isText":{"type":"boolean"},"isUser":{"type":"boolean"},"label":{"type":"string"}},"required":["id","isBoolean","isCustomer","isDate","isFile","isList","isNumeric","isSupplier","isText","isUser","label"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getDepartment":{"post":{"operationId":"people.getDepartment","summary":"get department","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"departmentId":{"type":"string"}},"required":["departmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"parentDepartmentId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","parentDepartmentId","tags","updatedAt","updatedBy"]}}}}}}},"/people/getDepartments":{"post":{"operationId":"people.getDepartments","summary":"get departments","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"parentDepartmentId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"department":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["companyId","createdAt","createdBy","customFields","id","name","parentDepartmentId","tags","updatedAt","updatedBy","department"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getDepartmentsList":{"post":{"operationId":"people.getDepartmentsList","summary":"get departments list","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getDepartmentsTree":{"post":{"operationId":"people.getDepartmentsTree","summary":"get departments tree","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"parentDepartmentId":{"type":["string","null"]}},"required":["id","name","parentDepartmentId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getEmployeeJob":{"post":{"operationId":"people.getEmployeeJob","summary":"get employee job","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"}},"required":["employeeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"departmentId":{"type":["string","null"]},"id":{"type":"string"},"locationId":{"type":"string"},"managerId":{"type":["string","null"]},"shiftId":{"type":["string","null"]},"startDate":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"title":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","customFields","departmentId","id","locationId","managerId","shiftId","startDate","tags","title","updatedAt","updatedBy"]}}}}}}},"/people/getEmployeeSummary":{"post":{"operationId":"people.getEmployeeSummary","summary":"get employee summary","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"}},"required":["employeeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"avatarUrl":{"type":["string","null"]},"companyId":{"type":["string","null"]},"departmentName":{"type":["string","null"]},"id":{"type":["string","null"]},"locationName":{"type":["string","null"]},"managerName":{"type":["string","null"]},"name":{"type":["string","null"]},"startDate":{"type":["string","null"]},"title":{"type":["string","null"]}},"required":["avatarUrl","companyId","departmentName","id","locationName","managerName","name","startDate","title"]}}}}}}},"/people/getHoliday":{"post":{"operationId":"people.getHoliday","summary":"get holiday","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"holidayId":{"type":"string"}},"required":["holidayId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"date":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"year":{"type":["number","null"]}},"required":["companyId","createdAt","createdBy","customFields","date","id","name","tags","updatedAt","updatedBy","year"]}}}}}}},"/people/getHolidays":{"post":{"operationId":"people.getHolidays","summary":"get holidays","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"date":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"year":{"type":["number","null"]}},"required":["companyId","createdAt","createdBy","customFields","date","id","name","tags","updatedAt","updatedBy","year"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getHolidayYears":{"post":{"operationId":"people.getHolidayYears","summary":"get holiday years","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"throwOnError":{"type":"object"},"eq":{"type":"object"},"neq":{"type":"object"},"gt":{"type":"object"},"gte":{"type":"object"},"lt":{"type":"object"},"lte":{"type":"object"},"like":{"type":"object"},"likeAllOf":{"type":"object"},"likeAnyOf":{"type":"object"},"ilike":{"type":"object"},"ilikeAllOf":{"type":"object"},"ilikeAnyOf":{"type":"object"},"regexMatch":{"type":"object"},"regexIMatch":{"type":"object"},"is":{"type":"object"},"isDistinct":{"type":"object"},"in":{"type":"object"},"notIn":{"type":"object"},"contains":{"type":"object"},"containedBy":{"type":"object"},"rangeGt":{"type":"object"},"rangeGte":{"type":"object"},"rangeLt":{"type":"object"},"rangeLte":{"type":"object"},"rangeAdjacent":{"type":"object"},"overlaps":{"type":"object"},"textSearch":{"type":"object"},"match":{"type":"object"},"not":{"type":"object"},"or":{"type":"object"},"filter":{"type":"object"},"select":{"type":"object"},"order":{"type":"object"},"limit":{"type":"object"},"range":{"type":"object"},"abortSignal":{"type":"object"},"single":{"type":"object"},"maybeSingle":{"type":"object"},"csv":{"type":"object"},"geojson":{"type":"object"},"explain":{"type":"object"},"rollback":{"type":"object"},"returns":{"type":"object"},"maxAffected":{"type":"object"},"method":{"type":"string","enum":["GET","POST","DELETE","PATCH","HEAD"]},"url":{"type":"object","properties":{"hash":{"type":"string"},"host":{"type":"string"},"hostname":{"type":"string"},"href":{"type":"string"},"toString":{"type":"object"},"origin":{"type":"string"},"password":{"type":"string"},"pathname":{"type":"string"},"port":{"type":"string"},"protocol":{"type":"string"},"search":{"type":"string"},"searchParams":{"type":"object","properties":{"size":{"type":"number"},"append":{"type":"object"},"delete":{"type":"object"},"get":{"type":"object"},"getAll":{"type":"object"},"has":{"type":"object"},"set":{"type":"object"},"sort":{"type":"object"},"toString":{"type":"object"},"forEach":{"type":"object"},"entries":{"type":"object"},"keys":{"type":"object"},"values":{"type":"object"}},"required":["size","append","delete","get","getAll","has","set","sort","toString","forEach","entries","keys","values"]},"username":{"type":"string"},"toJSON":{"type":"object"}},"required":["hash","host","hostname","href","toString","origin","password","pathname","port","protocol","search","searchParams","username","toJSON"]},"headers":{"type":"object","properties":{"append":{"type":"object"},"delete":{"type":"object"},"get":{"type":"object"},"getSetCookie":{"type":"object"},"has":{"type":"object"},"set":{"type":"object"},"forEach":{"type":"object"},"entries":{"type":"object"},"keys":{"type":"object"},"values":{"type":"object"}},"required":["append","delete","get","getSetCookie","has","set","forEach","entries","keys","values"]},"schema":{"type":["string","null"]},"body":{},"shouldThrowOnError":{"type":"boolean"},"signal":{"type":["object","null"],"properties":{"aborted":{"type":"boolean"},"onabort":{"type":["object","null"]},"reason":{},"throwIfAborted":{"type":"object"},"addEventListener":{"type":"object"},"removeEventListener":{"type":"object"},"dispatchEvent":{"type":"object"}},"required":["aborted","onabort","reason","throwIfAborted","addEventListener","removeEventListener","dispatchEvent"]},"fetch":{"type":"object"},"isMaybeSingle":{"type":"boolean"},"shouldStripNulls":{"type":"boolean"},"urlLengthLimit":{"type":"number"},"retryEnabled":{"type":"boolean"},"stripNulls":{"type":"object"},"setHeader":{"type":"object"},"retry":{"type":"object"},"then":{"type":"object"},"processResponse":{},"overrideTypes":{"type":"object"}},"required":["throwOnError","eq","neq","gt","gte","lt","lte","like","likeAllOf","likeAnyOf","ilike","ilikeAllOf","ilikeAnyOf","regexMatch","regexIMatch","is","isDistinct","in","notIn","contains","containedBy","rangeGt","rangeGte","rangeLt","rangeLte","rangeAdjacent","overlaps","textSearch","match","not","or","filter","select","order","limit","range","abortSignal","single","maybeSingle","csv","geojson","explain","rollback","returns","maxAffected","method","url","headers","shouldThrowOnError","fetch","isMaybeSingle","shouldStripNulls","urlLengthLimit","retryEnabled","stripNulls","setHeader","retry","then","processResponse","overrideTypes"]}}}}}}},"/people/getPeople":{"post":{"operationId":"people.getPeople","summary":"get people","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getContacts":{"post":{"operationId":"people.getContacts","summary":"get contacts","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"email":{"type":["string","null"]},"fax":{"type":["string","null"]},"firstName":{"type":["string","null"]},"fullName":{"type":["string","null"]},"homePhone":{"type":["string","null"]},"id":{"type":"string"},"isCustomer":{"type":"boolean"},"lastName":{"type":["string","null"]},"mobilePhone":{"type":["string","null"]},"notes":{"type":["string","null"]},"title":{"type":["string","null"]},"workPhone":{"type":["string","null"]}},"required":["companyId","email","fax","firstName","fullName","homePhone","id","isCustomer","lastName","mobilePhone","notes","title","workPhone"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getShift":{"post":{"operationId":"people.getShift","summary":"get shift","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shiftId":{"type":"string"}},"required":["shiftId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"endTime":{"type":["string","null"]},"friday":{"type":["boolean","null"]},"id":{"type":["string","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"monday":{"type":["boolean","null"]},"name":{"type":["string","null"]},"saturday":{"type":["boolean","null"]},"startTime":{"type":["string","null"]},"sunday":{"type":["boolean","null"]},"thursday":{"type":["boolean","null"]},"tuesday":{"type":["boolean","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"wednesday":{"type":["boolean","null"]}},"required":["active","companyId","createdAt","createdBy","customFields","endTime","friday","id","locationId","locationName","monday","name","saturday","startTime","sunday","thursday","tuesday","updatedAt","updatedBy","wednesday"]}}}}}}},"/people/getShifts":{"post":{"operationId":"people.getShifts","summary":"get shifts","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"endTime":{"type":["string","null"]},"friday":{"type":["boolean","null"]},"id":{"type":["string","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"monday":{"type":["boolean","null"]},"name":{"type":["string","null"]},"saturday":{"type":["boolean","null"]},"startTime":{"type":["string","null"]},"sunday":{"type":["boolean","null"]},"thursday":{"type":["boolean","null"]},"tuesday":{"type":["boolean","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"wednesday":{"type":["boolean","null"]}},"required":["active","companyId","createdAt","createdBy","customFields","endTime","friday","id","locationId","locationName","monday","name","saturday","startTime","sunday","thursday","tuesday","updatedAt","updatedBy","wednesday"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getShiftsList":{"post":{"operationId":"people.getShiftsList","summary":"get shifts list","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":["string","null"]}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getEmployeeShifts":{"post":{"operationId":"people.getEmployeeShifts","summary":"get employee shifts","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"employeeId":{"type":"string"},"shiftId":{"type":"string"}},"required":["employeeId","shiftId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getEmployeeDepartments":{"post":{"operationId":"people.getEmployeeDepartments","summary":"get employee departments","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"departmentId":{"type":["string","null"]}},"required":["id","departmentId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getShiftsWithTimes":{"post":{"operationId":"people.getShiftsWithTimes","summary":"get shifts with times","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"startTime":{"type":"string"},"endTime":{"type":"string"},"monday":{"type":"boolean"},"tuesday":{"type":"boolean"},"wednesday":{"type":"boolean"},"thursday":{"type":"boolean"},"friday":{"type":"boolean"},"saturday":{"type":"boolean"},"sunday":{"type":"boolean"}},"required":["id","name","startTime","endTime","monday","tuesday","wednesday","thursday","friday","saturday","sunday"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/insertAttribute":{"post":{"operationId":"people.insertAttribute","summary":"insert attribute","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"attributeDataTypeId":{"type":"number"},"userAttributeCategoryId":{"type":"string"},"listOptions":{"type":"array","items":{"type":"string"}},"canSelfManage":{"type":"boolean"}},"required":["name","attributeDataTypeId","userAttributeCategoryId","canSelfManage"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/people/insertAttributeCategory":{"post":{"operationId":"people.insertAttributeCategory","summary":"insert attribute category","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"emoji":{"type":"string"},"public":{"type":"boolean"}},"required":["name","public"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/people/insertEmployeeJob":{"post":{"operationId":"people.insertEmployeeJob","summary":"insert employee job","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"locationId":{"type":"string"}},"required":["id","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"departmentId":{"type":["string","null"]},"id":{"type":"string"},"locationId":{"type":"string"},"managerId":{"type":["string","null"]},"shiftId":{"type":["string","null"]},"startDate":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"title":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","customFields","departmentId","id","locationId","managerId","shiftId","startDate","tags","title","updatedAt","updatedBy"]}}}}}}},"/people/updateAttribute":{"post":{"operationId":"people.updateAttribute","summary":"update attribute","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"listOptions":{"type":"array","items":{"type":"string"}},"canSelfManage":{"type":"boolean"}},"required":["name","canSelfManage"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/people/updateAttributeCategory":{"post":{"operationId":"people.updateAttributeCategory","summary":"update attribute category","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"emoji":{"type":"string"},"public":{"type":"boolean"}},"required":["id","name","public"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/people/updateAttributeSortOrder":{"post":{"operationId":"people.updateAttributeSortOrder","summary":"update attribute sort order","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/updateEmployeeJob":{"post":{"operationId":"people.updateEmployeeJob","summary":"update employee job","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"},"employeeJob":{"type":"object","properties":{"title":{"type":"string"},"startDate":{"type":"string"},"locationId":{"type":"string","minLength":1},"shiftId":{"type":"string"},"departmentId":{"type":"string"},"managerId":{"type":"string"},"customFields":{}},"required":["locationId"]}},"required":["employeeId","employeeJob"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/people/upsertDepartment":{"post":{"operationId":"people.upsertDepartment","summary":"upsert department","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"parentDepartmentId":{"type":"string"},"customFields":{},"id":{"type":"string"}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"parentDepartmentId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","parentDepartmentId","tags","updatedAt","updatedBy"]}}}}}}},"/people/upsertHoliday":{"post":{"operationId":"people.upsertHoliday","summary":"upsert holiday","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"date":{"type":"string","minLength":1},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","date"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"date":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"year":{"type":["number","null"]}},"required":["companyId","createdAt","createdBy","customFields","date","id","name","tags","updatedAt","updatedBy","year"]}}}}}}},"/people/upsertShift":{"post":{"operationId":"people.upsertShift","summary":"upsert shift","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"startTime":{"type":"string","minLength":1},"endTime":{"type":"string","minLength":1},"locationId":{"type":"string","minLength":1},"monday":{"type":"boolean"},"tuesday":{"type":"boolean"},"wednesday":{"type":"boolean"},"thursday":{"type":"boolean"},"friday":{"type":"boolean"},"saturday":{"type":"boolean"},"sunday":{"type":"boolean"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","startTime","endTime","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"endTime":{"type":"string"},"friday":{"type":"boolean"},"id":{"type":"string"},"locationId":{"type":"string"},"monday":{"type":"boolean"},"name":{"type":"string"},"saturday":{"type":"boolean"},"startTime":{"type":"string"},"sunday":{"type":"boolean"},"tags":{"type":["array","null"],"items":{"type":"string"}},"thursday":{"type":"boolean"},"tuesday":{"type":"boolean"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"wednesday":{"type":"boolean"}},"required":["active","companyId","createdAt","createdBy","customFields","endTime","friday","id","locationId","monday","name","saturday","startTime","sunday","tags","thursday","tuesday","updatedAt","updatedBy","wednesday"]}}}}}}},"/people/clockIn":{"post":{"operationId":"people.clockIn","summary":"clock in","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"}},"required":["employeeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/people/clockOut":{"post":{"operationId":"people.clockOut","summary":"clock out","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"},"clockOut":{"type":"string"},"note":{"type":"string"}},"required":["employeeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/people/createTimeCardEntry":{"post":{"operationId":"people.createTimeCardEntry","summary":"create time card entry","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"},"clockIn":{"type":"string"},"clockOut":{"type":["string","null"]},"note":{"type":["string","null"]}},"required":["employeeId","clockIn"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/people/deleteTimeCardEntry":{"post":{"operationId":"people.deleteTimeCardEntry","summary":"delete time card entry","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entryId":{"type":"string"}},"required":["entryId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/people/getClockedInEmployees":{"post":{"operationId":"people.getClockedInEmployees","summary":"get clocked in employees","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"autoCloseShiftId":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"clockIn":{"type":["string","null"]},"clockOut":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"employeeId":{"type":["string","null"]},"firstName":{"type":["string","null"]},"id":{"type":["string","null"]},"jobTitle":{"type":["string","null"]},"lastName":{"type":["string","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"note":{"type":["string","null"]},"shiftId":{"type":["string","null"]},"shiftName":{"type":["string","null"]},"status":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["autoCloseShiftId","avatarUrl","clockIn","clockOut","companyId","createdAt","createdBy","employeeId","firstName","id","jobTitle","lastName","locationId","locationName","note","shiftId","shiftName","status","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getOpenClockEntry":{"post":{"operationId":"people.getOpenClockEntry","summary":"get open clock entry","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"}},"required":["employeeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"autoCloseShiftId":{"type":["string","null"]},"clockIn":{"type":"string"},"clockOut":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"employeeId":{"type":"string"},"id":{"type":"string"},"note":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["autoCloseShiftId","clockIn","clockOut","companyId","createdAt","createdBy","employeeId","id","note","updatedAt","updatedBy"]}}}}}}},"/people/getRecentTimecards":{"post":{"operationId":"people.getRecentTimecards","summary":"get recent timecards","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"autoCloseShiftId":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"clockIn":{"type":["string","null"]},"clockOut":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"employeeId":{"type":["string","null"]},"firstName":{"type":["string","null"]},"id":{"type":["string","null"]},"jobTitle":{"type":["string","null"]},"lastName":{"type":["string","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"note":{"type":["string","null"]},"shiftId":{"type":["string","null"]},"shiftName":{"type":["string","null"]},"status":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["autoCloseShiftId","avatarUrl","clockIn","clockOut","companyId","createdAt","createdBy","employeeId","firstName","id","jobTitle","lastName","locationId","locationName","note","shiftId","shiftName","status","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getScheduledEmployeesToday":{"post":{"operationId":"people.getScheduledEmployeesToday","summary":"get scheduled employees today","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shiftId":{"type":"string"},"shift":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"startTime":{"type":"string"},"endTime":{"type":"string"},"sunday":{"type":"boolean"},"monday":{"type":"boolean"},"tuesday":{"type":"boolean"},"wednesday":{"type":"boolean"},"thursday":{"type":"boolean"},"friday":{"type":"boolean"},"saturday":{"type":"boolean"}},"required":["id","name","startTime","endTime","sunday","monday","tuesday","wednesday","thursday","friday","saturday"]}},"required":["id","shiftId","shift"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getTimeCardEntry":{"post":{"operationId":"people.getTimeCardEntry","summary":"get time card entry","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entryId":{"type":"string"}},"required":["entryId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"autoCloseShiftId":{"type":["string","null"]},"clockIn":{"type":"string"},"clockOut":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"employeeId":{"type":"string"},"id":{"type":"string"},"note":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["autoCloseShiftId","clockIn","clockOut","companyId","createdAt","createdBy","employeeId","id","note","updatedAt","updatedBy"]}}}}}}},"/people/getTimeCardEntries":{"post":{"operationId":"people.getTimeCardEntries","summary":"get time card entries","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["employeeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"autoCloseShiftId":{"type":["string","null"]},"clockIn":{"type":"string"},"clockOut":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"employeeId":{"type":"string"},"id":{"type":"string"},"note":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["autoCloseShiftId","clockIn","clockOut","companyId","createdAt","createdBy","employeeId","id","note","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getTimecardEntries":{"post":{"operationId":"people.getTimecardEntries","summary":"get timecard entries","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"autoCloseShiftId":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"clockIn":{"type":["string","null"]},"clockOut":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"employeeId":{"type":["string","null"]},"firstName":{"type":["string","null"]},"id":{"type":["string","null"]},"jobTitle":{"type":["string","null"]},"lastName":{"type":["string","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"note":{"type":["string","null"]},"shiftId":{"type":["string","null"]},"shiftName":{"type":["string","null"]},"status":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["autoCloseShiftId","avatarUrl","clockIn","clockOut","companyId","createdAt","createdBy","employeeId","firstName","id","jobTitle","lastName","locationId","locationName","note","shiftId","shiftName","status","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/people/getWeeklyHoursForEmployees":{"post":{"operationId":"people.getWeeklyHoursForEmployees","summary":"get weekly hours for employees","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeIds":{"type":"array","items":{"type":"string"}}},"required":["employeeIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"number"}}}}}}}},"/people/updateTimeCardEntry":{"post":{"operationId":"people.updateTimeCardEntry","summary":"update time card entry","tags":["people"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entryId":{"type":"string"},"clockIn":{"type":"string"},"clockOut":{"type":["string","null"]},"note":{"type":["string","null"]}},"required":["entryId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/convertSalesOrderLinesToJobs":{"post":{"operationId":"production.convertSalesOrderLinesToJobs","summary":"convert sales order lines to jobs","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string"}},"required":["orderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closedBy":{"type":["string","null"]},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customerContactId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerId":{"type":"string"},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"orderDate":{"type":["string","null"]},"revisionId":{"type":"number"},"salesOrderId":{"type":"string"},"salesPersonId":{"type":["string","null"]},"sentCompleteDate":{"type":["string","null"]},"status":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","To Invoice","Needs Approval","To Ship","Confirmed","Invoiced","To Ship and Invoice"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","closedAt","closedBy","companyId","completedDate","createdAt","createdBy","currencyCode","customerContactId","customerEngineeringContactId","customerId","customerLocationId","customerReference","customFields","exchangeRate","exchangeRateUpdatedAt","externalNotes","id","internalNotes","locationId","opportunityId","orderDate","revisionId","salesOrderId","salesPersonId","sentCompleteDate","status","updatedAt","updatedBy"]}}}}}}},"/production/calculateJobPriority":{"post":{"operationId":"production.calculateJobPriority","summary":"calculate the priority for a job based on its dueDate and deadlineType","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"dueDate":{"type":["string","null"]},"deadlineType":{"type":"string","enum":["ASAP","Hard Deadline","Soft Deadline","No Deadline"]},"locationId":{"type":"string"}},"required":["dueDate","deadlineType","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/production/deleteJob":{"post":{"operationId":"production.deleteJob","summary":"delete job","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteJobMaterial":{"post":{"operationId":"production.deleteJobMaterial","summary":"delete job material","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobMaterialId":{"type":"string"}},"required":["jobMaterialId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteJobOperationStep":{"post":{"operationId":"production.deleteJobOperationStep","summary":"delete job operation step","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteJobOperationStepSlide":{"post":{"operationId":"production.deleteJobOperationStepSlide","summary":"delete job operation step slide","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteJobOperationParameter":{"post":{"operationId":"production.deleteJobOperationParameter","summary":"delete job operation parameter","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteJobOperationTool":{"post":{"operationId":"production.deleteJobOperationTool","summary":"delete job operation tool","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteProcedure":{"post":{"operationId":"production.deleteProcedure","summary":"delete procedure","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"procedureId":{"type":"string"}},"required":["procedureId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteProcedureStep":{"post":{"operationId":"production.deleteProcedureStep","summary":"delete procedure step","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"procedureStepId":{"type":"string"}},"required":["procedureStepId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteProcedureParameter":{"post":{"operationId":"production.deleteProcedureParameter","summary":"delete procedure parameter","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"procedureParameterId":{"type":"string"}},"required":["procedureParameterId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteProductionEvent":{"post":{"operationId":"production.deleteProductionEvent","summary":"delete production event","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productionEventId":{"type":"string"}},"required":["productionEventId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteProductionQuantity":{"post":{"operationId":"production.deleteProductionQuantity","summary":"delete production quantity","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productionQuantityId":{"type":"string"}},"required":["productionQuantityId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/getActiveJobOperationByJobId":{"post":{"operationId":"production.getActiveJobOperationByJobId","summary":"get active job operation by job id","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["object","null"],"properties":{"id":{"type":"string"},"setupTime":{"type":"number"},"laborTime":{"type":"number"},"machineTime":{"type":"number"}},"required":["id","setupTime","laborTime","machineTime"]}}}}}}},"/production/getActiveJobOperationsByLocation":{"post":{"operationId":"production.getActiveJobOperationsByLocation","summary":"get active job operations by location","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"workCenterIds":{"type":"array","items":{"type":"string"}}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":"string"},"batchReadableId":{"type":"string"},"conflictReason":{"type":"string"},"customerName":{"type":"string"},"description":{"type":"string"},"hasConflict":{"type":"boolean"},"id":{"type":"string"},"itemDescription":{"type":"string"},"itemReadableId":{"type":"string"},"jobCustomerId":{"type":"string"},"jobDeadlineType":{"type":"string","enum":["No Deadline","ASAP","Soft Deadline","Hard Deadline"]},"jobDueDate":{"type":"string"},"jobId":{"type":"string"},"jobMakeMethodId":{"type":"string"},"jobOperationBatchId":{"type":"string"},"jobReadableId":{"type":"string"},"jobStatus":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"operationDueDate":{"type":"string"},"operationOrder":{"type":"number"},"operationOrderType":{"type":"string","enum":["After Previous","With Previous"]},"operationQuantity":{"type":"number"},"operationStatus":{"type":"string","enum":["Todo","Done","In Progress","Ready","Paused","Canceled","Waiting"]},"parentMaterialId":{"type":"string"},"priority":{"type":"number"},"processBatchable":{"type":"boolean"},"processId":{"type":"string"},"projectedCompletionAt":{"type":"string"},"quantityComplete":{"type":"number"},"quantityReworked":{"type":"number"},"quantityScrapped":{"type":"number"},"reworkId":{"type":"string"},"salesOrderId":{"type":"string"},"salesOrderLineId":{"type":"string"},"salesOrderReadableId":{"type":"string"},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"tags":{"type":"array","items":{"type":"string"}},"targetQuantity":{"type":"number"},"thumbnailPath":{"type":"string"},"workCenterId":{"type":"string"}},"required":["assignee","batchReadableId","conflictReason","customerName","description","hasConflict","id","itemDescription","itemReadableId","jobCustomerId","jobDeadlineType","jobDueDate","jobId","jobMakeMethodId","jobOperationBatchId","jobReadableId","jobStatus","laborTime","laborUnit","machineTime","machineUnit","operationDueDate","operationOrder","operationOrderType","operationQuantity","operationStatus","parentMaterialId","priority","processBatchable","processId","projectedCompletionAt","quantityComplete","quantityReworked","quantityScrapped","reworkId","salesOrderId","salesOrderLineId","salesOrderReadableId","setupTime","setupUnit","tags","targetQuantity","thumbnailPath","workCenterId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobsByDateRange":{"post":{"operationId":"production.getJobsByDateRange","summary":"get jobs by date range","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["locationId","startDate","endDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":"string"},"completedDate":{"type":"string"},"completedOperationCount":{"type":"number"},"customerId":{"type":"string"},"customerName":{"type":"string"},"deadlineType":{"type":"string","enum":["No Deadline","ASAP","Soft Deadline","Hard Deadline"]},"dueDate":{"type":"string"},"hasConflict":{"type":"boolean"},"id":{"type":"string"},"itemDescription":{"type":"string"},"itemId":{"type":"string"},"itemReadableId":{"type":"string"},"jobId":{"type":"string"},"jobMakeMethodId":{"type":"string"},"operationCount":{"type":"number"},"priority":{"type":"number"},"projectedCompletionAt":{"type":"string"},"quantity":{"type":"number"},"quantityComplete":{"type":"number"},"quantityShipped":{"type":"number"},"salesOrderId":{"type":"string"},"salesOrderLineId":{"type":"string"},"salesOrderReadableId":{"type":"string"},"scheduleOutdatedReason":{"type":"string"},"status":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"tags":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"}},"required":["assignee","completedDate","completedOperationCount","customerId","customerName","deadlineType","dueDate","hasConflict","id","itemDescription","itemId","itemReadableId","jobId","jobMakeMethodId","operationCount","priority","projectedCompletionAt","quantity","quantityComplete","quantityShipped","salesOrderId","salesOrderLineId","salesOrderReadableId","scheduleOutdatedReason","status","tags","thumbnailPath"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getUnscheduledJobs":{"post":{"operationId":"production.getUnscheduledJobs","summary":"get unscheduled jobs","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":"string"},"completedDate":{"type":"string"},"completedOperationCount":{"type":"number"},"customerId":{"type":"string"},"customerName":{"type":"string"},"deadlineType":{"type":"string","enum":["No Deadline","ASAP","Soft Deadline","Hard Deadline"]},"dueDate":{"type":"string"},"hasConflict":{"type":"boolean"},"id":{"type":"string"},"itemDescription":{"type":"string"},"itemId":{"type":"string"},"itemReadableId":{"type":"string"},"jobId":{"type":"string"},"jobMakeMethodId":{"type":"string"},"operationCount":{"type":"number"},"priority":{"type":"number"},"quantity":{"type":"number"},"quantityComplete":{"type":"number"},"quantityShipped":{"type":"number"},"salesOrderId":{"type":"string"},"salesOrderLineId":{"type":"string"},"salesOrderReadableId":{"type":"string"},"status":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"tags":{"type":"array","items":{"type":"string"}},"thumbnailPath":{"type":"string"}},"required":["assignee","completedDate","completedOperationCount","customerId","customerName","deadlineType","dueDate","hasConflict","id","itemDescription","itemId","itemReadableId","jobId","jobMakeMethodId","operationCount","priority","quantity","quantityComplete","quantityShipped","salesOrderId","salesOrderLineId","salesOrderReadableId","status","tags","thumbnailPath"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getActiveProductionEvents":{"post":{"operationId":"production.getActiveProductionEvents","summary":"get active production events","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"duration":{"type":["number","null"]},"employeeId":{"type":["string","null"]},"endTime":{"type":["string","null"]},"id":{"type":"string"},"jobOperationBatchId":{"type":["string","null"]},"jobOperationId":{"type":"string"},"notes":{"type":["string","null"]},"postedToGL":{"type":"boolean"},"startTime":{"type":"string"},"type":{"type":["string","null"],"enum":["Setup","Labor","Machine"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"description":{"type":["string","null"]},"jobId":{"type":"string"},"jobReadableId":{"type":"string"},"customerId":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"deadlineType":{"type":"string","enum":["No Deadline","ASAP","Soft Deadline","Hard Deadline"]},"salesOrderLineId":{"type":["string","null"]},"salesOrderId":{"type":["string","null"]},"salesOrderReadableId":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","duration","employeeId","endTime","id","jobOperationBatchId","jobOperationId","notes","postedToGL","startTime","type","updatedAt","updatedBy","workCenterId","description","jobId","jobReadableId","customerId","dueDate","deadlineType","salesOrderLineId","salesOrderId","salesOrderReadableId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/deleteScrapReason":{"post":{"operationId":"production.deleteScrapReason","summary":"delete scrap reason","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scrapReasonId":{"type":"string"}},"required":["scrapReasonId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteFailureMode":{"post":{"operationId":"production.deleteFailureMode","summary":"delete failure mode","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"failureModeId":{"type":"string"}},"required":["failureModeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteMaintenanceDispatch":{"post":{"operationId":"production.deleteMaintenanceDispatch","summary":"delete maintenance dispatch","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dispatchId":{"type":"string"}},"required":["dispatchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteMaintenanceDispatchEvent":{"post":{"operationId":"production.deleteMaintenanceDispatchEvent","summary":"delete maintenance dispatch event","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eventId":{"type":"string"}},"required":["eventId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteMaintenanceDispatchItem":{"post":{"operationId":"production.deleteMaintenanceDispatchItem","summary":"delete maintenance dispatch item","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/deleteMaintenanceSchedule":{"post":{"operationId":"production.deleteMaintenanceSchedule","summary":"delete maintenance schedule","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/getDemandForecasts":{"post":{"operationId":"production.getDemandForecasts","summary":"get demand forecasts","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"},"periodIds":{"type":"array","items":{"type":"string"}}},"required":["itemId","locationId","periodIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"confidence":{"type":["number","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"forecastMethod":{"type":["string","null"]},"forecastQuantity":{"type":"number"},"itemId":{"type":"string"},"locationId":{"type":"string"},"notes":{"type":["string","null"]},"periodId":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"}},"required":["companyId","confidence","createdAt","createdBy","forecastMethod","forecastQuantity","itemId","locationId","notes","periodId","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getDemandProjections":{"post":{"operationId":"production.getDemandProjections","summary":"get demand projections","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"locationId":{"type":"string"},"periodIds":{"type":"array","items":{"type":"string"}}},"required":["itemId","locationId","periodIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"confidence":{"type":["number","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"forecastMethod":{"type":["string","null"]},"forecastQuantity":{"type":"number"},"id":{"type":"string"},"itemId":{"type":"string"},"locationId":{"type":"string"},"notes":{"type":["string","null"]},"periodId":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"}},"required":["companyId","confidence","createdAt","createdBy","forecastMethod","forecastQuantity","id","itemId","locationId","notes","periodId","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobDocuments":{"post":{"operationId":"production.getJobDocuments","summary":"get job documents","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":["string","null"]},"salesOrderLineId":{"type":["string","null"]},"quoteLineId":{"type":["string","null"]},"itemId":{"type":["string","null"]}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobDocumentsWithItemId":{"post":{"operationId":"production.getJobDocumentsWithItemId","summary":"get job documents with item id","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"job":{},"itemId":{"type":"string"}},"required":["job","itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJob":{"post":{"operationId":"production.getJob","summary":"get job","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":["boolean","null"]},"actualTime":{"type":["number","null"]},"assignee":{"type":["string","null"]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"completedDate":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"deadlineType":{"type":["string","null"],"enum":["No Deadline","ASAP","Soft Deadline","Hard Deadline"]},"description":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"estimatedTime":{"type":["number","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableIdWithRevision":{"type":["string","null"]},"itemTrackingType":{"type":["string","null"],"enum":["Inventory","Non-Inventory","Serial","Batch"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"jobId":{"type":["string","null"]},"jobMakeMethodId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"name":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"priority":{"type":["number","null"]},"productionQuantity":{"type":["number","null"]},"projectedCompletionAt":{"type":["string","null"]},"quantity":{"type":["number","null"]},"quantityComplete":{"type":["number","null"]},"quantityReceivedToInventory":{"type":["number","null"]},"quantityShipped":{"type":["number","null"]},"quoteId":{"type":["string","null"]},"quoteLineId":{"type":["string","null"]},"quoteReadableId":{"type":["string","null"]},"releasedDate":{"type":["string","null"]},"replenishmentSystem":{"type":["string","null"],"enum":["Buy","Make","Buy and Make"]},"salesOrderId":{"type":["string","null"]},"salesOrderLineId":{"type":["string","null"]},"salesOrderReadableId":{"type":["string","null"]},"scheduleOutdatedAt":{"type":["string","null"]},"scheduleOutdatedReason":{"type":["string","null"]},"scrapQuantity":{"type":["number","null"]},"secondsToComplete":{"type":["number","null"]},"startDate":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"storageUnitId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","actualTime","assignee","autodeskUrn","companyId","completedDate","configuration","createdAt","createdBy","customerId","customFields","deadlineType","description","dueDate","estimatedTime","id","itemId","itemReadableIdWithRevision","itemTrackingType","itemType","jobId","jobMakeMethodId","locationId","modelId","modelName","modelPath","modelSize","modelUploadId","name","notes","priority","productionQuantity","projectedCompletionAt","quantity","quantityComplete","quantityReceivedToInventory","quantityShipped","quoteId","quoteLineId","quoteReadableId","releasedDate","replenishmentSystem","salesOrderId","salesOrderLineId","salesOrderReadableId","scheduleOutdatedAt","scheduleOutdatedReason","scrapQuantity","secondsToComplete","startDate","status","storageUnitId","tags","thumbnailPath","unitOfMeasureCode","updatedAt","updatedBy"]}}}}}}},"/production/getJobExpediteForecast":{"post":{"operationId":"production.getJobExpediteForecast","summary":"get job expedite forecast","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"projectedCompletionAt":{"type":["string","null"]},"cause":{"type":["string","null"]}},"required":["projectedCompletionAt","cause"]}}}}}}},"/production/getJobByOperationId":{"post":{"operationId":"production.getJobByOperationId","summary":"get job by operation id","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string"}},"required":["operationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"companyId":{"type":"string"},"customerId":{"type":["string","null"]}},"required":["id","companyId","customerId"]}}}}}}},"/production/getJobPurchaseOrderLines":{"post":{"operationId":"production.getJobPurchaseOrderLines","summary":"get job purchase order lines","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"itemId":{"type":["string","null"]},"purchaseQuantity":{"type":["number","null"]},"quantityReceived":{"type":["number","null"]},"quantityShipped":{"type":["number","null"]},"purchaseOrder":{"type":"object","properties":{"id":{"type":"string"},"purchaseOrderId":{"type":"string"},"status":{"type":"string","enum":["Closed","Completed","Rejected","Draft","Planned","To Review","To Receive","To Receive and Invoice","To Invoice","Needs Approval"]},"supplierId":{"type":"string"},"supplierInteractionId":{"type":"string"}},"required":["id","purchaseOrderId","status","supplierId","supplierInteractionId"]},"jobOperation":{"type":["object","null"],"properties":{"id":{"type":"string"},"description":{"type":["string","null"]},"operationQuantity":{"type":["number","null"]}},"required":["id","description","operationQuantity"]}},"required":["id","itemId","purchaseQuantity","quantityReceived","quantityShipped","purchaseOrder","jobOperation"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobOperationsForTimeline":{"post":{"operationId":"production.getJobOperationsForTimeline","summary":"get job operations for timeline","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":["string","null"]},"order":{"type":"number"},"status":{"type":"string","enum":["Todo","Done","In Progress","Ready","Paused","Canceled","Waiting"]},"startDate":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"projectedCompletionAt":{"type":["string","null"]},"hasConflict":{"type":["boolean","null"]},"conflictReason":{"type":["string","null"]},"assignee":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workCenter":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]},"jobMakeMethod":{"type":["object","null"],"properties":{"id":{"type":"string"},"parentMaterialId":{"type":["string","null"]},"item":{"type":"object","properties":{"readableId":{"type":"string"},"name":{"type":"string"}},"required":["readableId","name"]}},"required":["id","parentMaterialId","item"]}},"required":["id","description","order","status","startDate","dueDate","projectedCompletionAt","hasConflict","conflictReason","assignee","workCenterId","workCenter","jobMakeMethod"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getCapacityReservationsByJob":{"post":{"operationId":"production.getCapacityReservationsByJob","summary":"get capacity reservations by job","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"operationId":{"type":"string"},"resourceKind":{"type":"string","enum":["WorkCenter","OperatorPool","Employee"]},"resourceId":{"type":"string"},"startAt":{"type":"string"},"endAt":{"type":"string"},"earliestStartAt":{"type":["string","null"]},"scheduleNote":{"type":["string","null"]},"workHours":{"type":["number","null"]}},"required":["id","operationId","resourceKind","resourceId","startAt","endAt","earliestStartAt","scheduleNote","workHours"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getCompletionJobs":{"post":{"operationId":"production.getCompletionJobs","summary":"the Outbound report: open jobs at a location that fill a sales order, with where each one ships (RPC `get_completion_jobs`), ordered by the plant-calendar day…","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"timeZone":{"type":"string"},"throughDate":{"type":["string","null"]},"search":{"type":["string","null"]}},"required":["locationId","timeZone","throughDate","search"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"completionDate":{"type":"string"},"customerId":{"type":"string"},"customerName":{"type":"string"},"customerReference":{"type":"string"},"dropShipment":{"type":"boolean"},"dueDate":{"type":"string"},"id":{"type":"string"},"itemName":{"type":"string"},"itemReadableIdWithRevision":{"type":"string"},"itemType":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"jobId":{"type":"string"},"jobOperations":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"productionQuantity":{"type":"number"},"projectedCompletionAt":{"type":"string"},"promisedDate":{"type":"string"},"quantityComplete":{"type":"number"},"salesOrderId":{"type":"string"},"salesOrderReadableId":{"type":"string"},"shippingMethod":{"type":"string"},"shipToCity":{"type":"string"},"shipToCountryCode":{"type":"string"},"shipToName":{"type":"string"},"shipToState":{"type":"string"},"status":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"thumbnailPath":{"type":"string"}},"required":["completionDate","customerId","customerName","customerReference","dropShipment","dueDate","id","itemName","itemReadableIdWithRevision","itemType","jobId","jobOperations","productionQuantity","projectedCompletionAt","promisedDate","quantityComplete","salesOrderId","salesOrderReadableId","shippingMethod","shipToCity","shipToCountryCode","shipToName","shipToState","status","thumbnailPath"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getCapacityReservationsForResources":{"post":{"operationId":"production.getCapacityReservationsForResources","summary":"get capacity reservations for resources","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"window":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"description":"Explicit [from, to) instant window (ISO strings) for the resource Gantt's day/week/shift views — returns reservations that OVERLAP it. Omit to keep the default forward horizon (everything ending within the last day onward)."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"operationId":{"type":"string"},"jobId":{"type":"string"},"resourceKind":{"type":"string","enum":["WorkCenter","OperatorPool","Employee"]},"resourceId":{"type":"string"},"startAt":{"type":"string"},"endAt":{"type":"string"},"scheduleNote":{"type":["string","null"]},"workHours":{"type":["number","null"]},"isPlaceholder":{"type":"boolean"},"jobOperationBatchId":{"type":["string","null"]},"job":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"dueDate":{"type":["string","null"]},"locationId":{"type":"string"}},"required":["jobId","status","dueDate","locationId"]},"jobOperation":{"type":"object","properties":{"description":{"type":["string","null"]},"hasConflict":{"type":["boolean","null"]},"conflictReason":{"type":["string","null"]},"jobMakeMethod":{"type":["object","null"],"properties":{"item":{"type":"object","properties":{"readableIdWithRevision":{"type":["string","null"]},"name":{"type":"string"},"thumbnailPath":{"type":["string","null"]},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]}},"required":["readableIdWithRevision","name","thumbnailPath","type"]}},"required":["item"]}},"required":["description","hasConflict","conflictReason","jobMakeMethod"]},"jobOperationBatch":{"type":["object","null"],"properties":{"readableId":{"type":"string"}},"required":["readableId"]}},"required":["id","operationId","jobId","resourceKind","resourceId","startAt","endAt","scheduleNote","workHours","isPlaceholder","jobOperationBatchId","job","jobOperation","jobOperationBatch"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getMaintenanceDowntimeForResources":{"post":{"operationId":"production.getMaintenanceDowntimeForResources","summary":"get maintenance downtime for resources","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"maintenanceDispatchId":{"type":"string"},"workCenterId":{"type":"string"},"plannedStartTime":{"type":["string","null"]},"plannedEndTime":{"type":["string","null"]},"actualStartTime":{"type":["string","null"]},"actualEndTime":{"type":["string","null"]}},"required":["id","maintenanceDispatchId","workCenterId","plannedStartTime","plannedEndTime","actualStartTime","actualEndTime"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProductionEventsByJob":{"post":{"operationId":"production.getProductionEventsByJob","summary":"get production events by job","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"jobOperationId":{"type":"string"},"type":{"type":["string","null"],"enum":["Setup","Labor","Machine"]},"startTime":{"type":"string"},"endTime":{"type":["string","null"]},"employeeId":{"type":["string","null"]},"jobOperation":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}},"required":["id","jobOperationId","type","startTime","endTime","employeeId","jobOperation"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobs":{"post":{"operationId":"production.getJobs","summary":"get jobs","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"anyOf":[{"type":"string"},{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0}}}]}},"required":["search"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"actualTime":{"type":["number","null"]},"assignee":{"type":["string","null"]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"completedDate":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"deadlineType":{"type":["string","null"],"enum":["No Deadline","ASAP","Soft Deadline","Hard Deadline"]},"description":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"estimatedTime":{"type":["number","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableIdWithRevision":{"type":["string","null"]},"itemTrackingType":{"type":["string","null"],"enum":["Inventory","Non-Inventory","Serial","Batch"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"jobId":{"type":["string","null"]},"jobMakeMethodId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"name":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"priority":{"type":["number","null"]},"productionQuantity":{"type":["number","null"]},"projectedCompletionAt":{"type":["string","null"]},"quantity":{"type":["number","null"]},"quantityComplete":{"type":["number","null"]},"quantityReceivedToInventory":{"type":["number","null"]},"quantityShipped":{"type":["number","null"]},"quoteId":{"type":["string","null"]},"quoteLineId":{"type":["string","null"]},"quoteReadableId":{"type":["string","null"]},"releasedDate":{"type":["string","null"]},"replenishmentSystem":{"type":["string","null"],"enum":["Buy","Make","Buy and Make"]},"salesOrderId":{"type":["string","null"]},"salesOrderLineId":{"type":["string","null"]},"salesOrderReadableId":{"type":["string","null"]},"scheduleOutdatedAt":{"type":["string","null"]},"scheduleOutdatedReason":{"type":["string","null"]},"scrapQuantity":{"type":["number","null"]},"secondsToComplete":{"type":["number","null"]},"startDate":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"storageUnitId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","actualTime","assignee","autodeskUrn","companyId","completedDate","configuration","createdAt","createdBy","customerId","customFields","deadlineType","description","dueDate","estimatedTime","id","itemId","itemReadableIdWithRevision","itemTrackingType","itemType","jobId","jobMakeMethodId","locationId","modelId","modelName","modelPath","modelSize","modelUploadId","name","notes","priority","productionQuantity","projectedCompletionAt","quantity","quantityComplete","quantityReceivedToInventory","quantityShipped","quoteId","quoteLineId","quoteReadableId","releasedDate","replenishmentSystem","salesOrderId","salesOrderLineId","salesOrderReadableId","scheduleOutdatedAt","scheduleOutdatedReason","scrapQuantity","secondsToComplete","startDate","status","storageUnitId","tags","thumbnailPath","unitOfMeasureCode","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobsBySalesOrderLine":{"post":{"operationId":"production.getJobsBySalesOrderLine","summary":"get jobs by sales order line","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderLineId":{"type":"string"}},"required":["salesOrderLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"actualTime":{"type":["number","null"]},"assignee":{"type":["string","null"]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"completedDate":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"deadlineType":{"type":["string","null"],"enum":["No Deadline","ASAP","Soft Deadline","Hard Deadline"]},"description":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"estimatedTime":{"type":["number","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableIdWithRevision":{"type":["string","null"]},"itemTrackingType":{"type":["string","null"],"enum":["Inventory","Non-Inventory","Serial","Batch"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"jobId":{"type":["string","null"]},"jobMakeMethodId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"name":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"priority":{"type":["number","null"]},"productionQuantity":{"type":["number","null"]},"projectedCompletionAt":{"type":["string","null"]},"quantity":{"type":["number","null"]},"quantityComplete":{"type":["number","null"]},"quantityReceivedToInventory":{"type":["number","null"]},"quantityShipped":{"type":["number","null"]},"quoteId":{"type":["string","null"]},"quoteLineId":{"type":["string","null"]},"quoteReadableId":{"type":["string","null"]},"releasedDate":{"type":["string","null"]},"replenishmentSystem":{"type":["string","null"],"enum":["Buy","Make","Buy and Make"]},"salesOrderId":{"type":["string","null"]},"salesOrderLineId":{"type":["string","null"]},"salesOrderReadableId":{"type":["string","null"]},"scheduleOutdatedAt":{"type":["string","null"]},"scheduleOutdatedReason":{"type":["string","null"]},"scrapQuantity":{"type":["number","null"]},"secondsToComplete":{"type":["number","null"]},"startDate":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"storageUnitId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","actualTime","assignee","autodeskUrn","companyId","completedDate","configuration","createdAt","createdBy","customerId","customFields","deadlineType","description","dueDate","estimatedTime","id","itemId","itemReadableIdWithRevision","itemTrackingType","itemType","jobId","jobMakeMethodId","locationId","modelId","modelName","modelPath","modelSize","modelUploadId","name","notes","priority","productionQuantity","projectedCompletionAt","quantity","quantityComplete","quantityReceivedToInventory","quantityShipped","quoteId","quoteLineId","quoteReadableId","releasedDate","replenishmentSystem","salesOrderId","salesOrderLineId","salesOrderReadableId","scheduleOutdatedAt","scheduleOutdatedReason","scrapQuantity","secondsToComplete","startDate","status","storageUnitId","tags","thumbnailPath","unitOfMeasureCode","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobsList":{"post":{"operationId":"production.getJobsList","summary":"get jobs list","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"statuses":{"type":"array","items":{"type":"string","enum":["Draft","Ready","In Progress","Paused","Completed","Cancelled","Overdue","Due Today","Planned","Closed"]}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"jobId":{"type":"string"}},"required":["id","jobId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobMakeMethodById":{"post":{"operationId":"production.getJobMakeMethodById","summary":"get job make method by id","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobMakeMethodId":{"type":"string"}},"required":["jobMakeMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"itemScrapPercentage":{"type":"number"},"jobId":{"type":"string"},"parentMaterialId":{"type":["string","null"]},"quantityPerParent":{"type":"number"},"requiresBatchTracking":{"type":"boolean"},"requiresSerialTracking":{"type":"boolean"},"trackedEntityId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"},"itemType":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"methodRevision":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","itemId","itemScrapPercentage","jobId","parentMaterialId","quantityPerParent","requiresBatchTracking","requiresSerialTracking","trackedEntityId","updatedAt","updatedBy","version","itemType","methodRevision"]}}}}}}},"/production/getRootMakeMethod":{"post":{"operationId":"production.getRootMakeMethod","summary":"get root make method","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"itemScrapPercentage":{"type":"number"},"jobId":{"type":"string"},"parentMaterialId":{"type":["string","null"]},"quantityPerParent":{"type":"number"},"requiresBatchTracking":{"type":"boolean"},"requiresSerialTracking":{"type":"boolean"},"trackedEntityId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"},"itemType":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"methodRevision":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","itemId","itemScrapPercentage","jobId","parentMaterialId","quantityPerParent","requiresBatchTracking","requiresSerialTracking","trackedEntityId","updatedAt","updatedBy","version","itemType","methodRevision"]}}}}}}},"/production/getJobMaterialsWithQuantityOnHand":{"post":{"operationId":"production.getJobMaterialsWithQuantityOnHand","summary":"get job materials with quantity on hand","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"locationId":{"type":"string"},"args":{"type":"object","properties":{"search":{"anyOf":[{"type":"string"},{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0}}}]}},"required":["search"]}},"required":["jobId","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"estimatedQuantity":{"type":"number"},"id":{"type":"string"},"itemReadableId":{"type":"string"},"itemScrapPercentage":{"type":"number"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"jobMakeMethodId":{"type":"string"},"jobMaterialItemId":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"name":{"type":"string"},"quantityFromProductionOrderInStorageUnit":{"type":"number"},"quantityFromProductionOrderNotInStorageUnit":{"type":"number"},"quantityInTransitToStorageUnit":{"type":"number"},"quantityIssued":{"type":"number"},"quantityOnHandInStorageUnit":{"type":"number"},"quantityOnHandNotInStorageUnit":{"type":"number"},"quantityOnProductionOrder":{"type":"number"},"quantityOnPurchaseOrder":{"type":"number"},"quantityOnSalesOrder":{"type":"number"},"quantityPerParent":{"type":"number"},"storageUnitId":{"type":"string"},"storageUnitName":{"type":"string"},"substitutedFromItemId":{"type":"string"},"thumbnailPath":{"type":"string"},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"unitOfMeasureCode":{"type":"string"}},"required":["description","estimatedQuantity","id","itemReadableId","itemScrapPercentage","itemTrackingType","jobMakeMethodId","jobMaterialItemId","methodType","name","quantityFromProductionOrderInStorageUnit","quantityFromProductionOrderNotInStorageUnit","quantityInTransitToStorageUnit","quantityIssued","quantityOnHandInStorageUnit","quantityOnHandNotInStorageUnit","quantityOnProductionOrder","quantityOnPurchaseOrder","quantityOnSalesOrder","quantityPerParent","storageUnitId","storageUnitName","substitutedFromItemId","thumbnailPath","type","unitOfMeasureCode"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobMaterialItemIds":{"post":{"operationId":"production.getJobMaterialItemIds","summary":"get job material item ids","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobMaterialShortfallByItem":{"post":{"operationId":"production.getJobMaterialShortfallByItem","summary":"get job material shortfall by item","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"locationId":{"type":"string"},"materials":{"type":"array","items":{"type":"object","properties":{"jobMaterialItemId":{"type":["string","null"]},"quantityOnHandInStorageUnit":{"type":["number","null"]},"quantityOnHandNotInStorageUnit":{"type":["number","null"]},"quantityOnPurchaseOrder":{"type":["number","null"]},"quantityOnProductionOrder":{"type":["number","null"]}},"required":["jobMaterialItemId","quantityOnHandInStorageUnit","quantityOnHandNotInStorageUnit","quantityOnPurchaseOrder","quantityOnProductionOrder"]}},"asOfDate":{"type":"string"}},"required":["jobId","locationId","materials"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"shortfall":{"type":"number"},"coveredByOnHand":{"type":"boolean"},"substituteItemId":{"type":["string","null"]}},"required":["shortfall","coveredByOnHand"]}}}}}}}},"/production/getJobOrderStatusMap":{"post":{"operationId":"production.getJobOrderStatusMap","summary":"get job order status map","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"locationId":{"type":"string"},"jobStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"materials":{},"asOfDate":{"type":"string"}},"required":["jobId","locationId","jobStatus","materials"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"needsOrder":{"type":"boolean"},"needsJob":{"type":"boolean"},"shortfall":{"type":"number"},"substituteItemId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Completed","Rejected","Draft","Planned","To Review","To Receive","To Receive and Invoice","To Invoice","Needs Approval"]},"supplyJobStatus":{"type":["string","null"],"enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"coveredByOnHand":{"type":"boolean"},"isIssued":{"type":"boolean"},"ordered":{"type":"number"},"received":{"type":"number"}},"required":["needsOrder","needsJob","shortfall","substituteItemId","status","supplyJobStatus","coveredByOnHand","isIssued","ordered","received"]}}}}}}}},"/production/getJobMethodTree":{"post":{"operationId":"production.getJobMethodTree","summary":"get job method tree","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"data":{"type":"object","properties":{"description":{"type":"string"},"isRoot":{"type":"boolean"},"itemId":{"type":"string"},"itemReadableId":{"type":"string"},"itemType":{"type":"string"},"jobId":{"type":"string"},"jobMakeMethodId":{"type":"string"},"jobMaterialMakeMethodId":{"type":"string"},"kit":{"type":"boolean"},"methodMaterialId":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":"number"},"parentMaterialId":{"type":"string"},"quantity":{"type":"number"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":"string"},"storageUnitId":{"type":"string"},"unitCost":{"type":"number"},"version":{"type":"number"}},"required":["description","isRoot","itemId","itemReadableId","itemType","jobId","jobMakeMethodId","jobMaterialMakeMethodId","kit","methodMaterialId","methodType","order","parentMaterialId","quantity","replenishmentSystem","revision","storageUnitId","unitCost","version"]},"children":{"type":"array","items":{"type":"object"}}},"required":["id","data","children"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobMethodTreeArray":{"post":{"operationId":"production.getJobMethodTreeArray","summary":"get job method tree array","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"isRoot":{"type":"boolean"},"itemId":{"type":"string"},"itemReadableId":{"type":"string"},"itemType":{"type":"string"},"jobId":{"type":"string"},"jobMakeMethodId":{"type":"string"},"jobMaterialMakeMethodId":{"type":"string"},"kit":{"type":"boolean"},"methodMaterialId":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":"number"},"parentMaterialId":{"type":"string"},"quantity":{"type":"number"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":"string"},"storageUnitId":{"type":"string"},"unitCost":{"type":"number"},"version":{"type":"number"}},"required":["description","isRoot","itemId","itemReadableId","itemType","jobId","jobMakeMethodId","jobMaterialMakeMethodId","kit","methodMaterialId","methodType","order","parentMaterialId","quantity","replenishmentSystem","revision","storageUnitId","unitCost","version"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobMaterial":{"post":{"operationId":"production.getJobMaterial","summary":"get job material","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materialId":{"type":"string"}},"required":["materialId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultStorageUnit":{"type":["boolean","null"]},"description":{"type":["string","null"]},"estimatedQuantity":{"type":["number","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemReadableIdWithoutRevision":{"type":["string","null"]},"itemScrapPercentage":{"type":["number","null"]},"itemType":{"type":["string","null"]},"jobId":{"type":["string","null"]},"jobMakeMethodId":{"type":["string","null"]},"jobMaterialMakeMethodId":{"type":["string","null"]},"jobOperationId":{"type":["string","null"]},"kit":{"type":["boolean","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":["number","null"]},"quantity":{"type":["number","null"]},"quantityIssued":{"type":["number","null"]},"quantityToIssue":{"type":["number","null"]},"requiresBatchTracking":{"type":["boolean","null"]},"requiresSerialTracking":{"type":["boolean","null"]},"scrapQuantity":{"type":["number","null"]},"storageUnitId":{"type":["string","null"]},"storageUnitName":{"type":["string","null"]},"substitutedFromItemId":{"type":["string","null"]},"substitutionFactor":{"type":["number","null"]},"unitCost":{"type":["number","null"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":["number","null"]}},"required":["companyId","createdAt","createdBy","customFields","defaultStorageUnit","description","estimatedQuantity","id","itemId","itemReadableId","itemReadableIdWithoutRevision","itemScrapPercentage","itemType","jobId","jobMakeMethodId","jobMaterialMakeMethodId","jobOperationId","kit","methodType","order","quantity","quantityIssued","quantityToIssue","requiresBatchTracking","requiresSerialTracking","scrapQuantity","storageUnitId","storageUnitName","substitutedFromItemId","substitutionFactor","unitCost","unitOfMeasureCode","updatedAt","updatedBy","version"]}}}}}}},"/production/getJobMaterialsByMethodId":{"post":{"operationId":"production.getJobMaterialsByMethodId","summary":"get job materials by method id","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobMakeMethodId":{"type":"string"}},"required":["jobMakeMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultStorageUnit":{"type":["boolean","null"]},"description":{"type":"string"},"estimatedQuantity":{"type":["number","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"itemScrapPercentage":{"type":"number"},"itemType":{"type":"string"},"jobId":{"type":"string"},"jobMakeMethodId":{"type":"string"},"jobOperationId":{"type":["string","null"]},"kit":{"type":"boolean"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":"number"},"quantity":{"type":"number"},"quantityIssued":{"type":["number","null"]},"quantityToIssue":{"type":["number","null"]},"requiresBatchTracking":{"type":"boolean"},"requiresSerialTracking":{"type":"boolean"},"scrapQuantity":{"type":"number"},"storageUnitId":{"type":["string","null"]},"substitutedFromItemId":{"type":["string","null"]},"substitutionFactor":{"type":["number","null"]},"unitCost":{"type":"number"},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"item":{"type":"object","properties":{"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]}},"required":["replenishmentSystem"]},"jobMaterialStep":{"type":"array","items":{"type":"object","properties":{"jobOperationStepId":{"type":"string"},"quantity":{"type":["number","null"]}},"required":["jobOperationStepId","quantity"]}}},"required":["companyId","createdAt","createdBy","customFields","defaultStorageUnit","description","estimatedQuantity","id","itemId","itemScrapPercentage","itemType","jobId","jobMakeMethodId","jobOperationId","kit","methodType","order","quantity","quantityIssued","quantityToIssue","requiresBatchTracking","requiresSerialTracking","scrapQuantity","storageUnitId","substitutedFromItemId","substitutionFactor","unitCost","unitOfMeasureCode","updatedAt","updatedBy","item","jobMaterialStep"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobOperation":{"post":{"operationId":"production.getJobOperation","summary":"get job operation","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobOperationId":{"type":"string"}},"required":["jobOperationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"conflictReason":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"hasConflict":{"type":["boolean","null"]},"id":{"type":"string"},"inspectionDocumentId":{"type":["string","null"]},"jobId":{"type":"string"},"jobMakeMethodId":{"type":["string","null"]},"jobOperationBatchId":{"type":["string","null"]},"laborRate":{"type":"number"},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineRate":{"type":["number","null"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"manuallyScheduled":{"type":"boolean"},"operationLeadTime":{"type":"number"},"operationMinimumCost":{"type":"number"},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationQuantity":{"type":["number","null"]},"operationSupplierProcessId":{"type":["string","null"]},"operationType":{"type":"string","enum":["Inspection","Process","Assembly","Outside Processing"]},"operationUnitCost":{"type":"number"},"order":{"type":"number"},"overheadRate":{"type":"number"},"priority":{"type":"number"},"procedureId":{"type":["string","null"]},"processId":{"type":"string"},"projectedCompletionAt":{"type":["string","null"]},"quantityComplete":{"type":["number","null"]},"quantityReworked":{"type":["number","null"]},"quantityScrapped":{"type":["number","null"]},"readyAt":{"type":["string","null"]},"reworkId":{"type":["string","null"]},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"startDate":{"type":["string","null"]},"status":{"type":"string","enum":["Todo","Done","In Progress","Ready","Paused","Canceled","Waiting"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"targetQuantity":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workInstruction":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["assemblyInstructionId","assignee","companyId","conflictReason","createdAt","createdBy","customFields","description","dueDate","hasConflict","id","inspectionDocumentId","jobId","jobMakeMethodId","jobOperationBatchId","laborRate","laborTime","laborUnit","machineRate","machineTime","machineUnit","manuallyScheduled","operationLeadTime","operationMinimumCost","operationOrder","operationQuantity","operationSupplierProcessId","operationType","operationUnitCost","order","overheadRate","priority","procedureId","processId","projectedCompletionAt","quantityComplete","quantityReworked","quantityScrapped","readyAt","reworkId","setupTime","setupUnit","startDate","status","tags","targetQuantity","updatedAt","updatedBy","workCenterId","workInstruction"]}}}}}}},"/production/getJobOperations":{"post":{"operationId":"production.getJobOperations","summary":"get job operations","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"args":{"type":"object","properties":{"search":{"anyOf":[{"type":"string"},{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0}}}]}},"required":["search"]}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assemblyInstructionId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"conflictReason":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"hasConflict":{"type":["boolean","null"]},"id":{"type":"string"},"inspectionDocumentId":{"type":["string","null"]},"jobId":{"type":"string"},"jobMakeMethodId":{"type":["string","null"]},"jobOperationBatchId":{"type":["string","null"]},"laborRate":{"type":"number"},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineRate":{"type":["number","null"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"manuallyScheduled":{"type":"boolean"},"operationLeadTime":{"type":"number"},"operationMinimumCost":{"type":"number"},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationQuantity":{"type":["number","null"]},"operationSupplierProcessId":{"type":["string","null"]},"operationType":{"type":"string","enum":["Inspection","Process","Assembly","Outside Processing"]},"operationUnitCost":{"type":"number"},"order":{"type":"number"},"overheadRate":{"type":"number"},"priority":{"type":"number"},"procedureId":{"type":["string","null"]},"processId":{"type":"string"},"projectedCompletionAt":{"type":["string","null"]},"quantityComplete":{"type":["number","null"]},"quantityReworked":{"type":["number","null"]},"quantityScrapped":{"type":["number","null"]},"readyAt":{"type":["string","null"]},"reworkId":{"type":["string","null"]},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"startDate":{"type":["string","null"]},"status":{"type":"string","enum":["Todo","Done","In Progress","Ready","Paused","Canceled","Waiting"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"targetQuantity":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workInstruction":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"jobMakeMethod":{"type":["object","null"],"properties":{"parentMaterialId":{"type":["string","null"]},"item":{"type":"object","properties":{"readableIdWithRevision":{"type":["string","null"]}},"required":["readableIdWithRevision"]}},"required":["parentMaterialId","item"]}},"required":["assemblyInstructionId","assignee","companyId","conflictReason","createdAt","createdBy","customFields","description","dueDate","hasConflict","id","inspectionDocumentId","jobId","jobMakeMethodId","jobOperationBatchId","laborRate","laborTime","laborUnit","machineRate","machineTime","machineUnit","manuallyScheduled","operationLeadTime","operationMinimumCost","operationOrder","operationQuantity","operationSupplierProcessId","operationType","operationUnitCost","order","overheadRate","priority","procedureId","processId","projectedCompletionAt","quantityComplete","quantityReworked","quantityScrapped","readyAt","reworkId","setupTime","setupUnit","startDate","status","tags","targetQuantity","updatedAt","updatedBy","workCenterId","workInstruction","jobMakeMethod"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobOperationDependencies":{"post":{"operationId":"production.getJobOperationDependencies","summary":"get job operation dependencies","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"operationId":{"type":"string"},"dependsOnId":{"type":"string"}},"required":["operationId","dependsOnId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobOperationsAssignedToEmployee":{"post":{"operationId":"production.getJobOperationsAssignedToEmployee","summary":"get job operations assigned to employee","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"}},"required":["employeeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"jobId":{"type":"string"},"jobReadableId":{"type":"string"}},"required":["id","description","workCenterId","jobId","jobReadableId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobOperationAttachments":{"post":{"operationId":"production.getJobOperationAttachments","summary":"get job operation attachments","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobOperationIds":{"type":"array","items":{"type":"string"}}},"required":["jobOperationIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}}}}}},"/production/getJobOperationsList":{"post":{"operationId":"production.getJobOperationsList","summary":"get job operations list","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":["string","null"]},"order":{"type":"number"}},"required":["id","description","order"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobOperationsByMethodId":{"post":{"operationId":"production.getJobOperationsByMethodId","summary":"get job operations by method id","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobMakeMethodId":{"type":"string"}},"required":["jobMakeMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assemblyInstructionId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"conflictReason":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"hasConflict":{"type":["boolean","null"]},"id":{"type":"string"},"inspectionDocumentId":{"type":["string","null"]},"jobId":{"type":"string"},"jobMakeMethodId":{"type":["string","null"]},"jobOperationBatchId":{"type":["string","null"]},"laborRate":{"type":"number"},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineRate":{"type":["number","null"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"manuallyScheduled":{"type":"boolean"},"operationLeadTime":{"type":"number"},"operationMinimumCost":{"type":"number"},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationQuantity":{"type":["number","null"]},"operationSupplierProcessId":{"type":["string","null"]},"operationType":{"type":"string","enum":["Inspection","Process","Assembly","Outside Processing"]},"operationUnitCost":{"type":"number"},"order":{"type":"number"},"overheadRate":{"type":"number"},"priority":{"type":"number"},"procedureId":{"type":["string","null"]},"processId":{"type":"string"},"projectedCompletionAt":{"type":["string","null"]},"quantityComplete":{"type":["number","null"]},"quantityReworked":{"type":["number","null"]},"quantityScrapped":{"type":["number","null"]},"readyAt":{"type":["string","null"]},"reworkId":{"type":["string","null"]},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"startDate":{"type":["string","null"]},"status":{"type":"string","enum":["Todo","Done","In Progress","Ready","Paused","Canceled","Waiting"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"targetQuantity":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workInstruction":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"jobOperationBatch":{"type":["object","null"],"properties":{"id":{"type":"string"},"readableId":{"type":"string"},"status":{"type":"string","enum":["Active","Completed","Planned","Completing"]}},"required":["id","readableId","status"]},"jobOperationTool":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"operationId":{"type":"string"},"quantity":{"type":"number"},"toolId":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":["string","null"]},"jobOperationToolStep":{"type":"array","items":{"type":"object","properties":{"jobOperationStepId":{"type":"string"}},"required":["jobOperationStepId"]}}},"required":["companyId","createdAt","createdBy","id","operationId","quantity","toolId","updatedAt","updatedBy","jobOperationToolStep"]}},"jobOperationParameter":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"key":{"type":"string"},"operationId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"value":{"type":"string"}},"required":["companyId","createdAt","createdBy","id","key","operationId","updatedAt","updatedBy","value"]}},"jobOperationStep":{"type":"array","items":{"type":"object","properties":{"assemblyInstructionStepId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]},"fileTypes":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"listValues":{"type":["array","null"],"items":{"type":"string"}},"maxValue":{"type":["number","null"]},"minValue":{"type":["number","null"]},"name":{"type":"string"},"nonConformanceActionId":{"type":["string","null"]},"nonConformanceInvestigationId":{"type":["string","null"]},"operationId":{"type":"string"},"required":{"type":["boolean","null"]},"sortOrder":{"type":"number"},"type":{"type":"string","enum":["Value","Measurement","Checkbox","Timestamp","Person","List","File","Task","Inspection"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"jobOperationStepRecord":{"type":"array","items":{"type":"object","properties":{"booleanValue":{"type":["boolean","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"index":{"type":"number"},"jobOperationStepId":{"type":"string"},"numericValue":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"userValue":{"type":["string","null"]},"value":{"type":["string","null"]}},"required":["booleanValue","companyId","createdAt","createdBy","id","index","jobOperationStepId","numericValue","updatedAt","updatedBy","userValue","value"]}},"jobOperationStepSlide":{"type":"array","items":{"type":"object","properties":{"annotations":{"anyOf":[{},{"type":"null"}]},"caption":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"imagePath":{"type":["string","null"]},"modelUploadId":{"type":["string","null"]},"size":{"type":"string"},"sortOrder":{"type":"number"},"stepId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["annotations","caption","companyId","createdAt","createdBy","id","imagePath","modelUploadId","size","sortOrder","stepId","updatedAt","updatedBy"]}}},"required":["assemblyInstructionStepId","companyId","createdAt","createdBy","description","fileTypes","id","listValues","maxValue","minValue","name","nonConformanceActionId","nonConformanceInvestigationId","operationId","required","sortOrder","type","unitOfMeasureCode","updatedAt","updatedBy","jobOperationStepRecord","jobOperationStepSlide"]}}},"required":["assemblyInstructionId","assignee","companyId","conflictReason","createdAt","createdBy","customFields","description","dueDate","hasConflict","id","inspectionDocumentId","jobId","jobMakeMethodId","jobOperationBatchId","laborRate","laborTime","laborUnit","machineRate","machineTime","machineUnit","manuallyScheduled","operationLeadTime","operationMinimumCost","operationOrder","operationQuantity","operationSupplierProcessId","operationType","operationUnitCost","order","overheadRate","priority","procedureId","processId","projectedCompletionAt","quantityComplete","quantityReworked","quantityScrapped","readyAt","reworkId","setupTime","setupUnit","startDate","status","tags","targetQuantity","updatedAt","updatedBy","workCenterId","workInstruction","jobOperationBatch","jobOperationTool","jobOperationParameter","jobOperationStep"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobOperationStepRecords":{"post":{"operationId":"production.getJobOperationStepRecords","summary":"get job operation step records","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}},"required":["jobId","args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"booleanValue":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"index":{"type":"number"},"itemId":{"type":"string"},"itemReadableId":{"type":"string"},"jobOperationStepId":{"type":"string"},"maxValue":{"type":"number"},"minValue":{"type":"number"},"name":{"type":"string"},"numericValue":{"type":"number"},"operationDescription":{"type":"string"},"operationId":{"type":"string"},"type":{"type":"string","enum":["Value","Measurement","Checkbox","Timestamp","Person","List","File","Task","Inspection"]},"unitOfMeasureCode":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"},"userValue":{"type":"string"},"value":{"type":"string"}},"required":["booleanValue","companyId","createdAt","createdBy","id","index","itemId","itemReadableId","jobOperationStepId","maxValue","minValue","name","numericValue","operationDescription","operationId","type","unitOfMeasureCode","updatedAt","updatedBy","userValue","value"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getOutsideOperationsByJobId":{"post":{"operationId":"production.getOutsideOperationsByJobId","summary":"get outside operations by job id","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":["string","null"]}},"required":["id","description"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProcedure":{"post":{"operationId":"production.getProcedure","summary":"get procedure","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"processId":{"type":["string","null"]},"status":{"type":"string","enum":["Active","Draft","Archived"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"},"procedureStep":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"fileTypes":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"listValues":{"type":["array","null"],"items":{"type":"string"}},"maxValue":{"type":["number","null"]},"minValue":{"type":["number","null"]},"name":{"type":"string"},"procedureId":{"type":"string"},"required":{"type":["boolean","null"]},"sortOrder":{"type":"number"},"type":{"type":"string","enum":["Value","Measurement","Checkbox","Timestamp","Person","List","File","Task","Inspection"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","description","fileTypes","id","listValues","maxValue","minValue","name","procedureId","required","sortOrder","type","unitOfMeasureCode","updatedAt","updatedBy"]}},"procedureParameter":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"key":{"type":"string"},"procedureId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"value":{"type":"string"}},"required":["companyId","createdAt","createdBy","id","key","procedureId","updatedAt","updatedBy","value"]}}},"required":["assignee","companyId","content","createdAt","createdBy","description","id","name","processId","status","tags","updatedAt","updatedBy","version","procedureStep","procedureParameter"]}}}}}}},"/production/getProcedureSteps":{"post":{"operationId":"production.getProcedureSteps","summary":"get procedure steps","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"procedureId":{"type":"string"}},"required":["procedureId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"fileTypes":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"listValues":{"type":["array","null"],"items":{"type":"string"}},"maxValue":{"type":["number","null"]},"minValue":{"type":["number","null"]},"name":{"type":"string"},"procedureId":{"type":"string"},"required":{"type":["boolean","null"]},"sortOrder":{"type":"number"},"type":{"type":"string","enum":["Value","Measurement","Checkbox","Timestamp","Person","List","File","Task","Inspection"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","description","fileTypes","id","listValues","maxValue","minValue","name","procedureId","required","sortOrder","type","unitOfMeasureCode","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProcedureParameters":{"post":{"operationId":"production.getProcedureParameters","summary":"get procedure parameters","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"procedureId":{"type":"string"}},"required":["procedureId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"key":{"type":"string"},"procedureId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"value":{"type":"string"}},"required":["companyId","createdAt","createdBy","id","key","procedureId","updatedAt","updatedBy","value"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProcedureVersions":{"post":{"operationId":"production.getProcedureVersions","summary":"get procedure versions","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"number"}},"required":["name","version"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"processId":{"type":["string","null"]},"status":{"type":"string","enum":["Active","Draft","Archived"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"}},"required":["assignee","companyId","content","createdAt","createdBy","description","id","name","processId","status","tags","updatedAt","updatedBy","version"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProcedures":{"post":{"operationId":"production.getProcedures","summary":"get procedures","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"anyOf":[{"type":"string"},{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0}}}]}},"required":["search"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"processId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Active","Draft","Archived"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"version":{"type":["number","null"]},"versions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["assignee","companyId","id","name","processId","status","tags","version","versions"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProceduresList":{"post":{"operationId":"production.getProceduresList","summary":"get procedures list","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"version":{"type":"number"},"processId":{"type":"string"},"status":{"type":"string"}},"required":["id","name","version","processId","status"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProductionEvent":{"post":{"operationId":"production.getProductionEvent","summary":"get production event","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"duration":{"type":["number","null"]},"employeeId":{"type":["string","null"]},"endTime":{"type":["string","null"]},"id":{"type":"string"},"jobOperationBatchId":{"type":["string","null"]},"jobOperationId":{"type":"string"},"notes":{"type":["string","null"]},"postedToGL":{"type":"boolean"},"startTime":{"type":"string"},"type":{"type":["string","null"],"enum":["Setup","Labor","Machine"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"jobOperation":{"type":"object","properties":{"description":{"type":["string","null"]}},"required":["description"]}},"required":["companyId","createdAt","createdBy","duration","employeeId","endTime","id","jobOperationBatchId","jobOperationId","notes","postedToGL","startTime","type","updatedAt","updatedBy","workCenterId","jobOperation"]}}}}}}},"/production/getProductionEvents":{"post":{"operationId":"production.getProductionEvents","summary":"get production events","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobOperationIds":{"type":"array","items":{"type":"string"}},"args":{"type":"object","properties":{"search":{"anyOf":[{"type":"string"},{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0}}}]}},"required":["search"]}},"required":["jobOperationIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"duration":{"type":["number","null"]},"employeeId":{"type":["string","null"]},"endTime":{"type":["string","null"]},"id":{"type":"string"},"jobOperationBatchId":{"type":["string","null"]},"jobOperationId":{"type":"string"},"notes":{"type":["string","null"]},"postedToGL":{"type":"boolean"},"startTime":{"type":"string"},"type":{"type":["string","null"],"enum":["Setup","Labor","Machine"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"jobOperation":{"type":"object","properties":{"description":{"type":["string","null"]},"jobMakeMethod":{"type":["object","null"],"properties":{"parentMaterialId":{"type":["string","null"]},"item":{"type":"object","properties":{"readableIdWithRevision":{"type":["string","null"]}},"required":["readableIdWithRevision"]}},"required":["parentMaterialId","item"]}},"required":["description","jobMakeMethod"]}},"required":["companyId","createdAt","createdBy","duration","employeeId","endTime","id","jobOperationBatchId","jobOperationId","notes","postedToGL","startTime","type","updatedAt","updatedBy","workCenterId","jobOperation"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProductionEventsPage":{"post":{"operationId":"production.getProductionEventsPage","summary":"get production events page","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobOperationId":{"type":"string"},"sortDescending":{"type":"boolean"},"page":{"type":"number"}},"required":["jobOperationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"duration":{"type":["number","null"]},"employeeId":{"type":["string","null"]},"endTime":{"type":["string","null"]},"id":{"type":"string"},"jobOperationBatchId":{"type":["string","null"]},"jobOperationId":{"type":"string"},"notes":{"type":["string","null"]},"postedToGL":{"type":"boolean"},"startTime":{"type":"string"},"type":{"type":["string","null"],"enum":["Setup","Labor","Machine"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","duration","employeeId","endTime","id","jobOperationBatchId","jobOperationId","notes","postedToGL","startTime","type","updatedAt","updatedBy","workCenterId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProductionEventsByOperations":{"post":{"operationId":"production.getProductionEventsByOperations","summary":"get production events by operations","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobOperationIds":{"type":"array","items":{"type":"string"}}},"required":["jobOperationIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"duration":{"type":["number","null"]},"employeeId":{"type":["string","null"]},"endTime":{"type":["string","null"]},"id":{"type":"string"},"jobOperationBatchId":{"type":["string","null"]},"jobOperationId":{"type":"string"},"notes":{"type":["string","null"]},"postedToGL":{"type":"boolean"},"startTime":{"type":"string"},"type":{"type":["string","null"],"enum":["Setup","Labor","Machine"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"jobOperation":{"type":"object","properties":{"description":{"type":["string","null"]},"jobMakeMethod":{"type":["object","null"],"properties":{"parentMaterialId":{"type":["string","null"]},"item":{"type":"object","properties":{"readableIdWithRevision":{"type":["string","null"]}},"required":["readableIdWithRevision"]}},"required":["parentMaterialId","item"]}},"required":["description","jobMakeMethod"]}},"required":["companyId","createdAt","createdBy","duration","employeeId","endTime","id","jobOperationBatchId","jobOperationId","notes","postedToGL","startTime","type","updatedAt","updatedBy","workCenterId","jobOperation"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProductionPlanning":{"post":{"operationId":"production.getProductionPlanning","summary":"get production planning","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"periods":{"type":"array","items":{"type":"string"}},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}},"required":["locationId","periods","args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"demandAccumulationPeriod":{"type":"number"},"demandAccumulationSafetyStock":{"type":"number"},"id":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"leadTime":{"type":"number"},"lotSize":{"type":"number"},"manufacturingBlocked":{"type":"boolean"},"maximumInventoryQuantity":{"type":"number"},"maximumOrderQuantity":{"type":"number"},"minimumOrderQuantity":{"type":"number"},"minimumReserveQuantity":{"type":"number"},"name":{"type":"string"},"orderMultiple":{"type":"number"},"quantityOnHand":{"type":"number"},"quantityToOrder":{"type":"number"},"readableIdWithRevision":{"type":"string"},"reorderingPolicy":{"type":"string","enum":["Manual Reorder","Demand-Based Reorder","Fixed Reorder Quantity","Maximum Quantity"]},"reorderPoint":{"type":"number"},"reorderQuantity":{"type":"number"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"supersessionMode":{"type":"string"},"thumbnailPath":{"type":"string"},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"unitOfMeasureCode":{"type":"string"},"week1":{"type":"number"},"week10":{"type":"number"},"week11":{"type":"number"},"week12":{"type":"number"},"week13":{"type":"number"},"week14":{"type":"number"},"week15":{"type":"number"},"week16":{"type":"number"},"week17":{"type":"number"},"week18":{"type":"number"},"week19":{"type":"number"},"week2":{"type":"number"},"week20":{"type":"number"},"week21":{"type":"number"},"week22":{"type":"number"},"week23":{"type":"number"},"week24":{"type":"number"},"week25":{"type":"number"},"week26":{"type":"number"},"week27":{"type":"number"},"week28":{"type":"number"},"week29":{"type":"number"},"week3":{"type":"number"},"week30":{"type":"number"},"week31":{"type":"number"},"week32":{"type":"number"},"week33":{"type":"number"},"week34":{"type":"number"},"week35":{"type":"number"},"week36":{"type":"number"},"week37":{"type":"number"},"week38":{"type":"number"},"week39":{"type":"number"},"week4":{"type":"number"},"week40":{"type":"number"},"week41":{"type":"number"},"week42":{"type":"number"},"week43":{"type":"number"},"week44":{"type":"number"},"week45":{"type":"number"},"week46":{"type":"number"},"week47":{"type":"number"},"week48":{"type":"number"},"week49":{"type":"number"},"week5":{"type":"number"},"week50":{"type":"number"},"week51":{"type":"number"},"week52":{"type":"number"},"week6":{"type":"number"},"week7":{"type":"number"},"week8":{"type":"number"},"week9":{"type":"number"}},"required":["active","demandAccumulationPeriod","demandAccumulationSafetyStock","id","itemTrackingType","leadTime","lotSize","manufacturingBlocked","maximumInventoryQuantity","maximumOrderQuantity","minimumOrderQuantity","minimumReserveQuantity","name","orderMultiple","quantityOnHand","quantityToOrder","readableIdWithRevision","reorderingPolicy","reorderPoint","reorderQuantity","replenishmentSystem","supersessionMode","thumbnailPath","type","unitOfMeasureCode","week1","week10","week11","week12","week13","week14","week15","week16","week17","week18","week19","week2","week20","week21","week22","week23","week24","week25","week26","week27","week28","week29","week3","week30","week31","week32","week33","week34","week35","week36","week37","week38","week39","week4","week40","week41","week42","week43","week44","week45","week46","week47","week48","week49","week5","week50","week51","week52","week6","week7","week8","week9"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProductionProjections":{"post":{"operationId":"production.getProductionProjections","summary":"get production projections","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"periods":{"type":"array","items":{"type":"string"}},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}},"required":["locationId","periods","args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"demandAccumulationPeriod":{"type":"number"},"demandAccumulationSafetyStock":{"type":"number"},"id":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"leadTime":{"type":"number"},"lotSize":{"type":"number"},"manufacturingBlocked":{"type":"boolean"},"maximumInventoryQuantity":{"type":"number"},"maximumOrderQuantity":{"type":"number"},"minimumOrderQuantity":{"type":"number"},"name":{"type":"string"},"orderMultiple":{"type":"number"},"quantityOnHand":{"type":"number"},"readableIdWithRevision":{"type":"string"},"reorderingPolicy":{"type":"string","enum":["Manual Reorder","Demand-Based Reorder","Fixed Reorder Quantity","Maximum Quantity"]},"reorderPoint":{"type":"number"},"reorderQuantity":{"type":"number"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"thumbnailPath":{"type":"string"},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"unitOfMeasureCode":{"type":"string"},"week1":{"type":"number"},"week10":{"type":"number"},"week11":{"type":"number"},"week12":{"type":"number"},"week13":{"type":"number"},"week14":{"type":"number"},"week15":{"type":"number"},"week16":{"type":"number"},"week17":{"type":"number"},"week18":{"type":"number"},"week19":{"type":"number"},"week2":{"type":"number"},"week20":{"type":"number"},"week21":{"type":"number"},"week22":{"type":"number"},"week23":{"type":"number"},"week24":{"type":"number"},"week25":{"type":"number"},"week26":{"type":"number"},"week27":{"type":"number"},"week28":{"type":"number"},"week29":{"type":"number"},"week3":{"type":"number"},"week30":{"type":"number"},"week31":{"type":"number"},"week32":{"type":"number"},"week33":{"type":"number"},"week34":{"type":"number"},"week35":{"type":"number"},"week36":{"type":"number"},"week37":{"type":"number"},"week38":{"type":"number"},"week39":{"type":"number"},"week4":{"type":"number"},"week40":{"type":"number"},"week41":{"type":"number"},"week42":{"type":"number"},"week43":{"type":"number"},"week44":{"type":"number"},"week45":{"type":"number"},"week46":{"type":"number"},"week47":{"type":"number"},"week48":{"type":"number"},"week49":{"type":"number"},"week5":{"type":"number"},"week50":{"type":"number"},"week51":{"type":"number"},"week52":{"type":"number"},"week6":{"type":"number"},"week7":{"type":"number"},"week8":{"type":"number"},"week9":{"type":"number"}},"required":["active","demandAccumulationPeriod","demandAccumulationSafetyStock","id","itemTrackingType","leadTime","lotSize","manufacturingBlocked","maximumInventoryQuantity","maximumOrderQuantity","minimumOrderQuantity","name","orderMultiple","quantityOnHand","readableIdWithRevision","reorderingPolicy","reorderPoint","reorderQuantity","replenishmentSystem","thumbnailPath","type","unitOfMeasureCode","week1","week10","week11","week12","week13","week14","week15","week16","week17","week18","week19","week2","week20","week21","week22","week23","week24","week25","week26","week27","week28","week29","week3","week30","week31","week32","week33","week34","week35","week36","week37","week38","week39","week4","week40","week41","week42","week43","week44","week45","week46","week47","week48","week49","week5","week50","week51","week52","week6","week7","week8","week9"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProductionQuantity":{"post":{"operationId":"production.getProductionQuantity","summary":"get production quantity","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"inspectionId":{"type":["string","null"]},"inspectionSampleId":{"type":["string","null"]},"jobOperationId":{"type":"string"},"laborProductionEventId":{"type":["string","null"]},"machineProductionEventId":{"type":["string","null"]},"notes":{"type":["string","null"]},"quantity":{"type":"number"},"scrapReasonId":{"type":["string","null"]},"setupProductionEventId":{"type":["string","null"]},"type":{"type":"string","enum":["Scrap","Production","Rework"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"jobOperation":{"type":"object","properties":{"description":{"type":["string","null"]}},"required":["description"]}},"required":["companyId","createdAt","createdBy","id","inspectionId","inspectionSampleId","jobOperationId","laborProductionEventId","machineProductionEventId","notes","quantity","scrapReasonId","setupProductionEventId","type","updatedAt","updatedBy","jobOperation"]}}}}}}},"/production/getProductionQuantities":{"post":{"operationId":"production.getProductionQuantities","summary":"get production quantities","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobOperationIds":{"type":"array","items":{"type":"string"}},"args":{"type":"object","properties":{"search":{"anyOf":[{"type":"string"},{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0}}}]}},"required":["search"]}},"required":["jobOperationIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"inspectionId":{"type":["string","null"]},"inspectionSampleId":{"type":["string","null"]},"jobOperationId":{"type":"string"},"laborProductionEventId":{"type":["string","null"]},"machineProductionEventId":{"type":["string","null"]},"notes":{"type":["string","null"]},"quantity":{"type":"number"},"scrapReasonId":{"type":["string","null"]},"setupProductionEventId":{"type":["string","null"]},"type":{"type":"string","enum":["Scrap","Production","Rework"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"jobOperation":{"type":"object","properties":{"description":{"type":["string","null"]},"jobMakeMethod":{"type":["object","null"],"properties":{"parentMaterialId":{"type":["string","null"]},"item":{"type":"object","properties":{"readableIdWithRevision":{"type":["string","null"]}},"required":["readableIdWithRevision"]}},"required":["parentMaterialId","item"]}},"required":["description","jobMakeMethod"]}},"required":["companyId","createdAt","createdBy","id","inspectionId","inspectionSampleId","jobOperationId","laborProductionEventId","machineProductionEventId","notes","quantity","scrapReasonId","setupProductionEventId","type","updatedAt","updatedBy","jobOperation"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getProductionDataByOperations":{"post":{"operationId":"production.getProductionDataByOperations","summary":"get production data by operations","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobOperationIds":{"type":"array","items":{"type":"string"}}},"required":["jobOperationIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"quantities":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"inspectionId":{"type":["string","null"]},"inspectionSampleId":{"type":["string","null"]},"jobOperationId":{"type":"string"},"laborProductionEventId":{"type":["string","null"]},"machineProductionEventId":{"type":["string","null"]},"notes":{"type":["string","null"]},"quantity":{"type":"number"},"scrapReasonId":{"type":["string","null"]},"setupProductionEventId":{"type":["string","null"]},"type":{"type":"string","enum":["Scrap","Production","Rework"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"jobOperation":{"type":"object","properties":{"description":{"type":["string","null"]},"jobMakeMethod":{"type":["object","null"],"properties":{"parentMaterialId":{"type":["string","null"]},"item":{"type":"object","properties":{"readableIdWithRevision":{"type":["string","null"]}},"required":["readableIdWithRevision"]}},"required":["parentMaterialId","item"]}},"required":["description","jobMakeMethod"]}},"required":["companyId","createdAt","createdBy","id","inspectionId","inspectionSampleId","jobOperationId","laborProductionEventId","machineProductionEventId","notes","quantity","scrapReasonId","setupProductionEventId","type","updatedAt","updatedBy","jobOperation"]}},"events":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"duration":{"type":["number","null"]},"employeeId":{"type":["string","null"]},"endTime":{"type":["string","null"]},"id":{"type":"string"},"jobOperationBatchId":{"type":["string","null"]},"jobOperationId":{"type":"string"},"notes":{"type":["string","null"]},"postedToGL":{"type":"boolean"},"startTime":{"type":"string"},"type":{"type":["string","null"],"enum":["Setup","Labor","Machine"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"jobOperation":{"type":"object","properties":{"description":{"type":["string","null"]},"jobMakeMethod":{"type":["object","null"],"properties":{"parentMaterialId":{"type":["string","null"]},"item":{"type":"object","properties":{"readableIdWithRevision":{"type":["string","null"]}},"required":["readableIdWithRevision"]}},"required":["parentMaterialId","item"]}},"required":["description","jobMakeMethod"]}},"required":["companyId","createdAt","createdBy","duration","employeeId","endTime","id","jobOperationBatchId","jobOperationId","notes","postedToGL","startTime","type","updatedAt","updatedBy","workCenterId","jobOperation"]}},"notes":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"jobOperationId":{"type":"string"},"note":{"type":"string"},"productionQuantityId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","id","jobOperationId","note","productionQuantityId","updatedAt","updatedBy"]}}},"required":["quantities","events","notes"]}}}}}}},"/production/getScrapReasonsList":{"post":{"operationId":"production.getScrapReasonsList","summary":"get scrap reasons list","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getScrapReason":{"post":{"operationId":"production.getScrapReason","summary":"get scrap reason","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scrapReasonId":{"type":"string"}},"required":["scrapReasonId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","updatedAt","updatedBy"]}}}}}}},"/production/getScrapReasons":{"post":{"operationId":"production.getScrapReasons","summary":"get scrap reasons","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["id","name","customFields"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getFailureMode":{"post":{"operationId":"production.getFailureMode","summary":"get failure mode","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"failureModeId":{"type":"string"}},"required":["failureModeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["Other","Quality","Maintenance","Operations"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","id","name","type","updatedAt","updatedBy"]}}}}}}},"/production/getFailureModes":{"post":{"operationId":"production.getFailureModes","summary":"get failure modes","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["Other","Quality","Maintenance","Operations"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","id","name","type","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getFailureModesList":{"post":{"operationId":"production.getFailureModesList","summary":"get failure modes list","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getMaintenanceDispatch":{"post":{"operationId":"production.getMaintenanceDispatch","summary":"get maintenance dispatch","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dispatchId":{"type":"string"}},"required":["dispatchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"actualEndTime":{"type":["string","null"]},"actualFailureModeId":{"type":["string","null"]},"actualStartTime":{"type":["string","null"]},"assignee":{},"companyId":{"type":"string"},"completedAt":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"duration":{"type":["number","null"]},"id":{"type":"string"},"locationId":{"type":["string","null"]},"maintenanceDispatchId":{"type":"string"},"maintenanceScheduleId":{"type":["string","null"]},"nonConformanceId":{"type":["string","null"]},"oeeImpact":{"type":"string","enum":["Planned","Down","Impact","No Impact"]},"plannedEndTime":{"type":["string","null"]},"plannedStartTime":{"type":["string","null"]},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"procedureId":{"type":["string","null"]},"severity":{"type":"string","enum":["Preventive","Operator Performed","Support Required","OEM Required"]},"source":{"type":"string","enum":["Non-Conformance","Scheduled","Reactive"]},"status":{"type":"string","enum":["Open","Completed","Cancelled","In Progress","Assigned"]},"suspectedFailureModeId":{"type":["string","null"]},"takesWorkCenterOffline":{"type":"boolean"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"suspectedFailureMode":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"actualFailureMode":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"schedule":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["actualEndTime","actualFailureModeId","actualStartTime","assignee","companyId","completedAt","content","createdAt","createdBy","duration","id","locationId","maintenanceDispatchId","maintenanceScheduleId","nonConformanceId","oeeImpact","plannedEndTime","plannedStartTime","priority","procedureId","severity","source","status","suspectedFailureModeId","takesWorkCenterOffline","updatedAt","updatedBy","workCenterId","suspectedFailureMode","actualFailureMode","schedule"]}}}}}}},"/production/getMaintenanceDispatches":{"post":{"operationId":"production.getMaintenanceDispatches","summary":"get maintenance dispatches","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{"type":"string"}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"actualEndTime":{"type":["string","null"]},"actualFailureModeId":{"type":["string","null"]},"actualStartTime":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedAt":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"duration":{"type":["number","null"]},"id":{"type":"string"},"locationId":{"type":["string","null"]},"maintenanceDispatchId":{"type":"string"},"maintenanceScheduleId":{"type":["string","null"]},"nonConformanceId":{"type":["string","null"]},"oeeImpact":{"type":"string","enum":["Planned","Down","Impact","No Impact"]},"plannedEndTime":{"type":["string","null"]},"plannedStartTime":{"type":["string","null"]},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"procedureId":{"type":["string","null"]},"severity":{"type":"string","enum":["Preventive","Operator Performed","Support Required","OEM Required"]},"source":{"type":"string","enum":["Non-Conformance","Scheduled","Reactive"]},"status":{"type":"string","enum":["Open","Completed","Cancelled","In Progress","Assigned"]},"suspectedFailureModeId":{"type":["string","null"]},"takesWorkCenterOffline":{"type":"boolean"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]}},"required":["actualEndTime","actualFailureModeId","actualStartTime","assignee","companyId","completedAt","content","createdAt","createdBy","duration","id","locationId","maintenanceDispatchId","maintenanceScheduleId","nonConformanceId","oeeImpact","plannedEndTime","plannedStartTime","priority","procedureId","severity","source","status","suspectedFailureModeId","takesWorkCenterOffline","updatedAt","updatedBy","workCenterId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getMaintenanceDispatchComments":{"post":{"operationId":"production.getMaintenanceDispatchComments","summary":"get maintenance dispatch comments","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dispatchId":{"type":"string"}},"required":["dispatchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"comment":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["id","fullName","avatarUrl"]}},"required":["id","comment","createdAt","createdBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getMaintenanceDispatchEvents":{"post":{"operationId":"production.getMaintenanceDispatchEvents","summary":"get maintenance dispatch events","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dispatchId":{"type":"string"}},"required":["dispatchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"startTime":{"type":"string"},"endTime":{"type":["string","null"]},"duration":{"type":["number","null"]},"notes":{"type":["string","null"]},"employee":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["id","fullName","avatarUrl"]},"workCenter":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["id","startTime","endTime","duration","notes","employee","workCenter"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getMaintenanceDispatchItems":{"post":{"operationId":"production.getMaintenanceDispatchItems","summary":"get maintenance dispatch items","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dispatchId":{"type":"string"}},"required":["dispatchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"itemId":{"type":"string"},"quantity":{"type":"number"},"unitOfMeasureCode":{"type":"string"},"unitCost":{"type":["number","null"]},"totalCost":{"type":["number","null"]},"item":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["id","itemId","quantity","unitOfMeasureCode","unitCost","totalCost","item"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getMaintenanceDispatchWorkCenters":{"post":{"operationId":"production.getMaintenanceDispatchWorkCenters","summary":"get maintenance dispatch work centers","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dispatchId":{"type":"string"}},"required":["dispatchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"workCenterId":{"type":"string"},"workCenter":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["id","workCenterId","workCenter"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getMaintenanceSchedule":{"post":{"operationId":"production.getMaintenanceSchedule","summary":"get maintenance schedule","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"estimatedDuration":{"type":["number","null"]},"frequency":{"type":"string","enum":["Daily","Weekly","Monthly","Quarterly","Annual"]},"friday":{"type":"boolean"},"id":{"type":"string"},"lastGeneratedAt":{"type":["string","null"]},"locationId":{"type":["string","null"]},"monday":{"type":"boolean"},"name":{"type":"string"},"nextDueAt":{"type":["string","null"]},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"procedureId":{"type":["string","null"]},"saturday":{"type":"boolean"},"skipHolidays":{"type":"boolean"},"sunday":{"type":"boolean"},"takesWorkCenterOffline":{"type":"boolean"},"thursday":{"type":"boolean"},"tuesday":{"type":"boolean"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"wednesday":{"type":"boolean"},"workCenterId":{"type":"string"},"workCenter":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["active","companyId","createdAt","createdBy","description","estimatedDuration","frequency","friday","id","lastGeneratedAt","locationId","monday","name","nextDueAt","priority","procedureId","saturday","skipHolidays","sunday","takesWorkCenterOffline","thursday","tuesday","updatedAt","updatedBy","wednesday","workCenterId","workCenter"]}}}}}}},"/production/getMaintenanceSchedules":{"post":{"operationId":"production.getMaintenanceSchedules","summary":"get maintenance schedules","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"active":{"type":"boolean"}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"description":{"type":["string","null"]},"estimatedDuration":{"type":["number","null"]},"frequency":{"type":["string","null"],"enum":["Daily","Weekly","Monthly","Quarterly","Annual"]},"friday":{"type":["boolean","null"]},"id":{"type":["string","null"]},"lastGeneratedAt":{"type":["string","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"monday":{"type":["boolean","null"]},"name":{"type":["string","null"]},"nextDueAt":{"type":["string","null"]},"priority":{"type":["string","null"],"enum":["Low","Medium","High","Critical"]},"procedureId":{"type":["string","null"]},"saturday":{"type":["boolean","null"]},"skipHolidays":{"type":["boolean","null"]},"sunday":{"type":["boolean","null"]},"takesWorkCenterOffline":{"type":["boolean","null"]},"thursday":{"type":["boolean","null"]},"tuesday":{"type":["boolean","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"wednesday":{"type":["boolean","null"]},"workCenterId":{"type":["string","null"]},"workCenterName":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","description","estimatedDuration","frequency","friday","id","lastGeneratedAt","locationId","locationName","monday","name","nextDueAt","priority","procedureId","saturday","skipHolidays","sunday","takesWorkCenterOffline","thursday","tuesday","updatedAt","updatedBy","wednesday","workCenterId","workCenterName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getMaintenanceScheduleItems":{"post":{"operationId":"production.getMaintenanceScheduleItems","summary":"get maintenance schedule items","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"quantity":{"type":"number"},"unitOfMeasureCode":{"type":"string"},"item":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["id","quantity","unitOfMeasureCode","item"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getTrackedEntityByJobId":{"post":{"operationId":"production.getTrackedEntityByJobId","summary":"get tracked entity by job id","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}}}}}}},"/production/getTrackedEntitiesByJobId":{"post":{"operationId":"production.getTrackedEntitiesByJobId","summary":"get tracked entities by job id","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobReceiptSnapshot":{"post":{"operationId":"production.getJobReceiptSnapshot","summary":"what a job has already received to inventory: its received quantity and the tracked entities its receipts posted","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["object","null"],"properties":{"quantityReceivedToInventory":{"type":"number"},"trackedEntityIds":{"type":"array","items":{"type":"string"}}},"required":["quantityReceivedToInventory","trackedEntityIds"]}}}}}}},"/production/recalculateJobOperationDependencies":{"post":{"operationId":"production.recalculateJobOperationDependencies","summary":"reschedule a job using the unified scheduling engine","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"jobsScheduled":{"type":"number"},"jobsFailed":{"type":"number"},"conflictsDetected":{"type":"number"},"newlyLate":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string"},"readableJobId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"projectedCompletionAt":{"type":["string","null"]}},"required":["jobId","readableJobId","assignee","projectedCompletionAt"]}}},"required":["locationId","jobsScheduled","jobsFailed","conflictsDetected","newlyLate"]}}}}}}},"/production/recalculateJobRequirements":{"post":{"operationId":"production.recalculateJobRequirements","summary":"recalculate job requirements","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/recalculateJobMakeMethodRequirements":{"post":{"operationId":"production.recalculateJobMakeMethodRequirements","summary":"recalculate job make method requirements","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/runMRP":{"post":{"operationId":"production.runMRP","summary":"run m r p","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["company","location","job","salesOrder","item","purchaseOrder"]},"id":{"type":"string"}},"required":["type","id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}}}}},"/production/updateJobBatchNumber":{"post":{"operationId":"production.updateJobBatchNumber","summary":"update job batch number","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trackedEntityId":{"type":"string"},"value":{"type":["string","null"]}},"required":["trackedEntityId","value"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"readableId":{"type":["string","null"]}},"required":["id","readableId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobReleaseReadiness":{"post":{"operationId":"production.getJobReleaseReadiness","summary":"get job release readiness","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobIds":{"type":"array","items":{"type":"string"}}},"required":["jobIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"jobs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"jobId":{"type":"string"},"status":{"type":["string","null"],"enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"manufacturingBlocked":{"type":"boolean"},"missingAssemblies":{"type":"array","items":{"type":"object","properties":{"makeMethodId":{"type":"string"},"description":{"type":"string"}},"required":["makeMethodId","description"]}},"outsideOperationsWithoutSupplier":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"missing":{"type":"string","enum":["none","choose"]}},"required":["id","description","missing"]}}},"required":["id","jobId","status","manufacturingBlocked","missingAssemblies","outsideOperationsWithoutSupplier"]}},"suppliers":{"type":"array","items":{"type":"object","properties":{"supplierId":{"type":"string"},"draftPurchaseOrders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"purchaseOrderId":{"type":"string"}},"required":["id","purchaseOrderId"]}}},"required":["supplierId","draftPurchaseOrders"]}}},"required":["jobs","suppliers"]}}}}}}},"/production/updateJobStatus":{"post":{"operationId":"production.updateJobStatus","summary":"update job status","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Planned","Ready","In Progress","Paused","Completed","Closed","Cancelled","Overdue","Due Today"]},"assignee":{"type":["string","null"]}},"required":["id","status"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/updateJobMaterialOrder":{"post":{"operationId":"production.updateJobMaterialOrder","summary":"update job material order","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"order":{"type":"number"}},"required":["id","order"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/updateJobOperationOrder":{"post":{"operationId":"production.updateJobOperationOrder","summary":"update job operation order","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"order":{"type":"number"}},"required":["id","order"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/updateJobOperationStepOrder":{"post":{"operationId":"production.updateJobOperationStepOrder","summary":"update job operation step order","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/updateKanbanJob":{"post":{"operationId":"production.updateKanbanJob","summary":"update kanban job","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"jobId":{"type":["string","null"]}},"required":["id","jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/updateQuoteOperationStepOrder":{"post":{"operationId":"production.updateQuoteOperationStepOrder","summary":"update quote operation step order","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/updateMethodOperationStepOrder":{"post":{"operationId":"production.updateMethodOperationStepOrder","summary":"update method operation step order","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/updateJobOperationStatus":{"post":{"operationId":"production.updateJobOperationStatus","summary":"update job operation status","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Todo","Ready","Waiting","In Progress","Paused","Done","Canceled"]}},"required":["id","status"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"conflictReason":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"hasConflict":{"type":["boolean","null"]},"id":{"type":"string"},"inspectionDocumentId":{"type":["string","null"]},"jobId":{"type":"string"},"jobMakeMethodId":{"type":["string","null"]},"jobOperationBatchId":{"type":["string","null"]},"laborRate":{"type":"number"},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineRate":{"type":["number","null"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"manuallyScheduled":{"type":"boolean"},"operationLeadTime":{"type":"number"},"operationMinimumCost":{"type":"number"},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationQuantity":{"type":["number","null"]},"operationSupplierProcessId":{"type":["string","null"]},"operationType":{"type":"string","enum":["Inspection","Process","Assembly","Outside Processing"]},"operationUnitCost":{"type":"number"},"order":{"type":"number"},"overheadRate":{"type":"number"},"priority":{"type":"number"},"procedureId":{"type":["string","null"]},"processId":{"type":"string"},"projectedCompletionAt":{"type":["string","null"]},"quantityComplete":{"type":["number","null"]},"quantityReworked":{"type":["number","null"]},"quantityScrapped":{"type":["number","null"]},"readyAt":{"type":["string","null"]},"reworkId":{"type":["string","null"]},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"startDate":{"type":["string","null"]},"status":{"type":"string","enum":["Todo","Done","In Progress","Ready","Paused","Canceled","Waiting"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"targetQuantity":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workInstruction":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["assemblyInstructionId","assignee","companyId","conflictReason","createdAt","createdBy","customFields","description","dueDate","hasConflict","id","inspectionDocumentId","jobId","jobMakeMethodId","jobOperationBatchId","laborRate","laborTime","laborUnit","machineRate","machineTime","machineUnit","manuallyScheduled","operationLeadTime","operationMinimumCost","operationOrder","operationQuantity","operationSupplierProcessId","operationType","operationUnitCost","order","overheadRate","priority","procedureId","processId","projectedCompletionAt","quantityComplete","quantityReworked","quantityScrapped","readyAt","reworkId","setupTime","setupUnit","startDate","status","tags","targetQuantity","updatedAt","updatedBy","workCenterId","workInstruction"]}}}}}}},"/production/updateJobOperationDueDate":{"post":{"operationId":"production.updateJobOperationDueDate","summary":"update job operation due date","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"dueDate":{"type":["string","null"]}},"required":["id","dueDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"conflictReason":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"hasConflict":{"type":["boolean","null"]},"id":{"type":"string"},"inspectionDocumentId":{"type":["string","null"]},"jobId":{"type":"string"},"jobMakeMethodId":{"type":["string","null"]},"jobOperationBatchId":{"type":["string","null"]},"laborRate":{"type":"number"},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineRate":{"type":["number","null"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"manuallyScheduled":{"type":"boolean"},"operationLeadTime":{"type":"number"},"operationMinimumCost":{"type":"number"},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationQuantity":{"type":["number","null"]},"operationSupplierProcessId":{"type":["string","null"]},"operationType":{"type":"string","enum":["Inspection","Process","Assembly","Outside Processing"]},"operationUnitCost":{"type":"number"},"order":{"type":"number"},"overheadRate":{"type":"number"},"priority":{"type":"number"},"procedureId":{"type":["string","null"]},"processId":{"type":"string"},"projectedCompletionAt":{"type":["string","null"]},"quantityComplete":{"type":["number","null"]},"quantityReworked":{"type":["number","null"]},"quantityScrapped":{"type":["number","null"]},"readyAt":{"type":["string","null"]},"reworkId":{"type":["string","null"]},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"startDate":{"type":["string","null"]},"status":{"type":"string","enum":["Todo","Done","In Progress","Ready","Paused","Canceled","Waiting"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"targetQuantity":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workInstruction":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["assemblyInstructionId","assignee","companyId","conflictReason","createdAt","createdBy","customFields","description","dueDate","hasConflict","id","inspectionDocumentId","jobId","jobMakeMethodId","jobOperationBatchId","laborRate","laborTime","laborUnit","machineRate","machineTime","machineUnit","manuallyScheduled","operationLeadTime","operationMinimumCost","operationOrder","operationQuantity","operationSupplierProcessId","operationType","operationUnitCost","order","overheadRate","priority","procedureId","processId","projectedCompletionAt","quantityComplete","quantityReworked","quantityScrapped","readyAt","reworkId","setupTime","setupUnit","startDate","status","tags","targetQuantity","updatedAt","updatedBy","workCenterId","workInstruction"]}}}}}}},"/production/updateProcedureStepOrder":{"post":{"operationId":"production.updateProcedureStepOrder","summary":"update procedure step order","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/upsertProductionEvent":{"post":{"operationId":"production.upsertProductionEvent","summary":"upsert production event","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobOperationId":{"type":"string","minLength":1},"type":{"type":"string","enum":["Labor","Machine","Setup"]},"employeeId":{"type":"string"},"workCenterId":{"type":"string"},"startTime":{"type":"string","minLength":1},"endTime":{"type":"string"},"notes":{"type":"string"},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["jobOperationId","type","startTime"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/upsertProductionQuantity":{"post":{"operationId":"production.upsertProductionQuantity","summary":"upsert production quantity","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobOperationId":{"type":"string","minLength":1},"type":{"type":"string","enum":["Rework","Scrap","Production"]},"scrapReasonId":{"type":"string"},"notes":{"type":"string"},"quantity":{"type":"number","minimum":0},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["jobOperationId","type","quantity"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/insertJob":{"post":{"operationId":"production.insertJob","summary":"`options.source` is telemetry-only: which surface raised the job","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","properties":{"itemId":{"type":"string"},"quantity":{"type":"number"},"jobId":{"type":"string"},"locationId":{"type":"string"},"dueDate":{"type":"string"},"startDate":{"type":"string"},"priority":{"type":"number"},"status":{"type":"string","enum":["Draft","Planned","Ready","In Progress","Paused","Completed","Closed","Cancelled","Overdue","Due Today"]},"deadlineType":{"type":"string","enum":["ASAP","Hard Deadline","Soft Deadline","No Deadline"]},"storageUnitId":{"type":"string"},"unitOfMeasureCode":{"type":"string"},"customerId":{"type":"string"},"salesOrderId":{"type":"string"},"salesOrderLineId":{"type":"string"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"modelUploadId":{"type":"string"},"notes":{"type":"string"},"customFields":{},"configuration":{"type":"object"}},"required":["itemId","quantity"]},"options":{"type":"object","properties":{"skipMethod":{"type":"boolean"},"skipRecalculate":{"type":"boolean"},"methodSource":{"type":"string","enum":["item","quoteLine"]},"source":{}}}},"required":["input"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"jobId":{"type":"string"}},"required":["id","jobId"]}}}}}}},"/production/updateJob":{"post":{"operationId":"production.updateJob","summary":"Update an existing job - handles priority recalculation when deadline changes","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"quantity":{"type":"number"},"dueDate":{"type":["string","null"]},"startDate":{"type":["string","null"]},"status":{"type":"string","enum":["Draft","Planned","Ready","In Progress","Paused","Completed","Closed","Cancelled","Overdue","Due Today"]},"priority":{"type":"number"},"deadlineType":{"type":"string","enum":["ASAP","Hard Deadline","Soft Deadline","No Deadline"]},"locationId":{"type":"string"},"storageUnitId":{"type":"string"},"unitOfMeasureCode":{"type":"string"},"customerId":{"type":["string","null"]},"salesOrderId":{"type":["string","null"]},"salesOrderLineId":{"type":["string","null"]},"quoteId":{"type":["string","null"]},"quoteLineId":{"type":["string","null"]},"modelUploadId":{"type":["string","null"]},"notes":{"type":["string","null"]},"customFields":{},"scrapQuantity":{"type":"number"},"itemId":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/upsertJob":{"post":{"operationId":"production.upsertJob","summary":"upsert job","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"job":{"anyOf":[{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"customerId":{"type":"string"},"dueDate":{"type":"string"},"deadlineType":{"type":"string","enum":["ASAP","Hard Deadline","Soft Deadline","No Deadline"]},"locationId":{"type":"string","minLength":1},"quantity":{"type":"number","exclusiveMinimum":0},"scrapQuantity":{"type":"number","minimum":0},"startDate":{"type":"string"},"unitOfMeasureCode":{"type":"string","minLength":1},"modelUploadId":{"type":"string"},"configuration":{},"jobId":{"type":"string"},"storageUnitId":{"type":"string"},"customFields":{}},"required":["itemId","deadlineType","locationId","quantity","scrapQuantity","unitOfMeasureCode","jobId"]},{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"customerId":{"type":"string"},"dueDate":{"type":"string"},"deadlineType":{"type":"string","enum":["ASAP","Hard Deadline","Soft Deadline","No Deadline"]},"locationId":{"type":"string","minLength":1},"quantity":{"type":"number","exclusiveMinimum":0},"scrapQuantity":{"type":"number","minimum":0},"startDate":{"type":"string"},"unitOfMeasureCode":{"type":"string","minLength":1},"modelUploadId":{"type":"string"},"configuration":{},"id":{"type":"string"},"jobId":{"type":"string"},"customFields":{}},"required":["itemId","deadlineType","locationId","quantity","scrapQuantity","unitOfMeasureCode","id","jobId"]}],"description":"Include `id` to update that record; leave it out to create a new one."},"status":{"type":"string","enum":["Draft","Planned","Ready","In Progress","Paused","Completed","Closed","Cancelled","Overdue","Due Today"]}},"required":["job"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/upsertJobOperation":{"post":{"operationId":"production.upsertJobOperation","summary":"upsert job operation","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Updates the existing record with this key; creates one when there is none."},"jobMakeMethodId":{"type":"string","minLength":1},"order":{"type":"number","minimum":0},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationType":{"type":"string","enum":["Process","Assembly","Inspection","Outside Processing"]},"processId":{"type":"string","minLength":1},"procedureId":{"type":"string"},"assemblyInstructionId":{"type":"string"},"inspectionDocumentId":{"type":"string"},"description":{"type":"string","minLength":0},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"setupTime":{"type":"number","minimum":0},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"laborTime":{"type":"number","minimum":0},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineTime":{"type":"number","minimum":0},"machineRate":{"type":"number","minimum":0},"overheadRate":{"type":"number","minimum":0},"laborRate":{"type":"number","minimum":0},"operationSupplierProcessId":{"type":"string"},"operationMinimumCost":{"type":"number","minimum":0},"operationUnitCost":{"type":"number","minimum":0},"operationLeadTime":{"type":"number","minimum":0},"workCenterId":{"type":"string"},"jobId":{"type":"string"},"customFields":{}},"required":["id","jobMakeMethodId","order","operationOrder","operationType","processId","description","jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/upsertJobOperationStep":{"post":{"operationId":"production.upsertJobOperationStep","summary":"upsert job operation step","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"type":{"type":"string","enum":["Task","Value","Measurement","Checkbox","Timestamp","Person","List","File","Inspection"]},"unitOfMeasureCode":{"type":"string"},"minValue":{"type":["number","null"]},"maxValue":{"type":["number","null"]},"listValues":{"type":"array","items":{"type":"string"}},"sortOrder":{"type":"number","minimum":0},"id":{"type":"string","description":"Send to update that record; omit to create a new one."},"updatedAt":{"type":"string"}},"required":["operationId","name","description","type"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/duplicateJobOperationStep":{"post":{"operationId":"production.duplicateJobOperationStep","summary":"duplicate job operation step","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/upsertJobOperationStepSlide":{"post":{"operationId":"production.upsertJobOperationStepSlide","summary":"upsert job operation step slide","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stepId":{"type":"string","minLength":1},"imagePath":{"type":"string"},"modelUploadId":{"type":"string"},"caption":{"type":"string"},"sortOrder":{"type":"number","minimum":0},"size":{"type":"string","enum":["small","medium","large"]},"annotations":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."},"updatedAt":{"type":"string"}},"required":["stepId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/upsertJobOperationParameter":{"post":{"operationId":"production.upsertJobOperationParameter","summary":"upsert job operation parameter","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","minLength":1},"key":{"type":"string","minLength":1},"value":{"type":"string","minLength":1},"id":{"type":"string","description":"Send to update that record; omit to create a new one."},"updatedAt":{"type":"string"}},"required":["operationId","key","value"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/getJobPromiseDate":{"post":{"operationId":"production.getJobPromiseDate","summary":"promise date = the job's forward-ASAP forecast finish (`projectedCompletionAt`, stamped by every regen)","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"promiseDate":{"type":["string","null"]},"basis":{"type":"string","enum":["schedule"]},"confidence":{"type":"string","enum":["low","scheduled"]}},"required":["promiseDate","basis","confidence"]}}}}}}},"/production/upsertJobOperationTool":{"post":{"operationId":"production.upsertJobOperationTool","summary":"upsert job operation tool","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","minLength":1},"toolId":{"type":"string","minLength":1},"quantity":{"type":"number","minimum":0.000001},"id":{"type":"string","description":"Send to update that record; omit to create a new one."},"updatedAt":{"type":"string"}},"required":["operationId","toolId","quantity"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/setJobMaterialStepLink":{"post":{"operationId":"production.setJobMaterialStepLink","summary":"set job material step link","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobMaterialId":{"type":"string"},"jobOperationStepId":{"type":"string"},"linked":{"type":"boolean"},"quantity":{"type":["number","null"]}},"required":["jobMaterialId","jobOperationStepId","linked"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/setJobOperationToolStepLink":{"post":{"operationId":"production.setJobOperationToolStepLink","summary":"set job operation tool step link","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string"},"toolId":{"type":"string"},"jobOperationStepId":{"type":"string"},"linked":{"type":"boolean"}},"required":["operationId","toolId","jobOperationStepId","linked"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/upsertJobMethod":{"post":{"operationId":"production.upsertJobMethod","summary":"upsert job method","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["itemToJob","quoteLineToJob","jobToJob"]},"jobMethod":{"type":"object","properties":{"sourceId":{"type":"string"},"targetId":{"type":"string"},"configuration":{"type":"object"},"versionId":{"type":"string"},"parts":{"type":"object","properties":{"billOfMaterial":{"type":"boolean"},"billOfProcess":{"type":"boolean"},"parameters":{"type":"boolean"},"tools":{"type":"boolean"},"steps":{"type":"boolean"},"workInstructions":{"type":"boolean"}},"required":["billOfMaterial","billOfProcess","parameters","tools","steps","workInstructions"]}},"required":["sourceId","targetId"]}},"required":["type","jobMethod"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/upsertJobMaterialMakeMethod":{"post":{"operationId":"production.upsertJobMaterialMakeMethod","summary":"upsert job material make method","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceId":{"type":"string"},"targetId":{"type":"string"},"configuration":{"type":"object"},"versionId":{"type":"string"},"parts":{"type":"object","properties":{"billOfMaterial":{"type":"boolean"},"billOfProcess":{"type":"boolean"},"parameters":{"type":"boolean"},"tools":{"type":"boolean"},"steps":{"type":"boolean"},"workInstructions":{"type":"boolean"}},"required":["billOfMaterial","billOfProcess","parameters","tools","steps","workInstructions"]}},"required":["sourceId","targetId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/pullJobMaterialMakeMethod":{"post":{"operationId":"production.pullJobMaterialMakeMethod","summary":"resolve a job material's child make-method id and pull its source item's method (BOM + operations) into it","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobMaterialId":{"type":"string"},"itemId":{"type":"string"}},"required":["jobMaterialId","itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/upsertMakeMethodFromJob":{"post":{"operationId":"production.upsertMakeMethodFromJob","summary":"upsert make method from job","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceId":{"type":"string"},"targetId":{"type":"string"},"parts":{"type":"object","properties":{"billOfMaterial":{"type":"boolean"},"billOfProcess":{"type":"boolean"},"parameters":{"type":"boolean"},"tools":{"type":"boolean"},"steps":{"type":"boolean"},"workInstructions":{"type":"boolean"}},"required":["billOfMaterial","billOfProcess","parameters","tools","steps","workInstructions"]}},"required":["sourceId","targetId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/upsertMakeMethodFromJobMethod":{"post":{"operationId":"production.upsertMakeMethodFromJobMethod","summary":"upsert make method from job method","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceId":{"type":"string"},"targetId":{"type":"string"},"parts":{"type":"object","properties":{"billOfMaterial":{"type":"boolean"},"billOfProcess":{"type":"boolean"},"parameters":{"type":"boolean"},"tools":{"type":"boolean"},"steps":{"type":"boolean"},"workInstructions":{"type":"boolean"}},"required":["billOfMaterial","billOfProcess","parameters","tools","steps","workInstructions"]}},"required":["sourceId","targetId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/upsertProcedure":{"post":{"operationId":"production.upsertProcedure","summary":"upsert procedure","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"version":{"type":"number","minimum":0},"processId":{"type":"string"},"content":{"type":"string"},"copyFromId":{"type":"string"},"id":{"type":"string"}},"required":["name","version"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/upsertProcedureStep":{"post":{"operationId":"production.upsertProcedureStep","summary":"upsert procedure step","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"procedureId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string"},"type":{"type":"string","enum":["Task","Value","Measurement","Checkbox","Timestamp","Person","List","File","Inspection"]},"unitOfMeasureCode":{"type":"string"},"minValue":{"type":"number","minimum":0},"maxValue":{"type":"number","minimum":0},"listValues":{"type":"array","items":{"type":"string"}},"sortOrder":{"type":"number","minimum":0},"id":{"type":"string"}},"required":["procedureId","name","type"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/upsertProcedureParameter":{"post":{"operationId":"production.upsertProcedureParameter","summary":"upsert procedure parameter","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"procedureId":{"type":"string","minLength":1},"key":{"type":"string","minLength":1},"value":{"type":"string","minLength":1},"id":{"type":"string"}},"required":["procedureId","key","value"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/upsertScrapReason":{"post":{"operationId":"production.upsertScrapReason","summary":"upsert scrap reason","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/upsertFailureMode":{"post":{"operationId":"production.upsertFailureMode","summary":"upsert failure mode","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/upsertMaintenanceDispatchComment":{"post":{"operationId":"production.upsertMaintenanceDispatchComment","summary":"upsert maintenance dispatch comment","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maintenanceDispatchId":{"type":"string","minLength":1},"comment":{"type":"string","minLength":1},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["maintenanceDispatchId","comment"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/upsertMaintenanceDispatchEvent":{"post":{"operationId":"production.upsertMaintenanceDispatchEvent","summary":"upsert maintenance dispatch event","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maintenanceDispatchId":{"type":"string","minLength":1},"employeeId":{"type":"string","minLength":1},"workCenterId":{"type":"string","minLength":1},"startTime":{"type":"string","minLength":1},"endTime":{"type":"string"},"notes":{"type":"string"},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["maintenanceDispatchId","employeeId","workCenterId","startTime"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/upsertMaintenanceDispatchItem":{"post":{"operationId":"production.upsertMaintenanceDispatchItem","summary":"upsert maintenance dispatch item","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maintenanceDispatchId":{"type":"string","minLength":1},"itemId":{"type":"string","minLength":1},"quantity":{"type":"number","minimum":1},"unitOfMeasureCode":{"type":"string","minLength":1},"unitCost":{"type":"number","minimum":0},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["maintenanceDispatchId","itemId","quantity","unitOfMeasureCode"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/upsertMaintenanceSchedule":{"post":{"operationId":"production.upsertMaintenanceSchedule","summary":"upsert maintenance schedule","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"workCenterId":{"type":"string","minLength":1},"frequency":{"type":"string","enum":["Daily","Weekly","Monthly","Quarterly","Annual"]},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"estimatedDuration":{"type":"number"},"active":{"type":"boolean"},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","workCenterId","frequency","priority"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/getPeopleAssignments":{"post":{"operationId":"production.getPeopleAssignments","summary":"get people assignments","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"date":{"type":"string"}},"required":["locationId","date"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"workCenterId":{"type":"string"},"employeeId":{"type":"string"},"shiftId":{"type":["string","null"]},"note":{"type":["string","null"]},"date":{"type":"string"},"overtimeHours":{"type":"number"},"hours":{"type":["number","null"]}},"required":["id","workCenterId","employeeId","shiftId","note","date","overtimeHours","hours"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getPeopleAbsences":{"post":{"operationId":"production.getPeopleAbsences","summary":"get people absences","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string"}},"required":["date"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"employeeId":{"type":"string"},"shiftId":{"type":["string","null"]},"note":{"type":["string","null"]},"date":{"type":"string"}},"required":["id","employeeId","shiftId","note","date"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getPeopleAssignmentsRange":{"post":{"operationId":"production.getPeopleAssignmentsRange","summary":"get people assignments range","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["locationId","startDate","endDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"workCenterId":{"type":"string"},"employeeId":{"type":"string"},"shiftId":{"type":["string","null"]},"date":{"type":"string"},"note":{"type":["string","null"]},"overtimeHours":{"type":"number"},"hours":{"type":["number","null"]}},"required":["id","workCenterId","employeeId","shiftId","date","note","overtimeHours","hours"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getPeopleAbsencesRange":{"post":{"operationId":"production.getPeopleAbsencesRange","summary":"get people absences range","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["startDate","endDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"employeeId":{"type":"string"},"shiftId":{"type":["string","null"]},"date":{"type":"string"}},"required":["id","employeeId","shiftId","date"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getPeopleCapacityOperations":{"post":{"operationId":"production.getPeopleCapacityOperations","summary":"open job-operation hours per work center for the capacity view","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"startDate":{"type":["string","null"]},"endDate":{"type":"string"}},"required":["locationId","startDate","endDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"workCenterId":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"status":{"type":"string"},"operationQuantity":{"type":["number","null"]},"setupTime":{"type":"number"},"setupUnit":{"type":"string"},"laborTime":{"type":"number"},"laborUnit":{"type":"string"},"machineTime":{"type":"number"},"machineUnit":{"type":"string"}},"required":["id","workCenterId","dueDate","status","operationQuantity","setupTime","setupUnit","laborTime","laborUnit","machineTime","machineUnit"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getWorkCenterShifts":{"post":{"operationId":"production.getWorkCenterShifts","summary":"the `workCenterShift` links (rung 1 of the availability ladder) for a set of work centers, in ONE `.in()` query","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workCenterIds":{"type":"array","items":{"type":"string"}}},"required":["workCenterIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"workCenterId":{"type":"string"},"shiftId":{"type":"string"}},"required":["workCenterId","shiftId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getWorkCenterReservationsRange":{"post":{"operationId":"production.getWorkCenterReservationsRange","summary":"workCenter-kind reservations overlapping a window — the Capacity view's Scheduled series","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startAt":{"type":"string"},"endAt":{"type":"string"}},"required":["startAt","endAt"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"resourceId":{"type":"string"},"startAt":{"type":"string"},"endAt":{"type":"string"},"workHours":{"type":["number","null"]}},"required":["id","resourceId","startAt","endAt","workHours"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getLocationEmployees":{"post":{"operationId":"production.getLocationEmployees","summary":"get location employees","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["id","name","avatarUrl"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getWorkCenterRequiredAbilities":{"post":{"operationId":"production.getWorkCenterRequiredAbilities","summary":"gated abilities per work center at a location, for the people board's advisory qualification badge","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"workCenterId":{"type":"string"},"abilityId":{"type":"string"},"abilityName":{"type":"string"}},"required":["workCenterId","abilityId","abilityName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getActiveEmployeeAbilities":{"post":{"operationId":"production.getActiveEmployeeAbilities","summary":"get active employee abilities","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"employeeId":{"type":"string"},"abilityId":{"type":"string"},"expiresAt":{"type":["string","null"]},"ability":{"type":"object","properties":{"process":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["process"]}},"required":["employeeId","abilityId","expiresAt","ability"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/upsertPeopleAssignment":{"post":{"operationId":"production.upsertPeopleAssignment","summary":"move-semantics upsert: one magnet per person per date/shift — any existing assignment for the person on that date/shift is replaced","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"workCenterId":{"type":"string"},"employeeId":{"type":"string"},"date":{"type":"string"},"shiftId":{"type":["string","null"]},"note":{"type":"string"},"hours":{"type":"number"}},"required":["locationId","workCenterId","employeeId","date","shiftId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"workCenterId":{"type":"string"}},"required":["id","workCenterId"]}}}}}}},"/production/deletePeopleAssignment":{"post":{"operationId":"production.deletePeopleAssignment","summary":"delete people assignment","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"workCenterId":{"type":"string"},"employeeId":{"type":"string"}},"required":["id","workCenterId","employeeId"]}}}}}}},"/production/setPeopleAbsence":{"post":{"operationId":"production.setPeopleAbsence","summary":"set people absence","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"},"date":{"type":"string"},"shiftId":{"type":["string","null"]},"note":{"type":"string"}},"required":["employeeId","date","shiftId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/clearPeopleAbsence":{"post":{"operationId":"production.clearPeopleAbsence","summary":"clear people absence","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"employeeId":{"type":"string"}},"required":["id","employeeId"]}}}}}}},"/production/movePeopleAssignment":{"post":{"operationId":"production.movePeopleAssignment","summary":"move one assignment row to another station (drag = move)","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"workCenterId":{"type":"string"}},"required":["id","workCenterId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"workCenterId":{"type":"string"},"previousWorkCenterId":{"type":"string"}},"required":["id","workCenterId","previousWorkCenterId"]}}}}}}},"/production/setPeopleDay":{"post":{"operationId":"production.setPeopleDay","summary":"atomically make the given rows a person's day: existing rows at kept stations are updated (hours/overtime), new stations inserted, stations not in `rows` delet…","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"employeeId":{"type":"string"},"date":{"type":"string"},"shiftId":{"type":["string","null"]},"note":{"type":["string","null"]},"overtimeHours":{"type":"number"},"rows":{"type":"array","items":{"type":"object","properties":{"workCenterId":{"type":"string"},"hours":{"type":["number","null"]}},"required":["workCenterId","hours"]}}},"required":["locationId","employeeId","date","shiftId","note","overtimeHours","rows"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"number"},"removed":{"type":"number"}},"required":["updated","removed"]}}}}}}},"/production/setPeopleAssignmentHours":{"post":{"operationId":"production.setPeopleAssignmentHours","summary":"set the hours an assignment occupies at its station (null = the whole shift)","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"hours":{"type":["number","null"]}},"required":["id","hours"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"workCenterId":{"type":"string"},"date":{"type":"string"}},"required":["id","workCenterId","date"]}}}}}}},"/production/setPeopleOvertimeBulk":{"post":{"operationId":"production.setPeopleOvertimeBulk","summary":"authorize overtime for every assignment on a date, optionally scoped to a department (via the location's work centers) and/or a shift","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"date":{"type":"string"},"toDate":{"type":["string","null"]},"hours":{"type":"number"},"shiftId":{"type":["string","null"]},"departmentId":{"type":["string","null"]}},"required":["locationId","date","hours"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"workCenterId":{"type":"string"}},"required":["id","workCenterId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/copyPeopleBoard":{"post":{"operationId":"production.copyPeopleBoard","summary":"copy people board","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"fromDate":{"type":"string"},"toDate":{"type":"string"},"shiftId":{"type":["string","null"]}},"required":["locationId","fromDate","toDate","shiftId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"copied":{"type":"number"},"skipped":{"type":"number"}},"required":["copied","skipped"]}}}}}}},"/production/assignPeopleWeek":{"post":{"operationId":"production.assignPeopleWeek","summary":"assign a person to a station for a whole Monday-start week: one row per working day (the shift's weekdays when a shift is given, Mon–Fri otherwise), skipping d…","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"employeeId":{"type":"string"},"workCenterId":{"type":"string"},"weekStart":{"type":"string"},"shiftId":{"type":["string","null"]}},"required":["locationId","employeeId","workCenterId","weekStart","shiftId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assigned":{"type":"number"},"skipped":{"type":"number"}},"required":["assigned","skipped"]}}}}}}},"/production/unassignPeopleWeek":{"post":{"operationId":"production.unassignPeopleWeek","summary":"remove a person from a station for the whole week (their other stations and other weeks are untouched)","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"},"workCenterId":{"type":"string"},"weekStart":{"type":"string"},"shiftId":{"type":["string","null"]}},"required":["employeeId","workCenterId","weekStart","shiftId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"numDeletedRows":{}},"required":["numDeletedRows"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/movePeopleWeek":{"post":{"operationId":"production.movePeopleWeek","summary":"move a person's whole week from one station to another","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"},"fromWorkCenterId":{"type":"string"},"workCenterId":{"type":"string"},"weekStart":{"type":"string"},"shiftId":{"type":["string","null"]}},"required":["employeeId","fromWorkCenterId","workCenterId","weekStart","shiftId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"moved":{"type":"number"},"merged":{"type":"number"}},"required":["moved","merged"]}}}}}}},"/production/copyPeopleWeek":{"post":{"operationId":"production.copyPeopleWeek","summary":"copy a whole Monday-start week of people assignments onto another week, day by day, with the same skip rules as the day copy (people already assigned or absent…","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"fromWeekStart":{"type":"string"},"toWeekStart":{"type":"string"},"shiftId":{"type":["string","null"]}},"required":["locationId","fromWeekStart","toWeekStart","shiftId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"copied":{"type":"number"},"skipped":{"type":"number"}},"required":["copied","skipped"]}}}}}}},"/production/setPeopleAbsenceRange":{"post":{"operationId":"production.setPeopleAbsenceRange","summary":"mark a person absent for every date in [fromDate, toDate] (vacation as one action)","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"},"fromDate":{"type":"string"},"toDate":{"type":"string"},"shiftId":{"type":["string","null"]},"note":{"type":"string"}},"required":["employeeId","fromDate","toDate","shiftId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"number"},"skipped":{"type":"number"}},"required":["created","skipped"]}}}}}}},"/production/notifyScheduleInputsChanged":{"post":{"operationId":"production.notifyScheduleInputsChanged","summary":"reactive replanning: notify that a scheduling INPUT changed (shift, qualification, work center, location)","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["ability","shift","employee-shift","work-center","location","reorder","people"]},"reason":{"type":"string"},"entityId":{"type":"string"}},"required":["kind","reason"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/getUnbatchedBatchableOperationCount":{"post":{"operationId":"production.getUnbatchedBatchableOperationCount","summary":"get unbatched batchable operation count","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"process":{"type":"object","properties":{"batchable":{"type":"boolean"}},"required":["batchable"]},"job":{"type":"object","properties":{"status":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]}},"required":["status"]}},"required":["id","process","job"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobOperationBatches":{"post":{"operationId":"production.getJobOperationBatches","summary":"get job operation batches","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"locationId":{"type":"string"},"mergeOutput":{"type":"boolean"},"notes":{"type":["string","null"]},"outputLotNumber":{"type":["string","null"]},"processId":{"type":"string"},"readableId":{"type":"string"},"status":{"type":"string","enum":["Active","Completed","Planned","Completing"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"process":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"workCenter":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]}},"required":["companyId","createdAt","createdBy","customFields","id","locationId","mergeOutput","notes","outputLotNumber","processId","readableId","status","updatedAt","updatedBy","workCenterId","process","workCenter"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobOperationBatchMemberStats":{"post":{"operationId":"production.getJobOperationBatchMemberStats","summary":"get job operation batch member stats","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batchIds":{"type":"array","items":{"type":"string"}}},"required":["batchIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"memberCount":{"type":"number"},"totalQuantity":{"type":"number"},"workCenterName":{"type":["string","null"]}},"required":["memberCount","totalQuantity","workCenterName"]}}}}}}}},"/production/getJobOperationBatchMembers":{"post":{"operationId":"production.getJobOperationBatchMembers","summary":"get job operation batch members","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batchIds":{"type":"array","items":{"type":"string"}}},"required":["batchIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"jobId":{"type":["string","null"]},"jobReadableId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemName":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"operationQuantity":{"type":"number"},"quantityComplete":{"type":"number"},"quantityScrapped":{"type":"number"}},"required":["id","jobId","jobReadableId","itemReadableId","itemName","thumbnailPath","operationQuantity","quantityComplete","quantityScrapped"]}}}}}}}}},"/production/getBatchOutputLots":{"post":{"operationId":"production.getBatchOutputLots","summary":"get batch output lots","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batchId":{"type":"string"}},"required":["batchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{}},{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"readableId":{"type":["string","null"]},"itemId":{"type":["string","null"]}},"required":["id","readableId","itemId"]}},{"type":"null"}]}}}}}}},"/production/getJobOperationBatchWithMembers":{"post":{"operationId":"production.getJobOperationBatchWithMembers","summary":"get job operation batch with members","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batchId":{"type":"string"}},"required":["batchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"workCenterName":{"type":["string","null"]},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":["string","null"]},"operationQuantity":{"type":["number","null"]},"quantityComplete":{"type":["number","null"]},"quantityScrapped":{"type":["number","null"]},"status":{"type":"string","enum":["Todo","Done","In Progress","Ready","Paused","Canceled","Waiting"]},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"workCenter":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]},"job":{"type":"object","properties":{"id":{"type":"string"},"jobId":{"type":"string"},"customerId":{"type":["string","null"]},"salesOrderId":{"type":["string","null"]},"status":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]}},"required":["id","jobId","customerId","salesOrderId","status"]},"jobMakeMethod":{"type":["object","null"],"properties":{"item":{"type":"object","properties":{"readableIdWithRevision":{"type":["string","null"]},"name":{"type":"string"},"thumbnailPath":{"type":["string","null"]}},"required":["readableIdWithRevision","name","thumbnailPath"]}},"required":["item"]}},"required":["id","description","operationQuantity","quantityComplete","quantityScrapped","status","setupTime","setupUnit","laborTime","laborUnit","machineTime","machineUnit","workCenter","job","jobMakeMethod"]}},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"locationId":{"type":"string"},"mergeOutput":{"type":"boolean"},"notes":{"type":["string","null"]},"outputLotNumber":{"type":["string","null"]},"processId":{"type":"string"},"readableId":{"type":"string"},"status":{"type":"string","enum":["Active","Completed","Planned","Completing"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"process":{"type":"object","properties":{"name":{"type":"string"},"batchType":{"type":"string","enum":["Sequential","Simultaneous"]}},"required":["name","batchType"]},"workCenter":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]},"location":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["workCenterName","members","companyId","createdAt","createdBy","customFields","id","locationId","mergeOutput","notes","outputLotNumber","processId","readableId","status","updatedAt","updatedBy","workCenterId","process","workCenter","location"]}}}}}}},"/production/getJobOperationBatchEvents":{"post":{"operationId":"production.getJobOperationBatchEvents","summary":"get job operation batch events","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batchId":{"type":"string"}},"required":["batchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":["string","null"],"enum":["Setup","Labor","Machine"]},"startTime":{"type":"string"},"endTime":{"type":["string","null"]},"duration":{"type":["number","null"]},"employeeId":{"type":["string","null"]},"jobOperationId":{"type":"string"}},"required":["id","type","startTime","endTime","duration","employeeId","jobOperationId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getBatchableOperations":{"post":{"operationId":"production.getBatchableOperations","summary":"get batchable operations","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"processId":{"type":"string"}},"required":["locationId","processId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"batchReadableId":{"type":"string"},"batchStatus":{"type":"string","enum":["Active","Completed","Planned","Completing"]},"batchWorkCenterId":{"type":"string"},"companyId":{"type":"string"},"description":{"type":"string"},"id":{"type":"string"},"itemDescription":{"type":"string"},"itemId":{"type":"string"},"itemReadableId":{"type":"string"},"jobDueDate":{"type":"string"},"jobId":{"type":"string"},"jobOperationBatchId":{"type":"string"},"jobReadableId":{"type":"string"},"jobStatus":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"lotNumber":{"type":"string"},"materials":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"operationQuantity":{"type":"number"},"requiresBatchTracking":{"type":"boolean"},"status":{"type":"string","enum":["Todo","Done","In Progress","Ready","Paused","Canceled","Waiting"]},"trackedEntityId":{"type":"string"},"workCenterId":{"type":"string"}},"required":["batchReadableId","batchStatus","batchWorkCenterId","companyId","description","id","itemDescription","itemId","itemReadableId","jobDueDate","jobId","jobOperationBatchId","jobReadableId","jobStatus","lotNumber","materials","operationQuantity","requiresBatchTracking","status","trackedEntityId","workCenterId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getBatchableProcesses":{"post":{"operationId":"production.getBatchableProcesses","summary":"get batchable processes","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"batchable":{"type":"boolean"},"batchType":{"type":"string","enum":["Sequential","Simultaneous"]},"batchRules":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["id","name","batchable","batchType","batchRules"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/createJobOperationBatch":{"post":{"operationId":"production.createJobOperationBatch","summary":"create job operation batch","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobOperationIds":{"type":"array","items":{"type":"string"}},"locationId":{"type":"string"},"workCenterId":{"type":["string","null"]},"notes":{"type":["string","null"]},"release":{"type":"boolean"},"mergeOutput":{"type":"boolean"},"outputLotNumber":{"type":["string","null"]},"lotNumbers":{"type":"array","items":{"type":"object","properties":{"jobOperationId":{"type":"string"},"lotNumber":{"type":"string"}},"required":["jobOperationId","lotNumber"]}}},"required":["jobOperationIds","locationId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/updateJobOperationBatch":{"post":{"operationId":"production.updateJobOperationBatch","summary":"update job operation batch","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["add","remove","update","dissolve","release","unrelease"]},"batchId":{"type":"string"},"jobOperationIds":{"type":"array","items":{"type":"string"}},"workCenterId":{"type":["string","null"]}},"required":["type","batchId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/releaseJobOperationBatch":{"post":{"operationId":"production.releaseJobOperationBatch","summary":"release job operation batch","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batchId":{"type":"string"}},"required":["batchId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/unreleaseJobOperationBatch":{"post":{"operationId":"production.unreleaseJobOperationBatch","summary":"unrelease job operation batch","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batchId":{"type":"string"}},"required":["batchId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/getAssemblyInstruction":{"post":{"operationId":"production.getAssemblyInstruction","summary":"get assembly instruction","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assemblyPlanJobId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"modelUploadId":{"type":"string"},"name":{"type":"string"},"publishedAt":{"type":["string","null"]},"rootInstructionId":{"type":["string","null"]},"settings":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"status":{"type":"string","enum":["Draft","Published","Archived"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"},"modelUpload":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"modelPath":{"type":"string"},"glbPath":{"type":["string","null"]},"graphPath":{"type":["string","null"]},"componentCount":{"type":["number","null"]},"processingStatus":{"type":"string","enum":["Failed","Idle","Queued","Processing","Success"]},"processingError":{"type":["string","null"]}},"required":["id","name","modelPath","glbPath","graphPath","componentCount","processingStatus","processingError"]}},"required":["assemblyPlanJobId","companyId","createdAt","createdBy","customFields","id","itemId","modelUploadId","name","publishedAt","rootInstructionId","settings","status","tags","updatedAt","updatedBy","version","modelUpload"]}}}}}}},"/production/getAssemblyInstructions":{"post":{"operationId":"production.getAssemblyInstructions","summary":"get assembly instructions","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"type":"string"},"status":{"type":"string","enum":["Draft","Published","Archived"]},"itemId":{"type":"string"},"limit":{"type":"number"},"offset":{"type":"number"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assemblyPlanJobId":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"modelUploadId":{"type":["string","null"]},"name":{"type":["string","null"]},"publishedAt":{"type":["string","null"]},"rootInstructionId":{"type":["string","null"]},"settings":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"status":{"type":["string","null"],"enum":["Draft","Published","Archived"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":["number","null"]},"versions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"modelUpload":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"componentCount":{"type":["number","null"]},"processingStatus":{"type":"string","enum":["Failed","Idle","Queued","Processing","Success"]}},"required":["id","name","componentCount","processingStatus"]}},"required":["assemblyPlanJobId","companyId","createdAt","createdBy","customFields","id","itemId","modelUploadId","name","publishedAt","rootInstructionId","settings","status","tags","updatedAt","updatedBy","version","versions","modelUpload"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getAssemblyInstructionsForItem":{"post":{"operationId":"production.getAssemblyInstructionsForItem","summary":"get assembly instructions for item","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"version":{"type":"number"},"status":{"type":"string","enum":["Draft","Published","Archived"]}},"required":["id","name","version","status"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getModelForItem":{"post":{"operationId":"production.getModelForItem","summary":"resolves a made item's CAD model for assembly instructions","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"item":{"type":"null"},"model":{"type":"null"},"modelState":{"type":"string","enum":["none"]}},"required":["item","model","modelState"]},{"type":"object","properties":{"item":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"modelUploadId":{"type":["string","null"]}},"required":["id","name","modelUploadId"]},"model":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"componentCount":{"type":["number","null"]},"processingStatus":{"type":"string","enum":["Failed","Idle","Queued","Processing","Success"]},"processingError":{"type":["string","null"]},"glbPath":{"type":["string","null"]},"graphPath":{"type":["string","null"]},"modelPath":{"type":"string"}},"required":["id","name","componentCount","processingStatus","processingError","glbPath","graphPath","modelPath"]},"modelState":{"type":"string","enum":["processing","failed","none","converted","convertible"]}},"required":["item","model","modelState"]}]}}}}}}},"/production/getAssemblyInstructionSteps":{"post":{"operationId":"production.getAssemblyInstructionSteps","summary":"get assembly instruction steps","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"}},"required":["assemblyInstructionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"},"buildWave":{"type":["number","null"]},"camera":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"componentNodeIds":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"durationSeconds":{"type":["number","null"]},"explode":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"fastener":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"fileTypes":{"type":["array","null"],"items":{"type":"string"}},"hiddenComponentNodeIds":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"instructionText":{"type":["string","null"]},"isSubAssembly":{"type":"boolean"},"listValues":{"type":["array","null"],"items":{"type":"string"}},"maxValue":{"type":["number","null"]},"minValue":{"type":["number","null"]},"motion":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"parentStepId":{"type":["string","null"]},"planConfidence":{"type":"string"},"required":{"type":["boolean","null"]},"rootStepId":{"type":["string","null"]},"sortOrder":{"type":"number"},"status":{"type":"string","enum":["Todo","Review","Done"]},"title":{"type":["string","null"]},"type":{"type":"string","enum":["Value","Measurement","Checkbox","Timestamp","Person","List","File","Task","Inspection"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"usedInStepId":{"type":["string","null"]},"warnings":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["assemblyInstructionId","buildWave","camera","companyId","componentNodeIds","createdAt","createdBy","description","durationSeconds","explode","fastener","fileTypes","hiddenComponentNodeIds","id","instructionText","isSubAssembly","listValues","maxValue","minValue","motion","notes","parentStepId","planConfidence","required","rootStepId","sortOrder","status","title","type","unitOfMeasureCode","updatedAt","updatedBy","usedInStepId","warnings"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/upsertAssemblyInstruction":{"post":{"operationId":"production.upsertAssemblyInstruction","summary":"upsert assembly instruction","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"modelUploadId":{"type":"string"},"itemId":{"type":["string","null"]}},"required":["name","modelUploadId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/updateAssemblyInstructionStatus":{"post":{"operationId":"production.updateAssemblyInstructionStatus","summary":"update assembly instruction status","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"data":{"type":"object","properties":{"status":{"type":"string","enum":["Draft","Published","Archived"]}},"required":["status"]}},"required":["id","data"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/getAssemblyInstructionVersions":{"post":{"operationId":"production.getAssemblyInstructionVersions","summary":"sibling versions of an instruction, for the header's version switcher","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"rootInstructionId":{"type":["string","null"]}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"version":{"type":"number"},"status":{"type":"string","enum":["Draft","Published","Archived"]},"rootInstructionId":{"type":["string","null"]}},"required":["id","name","version","status","rootInstructionId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/copyAssemblyInstructionAsVersion":{"post":{"operationId":"production.copyAssemblyInstructionAsVersion","summary":"create a new editable Draft version as a perfect copy of an existing instruction: a fresh assemblyInstruction row (new id, version = max+1, status Draft) plus…","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"copyFromId":{"type":"string"}},"required":["copyFromId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/activateAssemblyInstructionVersion":{"post":{"operationId":"production.activateAssemblyInstructionVersion","summary":"make a version the active (Published) one: archive whichever sibling is currently Published, publish the target, and repoint in-flight work to it — but only ac…","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/deleteAssemblyInstruction":{"post":{"operationId":"production.deleteAssemblyInstruction","summary":"delete assembly instruction","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/invalidateAssemblyModelCache":{"post":{"operationId":"production.invalidateAssemblyModelCache","summary":"explicitly invalidates EVERY cached artifact for a model — plan rows + plan.json files (for all instructions on the model) and the conversion output (glb/graph…","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"modelUploadId":{"type":"string"}},"required":["modelUploadId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/upsertAssemblyInstructionStep":{"post":{"operationId":"production.upsertAssemblyInstructionStep","summary":"upsert assembly instruction step","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"title":{"type":["string","null"]},"type":{"type":"string","enum":["Value","Measurement","Checkbox","Timestamp","Person","List","File","Task","Inspection"]},"description":{},"required":{"type":"boolean"},"unitOfMeasureCode":{"type":["string","null"]},"minValue":{"type":["number","null"]},"maxValue":{"type":["number","null"]},"listValues":{"type":["array","null"],"items":{"type":"string"}},"componentNodeIds":{"type":"array","items":{"type":"string"}},"motion":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"linear"},"direction":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"distance":{"type":"number","exclusiveMinimum":0}},"required":["type","direction","distance"]},{"type":"object","properties":{"type":{"type":"string","const":"L"},"segments":{"minItems":2,"type":"array","items":{"type":"object","properties":{"direction":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"distance":{"type":"number","exclusiveMinimum":0}},"required":["direction","distance"]}}},"required":["type","segments"]},{"type":"object","properties":{"type":{"type":"string","const":"helix"},"axis":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"origin":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"pitch":{"type":"number","exclusiveMinimum":0},"turns":{"type":"number","exclusiveMinimum":0},"approach":{"type":"number","minimum":0}},"required":["type","axis","origin","pitch","turns","approach"]},{"type":"object","properties":{"type":{"type":"string","const":"path"},"keyframes":{"minItems":2,"type":"array","items":{"type":"object","properties":{"t":{"type":"number","minimum":0,"maximum":1},"position":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"quaternion":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":4,"maxItems":4}},"required":["t","position","quaternion"]}}},"required":["type","keyframes"]},{"type":"object","properties":{"type":{"type":"string","const":"none"}},"required":["type"]}]},"camera":{"anyOf":[{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"target":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"fov":{"type":"number","exclusiveMinimum":0}},"required":["position","target","fov"]},{"type":"object","properties":{"source":{"type":"string","const":"plan"},"direction":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3}},"required":["source","direction"]},{"type":"null"}]},"fastener":{"type":["object","null"],"properties":{"spec":{"type":"string"},"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"torqueNm":{"type":"number","exclusiveMinimum":0},"tool":{"type":"string"}}},"durationSeconds":{"type":["number","null"]},"id":{"type":"string"},"assemblyInstructionId":{"type":"string"},"sortOrder":{"type":"number"}},"required":["assemblyInstructionId"]}},"required":["data"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/updateAssemblyStepMotion":{"post":{"operationId":"production.updateAssemblyStepMotion","summary":"partial update of a step's viewer-authored motion path and/or camera pose","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"motion":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"linear"},"direction":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"distance":{"type":"number","exclusiveMinimum":0}},"required":["type","direction","distance"]},{"type":"object","properties":{"type":{"type":"string","const":"L"},"segments":{"minItems":2,"type":"array","items":{"type":"object","properties":{"direction":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"distance":{"type":"number","exclusiveMinimum":0}},"required":["direction","distance"]}}},"required":["type","segments"]},{"type":"object","properties":{"type":{"type":"string","const":"helix"},"axis":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"origin":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"pitch":{"type":"number","exclusiveMinimum":0},"turns":{"type":"number","exclusiveMinimum":0},"approach":{"type":"number","minimum":0}},"required":["type","axis","origin","pitch","turns","approach"]},{"type":"object","properties":{"type":{"type":"string","const":"path"},"keyframes":{"minItems":2,"type":"array","items":{"type":"object","properties":{"t":{"type":"number","minimum":0,"maximum":1},"position":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"quaternion":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":4,"maxItems":4}},"required":["t","position","quaternion"]}}},"required":["type","keyframes"]},{"type":"object","properties":{"type":{"type":"string","const":"none"}},"required":["type"]}]},"camera":{"anyOf":[{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"target":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"fov":{"type":"number","exclusiveMinimum":0}},"required":["position","target","fov"]},{"type":"object","properties":{"source":{"type":"string","const":"plan"},"direction":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3}},"required":["source","direction"]},{"type":"null"}]}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/updateAssemblyStepComponents":{"post":{"operationId":"production.updateAssemblyStepComponents","summary":"update assembly step components","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"componentNodeIds":{"type":"array","items":{"type":"string"}}},"required":["id","componentNodeIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/updateAssemblyStepHiddenComponents":{"post":{"operationId":"production.updateAssemblyStepHiddenComponents","summary":"update assembly step hidden components","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"assemblyInstructionId":{"type":"string"},"hiddenComponentNodeIds":{"type":"array","items":{"type":"string"}}},"required":["id","assemblyInstructionId","hiddenComponentNodeIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/makeAssemblySubAssembly":{"post":{"operationId":"production.makeAssemblySubAssembly","summary":"wrap a top-level step into a new sub-assembly; the step becomes its first step","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"},"stepId":{"type":"string"}},"required":["assemblyInstructionId","stepId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/production/insertAssemblyInstructionStep":{"post":{"operationId":"production.insertAssemblyInstructionStep","summary":"add a step at the end of the instruction, or at the end of the sub-assembly `parentStepId` names (directly before its header)","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"title":{"type":["string","null"]},"type":{"type":"string","enum":["Value","Measurement","Checkbox","Timestamp","Person","List","File","Task","Inspection"]},"description":{},"required":{"type":"boolean"},"unitOfMeasureCode":{"type":["string","null"]},"minValue":{"type":["number","null"]},"maxValue":{"type":["number","null"]},"listValues":{"type":["array","null"],"items":{"type":"string"}},"componentNodeIds":{"type":"array","items":{"type":"string"}},"motion":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"linear"},"direction":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"distance":{"type":"number","exclusiveMinimum":0}},"required":["type","direction","distance"]},{"type":"object","properties":{"type":{"type":"string","const":"L"},"segments":{"minItems":2,"type":"array","items":{"type":"object","properties":{"direction":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"distance":{"type":"number","exclusiveMinimum":0}},"required":["direction","distance"]}}},"required":["type","segments"]},{"type":"object","properties":{"type":{"type":"string","const":"helix"},"axis":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"origin":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"pitch":{"type":"number","exclusiveMinimum":0},"turns":{"type":"number","exclusiveMinimum":0},"approach":{"type":"number","minimum":0}},"required":["type","axis","origin","pitch","turns","approach"]},{"type":"object","properties":{"type":{"type":"string","const":"path"},"keyframes":{"minItems":2,"type":"array","items":{"type":"object","properties":{"t":{"type":"number","minimum":0,"maximum":1},"position":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"quaternion":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":4,"maxItems":4}},"required":["t","position","quaternion"]}}},"required":["type","keyframes"]},{"type":"object","properties":{"type":{"type":"string","const":"none"}},"required":["type"]}]},"camera":{"anyOf":[{"type":"object","properties":{"position":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"target":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3},"fov":{"type":"number","exclusiveMinimum":0}},"required":["position","target","fov"]},{"type":"object","properties":{"source":{"type":"string","const":"plan"},"direction":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"items":false,"minItems":3,"maxItems":3}},"required":["source","direction"]},{"type":"null"}]},"fastener":{"type":["object","null"],"properties":{"spec":{"type":"string"},"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"torqueNm":{"type":"number","exclusiveMinimum":0},"tool":{"type":"string"}}},"durationSeconds":{"type":["number","null"]},"assemblyInstructionId":{"type":"string"},"parentStepId":{"type":"string"}},"required":["assemblyInstructionId"]}},"required":["args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/production/updateAssemblySubAssembly":{"post":{"operationId":"production.updateAssemblySubAssembly","summary":"rename a sub-assembly and/or set the step that uses it (`null` = it joins the main build)","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"},"headerId":{"type":"string"},"title":{"type":"string"},"usedInStepId":{"type":["string","null"]}},"required":["assemblyInstructionId","headerId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/ungroupAssemblySubAssembly":{"post":{"operationId":"production.ungroupAssemblySubAssembly","summary":"remove the sub-assembly but keep its steps: they return to the top level in place","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"},"headerId":{"type":"string"}},"required":["assemblyInstructionId","headerId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/deleteAssemblySubAssembly":{"post":{"operationId":"production.deleteAssemblySubAssembly","summary":"delete a sub-assembly together with its steps","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"},"headerId":{"type":"string"}},"required":["assemblyInstructionId","headerId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/reassignAssemblyStepComponents":{"post":{"operationId":"production.reassignAssemblyStepComponents","summary":"reassign assembly step components","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"},"targetStepId":{"type":"string"},"componentNodeIds":{"type":"array","items":{"type":"string"}},"mode":{"type":"string","enum":["move","duplicate","remove"]}},"required":["assemblyInstructionId","componentNodeIds","mode"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/updateAssemblyInstructionStepStatus":{"post":{"operationId":"production.updateAssemblyInstructionStepStatus","summary":"update assembly instruction step status","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"data":{"type":"object","properties":{"status":{"type":"string","enum":["Todo","Review","Done"]}},"required":["status"]}},"required":["id","data"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/updateAssemblyInstructionStepOrder":{"post":{"operationId":"production.updateAssemblyInstructionStepOrder","summary":"drag-sort of the step list: each step's new position and sub-assembly (`parentStepId`, `null` = top level; omitted = unchanged)","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"},"parentStepId":{"type":["string","null"]}},"required":["id","sortOrder"]}}},"required":["assemblyInstructionId","updates"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/deleteAssemblyInstructionStep":{"post":{"operationId":"production.deleteAssemblyInstructionStep","summary":"delete assembly instruction step","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/getAssemblyInstructionStepSlides":{"post":{"operationId":"production.getAssemblyInstructionStepSlides","summary":"get assembly instruction step slides","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stepIds":{"type":"array","items":{"type":"string"}}},"required":["stepIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{}},{"type":"array","items":{"type":"object","properties":{"annotations":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"caption":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"imagePath":{"type":["string","null"]},"modelUploadId":{"type":["string","null"]},"size":{"type":"string"},"sortOrder":{"type":"number"},"stepId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["annotations","caption","companyId","createdAt","createdBy","id","imagePath","modelUploadId","size","sortOrder","stepId","updatedAt","updatedBy"]}},{"type":"null"}]}}}}}}},"/production/upsertAssemblyInstructionStepSlide":{"post":{"operationId":"production.upsertAssemblyInstructionStepSlide","summary":"upsert assembly instruction step slide","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stepId":{"type":"string","minLength":1},"imagePath":{"type":"string"},"modelUploadId":{"type":"string"},"caption":{"type":"string"},"sortOrder":{"type":"number","minimum":0},"size":{"type":"string","enum":["small","medium","large"]},"annotations":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."},"updatedAt":{"type":"string"}},"required":["stepId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/deleteAssemblyInstructionStepSlide":{"post":{"operationId":"production.deleteAssemblyInstructionStepSlide","summary":"delete assembly instruction step slide","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/getAssemblyInstructionStepTools":{"post":{"operationId":"production.getAssemblyInstructionStepTools","summary":"get assembly instruction step tools","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stepIds":{"type":"array","items":{"type":"string"}}},"required":["stepIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{}},{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"itemId":{"type":"string"},"quantity":{"type":"number"},"sortOrder":{"type":"number"},"stepId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"item":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]}},"required":["id","name","readableIdWithRevision"]}},"required":["companyId","createdAt","createdBy","id","itemId","quantity","sortOrder","stepId","updatedAt","updatedBy","item"]}},{"type":"null"}]}}}}}}},"/production/upsertAssemblyInstructionStepTool":{"post":{"operationId":"production.upsertAssemblyInstructionStepTool","summary":"upsert assembly instruction step tool","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"stepId":{"type":"string"},"itemId":{"type":"string"},"quantity":{"type":"number"},"sortOrder":{"type":"number"}},"required":["stepId","itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/deleteAssemblyInstructionStepTool":{"post":{"operationId":"production.deleteAssemblyInstructionStepTool","summary":"delete assembly instruction step tool","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/getAssemblyInstructionStepMaterials":{"post":{"operationId":"production.getAssemblyInstructionStepMaterials","summary":"get assembly instruction step materials","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stepIds":{"type":"array","items":{"type":"string"}}},"required":["stepIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{}},{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"itemId":{"type":"string"},"quantity":{"type":["number","null"]},"sortOrder":{"type":"number"},"stepId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"item":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]}},"required":["id","name","readableIdWithRevision"]}},"required":["companyId","createdAt","createdBy","id","itemId","quantity","sortOrder","stepId","updatedAt","updatedBy","item"]}},{"type":"null"}]}}}}}}},"/production/upsertAssemblyInstructionStepMaterial":{"post":{"operationId":"production.upsertAssemblyInstructionStepMaterial","summary":"upsert assembly instruction step material","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"stepId":{"type":"string"},"itemId":{"type":"string"},"quantity":{"type":["number","null"]},"sortOrder":{"type":"number"}},"required":["stepId","itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/updateAssemblyInstructionStepMaterialOrder":{"post":{"operationId":"production.updateAssemblyInstructionStepMaterialOrder","summary":"update assembly instruction step material order","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["assemblyInstructionId","updates"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/deleteAssemblyInstructionStepMaterial":{"post":{"operationId":"production.deleteAssemblyInstructionStepMaterial","summary":"delete assembly instruction step material","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/syncAssemblyStepMaterialsFromMappings":{"post":{"operationId":"production.syncAssemblyStepMaterialsFromMappings","summary":"adds the BOM items matched to each step's components (via assemblyComponentMapping) as step materials","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"},"stepIds":{"type":"array","items":{"type":"string"}},"geometryHashes":{"type":"array","items":{"type":"string"}},"onlyComponentNodeIds":{"type":"array","items":{"type":"string"}}},"required":["assemblyInstructionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"number"}},"required":["created"]}}}}}}},"/production/getAssemblyUnits":{"post":{"operationId":"production.getAssemblyUnits","summary":"get assembly units","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"modelUploadId":{"type":"string"}},"required":["modelUploadId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"componentNodeIds":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"itemId":{"type":["string","null"]},"modelUploadId":{"type":"string"},"name":{"type":"string"},"sourceGroupId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","componentNodeIds","createdAt","createdBy","id","itemId","modelUploadId","name","sourceGroupId","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/upsertAssemblyUnit":{"post":{"operationId":"production.upsertAssemblyUnit","summary":"upsert assembly unit","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"modelUploadId":{"type":"string"},"name":{"type":"string"},"componentNodeIds":{"type":"array","items":{"type":"string"}},"itemId":{"type":["string","null"]}},"required":["modelUploadId","name","componentNodeIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/deleteAssemblyUnit":{"post":{"operationId":"production.deleteAssemblyUnit","summary":"delete assembly unit","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/getLatestAssemblyPlan":{"post":{"operationId":"production.getLatestAssemblyPlan","summary":"latest successful motion plan for a model","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"modelUploadId":{"type":"string"}},"required":["modelUploadId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"planPath":{"type":"string"},"stats":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","planPath","stats","createdAt"]}}}}}}},"/production/getLatestAssemblyPlanJob":{"post":{"operationId":"production.getLatestAssemblyPlanJob","summary":"latest plan job in any state — used to tell \"planning is running\" apart from \"planning failed\" and to avoid enqueueing duplicate plan runs","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"modelUploadId":{"type":"string"}},"required":["modelUploadId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Failed","Idle","Queued","Processing","Success"]},"error":{"type":["string","null"]},"planPath":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","status","error","planPath","createdAt"]}}}}}}},"/production/createAssemblyPlanJob":{"post":{"operationId":"production.createAssemblyPlanJob","summary":"pre-creates the Queued plan job row BEFORE the `assembly-plan` event is sent, so the very next loader read sees a live run (badge, disabled button, polling)","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"modelUploadId":{"type":"string"}},"required":["modelUploadId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/getAssemblyPlanJson":{"post":{"operationId":"production.getAssemblyPlanJson","summary":"downloads and parses plan.json for a model's latest successful plan","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"modelUploadId":{"type":"string"}},"required":["modelUploadId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["object","null"],"properties":{"version":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]}]},"unit":{"type":"string","enum":["mm"]},"sequence":{"type":"array","items":{"type":"string"}},"components":{"type":"object","additionalProperties":{"type":"object","properties":{"motion":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["linear"]},"direction":{"type":"object","additionalProperties":{"type":"number"}},"distance":{"type":"number"}},"required":["type","direction","distance"]},{"type":"object","properties":{"type":{"type":"string","enum":["L"]},"segments":{"type":"array","items":{"type":"object","properties":{"direction":{},"distance":{}},"required":["direction","distance"]}}},"required":["type","segments"]},{"type":"object","properties":{"type":{"type":"string","enum":["helix"]},"axis":{"type":"object","additionalProperties":{"type":"number"}},"origin":{"type":"object","additionalProperties":{"type":"number"}},"pitch":{"type":"number"},"turns":{"type":"number"},"approach":{"type":"number"}},"required":["type","axis","origin","pitch","turns","approach"]},{"type":"object","properties":{"type":{"type":"string","enum":["path"]},"keyframes":{"type":"array","items":{"type":"object","properties":{"t":{},"position":{},"quaternion":{}},"required":["t","position","quaternion"]}}},"required":["type","keyframes"]},{"type":"object","properties":{"type":{"type":"string","enum":["none"]}},"required":["type"]}]},"confidence":{"type":["string","null"],"enum":["low","high"]},"removalDirection":{"type":["object","null"],"additionalProperties":{"type":"number"}},"blockedBy":{"type":["array","null"],"items":{"type":"string"}},"tier":{"type":["string","null"],"enum":["group","L","base","linear","escape","flagged"]},"verified":{"type":["boolean","null"]},"groupId":{"type":["string","null"]},"mergedInto":{"type":["string","null"]},"needsSupport":{"type":["boolean","null"]},"wave":{"type":["number","null"]},"viewDirection":{"type":["object","null"],"additionalProperties":{"type":"number"}}},"required":["motion"]}},"groups":{"type":["object","null"],"additionalProperties":{"type":"object","properties":{"componentNodeIds":{"type":"array","items":{"type":"string"}},"motion":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["linear"]},"direction":{"type":"object","additionalProperties":{"type":"number"}},"distance":{"type":"number"}},"required":["type","direction","distance"]},{"type":"object","properties":{"type":{"type":"string","enum":["L"]},"segments":{"type":"array","items":{"type":"object","properties":{"direction":{},"distance":{}},"required":["direction","distance"]}}},"required":["type","segments"]},{"type":"object","properties":{"type":{"type":"string","enum":["helix"]},"axis":{"type":"object","additionalProperties":{"type":"number"}},"origin":{"type":"object","additionalProperties":{"type":"number"}},"pitch":{"type":"number"},"turns":{"type":"number"},"approach":{"type":"number"}},"required":["type","axis","origin","pitch","turns","approach"]},{"type":"object","properties":{"type":{"type":"string","enum":["path"]},"keyframes":{"type":"array","items":{"type":"object","properties":{"t":{},"position":{},"quaternion":{}},"required":["t","position","quaternion"]}}},"required":["type","keyframes"]},{"type":"object","properties":{"type":{"type":"string","enum":["none"]}},"required":["type"]}]},"name":{"type":["string","null"]},"viewDirection":{"type":["object","null"],"additionalProperties":{"type":"number"}}},"required":["componentNodeIds","motion"]}},"contacts":{"type":["object","null"],"additionalProperties":{"type":"array","items":{"type":"string"}}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["version","unit","sequence","components","warnings"]}}}}}}},"/production/getAssemblyComponentMappings":{"post":{"operationId":"production.getAssemblyComponentMappings","summary":"mappings from distinct model components (geometry hashes) to BOM items","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"modelUploadId":{"type":"string"}},"required":["modelUploadId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"confidence":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"geometryHash":{"type":"string"},"id":{"type":"string"},"itemId":{"type":"string"},"modelUploadId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"item":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]}},"required":["id","name","readableIdWithRevision"]}},"required":["companyId","confidence","createdAt","createdBy","geometryHash","id","itemId","modelUploadId","updatedAt","updatedBy","item"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/upsertAssemblyComponentMapping":{"post":{"operationId":"production.upsertAssemblyComponentMapping","summary":"upsert assembly component mapping","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"modelUploadId":{"type":"string"},"geometryHash":{"type":"string"},"itemId":{"type":"string"},"confidence":{"type":"string","enum":["high","low"]}},"required":["modelUploadId","geometryHash","itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/deleteAssemblyComponentMapping":{"post":{"operationId":"production.deleteAssemblyComponentMapping","summary":"delete assembly component mapping","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/getFlattenedBomMaterials":{"post":{"operationId":"production.getFlattenedBomMaterials","summary":"the engineering bill of materials for a made item, flattened through its Make subassemblies (makeMethod → methodMaterial → materialMakeMethodId), with quantiti…","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"name":{"type":["string","null"]},"readableIdWithRevision":{"type":["string","null"]},"quantity":{"type":"number"},"methodType":{"type":"string"},"depth":{"type":"number"}},"required":["itemId","name","readableIdWithRevision","quantity","methodType","depth"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/autoMatchAssemblyComponents":{"post":{"operationId":"production.autoMatchAssemblyComponents","summary":"suggests and persists component→BOM mappings for an instruction's model: strong name matches first (greedy, best score wins), then unique quantity matches (a c…","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"}},"required":["assemblyInstructionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"mapped":{"type":"number"},"totalComponents":{"type":"number"},"unmatchedBomItems":{"type":"array","items":{"type":"string"}}},"required":["mapped","totalComponents","unmatchedBomItems"]},{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}]}}}}}}},"/production/maxToolQuantityByItem":{"post":{"operationId":"production.maxToolQuantityByItem","summary":"the re-sync ratchets a tool's operation-level quantity up to the max quantity any source step asks for (operation-level rows are never lowered or deleted)","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceTools":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"quantity":{"type":["number","null"]}},"required":["itemId","quantity"]}}},"required":["sourceTools"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/syncAssemblyInstructionToOperation":{"post":{"operationId":"production.syncAssemblyInstructionToOperation","summary":"sync assembly instruction to operation","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"},"operationId":{"type":"string"}},"required":["assemblyInstructionId","operationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"number"},"updated":{"type":"number"},"deleted":{"type":"number"},"partsLinked":{"type":"number"},"partsUnmatched":{"type":"number"},"slidesSynced":{"type":"number"},"toolsLinked":{"type":"number"}},"required":["created","updated","deleted","partsLinked","partsUnmatched","slidesSynced","toolsLinked"]}}}}}}},"/production/generateAssemblyStepsFromPlan":{"post":{"operationId":"production.generateAssemblyStepsFromPlan","summary":"creates draft steps from the motion plan: walks the planned assembly sequence, groups consecutive identical parts (same geometry, same motion shape) into one s…","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":"string"},"mode":{"type":"string","enum":["generate","regenerate"]}},"required":["assemblyInstructionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean"},"created":{"type":"number"},"unmappedComponentCount":{"type":"number"}},"required":["ok","created","unmappedComponentCount"]},{"type":"object","properties":{"ok":{"type":"boolean"},"reason":{"type":"string","enum":["error","no-model","no-plan","steps-exist","steps-locked"]},"modelUploadId":{"type":["string","null"]},"message":{"type":["string","null"]}},"required":["ok","reason"]}]}}}}}}},"/production/toViewerStep":{"post":{"operationId":"production.toViewerStep","summary":"maps a DB step row to the viewer's step shape","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"step":{}},"required":["step"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"instructionText":{"type":["string","null"]},"componentNodeIds":{"type":"array","items":{"type":"string"}},"motion":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["linear"]},"direction":{"type":"object","additionalProperties":{"type":"number"}},"distance":{"type":"number"}},"required":["type","direction","distance"]},{"type":"object","properties":{"type":{"type":"string","enum":["L"]},"segments":{"type":"array","items":{"type":"object","properties":{"direction":{"type":"object","additionalProperties":{"type":"number"}},"distance":{"type":"number"}},"required":["direction","distance"]}}},"required":["type","segments"]},{"type":"object","properties":{"type":{"type":"string","enum":["helix"]},"axis":{"type":"object","additionalProperties":{"type":"number"}},"origin":{"type":"object","additionalProperties":{"type":"number"}},"pitch":{"type":"number"},"turns":{"type":"number"},"approach":{"type":"number"}},"required":["type","axis","origin","pitch","turns","approach"]},{"type":"object","properties":{"type":{"type":"string","enum":["path"]},"keyframes":{"type":"array","items":{"type":"object","properties":{"t":{"type":"number"},"position":{"type":"object","additionalProperties":{"type":"number"}},"quaternion":{"type":"object","additionalProperties":{"type":"number"}}},"required":["t","position","quaternion"]}}},"required":["type","keyframes"]},{"type":"object","properties":{"type":{"type":"string","enum":["none"]}},"required":["type"]}]},"camera":{"anyOf":[{"type":"object","properties":{"position":{"type":"object","additionalProperties":{"type":"number"}},"target":{"type":"object","additionalProperties":{"type":"number"}},"fov":{"type":"number"}},"required":["position","target","fov"]},{"type":"object","properties":{"source":{"type":"string","enum":["plan"]},"direction":{"type":"object","additionalProperties":{"type":"number"}}},"required":["source","direction"]},{"type":"null"}]},"fastener":{"type":["object","null"],"properties":{"spec":{"type":["string","null"]},"count":{"type":["number","null"]},"torqueNm":{"type":["number","null"]},"tool":{"type":["string","null"]}}},"durationSeconds":{"type":["number","null"]},"flagged":{"type":["boolean","null"]},"hiddenComponentNodeIds":{"type":["array","null"],"items":{"type":"string"}},"isSubAssembly":{"type":["boolean","null"]},"parentStepId":{"type":["string","null"]},"usedInStepId":{"type":["string","null"]}},"required":["id","title","instructionText","componentNodeIds","motion","camera","fastener"]}}}}}}},"/production/getJobMaterialPurchaseOrderLines":{"post":{"operationId":"production.getJobMaterialPurchaseOrderLines","summary":"get job material purchase order lines","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materials":{"type":"array","items":{"type":"object","properties":{"jobMaterialItemId":{"type":["string","null"]}},"required":["jobMaterialItemId"]}},"locationId":{"type":"string"}},"required":["materials","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":["string","null"]},"purchaseQuantity":{"type":["number","null"]},"quantityReceived":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Closed","Completed","Rejected","Draft","Planned","To Review","To Receive","To Receive and Invoice","To Invoice","Needs Approval"]}},"required":["itemId","purchaseQuantity","quantityReceived","status"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getJobMaterialSupplyJobLines":{"post":{"operationId":"production.getJobMaterialSupplyJobLines","summary":"get job material supply job lines","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materials":{"type":"array","items":{"type":"object","properties":{"jobMaterialItemId":{"type":["string","null"]}},"required":["jobMaterialItemId"]}},"locationId":{"type":"string"}},"required":["materials","locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]}},"required":["itemId","status"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/completeOperation":{"post":{"operationId":"production.completeOperation","summary":"complete a job operation by reporting produced quantity (non-tracked items)","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string"},"quantity":{"type":"number"}},"required":["operationId","quantity"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/createJobDocumentUploadUrl":{"post":{"operationId":"production.createJobDocumentUploadUrl","summary":"create a presigned upload URL for a job document","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"name":{"type":"string"}},"required":["jobId","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"signedUrl":{"type":"string"},"token":{"type":"string"},"path":{"type":"string"}},"required":["signedUrl","token","path"]}}}}}}},"/production/scheduleJob":{"post":{"operationId":"production.scheduleJob","summary":"schedule or reschedule a job's operations","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"}},"required":["jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"jobsScheduled":{"type":"number"},"jobsFailed":{"type":"number"},"conflictsDetected":{"type":"number"},"newlyLate":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string"},"readableJobId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"projectedCompletionAt":{"type":["string","null"]}},"required":["jobId","readableJobId","assignee","projectedCompletionAt"]}}},"required":["locationId","jobsScheduled","jobsFailed","conflictsDetected","newlyLate"]}}}}}}},"/production/upsertJobMaterial":{"post":{"operationId":"production.upsertJobMaterial","summary":"upsert a job material WITH the route-level orchestration the bare service function lacks","tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Updates the existing record with this key; creates one when there is none."},"description":{"type":"string","minLength":1},"jobMakeMethodId":{"type":"string","minLength":1},"itemType":{"type":"string","enum":["Part","Material","Consumable"]},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"itemId":{"type":"string","minLength":1},"kit":{"type":"string","enum":["true","false"]},"order":{"type":"number","minimum":0},"quantity":{"type":"number","minimum":0},"requiresBatchTracking":{"type":"string","enum":["true","false"]},"requiresSerialTracking":{"type":"string","enum":["true","false"]},"unitCost":{"type":"number","minimum":0},"unitOfMeasureCode":{"type":"string","minLength":1},"storageUnitId":{"type":"string"},"jobOperationId":{"type":"string"},"jobId":{"type":"string"},"customFields":{}},"required":["id","description","jobMakeMethodId","itemType","methodType","itemId","order","quantity","requiresBatchTracking","requiresSerialTracking","unitCost","unitOfMeasureCode","jobId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]}},"required":["id","methodType"]}}}}}}},"/production/getInspectionDocument":{"post":{"operationId":"production.getInspectionDocument","summary":"get inspection document (deprecated: use /quality/getInspectionDocument)","deprecated":true,"tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"companyId":{"type":"string"},"partId":{"type":["string","null"]},"createdBy":{"type":"string"},"updatedBy":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":["string","null"]},"content":{"type":"object","properties":{"drawingNumber":{"type":["string","null"]},"pdfUrl":{"type":["string","null"]},"annotations":{"type":"array","items":{}},"features":{"type":"array","items":{}}},"required":["drawingNumber","pdfUrl","annotations","features"]},"sampling":{"type":"object","properties":{"samplingPlanType":{"type":["string","null"]},"samplingSampleSize":{"type":["number","null"]},"samplingPercentage":{"type":["number","null"]},"samplingAql":{"type":["number","null"]},"samplingInspectionLevel":{"type":["string","null"]},"samplingSeverity":{"type":["string","null"]}},"required":["samplingPlanType","samplingSampleSize","samplingPercentage","samplingAql","samplingInspectionLevel","samplingSeverity"]}},"required":["id","name","companyId","partId","createdBy","updatedBy","createdAt","updatedAt","content","sampling"]}}}}}}},"/production/getInspectionDocuments":{"post":{"operationId":"production.getInspectionDocuments","summary":"get inspection documents (deprecated: use /quality/getInspectionDocuments)","deprecated":true,"tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"anyOf":[{"type":"string"},{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0}}}]}},"required":["search"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"companyId":{"type":"string"},"partId":{"type":["string","null"]},"createdBy":{"type":"string"},"updatedBy":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":["string","null"]},"content":{"type":"object","properties":{"drawingNumber":{"type":["string","null"]},"pdfUrl":{"type":["string","null"]},"annotations":{"type":"array","items":{}},"features":{"type":"array","items":{}}},"required":["drawingNumber","pdfUrl","annotations","features"]},"sampling":{"type":"object","properties":{"samplingPlanType":{"type":["string","null"]},"samplingSampleSize":{"type":["number","null"]},"samplingPercentage":{"type":["number","null"]},"samplingAql":{"type":["number","null"]},"samplingInspectionLevel":{"type":["string","null"]},"samplingSeverity":{"type":["string","null"]}},"required":["samplingPlanType","samplingSampleSize","samplingPercentage","samplingAql","samplingInspectionLevel","samplingSeverity"]}},"required":["id","name","companyId","partId","createdBy","updatedBy","createdAt","updatedAt","content","sampling"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getInspectionDocumentsForItem":{"post":{"operationId":"production.getInspectionDocumentsForItem","summary":"get inspection documents for item (deprecated: use /quality/getInspectionDocumentsForItem)","deprecated":true,"tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"fileName":{"type":["string","null"]},"drawingNumber":{"type":["string","null"]},"version":{"type":"number"}},"required":["id","fileName","drawingNumber","version"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getInspectionFeatures":{"post":{"operationId":"production.getInspectionFeatures","summary":"get inspection features (deprecated: use /quality/getInspectionFeatures)","deprecated":true,"tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspectionDocumentId":{"type":"string"}},"required":["inspectionDocumentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"inspectionDocumentId":{"type":"string"},"companyId":{"type":"string"},"pageNumber":{"type":"number"},"label":{"type":"string"},"description":{"type":["string","null"]},"nominalValue":{"type":["string","null"]},"tolerancePlus":{"type":["string","null"]},"toleranceMinus":{"type":["string","null"]},"unit":{"type":["string","null"]},"type":{"type":"string"},"samplingPlanType":{"type":["string","null"]},"samplingSampleSize":{"type":["number","null"]},"samplingPercentage":{"type":["number","null"]},"samplingAql":{"type":["number","null"]},"samplingInspectionLevel":{"type":["string","null"]},"samplingSeverity":{"type":["string","null"]},"gaugeTypeId":{"type":["string","null"]},"balloonId":{"type":["string","null"]},"createdBy":{"type":"string"},"updatedBy":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":["string","null"]}},"required":["id","inspectionDocumentId","companyId","pageNumber","label","description","nominalValue","tolerancePlus","toleranceMinus","unit","type","samplingPlanType","samplingSampleSize","samplingPercentage","samplingAql","samplingInspectionLevel","samplingSeverity","gaugeTypeId","balloonId","createdBy","updatedBy","createdAt","updatedAt"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getBalloons":{"post":{"operationId":"production.getBalloons","summary":"get balloons (deprecated: use /quality/getBalloons)","deprecated":true,"tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspectionDocumentId":{"type":"string"}},"required":["inspectionDocumentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"inspectionDocumentId":{"type":"string"},"companyId":{"type":"string"},"inspectionFeatureId":{"type":"string"},"pageNumber":{"type":"number"},"regionX":{"type":"number"},"regionY":{"type":"number"},"regionWidth":{"type":"number"},"regionHeight":{"type":"number"},"xCoordinate":{"type":"number"},"yCoordinate":{"type":"number"},"createdBy":{"type":"string"},"updatedBy":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":["string","null"]},"balloonAnchorId":{"type":"string"}},"required":["id","inspectionDocumentId","companyId","inspectionFeatureId","pageNumber","regionX","regionY","regionWidth","regionHeight","xCoordinate","yCoordinate","createdBy","updatedBy","createdAt","updatedAt","balloonAnchorId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/getInspectionPlan":{"post":{"operationId":"production.getInspectionPlan","summary":"get inspection plan (deprecated: use /quality/getInspectionPlan)","deprecated":true,"tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspectionDocumentId":{"type":"string"}},"required":["inspectionDocumentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"featureId":{"type":"string"},"balloonId":{"type":["string","null"]},"inspectionDocumentId":{"type":"string"},"pageNumber":{"type":"number"},"label":{"type":"string"},"description":{"type":["string","null"]},"nominalValue":{"type":["string","null"]},"tolerancePlus":{"type":["string","null"]},"toleranceMinus":{"type":["string","null"]},"unit":{"type":["string","null"]},"regionX":{"type":["number","null"]},"regionY":{"type":["number","null"]},"regionWidth":{"type":["number","null"]},"regionHeight":{"type":["number","null"]},"xCoordinate":{"type":["number","null"]},"yCoordinate":{"type":["number","null"]}},"required":["id","featureId","balloonId","inspectionDocumentId","pageNumber","label","description","nominalValue","tolerancePlus","toleranceMinus","unit","regionX","regionY","regionWidth","regionHeight","xCoordinate","yCoordinate"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/production/saveInspectionDocumentAtomic":{"post":{"operationId":"production.saveInspectionDocumentAtomic","summary":"save inspection document atomic (deprecated: use /quality/saveInspectionDocumentAtomic)","deprecated":true,"tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspectionDocumentId":{"type":"string"},"pdfUrl":{"type":["string","null"]},"pageCount":{"type":"number"},"defaultPageWidth":{"type":"number"},"defaultPageHeight":{"type":"number"},"features":{},"balloons":{}},"required":["inspectionDocumentId","features","balloons"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/production/updateInspectionDocumentSampling":{"post":{"operationId":"production.updateInspectionDocumentSampling","summary":"update inspection document sampling (deprecated: use /quality/updateInspectionDocumentSampling)","deprecated":true,"tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"samplingPlanType":{"anyOf":[{"type":"string","enum":["All","First","Percentage","AQL"]},{"type":"null"}]},"samplingSampleSize":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"samplingPercentage":{"anyOf":[{"type":"number","exclusiveMinimum":0,"maximum":100},{"type":"null"}]},"samplingAql":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]},"samplingInspectionLevel":{"anyOf":[{"type":"string","enum":["I","II","III","S1","S2","S3","S4"]},{"type":"null"}]},"samplingSeverity":{"anyOf":[{"type":"string","enum":["Normal","Tightened","Reduced"]},{"type":"null"}]},"inspectionDocumentId":{"type":"string"}},"required":["samplingPlanType","samplingSampleSize","samplingPercentage","samplingAql","samplingInspectionLevel","samplingSeverity","inspectionDocumentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/production/upsertInspectionDocument":{"post":{"operationId":"production.upsertInspectionDocument","summary":"upsert inspection document (deprecated: use /quality/upsertInspectionDocument)","deprecated":true,"tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"partId":{"type":"string","minLength":1},"drawingNumber":{"type":"string"},"pdfUrl":{"type":"string"},"annotations":{"type":"string"},"features":{"type":"string"},"id":{"type":"string"},"pageCount":{"type":"number"},"defaultPageWidth":{"type":"number"},"defaultPageHeight":{"type":"number"}},"required":["partId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/production/deleteInspectionDocument":{"post":{"operationId":"production.deleteInspectionDocument","summary":"delete inspection document (deprecated: use /quality/deleteInspectionDocument)","deprecated":true,"tags":["production"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"storagePath":{"type":["string","null"]}},"required":["storagePath"]}}}}}}},"/purchasing/convertSupplierQuoteToOrder":{"post":{"operationId":"purchasing.convertSupplierQuoteToOrder","summary":"convert supplier quote to order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"selectedLines":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"leadTime":{"type":"number"},"quantity":{"type":"number"},"shippingCost":{"type":"number"},"supplierShippingCost":{"type":"number"},"supplierUnitPrice":{"type":"number"},"supplierTaxAmount":{"type":"number"},"taxAmount":{"default":0,"type":"number"},"taxPercent":{"default":0,"type":"number","minimum":0,"maximum":1},"unitPrice":{"type":"number"}},"required":["leadTime","quantity","shippingCost","supplierShippingCost","supplierUnitPrice","supplierTaxAmount","unitPrice"]}}},"required":["id","selectedLines"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"convertedId":{"type":"string"}},"required":["convertedId"]}}}}}}},"/purchasing/deletePurchaseOrder":{"post":{"operationId":"purchasing.deletePurchaseOrder","summary":"delete purchase order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderId":{"type":"string"}},"required":["purchaseOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/deletePurchaseOrderLine":{"post":{"operationId":"purchasing.deletePurchaseOrderLine","summary":"delete purchase order line","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderLineId":{"type":"string"}},"required":["purchaseOrderLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/duplicatePurchaseOrder":{"post":{"operationId":"purchasing.duplicatePurchaseOrder","summary":"duplicate purchase order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourcePurchaseOrderId":{"type":"string"}},"required":["sourcePurchaseOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"purchaseOrderId":{"type":"string"}},"required":["id","purchaseOrderId"]}}}}}}},"/purchasing/deleteSupplier":{"post":{"operationId":"purchasing.deleteSupplier","summary":"delete supplier","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/deleteSupplierContact":{"post":{"operationId":"purchasing.deleteSupplierContact","summary":"delete supplier contact","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"},"supplierContactId":{"type":"string"}},"required":["supplierId","supplierContactId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"contactId":{"type":"string"}},"required":["contactId"]}}}}}}},"/purchasing/deleteSupplierLocation":{"post":{"operationId":"purchasing.deleteSupplierLocation","summary":"delete supplier location","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"},"supplierLocationId":{"type":"string"}},"required":["supplierId","supplierLocationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/deleteSupplierBankAccount":{"post":{"operationId":"purchasing.deleteSupplierBankAccount","summary":"delete supplier bank account","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/getSupplierBankAccounts":{"post":{"operationId":"purchasing.getSupplierBankAccounts","summary":"get supplier bank accounts","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountHolderName":{"type":["string","null"]},"accountNumber":{"type":["string","null"]},"active":{"type":"boolean"},"bankAddress":{"type":["string","null"]},"bankCode":{"type":["string","null"]},"bankName":{"type":["string","null"]},"companyId":{"type":"string"},"countryCode":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"isPrimary":{"type":"boolean"},"name":{"type":"string"},"notes":{"type":["string","null"]},"supplierId":{"type":"string"},"swiftBic":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountHolderName","accountNumber","active","bankAddress","bankCode","bankName","companyId","countryCode","createdAt","createdBy","currencyCode","customFields","id","isPrimary","name","notes","supplierId","swiftBic","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/upsertSupplierBankAccount":{"post":{"operationId":"purchasing.upsertSupplierBankAccount","summary":"upsert supplier bank account","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"accountHolderName":{"type":"string"},"bankName":{"type":"string","minLength":1},"bankAddress":{"type":"string","minLength":1},"countryCode":{"type":"string","minLength":1},"currencyCode":{"type":"string"},"accountNumber":{"type":"string"},"bankCode":{"type":"string"},"swiftBic":{"type":"string"},"notes":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["supplierId","name","bankName","bankAddress","countryCode"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/deleteSupplierProcess":{"post":{"operationId":"purchasing.deleteSupplierProcess","summary":"delete supplier process","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierProcessId":{"type":"string"}},"required":["supplierProcessId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/deleteSupplierQuote":{"post":{"operationId":"purchasing.deleteSupplierQuote","summary":"delete supplier quote","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteId":{"type":"string"}},"required":["supplierQuoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/deleteSupplierQuoteLine":{"post":{"operationId":"purchasing.deleteSupplierQuoteLine","summary":"delete supplier quote line","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/deleteSupplierType":{"post":{"operationId":"purchasing.deleteSupplierType","summary":"delete supplier type","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierTypeId":{"type":"string"}},"required":["supplierTypeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/getPurchaseOrder":{"post":{"operationId":"purchasing.getPurchaseOrder","summary":"get purchase order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderId":{"type":"string"}},"required":["purchaseOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accountManagerEmail":{"type":["string","null"]},"accountManagerFullName":{"type":["string","null"]},"accountManagerPhone":{"type":["string","null"]},"assignee":{"type":["string","null"]},"assigneeEmail":{"type":["string","null"]},"assigneeFullName":{"type":["string","null"]},"assigneePhone":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closedBy":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"createdByEmail":{"type":["string","null"]},"createdByFullName":{"type":["string","null"]},"createdByPhone":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"deliveryDate":{"type":["string","null"]},"dropShipment":{"type":["boolean","null"]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"incoterm":{"type":["string","null"],"enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"jobId":{"type":["string","null"]},"jobReadableId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"orderDate":{"type":["string","null"]},"orderTotal":{"type":["number","null"]},"paymentTermId":{"type":["string","null"]},"purchaseOrderId":{"type":["string","null"]},"purchaseOrderType":{"type":["string","null"],"enum":["Purchase","Outside Processing","Return"]},"receiptPromisedDate":{"type":["string","null"]},"receiptRequestedDate":{"type":["string","null"]},"receivableQuantity":{"type":["number","null"]},"receivedQuantity":{"type":["number","null"]},"revisionId":{"type":["number","null"]},"shippingMethodId":{"type":["string","null"]},"shippingTermId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Completed","Rejected","Draft","Planned","To Review","To Receive","To Receive and Invoice","To Invoice","Needs Approval"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"supplierReference":{"type":["string","null"]},"supplierShippingCost":{"type":["number","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountManagerEmail","accountManagerFullName","accountManagerPhone","assignee","assigneeEmail","assigneeFullName","assigneePhone","closedAt","closedBy","companyId","createdAt","createdBy","createdByEmail","createdByFullName","createdByPhone","currencyCode","customFields","deliveryDate","dropShipment","exchangeRate","exchangeRateUpdatedAt","externalNotes","id","incoterm","incotermLocation","internalNotes","itemType","jobId","jobReadableId","locationId","orderDate","orderTotal","paymentTermId","purchaseOrderId","purchaseOrderType","receiptPromisedDate","receiptRequestedDate","receivableQuantity","receivedQuantity","revisionId","shippingMethodId","shippingTermId","status","supplierContactId","supplierId","supplierInteractionId","supplierLocationId","supplierReference","supplierShippingCost","tags","thumbnailPath","updatedAt","updatedBy"]}}}}}}},"/purchasing/finalizeSupplierQuote":{"post":{"operationId":"purchasing.finalizeSupplierQuote","summary":"finalize supplier quote","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteId":{"type":"string"}},"required":["supplierQuoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/getPurchaseOrders":{"post":{"operationId":"purchasing.getPurchaseOrders","summary":"get purchase orders","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{"type":["string","null"]},"supplierId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"purchaseOrderId":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Closed","Completed","Rejected","Draft","Planned","To Review","To Receive","To Receive and Invoice","To Invoice","Needs Approval"]},"orderDate":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierReference":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"orderTotal":{"type":["number","null"]},"receivableQuantity":{"type":["number","null"]},"receivedQuantity":{"type":["number","null"]},"shippingMethodId":{"type":["string","null"]},"receiptRequestedDate":{"type":["string","null"]},"receiptPromisedDate":{"type":["string","null"]},"deliveryDate":{"type":["string","null"]},"dropShipment":{"type":["boolean","null"]},"paymentTermId":{"type":["string","null"]},"createdByFullName":{"type":["string","null"]},"assigneeFullName":{"type":["string","null"]}},"required":["id","purchaseOrderId","revisionId","status","orderDate","supplierId","supplierReference","assignee","companyId","customFields","createdAt","createdBy","updatedAt","updatedBy","thumbnailPath","itemType","orderTotal","receivableQuantity","receivedQuantity","shippingMethodId","receiptRequestedDate","receiptPromisedDate","deliveryDate","dropShipment","paymentTermId","createdByFullName","assigneeFullName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getPurchaseOrderDelivery":{"post":{"operationId":"purchasing.getPurchaseOrderDelivery","summary":"get purchase order delivery","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderId":{"type":"string"}},"required":["purchaseOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customerId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"deliveryDate":{"type":["string","null"]},"dropShipment":{"type":"boolean"},"id":{"type":"string"},"incoterm":{"type":["string","null"],"enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":["string","null"]},"locationId":{"type":["string","null"]},"notes":{"type":["string","null"]},"receiptPromisedDate":{"type":["string","null"]},"receiptRequestedDate":{"type":["string","null"]},"shippingMethodId":{"type":["string","null"]},"shippingTermId":{"type":["string","null"]},"supplierShippingCost":{"type":"number"},"tags":{"type":["array","null"],"items":{"type":"string"}},"trackingNumber":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","customerId","customerLocationId","customFields","deliveryDate","dropShipment","id","incoterm","incotermLocation","locationId","notes","receiptPromisedDate","receiptRequestedDate","shippingMethodId","shippingTermId","supplierShippingCost","tags","trackingNumber","updatedAt","updatedBy"]}}}}}}},"/purchasing/getPurchaseOrderLocations":{"post":{"operationId":"purchasing.getPurchaseOrderLocations","summary":"get purchase order locations","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderId":{"type":"string"}},"required":["purchaseOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyCountryCode":{"type":["string","null"]},"companyCountryName":{"type":["string","null"]},"customerAddressLine1":{"type":["string","null"]},"customerAddressLine2":{"type":["string","null"]},"customerCity":{"type":["string","null"]},"customerCountryCode":{"type":["string","null"]},"customerCountryName":{"type":["string","null"]},"customerName":{"type":["string","null"]},"customerPostalCode":{"type":["string","null"]},"customerStateProvince":{"type":["string","null"]},"deliveryAddressLine1":{"type":["string","null"]},"deliveryAddressLine2":{"type":["string","null"]},"deliveryCity":{"type":["string","null"]},"deliveryCountryCode":{"type":["string","null"]},"deliveryCountryName":{"type":["string","null"]},"deliveryName":{"type":["string","null"]},"deliveryPostalCode":{"type":["string","null"]},"deliveryStateProvince":{"type":["string","null"]},"dropShipment":{"type":["boolean","null"]},"id":{"type":["string","null"]},"supplierAddressLine1":{"type":["string","null"]},"supplierAddressLine2":{"type":["string","null"]},"supplierCity":{"type":["string","null"]},"supplierContactEmail":{"type":["string","null"]},"supplierContactName":{"type":["string","null"]},"supplierCountryCode":{"type":["string","null"]},"supplierCountryName":{"type":["string","null"]},"supplierEori":{"type":["string","null"]},"supplierName":{"type":["string","null"]},"supplierPostalCode":{"type":["string","null"]},"supplierStateProvince":{"type":["string","null"]},"supplierTaxId":{"type":["string","null"]},"supplierVatNumber":{"type":["string","null"]}},"required":["companyCountryCode","companyCountryName","customerAddressLine1","customerAddressLine2","customerCity","customerCountryCode","customerCountryName","customerName","customerPostalCode","customerStateProvince","deliveryAddressLine1","deliveryAddressLine2","deliveryCity","deliveryCountryCode","deliveryCountryName","deliveryName","deliveryPostalCode","deliveryStateProvince","dropShipment","id","supplierAddressLine1","supplierAddressLine2","supplierCity","supplierContactEmail","supplierContactName","supplierCountryCode","supplierCountryName","supplierEori","supplierName","supplierPostalCode","supplierStateProvince","supplierTaxId","supplierVatNumber"]}}}}}}},"/purchasing/getPurchaseOrderPayment":{"post":{"operationId":"purchasing.getPurchaseOrderPayment","summary":"get purchase order payment","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderId":{"type":"string"}},"required":["purchaseOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"invoiceSupplierContactId":{"type":["string","null"]},"invoiceSupplierId":{"type":["string","null"]},"invoiceSupplierLocationId":{"type":["string","null"]},"paymentComplete":{"type":"boolean"},"paymentTermId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","customFields","id","invoiceSupplierContactId","invoiceSupplierId","invoiceSupplierLocationId","paymentComplete","paymentTermId","tags","updatedAt","updatedBy"]}}}}}}},"/purchasing/getPurchaseOrderLines":{"post":{"operationId":"purchasing.getPurchaseOrderLines","summary":"get purchase order lines","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderId":{"type":"string"}},"required":["purchaseOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":["string","null"]},"accountName":{"type":["string","null"]},"assetId":{"type":["string","null"]},"assetName":{"type":["string","null"]},"assetReadableId":{"type":["string","null"]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"conversionFactor":{"type":["number","null"]},"costCenterId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"extendedPrice":{"type":["number","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"inventoryUnitOfMeasureCode":{"type":["string","null"]},"invoicedComplete":{"type":["boolean","null"]},"itemDescription":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"jobId":{"type":["string","null"]},"jobOperationDescription":{"type":["string","null"]},"jobOperationId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"ownerId":{"type":["string","null"]},"promisedDate":{"type":["string","null"]},"purchaseOrderId":{"type":["string","null"]},"purchaseOrderLineType":{"type":["string","null"],"enum":["Fixed Asset","Part","Service","Material","Tool","Fixture","Consumable","Comment","G/L Account"]},"purchaseQuantity":{"type":["number","null"]},"purchaseUnitOfMeasureCode":{"type":["string","null"]},"quantityInvoiced":{"type":["number","null"]},"quantityReceived":{"type":["number","null"]},"quantityShipped":{"type":["number","null"]},"quantityToInvoice":{"type":["number","null"]},"quantityToReceive":{"type":["number","null"]},"receivedComplete":{"type":["boolean","null"]},"receivedDate":{"type":["string","null"]},"requiredDate":{"type":["string","null"]},"setupPrice":{"type":["number","null"]},"shippingCost":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"storageUnitId":{"type":["string","null"]},"supplierExtendedPrice":{"type":["number","null"]},"supplierPartId":{"type":["string","null"]},"supplierPartIdFromSupplier":{"type":["string","null"]},"supplierShippingCost":{"type":["number","null"]},"supplierTaxAmount":{"type":["number","null"]},"supplierUnitPrice":{"type":["number","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxAmount":{"type":["number","null"]},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","accountName","assetId","assetName","assetReadableId","autodeskUrn","companyId","conversionFactor","costCenterId","createdAt","createdBy","customFields","description","exchangeRate","extendedPrice","externalNotes","id","internalNotes","inventoryUnitOfMeasureCode","invoicedComplete","itemDescription","itemId","itemName","itemReadableId","jobId","jobOperationDescription","jobOperationId","locationId","modelId","modelName","modelPath","modelSize","modelUploadId","ownerId","promisedDate","purchaseOrderId","purchaseOrderLineType","purchaseQuantity","purchaseUnitOfMeasureCode","quantityInvoiced","quantityReceived","quantityShipped","quantityToInvoice","quantityToReceive","receivedComplete","receivedDate","requiredDate","setupPrice","shippingCost","sortOrder","storageUnitId","supplierExtendedPrice","supplierPartId","supplierPartIdFromSupplier","supplierShippingCost","supplierTaxAmount","supplierUnitPrice","tags","taxAmount","taxPercent","thumbnailPath","unitCost","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getPurchaseOrderLine":{"post":{"operationId":"purchasing.getPurchaseOrderLine","summary":"get purchase order line","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderLineId":{"type":"string"}},"required":["purchaseOrderLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":["string","null"]},"accountName":{"type":["string","null"]},"assetId":{"type":["string","null"]},"assetName":{"type":["string","null"]},"assetReadableId":{"type":["string","null"]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"conversionFactor":{"type":["number","null"]},"costCenterId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"extendedPrice":{"type":["number","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"inventoryUnitOfMeasureCode":{"type":["string","null"]},"invoicedComplete":{"type":["boolean","null"]},"itemDescription":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"jobId":{"type":["string","null"]},"jobOperationDescription":{"type":["string","null"]},"jobOperationId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"ownerId":{"type":["string","null"]},"promisedDate":{"type":["string","null"]},"purchaseOrderId":{"type":["string","null"]},"purchaseOrderLineType":{"type":["string","null"],"enum":["Fixed Asset","Part","Service","Material","Tool","Fixture","Consumable","Comment","G/L Account"]},"purchaseQuantity":{"type":["number","null"]},"purchaseUnitOfMeasureCode":{"type":["string","null"]},"quantityInvoiced":{"type":["number","null"]},"quantityReceived":{"type":["number","null"]},"quantityShipped":{"type":["number","null"]},"quantityToInvoice":{"type":["number","null"]},"quantityToReceive":{"type":["number","null"]},"receivedComplete":{"type":["boolean","null"]},"receivedDate":{"type":["string","null"]},"requiredDate":{"type":["string","null"]},"setupPrice":{"type":["number","null"]},"shippingCost":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"storageUnitId":{"type":["string","null"]},"supplierExtendedPrice":{"type":["number","null"]},"supplierPartId":{"type":["string","null"]},"supplierPartIdFromSupplier":{"type":["string","null"]},"supplierShippingCost":{"type":["number","null"]},"supplierTaxAmount":{"type":["number","null"]},"supplierUnitPrice":{"type":["number","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxAmount":{"type":["number","null"]},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","accountName","assetId","assetName","assetReadableId","autodeskUrn","companyId","conversionFactor","costCenterId","createdAt","createdBy","customFields","description","exchangeRate","extendedPrice","externalNotes","id","internalNotes","inventoryUnitOfMeasureCode","invoicedComplete","itemDescription","itemId","itemName","itemReadableId","jobId","jobOperationDescription","jobOperationId","locationId","modelId","modelName","modelPath","modelSize","modelUploadId","ownerId","promisedDate","purchaseOrderId","purchaseOrderLineType","purchaseQuantity","purchaseUnitOfMeasureCode","quantityInvoiced","quantityReceived","quantityShipped","quantityToInvoice","quantityToReceive","receivedComplete","receivedDate","requiredDate","setupPrice","shippingCost","sortOrder","storageUnitId","supplierExtendedPrice","supplierPartId","supplierPartIdFromSupplier","supplierShippingCost","supplierTaxAmount","supplierUnitPrice","tags","taxAmount","taxPercent","thumbnailPath","unitCost","unitPrice","updatedAt","updatedBy"]}}}}}}},"/purchasing/getPurchaseOrderSuppliers":{"post":{"operationId":"purchasing.getPurchaseOrderSuppliers","summary":"get purchase order suppliers","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"]}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getPurchasingDocumentsAssignedToMe":{"post":{"operationId":"purchasing.getPurchasingDocumentsAssignedToMe","summary":"get purchasing documents assigned to me","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"assignee":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closedBy":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"jobId":{"type":["string","null"]},"jobReadableId":{"type":["string","null"]},"orderDate":{"type":["string","null"]},"purchaseOrderId":{"type":"string"},"purchaseOrderType":{"type":"string","enum":["Purchase","Outside Processing","Return"]},"revisionId":{"type":"number"},"status":{"type":"string","enum":["Closed","Completed","Rejected","Draft","Planned","To Review","To Receive","To Receive and Invoice","To Invoice","Needs Approval"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":"string"},"supplierInteractionId":{"type":"string"},"supplierLocationId":{"type":["string","null"]},"supplierReference":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["type","assignee","closedAt","closedBy","companyId","createdAt","createdBy","currencyCode","customFields","exchangeRate","exchangeRateUpdatedAt","externalNotes","id","internalNotes","jobId","jobReadableId","orderDate","purchaseOrderId","purchaseOrderType","revisionId","status","supplierContactId","supplierId","supplierInteractionId","supplierLocationId","supplierReference","tags","updatedAt","updatedBy"]},{"type":"object","properties":{"type":{"type":"string"},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalLinkId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"quotedDate":{"type":"string"},"revisionId":{"type":"number"},"status":{"type":"string","enum":["Active","Cancelled","Draft","Expired","Declined"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":"string"},"supplierInteractionId":{"type":"string"},"supplierLocationId":{"type":["string","null"]},"supplierQuoteId":{"type":"string"},"supplierQuoteType":{"type":"string","enum":["Purchase","Outside Processing","Return"]},"supplierReference":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["type","assignee","companyId","createdAt","createdBy","currencyCode","customFields","exchangeRate","exchangeRateUpdatedAt","expirationDate","externalLinkId","externalNotes","id","internalNotes","quotedDate","revisionId","status","supplierContactId","supplierId","supplierInteractionId","supplierLocationId","supplierQuoteId","supplierQuoteType","supplierReference","tags","updatedAt","updatedBy"]},{"type":"object","properties":{"type":{"type":"string"},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"dateDue":{"type":["string","null"]},"dateIssued":{"type":["string","null"]},"datePaid":{"type":["string","null"]},"exchangeRate":{"type":"number"},"exchangeRateUpdatedAt":{"type":["string","null"]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"invoiceId":{"type":"string"},"invoiceSupplierContactId":{"type":["string","null"]},"invoiceSupplierId":{"type":["string","null"]},"invoiceSupplierLocationId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"paymentTermId":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"status":{"type":"string","enum":["Open","Pending","Draft","Voided","Overdue","Return","Debit Note Issued","Paid","Partially Paid"]},"subtotal":{"type":"number"},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":"string"},"supplierReference":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"totalAmount":{"type":"number"},"totalDiscount":{"type":"number"},"totalTax":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["type","assignee","companyId","createdAt","createdBy","currencyCode","customFields","dateDue","dateIssued","datePaid","exchangeRate","exchangeRateUpdatedAt","id","internalNotes","invoiceId","invoiceSupplierContactId","invoiceSupplierId","invoiceSupplierLocationId","locationId","paymentTermId","postingDate","status","subtotal","supplierId","supplierInteractionId","supplierReference","tags","totalAmount","totalDiscount","totalTax","updatedAt","updatedBy"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getPurchasingPlanning":{"post":{"operationId":"purchasing.getPurchasingPlanning","summary":"get purchasing planning","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"periods":{"type":"array","items":{"type":"string"}},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}},"required":["locationId","periods","args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"conversionFactor":{"type":"number"},"demandAccumulationPeriod":{"type":"number"},"demandAccumulationSafetyStock":{"type":"number"},"id":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"leadTime":{"type":"number"},"lotSize":{"type":"number"},"maximumInventoryQuantity":{"type":"number"},"maximumOrderQuantity":{"type":"number"},"minimumOrderQuantity":{"type":"number"},"minimumReserveQuantity":{"type":"number"},"name":{"type":"string"},"orderMultiple":{"type":"number"},"preferredSupplierId":{"type":"string"},"purchasingBlocked":{"type":"boolean"},"purchasingUnitOfMeasureCode":{"type":"string"},"quantityOnHand":{"type":"number"},"quantityToOrder":{"type":"number"},"readableIdWithRevision":{"type":"string"},"reorderingPolicy":{"type":"string","enum":["Manual Reorder","Demand-Based Reorder","Fixed Reorder Quantity","Maximum Quantity"]},"reorderPoint":{"type":"number"},"reorderQuantity":{"type":"number"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"supersessionMode":{"type":"string"},"suppliers":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"thumbnailPath":{"type":"string"},"type":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"unitOfMeasureCode":{"type":"string"},"week1":{"type":"number"},"week10":{"type":"number"},"week11":{"type":"number"},"week12":{"type":"number"},"week13":{"type":"number"},"week14":{"type":"number"},"week15":{"type":"number"},"week16":{"type":"number"},"week17":{"type":"number"},"week18":{"type":"number"},"week19":{"type":"number"},"week2":{"type":"number"},"week20":{"type":"number"},"week21":{"type":"number"},"week22":{"type":"number"},"week23":{"type":"number"},"week24":{"type":"number"},"week25":{"type":"number"},"week26":{"type":"number"},"week27":{"type":"number"},"week28":{"type":"number"},"week29":{"type":"number"},"week3":{"type":"number"},"week30":{"type":"number"},"week31":{"type":"number"},"week32":{"type":"number"},"week33":{"type":"number"},"week34":{"type":"number"},"week35":{"type":"number"},"week36":{"type":"number"},"week37":{"type":"number"},"week38":{"type":"number"},"week39":{"type":"number"},"week4":{"type":"number"},"week40":{"type":"number"},"week41":{"type":"number"},"week42":{"type":"number"},"week43":{"type":"number"},"week44":{"type":"number"},"week45":{"type":"number"},"week46":{"type":"number"},"week47":{"type":"number"},"week48":{"type":"number"},"week49":{"type":"number"},"week5":{"type":"number"},"week50":{"type":"number"},"week51":{"type":"number"},"week52":{"type":"number"},"week6":{"type":"number"},"week7":{"type":"number"},"week8":{"type":"number"},"week9":{"type":"number"}},"required":["active","conversionFactor","demandAccumulationPeriod","demandAccumulationSafetyStock","id","itemTrackingType","leadTime","lotSize","maximumInventoryQuantity","maximumOrderQuantity","minimumOrderQuantity","minimumReserveQuantity","name","orderMultiple","preferredSupplierId","purchasingBlocked","purchasingUnitOfMeasureCode","quantityOnHand","quantityToOrder","readableIdWithRevision","reorderingPolicy","reorderPoint","reorderQuantity","replenishmentSystem","supersessionMode","suppliers","thumbnailPath","type","unitOfMeasureCode","week1","week10","week11","week12","week13","week14","week15","week16","week17","week18","week19","week2","week20","week21","week22","week23","week24","week25","week26","week27","week28","week29","week3","week30","week31","week32","week33","week34","week35","week36","week37","week38","week39","week4","week40","week41","week42","week43","week44","week45","week46","week47","week48","week49","week5","week50","week51","week52","week6","week7","week8","week9"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getPurchasingTerms":{"post":{"operationId":"purchasing.getPurchasingTerms","summary":"get purchasing terms","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"purchasingTerms":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["purchasingTerms"]}}}}}}},"/purchasing/getSupplier":{"post":{"operationId":"purchasing.getSupplier","summary":"get supplier","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accountManagerId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultCc":{"type":["array","null"],"items":{"type":"string"}},"embedding":{},"eori":{"type":["string","null"]},"externalId":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"fax":{"type":["string","null"]},"id":{"type":["string","null"]},"logo":{"type":["string","null"]},"name":{"type":["string","null"]},"orderCount":{"type":["number","null"]},"partCount":{"type":["number","null"]},"phone":{"type":["string","null"]},"purchasingContactId":{"type":["string","null"]},"readableId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Inactive","Active","Pending","Rejected"]},"supplierTypeId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxId":{"type":["string","null"]},"taxPercent":{"type":["number","null"]},"type":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"website":{"type":["string","null"]}},"required":["accountManagerId","assignee","companyId","createdAt","createdBy","currencyCode","customFields","defaultCc","embedding","eori","externalId","fax","id","logo","name","orderCount","partCount","phone","purchasingContactId","readableId","status","supplierTypeId","tags","taxId","taxPercent","type","updatedAt","updatedBy","vatNumber","website"]}}}}}}},"/purchasing/getSupplierContact":{"post":{"operationId":"purchasing.getSupplierContact","summary":"get supplier contact","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierContactId":{"type":"string"}},"required":["supplierContactId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"contactId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"supplierId":{"type":"string"},"supplierLocationId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"userId":{"type":["string","null"]},"contact":{"type":"object","properties":{"id":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"type":["string","null"]},"mobilePhone":{"type":["string","null"]},"homePhone":{"type":["string","null"]},"workPhone":{"type":["string","null"]},"fax":{"type":["string","null"]},"title":{"type":["string","null"]},"notes":{"type":["string","null"]}},"required":["id","firstName","lastName","email","mobilePhone","homePhone","workPhone","fax","title","notes"]}},"required":["companyId","contactId","customFields","id","supplierId","supplierLocationId","tags","userId","contact"]}}}}}}},"/purchasing/getSupplierContacts":{"post":{"operationId":"purchasing.getSupplierContacts","summary":"get supplier contacts","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"contactId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"supplierId":{"type":"string"},"supplierLocationId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"userId":{"type":["string","null"]},"contact":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"type":["string","null"]},"mobilePhone":{"type":["string","null"]},"homePhone":{"type":["string","null"]},"workPhone":{"type":["string","null"]},"fax":{"type":["string","null"]},"title":{"type":["string","null"]},"notes":{"type":["string","null"]}},"required":["id","fullName","firstName","lastName","email","mobilePhone","homePhone","workPhone","fax","title","notes"]},"user":{"type":["object","null"],"properties":{"id":{"type":"string"},"active":{"type":["boolean","null"]}},"required":["id","active"]}},"required":["companyId","contactId","customFields","id","supplierId","supplierLocationId","tags","userId","contact","user"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierInteraction":{"post":{"operationId":"purchasing.getSupplierInteraction","summary":"get supplier interaction","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opportunityId":{"type":["string","null"]}},"required":["opportunityId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"companyId":{"type":"string"},"purchasingRfq":{"type":["object","null"],"properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"favorite":{"type":["boolean","null"]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"revisionId":{"type":["number","null"]},"rfqDate":{"type":["string","null"]},"rfqId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Draft","Requested"]},"supplierCount":{"type":["number","null"]},"supplierIds":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","customFields","employeeId","expirationDate","favorite","id","internalNotes","locationId","locationName","notes","revisionId","rfqDate","rfqId","status","supplierCount","supplierIds","updatedAt","updatedBy"]},"supplierQuotes":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalLinkId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"quotedDate":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Active","Cancelled","Draft","Expired","Declined"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"supplierQuoteId":{"type":["string","null"]},"supplierQuoteType":{"type":["string","null"],"enum":["Purchase","Outside Processing","Return"]},"supplierReference":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","currencyCode","customFields","exchangeRate","exchangeRateUpdatedAt","expirationDate","externalLinkId","externalNotes","id","internalNotes","itemType","quotedDate","revisionId","status","supplierContactId","supplierId","supplierInteractionId","supplierLocationId","supplierQuoteId","supplierQuoteType","supplierReference","tags","thumbnailPath","updatedAt","updatedBy"]}},"purchaseOrders":{"type":"array","items":{"type":"object","properties":{"accountManagerEmail":{"type":["string","null"]},"accountManagerFullName":{"type":["string","null"]},"accountManagerPhone":{"type":["string","null"]},"assignee":{"type":["string","null"]},"assigneeEmail":{"type":["string","null"]},"assigneeFullName":{"type":["string","null"]},"assigneePhone":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closedBy":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"createdByEmail":{"type":["string","null"]},"createdByFullName":{"type":["string","null"]},"createdByPhone":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"deliveryDate":{"type":["string","null"]},"dropShipment":{"type":["boolean","null"]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"incoterm":{"type":["string","null"],"enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"jobId":{"type":["string","null"]},"jobReadableId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"orderDate":{"type":["string","null"]},"orderTotal":{"type":["number","null"]},"paymentTermId":{"type":["string","null"]},"purchaseOrderId":{"type":["string","null"]},"purchaseOrderType":{"type":["string","null"],"enum":["Purchase","Outside Processing","Return"]},"receiptPromisedDate":{"type":["string","null"]},"receiptRequestedDate":{"type":["string","null"]},"receivableQuantity":{"type":["number","null"]},"receivedQuantity":{"type":["number","null"]},"revisionId":{"type":["number","null"]},"shippingMethodId":{"type":["string","null"]},"shippingTermId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Completed","Rejected","Draft","Planned","To Review","To Receive","To Receive and Invoice","To Invoice","Needs Approval"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"supplierReference":{"type":["string","null"]},"supplierShippingCost":{"type":["number","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountManagerEmail","accountManagerFullName","accountManagerPhone","assignee","assigneeEmail","assigneeFullName","assigneePhone","closedAt","closedBy","companyId","createdAt","createdBy","createdByEmail","createdByFullName","createdByPhone","currencyCode","customFields","deliveryDate","dropShipment","exchangeRate","exchangeRateUpdatedAt","externalNotes","id","incoterm","incotermLocation","internalNotes","itemType","jobId","jobReadableId","locationId","orderDate","orderTotal","paymentTermId","purchaseOrderId","purchaseOrderType","receiptPromisedDate","receiptRequestedDate","receivableQuantity","receivedQuantity","revisionId","shippingMethodId","shippingTermId","status","supplierContactId","supplierId","supplierInteractionId","supplierLocationId","supplierReference","supplierShippingCost","tags","thumbnailPath","updatedAt","updatedBy"]}},"purchaseInvoices":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"balance":{"type":["number","null"]},"baseStatus":{"type":["string","null"],"enum":["Open","Pending","Draft","Voided","Overdue","Return","Debit Note Issued","Paid","Partially Paid"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"dateDue":{"type":["string","null"]},"dateIssued":{"type":["string","null"]},"datePaid":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"invoiceId":{"type":["string","null"]},"invoiceSupplierContactId":{"type":["string","null"]},"invoiceSupplierId":{"type":["string","null"]},"invoiceSupplierLocationId":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"locationId":{"type":["string","null"]},"orderTotal":{"type":["number","null"]},"paymentTermId":{"type":["string","null"]},"paymentTermName":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"status":{"type":["string","null"]},"subtotal":{"type":["number","null"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"supplierReference":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"totalAmount":{"type":["number","null"]},"totalDiscount":{"type":["number","null"]},"totalTax":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","balance","baseStatus","companyId","createdAt","createdBy","currencyCode","customFields","dateDue","dateIssued","datePaid","exchangeRate","exchangeRateUpdatedAt","id","internalNotes","invoiceId","invoiceSupplierContactId","invoiceSupplierId","invoiceSupplierLocationId","itemType","locationId","orderTotal","paymentTermId","paymentTermName","postingDate","status","subtotal","supplierId","supplierInteractionId","supplierReference","thumbnailPath","totalAmount","totalDiscount","totalTax","updatedAt","updatedBy"]}}},"required":["id","companyId","purchasingRfq","supplierQuotes","purchaseOrders","purchaseInvoices"]}}}}}}},"/purchasing/getSupplierInteractionDocuments":{"post":{"operationId":"purchasing.getSupplierInteractionDocuments","summary":"get supplier interaction documents","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"interactionId":{"type":"string"}},"required":["interactionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"bucket":{"type":"string"},"name":{"type":"string"},"id":{"type":["string","null"]},"updated_at":{"type":["string","null"]},"created_at":{"type":["string","null"]},"last_accessed_at":{"type":["string","null"]},"metadata":{"type":["object","null"],"additionalProperties":{}},"bucket_id":{"type":["string","null"]},"owner":{"type":["string","null"]},"buckets":{"type":["object","null"],"properties":{"id":{"type":"string"},"type":{"anyOf":[{},{"type":"string","enum":["STANDARD"]},{"type":"string","enum":["ANALYTICS"]},{"type":"null"}]},"name":{"type":"string"},"owner":{"type":"string"},"file_size_limit":{"type":["number","null"]},"allowed_mime_types":{"type":["array","null"],"items":{"type":"string"}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"public":{"type":"boolean"},"versioning_status":{"type":["string","null"],"enum":["DISABLED","ENABLED","SUSPENDED"]}},"required":["id","name","owner","created_at","updated_at","public"]},"version":{"type":["string","null"]},"archived_at":{"type":["string","null"]},"is_delete_marker":{"type":["boolean","null"]},"is_versioned":{"type":["boolean","null"]}},"required":["bucket","name","id","updated_at","created_at","last_accessed_at","metadata"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierInteractionLineDocuments":{"post":{"operationId":"purchasing.getSupplierInteractionLineDocuments","summary":"get supplier interaction line documents","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"}},"required":["lineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"bucket":{"type":"string"},"name":{"type":"string"},"id":{"type":["string","null"]},"updated_at":{"type":["string","null"]},"created_at":{"type":["string","null"]},"last_accessed_at":{"type":["string","null"]},"metadata":{"type":["object","null"],"additionalProperties":{}},"bucket_id":{"type":["string","null"]},"owner":{"type":["string","null"]},"buckets":{"type":["object","null"],"properties":{"id":{"type":"string"},"type":{"anyOf":[{},{"type":"string","enum":["STANDARD"]},{"type":"string","enum":["ANALYTICS"]},{"type":"null"}]},"name":{"type":"string"},"owner":{"type":"string"},"file_size_limit":{"type":["number","null"]},"allowed_mime_types":{"type":["array","null"],"items":{"type":"string"}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"public":{"type":"boolean"},"versioning_status":{"type":["string","null"],"enum":["DISABLED","ENABLED","SUSPENDED"]}},"required":["id","name","owner","created_at","updated_at","public"]},"version":{"type":["string","null"]},"archived_at":{"type":["string","null"]},"is_delete_marker":{"type":["boolean","null"]},"is_versioned":{"type":["boolean","null"]}},"required":["bucket","name","id","updated_at","created_at","last_accessed_at","metadata"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierLocations":{"post":{"operationId":"purchasing.getSupplierLocations","summary":"get supplier locations","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"addressId":{"type":"string"},"companyId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"supplierId":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"address":{"type":"object","properties":{"id":{"type":"string"},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"stateProvince":{"type":["string","null"]},"country":{"type":["object","null"],"properties":{"alpha2":{"type":"string"},"name":{"type":"string"}},"required":["alpha2","name"]},"postalCode":{"type":["string","null"]}},"required":["id","addressLine1","addressLine2","city","stateProvince","country","postalCode"]}},"required":["addressId","companyId","customFields","id","name","supplierId","tags","address"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierLocation":{"post":{"operationId":"purchasing.getSupplierLocation","summary":"get supplier location","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierContactId":{"type":"string"}},"required":["supplierContactId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"addressId":{"type":"string"},"companyId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"supplierId":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"address":{"type":"object","properties":{"id":{"type":"string"},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"stateProvince":{"type":["string","null"]},"country":{"type":["object","null"],"properties":{"alpha2":{"type":"string"},"name":{"type":"string"}},"required":["alpha2","name"]},"postalCode":{"type":["string","null"]}},"required":["id","addressLine1","addressLine2","city","stateProvince","country","postalCode"]}},"required":["addressId","companyId","customFields","id","name","supplierId","tags","address"]}}}}}}},"/purchasing/getSupplierPayment":{"post":{"operationId":"purchasing.getSupplierPayment","summary":"get supplier payment","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoiceSupplierContactId":{"type":["string","null"]},"invoiceSupplierId":{"type":["string","null"]},"invoiceSupplierLocationId":{"type":["string","null"]},"paymentTermId":{"type":["string","null"]},"supplierId":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","customFields","invoiceSupplierContactId","invoiceSupplierId","invoiceSupplierLocationId","paymentTermId","supplierId","tags","updatedAt","updatedBy"]}}}}}}},"/purchasing/getSupplierProcessById":{"post":{"operationId":"purchasing.getSupplierProcessById","summary":"get supplier process by id","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierProcessId":{"type":"string"}},"required":["supplierProcessId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"leadTime":{"type":["number","null"]},"minimumCost":{"type":["number","null"]},"processId":{"type":["string","null"]},"processName":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","leadTime","minimumCost","processId","processName","supplierId","tags","updatedAt","updatedBy"]}}}}}}},"/purchasing/getSupplierProcessesByProcess":{"post":{"operationId":"purchasing.getSupplierProcessesByProcess","summary":"get supplier processes by process","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"processId":{"type":"string"}},"required":["processId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"leadTime":{"type":["number","null"]},"minimumCost":{"type":["number","null"]},"processId":{"type":["string","null"]},"processName":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","leadTime","minimumCost","processId","processName","supplierId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierProcessesBySupplier":{"post":{"operationId":"purchasing.getSupplierProcessesBySupplier","summary":"get supplier processes by supplier","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"leadTime":{"type":["number","null"]},"minimumCost":{"type":["number","null"]},"processId":{"type":["string","null"]},"processName":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","leadTime","minimumCost","processId","processName","supplierId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierQuote":{"post":{"operationId":"purchasing.getSupplierQuote","summary":"get supplier quote","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteId":{"type":"string"}},"required":["supplierQuoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalLinkId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"quotedDate":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Active","Cancelled","Draft","Expired","Declined"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"supplierQuoteId":{"type":["string","null"]},"supplierQuoteType":{"type":["string","null"],"enum":["Purchase","Outside Processing","Return"]},"supplierReference":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","currencyCode","customFields","exchangeRate","exchangeRateUpdatedAt","expirationDate","externalLinkId","externalNotes","id","internalNotes","itemType","quotedDate","revisionId","status","supplierContactId","supplierId","supplierInteractionId","supplierLocationId","supplierQuoteId","supplierQuoteType","supplierReference","tags","thumbnailPath","updatedAt","updatedBy"]}}}}}}},"/purchasing/getSupplierQuoteByInteractionId":{"post":{"operationId":"purchasing.getSupplierQuoteByInteractionId","summary":"get supplier quote by interaction id","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"interactionId":{"type":"string"}},"required":["interactionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalLinkId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"quotedDate":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Active","Cancelled","Draft","Expired","Declined"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"supplierQuoteId":{"type":["string","null"]},"supplierQuoteType":{"type":["string","null"],"enum":["Purchase","Outside Processing","Return"]},"supplierReference":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","currencyCode","customFields","exchangeRate","exchangeRateUpdatedAt","expirationDate","externalLinkId","externalNotes","id","internalNotes","itemType","quotedDate","revisionId","status","supplierContactId","supplierId","supplierInteractionId","supplierLocationId","supplierQuoteId","supplierQuoteType","supplierReference","tags","thumbnailPath","updatedAt","updatedBy"]}}}}}}},"/purchasing/getSupplierQuoteByExternalLinkId":{"post":{"operationId":"purchasing.getSupplierQuoteByExternalLinkId","summary":"get supplier quote by external link id","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalLinkId":{"type":"string"}},"required":["externalLinkId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalLinkId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"quotedDate":{"type":"string"},"revisionId":{"type":"number"},"status":{"type":"string","enum":["Active","Cancelled","Draft","Expired","Declined"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":"string"},"supplierInteractionId":{"type":"string"},"supplierLocationId":{"type":["string","null"]},"supplierQuoteId":{"type":"string"},"supplierQuoteType":{"type":"string","enum":["Purchase","Outside Processing","Return"]},"supplierReference":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","currencyCode","customFields","exchangeRate","exchangeRateUpdatedAt","expirationDate","externalLinkId","externalNotes","id","internalNotes","quotedDate","revisionId","status","supplierContactId","supplierId","supplierInteractionId","supplierLocationId","supplierQuoteId","supplierQuoteType","supplierReference","tags","updatedAt","updatedBy"]}}}}}}},"/purchasing/getSupplierQuotes":{"post":{"operationId":"purchasing.getSupplierQuotes","summary":"get supplier quotes","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalLinkId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"quotedDate":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Active","Cancelled","Draft","Expired","Declined"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"supplierQuoteId":{"type":["string","null"]},"supplierQuoteType":{"type":["string","null"],"enum":["Purchase","Outside Processing","Return"]},"supplierReference":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","currencyCode","customFields","exchangeRate","exchangeRateUpdatedAt","expirationDate","externalLinkId","externalNotes","id","internalNotes","itemType","quotedDate","revisionId","status","supplierContactId","supplierId","supplierInteractionId","supplierLocationId","supplierQuoteId","supplierQuoteType","supplierReference","tags","thumbnailPath","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierQuoteLine":{"post":{"operationId":"purchasing.getSupplierQuoteLine","summary":"get supplier quote line","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteLineId":{"type":"string"}},"required":["supplierQuoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":["string","null"]},"accountName":{"type":["string","null"]},"companyId":{"type":["string","null"]},"conversionFactor":{"type":["number","null"]},"costCenterId":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"inventoryUnitOfMeasureCode":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"ownerId":{"type":["string","null"]},"purchaseUnitOfMeasureCode":{"type":["string","null"]},"quantity":{"type":["array","null"],"items":{"type":"number"}},"requiredDate":{"type":["string","null"]},"sortOrder":{"type":["number","null"]},"supplierPartId":{"type":["string","null"]},"supplierPartRevision":{"type":["string","null"]},"supplierQuoteId":{"type":["string","null"]},"supplierQuoteLineType":{"type":["string","null"]},"supplierQuoteRevisionId":{"type":["number","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","accountName","companyId","conversionFactor","costCenterId","createdBy","customFields","description","externalNotes","id","internalNotes","inventoryUnitOfMeasureCode","itemId","itemReadableId","itemType","ownerId","purchaseUnitOfMeasureCode","quantity","requiredDate","sortOrder","supplierPartId","supplierPartRevision","supplierQuoteId","supplierQuoteLineType","supplierQuoteRevisionId","tags","thumbnailPath","unitCost","updatedAt","updatedBy"]}}}}}}},"/purchasing/getSupplierQuoteLines":{"post":{"operationId":"purchasing.getSupplierQuoteLines","summary":"get supplier quote lines","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteId":{"type":"string"}},"required":["supplierQuoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":["string","null"]},"accountName":{"type":["string","null"]},"companyId":{"type":["string","null"]},"conversionFactor":{"type":["number","null"]},"costCenterId":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"inventoryUnitOfMeasureCode":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"ownerId":{"type":["string","null"]},"purchaseUnitOfMeasureCode":{"type":["string","null"]},"quantity":{"type":["array","null"],"items":{"type":"number"}},"requiredDate":{"type":["string","null"]},"sortOrder":{"type":["number","null"]},"supplierPartId":{"type":["string","null"]},"supplierPartRevision":{"type":["string","null"]},"supplierQuoteId":{"type":["string","null"]},"supplierQuoteLineType":{"type":["string","null"]},"supplierQuoteRevisionId":{"type":["number","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","accountName","companyId","conversionFactor","costCenterId","createdBy","customFields","description","externalNotes","id","internalNotes","inventoryUnitOfMeasureCode","itemId","itemReadableId","itemType","ownerId","purchaseUnitOfMeasureCode","quantity","requiredDate","sortOrder","supplierPartId","supplierPartRevision","supplierQuoteId","supplierQuoteLineType","supplierQuoteRevisionId","tags","thumbnailPath","unitCost","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierQuoteLinePrices":{"post":{"operationId":"purchasing.getSupplierQuoteLinePrices","summary":"get supplier quote line prices","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteLineId":{"type":"string"}},"required":["supplierQuoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"exchangeRate":{"type":["number","null"]},"extendedPrice":{"type":["number","null"]},"leadTime":{"type":"number"},"quantity":{"type":"number"},"shippingCost":{"type":["number","null"]},"supplierExtendedPrice":{"type":["number","null"]},"supplierQuoteId":{"type":"string"},"supplierQuoteLineId":{"type":"string"},"supplierShippingCost":{"type":"number"},"supplierTaxAmount":{"type":"number"},"supplierUnitPrice":{"type":"number"},"taxAmount":{"type":["number","null"]},"taxPercent":{"type":["number","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","exchangeRate","extendedPrice","leadTime","quantity","shippingCost","supplierExtendedPrice","supplierQuoteId","supplierQuoteLineId","supplierShippingCost","supplierTaxAmount","supplierUnitPrice","taxAmount","taxPercent","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierQuoteLinePricesByQuoteId":{"post":{"operationId":"purchasing.getSupplierQuoteLinePricesByQuoteId","summary":"get supplier quote line prices by quote id","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteId":{"type":"string"}},"required":["supplierQuoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"exchangeRate":{"type":["number","null"]},"extendedPrice":{"type":["number","null"]},"leadTime":{"type":"number"},"quantity":{"type":"number"},"shippingCost":{"type":["number","null"]},"supplierExtendedPrice":{"type":["number","null"]},"supplierQuoteId":{"type":"string"},"supplierQuoteLineId":{"type":"string"},"supplierShippingCost":{"type":"number"},"supplierTaxAmount":{"type":"number"},"supplierUnitPrice":{"type":"number"},"taxAmount":{"type":["number","null"]},"taxPercent":{"type":["number","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","exchangeRate","extendedPrice","leadTime","quantity","shippingCost","supplierExtendedPrice","supplierQuoteId","supplierQuoteLineId","supplierShippingCost","supplierTaxAmount","supplierUnitPrice","taxAmount","taxPercent","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierQuotesList":{"post":{"operationId":"purchasing.getSupplierQuotesList","summary":"get supplier quotes list","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"supplierQuoteId":{"type":"string"}},"required":["id","supplierQuoteId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierShipping":{"post":{"operationId":"purchasing.getSupplierShipping","summary":"get supplier shipping","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"incoterm":{"type":["string","null"],"enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":["string","null"]},"shippingMethodId":{"type":["string","null"]},"shippingSupplierContactId":{"type":["string","null"]},"shippingSupplierId":{"type":["string","null"]},"shippingSupplierLocationId":{"type":["string","null"]},"shippingTermId":{"type":["string","null"]},"supplierId":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","customFields","incoterm","incotermLocation","shippingMethodId","shippingSupplierContactId","shippingSupplierId","shippingSupplierLocationId","shippingTermId","supplierId","tags","updatedAt","updatedBy"]}}}}}}},"/purchasing/getSupplierReportContacts":{"post":{"operationId":"purchasing.getSupplierReportContacts","summary":"get supplier report contacts","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierIds":{"type":"array","items":{"type":"string"}}},"required":["supplierIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"purchasingContact":{"type":["object","null"],"properties":{"contact":{"type":"object","properties":{"fullName":{},"email":{},"workPhone":{}},"required":["fullName","email","workPhone"]}},"required":["contact"]}},"required":["id","purchasingContact"]}},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"array","items":{"type":"object","properties":{"supplierId":{"type":"string"},"invoiceContact":{"type":["object","null"],"properties":{"contact":{"type":"object","properties":{"fullName":{},"email":{},"workPhone":{}},"required":["fullName","email","workPhone"]}},"required":["contact"]},"invoiceLocation":{"type":["object","null"],"properties":{"address":{"type":"object","properties":{"addressLine1":{},"addressLine2":{},"city":{},"stateProvince":{},"postalCode":{},"country":{}},"required":["addressLine1","addressLine2","city","stateProvince","postalCode","country"]}},"required":["address"]}},"required":["supplierId","invoiceContact","invoiceLocation"]}},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"array","items":{"type":"object","properties":{"supplierId":{"type":"string"},"shippingContact":{"type":["object","null"],"properties":{"contact":{"type":"object","properties":{"fullName":{},"email":{},"workPhone":{}},"required":["fullName","email","workPhone"]}},"required":["contact"]},"shippingLocation":{"type":["object","null"],"properties":{"address":{"type":"object","properties":{"addressLine1":{},"addressLine2":{},"city":{},"stateProvince":{},"postalCode":{},"country":{}},"required":["addressLine1","addressLine2","city","stateProvince","postalCode","country"]}},"required":["address"]}},"required":["supplierId","shippingContact","shippingLocation"]}},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}}}}}}}},"/purchasing/getSuppliers":{"post":{"operationId":"purchasing.getSuppliers","summary":"get suppliers","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"type":{"type":["string","null"]},"status":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountManagerId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultCc":{"type":["array","null"],"items":{"type":"string"}},"embedding":{},"eori":{"type":["string","null"]},"externalId":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"fax":{"type":["string","null"]},"id":{"type":["string","null"]},"logo":{"type":["string","null"]},"name":{"type":["string","null"]},"orderCount":{"type":["number","null"]},"partCount":{"type":["number","null"]},"phone":{"type":["string","null"]},"purchasingContactId":{"type":["string","null"]},"readableId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Inactive","Active","Pending","Rejected"]},"supplierTypeId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxId":{"type":["string","null"]},"taxPercent":{"type":["number","null"]},"type":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"website":{"type":["string","null"]}},"required":["accountManagerId","assignee","companyId","createdAt","createdBy","currencyCode","customFields","defaultCc","embedding","eori","externalId","fax","id","logo","name","orderCount","partCount","phone","purchasingContactId","readableId","status","supplierTypeId","tags","taxId","taxPercent","type","updatedAt","updatedBy","vatNumber","website"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSuppliersList":{"post":{"operationId":"purchasing.getSuppliersList","summary":"get suppliers list","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierType":{"post":{"operationId":"purchasing.getSupplierType","summary":"get supplier type","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierTypeId":{"type":"string"}},"required":["supplierTypeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"protected":{"type":"boolean"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","protected","tags","updatedAt","updatedBy"]}}}}}}},"/purchasing/getSupplierTypes":{"post":{"operationId":"purchasing.getSupplierTypes","summary":"get supplier types","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"protected":{"type":"boolean"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","protected","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierTypesList":{"post":{"operationId":"purchasing.getSupplierTypesList","summary":"get supplier types list","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/insertSupplier":{"post":{"operationId":"purchasing.insertSupplier","summary":"insert supplier","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"readableId":{"type":"string"},"name":{"type":"string","minLength":1},"supplierStatus":{"anyOf":[{"type":"string","enum":["Active","Inactive","Pending","Rejected"]},{"type":"null"}]},"supplierTypeId":{"type":"string"},"accountManagerId":{"type":"string"},"currencyCode":{"type":"string"},"purchasingContactId":{"type":"string"},"website":{"type":"string"},"customFields":{}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accountManagerId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultCc":{"type":["array","null"],"items":{"type":"string"}},"embedding":{},"fax":{"type":["string","null"]},"id":{"type":"string"},"intercompanyCompanyId":{"type":["string","null"]},"logo":{"type":["string","null"]},"name":{"type":"string"},"phone":{"type":["string","null"]},"purchasingContactId":{"type":["string","null"]},"readableId":{"type":"string"},"supplierStatus":{"type":["string","null"],"enum":["Inactive","Active","Pending","Rejected"]},"supplierTypeId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxPercent":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"website":{"type":["string","null"]}},"required":["accountManagerId","assignee","companyId","createdAt","createdBy","currencyCode","customFields","defaultCc","embedding","fax","id","intercompanyCompanyId","logo","name","phone","purchasingContactId","readableId","supplierStatus","supplierTypeId","tags","taxPercent","updatedAt","updatedBy","website"]}}}}}}},"/purchasing/insertSupplierContact":{"post":{"operationId":"purchasing.insertSupplierContact","summary":"insert supplier contact","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"},"contact":{"type":"object","properties":{"id":{"type":"string"},"contactId":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"title":{"type":"string"},"email":{"type":"string","minLength":1,"format":"email"},"mobilePhone":{"type":"string"},"homePhone":{"type":"string"},"workPhone":{"type":"string"},"notes":{"type":"string"},"supplierLocationId":{"type":"string"}},"required":["email"]},"supplierLocationId":{"type":"string"},"customFields":{}},"required":["supplierId","contact"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/insertSupplierLocation":{"post":{"operationId":"purchasing.insertSupplierLocation","summary":"insert supplier location","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"},"name":{"type":"string"},"address":{"type":"object","properties":{"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"stateProvince":{"type":"string"},"postalCode":{"type":"string"},"countryCode":{"type":"string"}}},"customFields":{}},"required":["supplierId","name","address"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/finalizePurchaseOrder":{"post":{"operationId":"purchasing.finalizePurchaseOrder","summary":"finalize purchase order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderId":{"type":"string"}},"required":["purchaseOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/sendSupplierQuote":{"post":{"operationId":"purchasing.sendSupplierQuote","summary":"send supplier quote","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteId":{"type":"string"}},"required":["supplierQuoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/updatePurchaseOrderExchangeRate":{"post":{"operationId":"purchasing.updatePurchaseOrderExchangeRate","summary":"update purchase order exchange rate","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"exchangeRate":{"type":"number"}},"required":["id","exchangeRate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/updatePurchaseOrderFavorite":{"post":{"operationId":"purchasing.updatePurchaseOrderFavorite","summary":"update purchase order favorite","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"favorite":{"type":"boolean"}},"required":["id","favorite"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/updatePurchaseOrderStatus":{"post":{"operationId":"purchasing.updatePurchaseOrderStatus","summary":"update purchase order status","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Planned","Needs Approval","To Review","To Receive","To Receive and Invoice","To Invoice","Completed","Rejected","Closed"]},"assignee":{"type":"null"}},"required":["id","status","assignee"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/reopenPurchaseOrderAsRevision":{"post":{"operationId":"purchasing.reopenPurchaseOrderAsRevision","summary":"reopens a released purchase order to Draft as its next revision","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/purchasing/updateSupplierContact":{"post":{"operationId":"purchasing.updateSupplierContact","summary":"update supplier contact","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contactId":{"type":"string"},"contact":{"type":"object","properties":{"id":{"type":"string"},"contactId":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"title":{"type":"string"},"email":{"type":"string","minLength":1,"format":"email"},"mobilePhone":{"type":"string"},"homePhone":{"type":"string"},"workPhone":{"type":"string"},"notes":{"type":"string"},"supplierLocationId":{"type":"string"}},"required":["email"]},"supplierLocationId":{"type":"string"},"customFields":{}},"required":["contactId","contact"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/updateSupplierLocation":{"post":{"operationId":"purchasing.updateSupplierLocation","summary":"update supplier location","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"addressId":{"type":"string"},"name":{"type":"string"},"address":{"type":"object","properties":{"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"stateProvince":{"type":"string"},"countryCode":{"type":"string"},"postalCode":{"type":"string"}}},"customFields":{}},"required":["addressId","name","address"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/updateSupplierPayment":{"post":{"operationId":"purchasing.updateSupplierPayment","summary":"update supplier payment","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string","minLength":1},"invoiceSupplierId":{"type":"string"},"invoiceSupplierLocationId":{"type":"string"},"invoiceSupplierContactId":{"type":"string"},"paymentTermId":{"type":"string"},"customFields":{}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/updateSupplierQuoteExchangeRate":{"post":{"operationId":"purchasing.updateSupplierQuoteExchangeRate","summary":"update supplier quote exchange rate","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"exchangeRate":{"type":"number"}},"required":["id","exchangeRate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/updateSupplierQuoteStatus":{"post":{"operationId":"purchasing.updateSupplierQuoteStatus","summary":"update supplier quote status","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Active","Expired","Declined","Cancelled"]},"assignee":{"type":"null"}},"required":["id","status","assignee"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/updateSupplierShipping":{"post":{"operationId":"purchasing.updateSupplierShipping","summary":"update supplier shipping","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string","minLength":1},"shippingSupplierId":{"type":"string"},"shippingSupplierLocationId":{"type":"string"},"shippingSupplierContactId":{"type":"string"},"shippingMethodId":{"type":"string"},"incoterm":{"type":"string","enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":"string"},"customFields":{}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/getSupplierTax":{"post":{"operationId":"purchasing.getSupplierTax","summary":"get supplier tax","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"eori":{"type":["string","null"]},"supplierId":{"type":"string"},"taxExempt":{"type":"boolean"},"taxExemptionCertificateNumber":{"type":["string","null"]},"taxExemptionCertificatePath":{"type":["string","null"]},"taxExemptionReason":{"type":["string","null"],"enum":["Resale","Government","Nonprofit","Agriculture","Industrial","Export","Medical","Educational","Religious","Other"]},"taxId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"vatNumber":{"type":["string","null"]}},"required":["companyId","eori","supplierId","taxExempt","taxExemptionCertificateNumber","taxExemptionCertificatePath","taxExemptionReason","taxId","updatedAt","updatedBy","vatNumber"]}}}}}}},"/purchasing/updateSupplierTax":{"post":{"operationId":"purchasing.updateSupplierTax","summary":"update supplier tax","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string","minLength":1},"taxId":{"type":"string"},"vatNumber":{"type":"string"},"eori":{"type":"string"},"taxExempt":{"default":false,"type":"boolean"},"taxExemptionReason":{"anyOf":[{"type":"string","enum":["Resale","Government","Nonprofit","Agriculture","Industrial","Export","Medical","Educational","Religious","Other"]},{"type":"null"}]},"taxExemptionCertificateNumber":{"type":"string"},"taxExemptionCertificatePath":{"type":["string","null"]}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/insertPurchaseOrder":{"post":{"operationId":"purchasing.insertPurchaseOrder","summary":"Create a new purchase order with all business logic - generates sequence, creates supplier interaction, resolves payment/shipping defaults from supplier. LLM can create a PO with just supplierId.","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"},"purchaseOrderId":{"type":"string"},"purchaseOrderType":{"type":"string","enum":["Purchase","Return","Outside Processing"]},"locationId":{"type":"string"},"status":{"type":"string","enum":["Draft","Planned","Needs Approval","To Review","To Receive","To Receive and Invoice","To Invoice","Completed","Rejected","Closed"]},"currencyCode":{"type":"string"},"orderDate":{"type":"string"},"supplierContactId":{"type":"string"},"supplierLocationId":{"type":"string"},"supplierQuoteId":{"type":"string"},"receiptRequestedDate":{"type":"string"},"supplierReference":{"type":"string"},"notes":{},"externalNotes":{},"customFields":{}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"purchaseOrderId":{"type":"string"}},"required":["id","purchaseOrderId"]}}}}}}},"/purchasing/updatePurchaseOrder":{"post":{"operationId":"purchasing.updatePurchaseOrder","summary":"Update an existing purchase order - handles exchange rate updates when currency changes","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Planned","Needs Approval","To Review","To Receive","To Receive and Invoice","To Invoice","Completed","Rejected","Closed"]},"currencyCode":{"type":"string"},"orderDate":{"type":"string"},"supplierId":{"type":"string"},"supplierContactId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"supplierReference":{"type":"string"},"purchaseOrderType":{"type":"string","enum":["Purchase","Outside Processing"]},"notes":{"type":["string","null"]},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/upsertPurchaseOrder":{"post":{"operationId":"purchasing.upsertPurchaseOrder","summary":"upsert purchase order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrder":{"anyOf":[{"type":"object","properties":{"purchaseOrderType":{"type":"string","enum":["Purchase","Outside Processing"]},"status":{"type":"string","enum":["Draft","Planned","Needs Approval","To Review","To Receive","To Receive and Invoice","To Invoice","Completed","Rejected","Closed"]},"supplierId":{"type":"string","minLength":1},"locationId":{"type":"string"},"supplierLocationId":{"type":"string"},"supplierContactId":{"type":"string"},"supplierReference":{"type":"string"},"orderDate":{"type":"string"},"notes":{},"currencyCode":{"type":"string"},"exchangeRate":{"type":"number"},"exchangeRateUpdatedAt":{"type":"string"},"purchaseOrderId":{"type":"string"},"customFields":{}},"required":["purchaseOrderType","supplierId","purchaseOrderId"]},{"type":"object","properties":{"purchaseOrderType":{"type":"string","enum":["Purchase","Outside Processing"]},"status":{"type":"string","enum":["Draft","Planned","Needs Approval","To Review","To Receive","To Receive and Invoice","To Invoice","Completed","Rejected","Closed"]},"supplierId":{"type":"string","minLength":1},"locationId":{"type":"string"},"supplierLocationId":{"type":"string"},"supplierContactId":{"type":"string"},"supplierReference":{"type":"string"},"orderDate":{"type":"string"},"notes":{},"currencyCode":{"type":"string"},"exchangeRate":{"type":"number"},"exchangeRateUpdatedAt":{"type":"string"},"id":{"type":"string"},"purchaseOrderId":{"type":"string"},"customFields":{}},"required":["purchaseOrderType","supplierId","id","purchaseOrderId"]}]},"receiptRequestedDate":{"type":"string"}},"required":["purchaseOrder"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"purchaseOrderId":{"type":"string"}},"required":["id","purchaseOrderId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/upsertPurchaseOrderDelivery":{"post":{"operationId":"purchasing.upsertPurchaseOrderDelivery","summary":"upsert purchase order delivery","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"locationId":{"type":"string"},"shippingMethodId":{"type":"string"},"trackingNumber":{"type":"string"},"deliveryDate":{"type":"string"},"receiptRequestedDate":{"type":"string"},"receiptPromisedDate":{"type":"string"},"dropShipment":{"type":"boolean"},"customerId":{"type":"string"},"customerLocationId":{"type":"string"},"supplierShippingCost":{"type":"number"},"notes":{"type":"string"},"incoterm":{"type":"string","enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":"string"},"customFields":{}},"required":["id","trackingNumber"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/upsertPurchaseOrderLine":{"post":{"operationId":"purchasing.upsertPurchaseOrderLine","summary":"upsert purchase order line","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderId":{"type":"string","minLength":1},"purchaseOrderLineType":{"type":"string","enum":["Part","Material","Tool","Consumable","Service","Fixture","G/L Account","Fixed Asset"]},"itemId":{"type":"string"},"accountId":{"type":"string"},"costCenterId":{"type":"string"},"assetId":{"type":"string"},"conversionFactor":{"type":"number"},"description":{"type":"string"},"exchangeRate":{"type":"number"},"inventoryUnitOfMeasureCode":{"type":"string"},"jobId":{"type":"string"},"jobOperationId":{"type":"string"},"locationId":{"type":"string"},"promisedDate":{"type":"string"},"purchaseQuantity":{"type":"number"},"purchaseUnitOfMeasureCode":{"type":"string"},"requiredDate":{"type":"string"},"storageUnitId":{"type":"string"},"supplierPartId":{"type":"string"},"supplierShippingCost":{"type":"number"},"supplierTaxAmount":{"type":"number"},"supplierUnitPrice":{"type":"number"},"taxPercent":{"default":0,"type":"number","minimum":0,"maximum":1},"customFields":{},"id":{"type":"string"}},"required":["purchaseOrderId","purchaseOrderLineType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/updatePurchaseOrderLineOrder":{"post":{"operationId":"purchasing.updatePurchaseOrderLineOrder","summary":"update purchase order line order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderId":{"type":"string"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["purchaseOrderId","updates"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/purchasing/shortClosePurchaseOrderLine":{"post":{"operationId":"purchasing.shortClosePurchaseOrderLine","summary":"short-close (\"stop receiving\") or reopen a purchase order line whose remaining quantity will never arrive","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"},"purchaseOrderId":{"type":"string"},"intent":{"type":"string","enum":["close","reopen"]}},"required":["lineId","purchaseOrderId","intent"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/purchasing/upsertPurchaseOrderPayment":{"post":{"operationId":"purchasing.upsertPurchaseOrderPayment","summary":"upsert purchase order payment","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"invoiceSupplierId":{"type":"string"},"invoiceSupplierLocationId":{"type":"string"},"invoiceSupplierContactId":{"type":"string"},"paymentTermId":{"type":"string"},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/upsertSupplier":{"post":{"operationId":"purchasing.upsertSupplier","summary":"upsert supplier","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"readableId":{"type":"string"},"name":{"type":"string","minLength":1},"supplierStatus":{"anyOf":[{"type":"string","enum":["Active","Inactive","Pending","Rejected"]},{"type":"null"}]},"supplierTypeId":{"type":"string"},"accountManagerId":{"type":"string"},"currencyCode":{"type":"string"},"purchasingContactId":{"type":"string"},"website":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/upsertSupplierProcess":{"post":{"operationId":"purchasing.upsertSupplierProcess","summary":"upsert supplier process","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string","minLength":1},"processId":{"type":"string","minLength":1},"minimumCost":{"type":"number","minimum":0},"leadTime":{"type":"number","minimum":0},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["supplierId","processId","minimumCost","leadTime"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/insertSupplierQuote":{"post":{"operationId":"purchasing.insertSupplierQuote","summary":"Create a new supplier quote with all business logic - generates sequence, creates supplier interaction, sets up external link. LLM can create a quote with just supplierId.","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"},"supplierQuoteId":{"type":"string"},"locationId":{"type":"string"},"status":{"type":"string","enum":["Draft","Active","Expired","Declined","Cancelled"]},"currencyCode":{"type":"string"},"expirationDate":{"type":"string"},"supplierContactId":{"type":"string"},"supplierLocationId":{"type":"string"},"notes":{"type":"string"},"customFields":{},"quotedDate":{"type":"string"},"supplierReference":{"type":"string"},"supplierQuoteType":{"type":"string","enum":["Purchase","Outside Processing"]}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"supplierQuoteId":{"type":"string"}},"required":["id","supplierQuoteId"]}}}}}}},"/purchasing/updateSupplierQuote":{"post":{"operationId":"purchasing.updateSupplierQuote","summary":"Update an existing supplier quote - handles exchange rate updates when currency changes","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Active","Expired","Declined","Cancelled"]},"currencyCode":{"type":"string"},"expirationDate":{"type":["string","null"]},"supplierContactId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"notes":{"type":["string","null"]},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/upsertSupplierQuoteLine":{"post":{"operationId":"purchasing.upsertSupplierQuoteLine","summary":"upsert supplier quote line","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteId":{"type":"string"},"supplierQuoteLineType":{"type":"string","enum":["Part","Material","Tool","Consumable","Service","G/L Account"]},"itemId":{"type":"string"},"accountId":{"type":"string"},"costCenterId":{"type":"string"},"description":{"type":"string"},"supplierPartId":{"type":"string"},"inventoryUnitOfMeasureCode":{"type":"string"},"purchaseUnitOfMeasureCode":{"type":"string"},"conversionFactor":{"type":"number"},"requiredDate":{"type":"string"},"quantity":{"type":"array","items":{"type":"number","minimum":0.00001}},"customFields":{},"id":{"type":"string"}},"required":["supplierQuoteId","supplierQuoteLineType","quantity"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/updateSupplierQuoteLineOrder":{"post":{"operationId":"purchasing.updateSupplierQuoteLineOrder","summary":"update supplier quote line order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteId":{"type":"string"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["supplierQuoteId","updates"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/purchasing/upsertSupplierType":{"post":{"operationId":"purchasing.upsertSupplierType","summary":"upsert supplier type","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/deletePurchasingRFQ":{"post":{"operationId":"purchasing.deletePurchasingRFQ","summary":"delete purchasing r f q","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchasingRfqId":{"type":"string"}},"required":["purchasingRfqId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/deletePurchasingRFQLine":{"post":{"operationId":"purchasing.deletePurchasingRFQLine","summary":"delete purchasing r f q line","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchasingRfqLineId":{"type":"string"}},"required":["purchasingRfqLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/getPurchasingRFQ":{"post":{"operationId":"purchasing.getPurchasingRFQ","summary":"get purchasing r f q","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"favorite":{"type":["boolean","null"]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"revisionId":{"type":["number","null"]},"rfqDate":{"type":["string","null"]},"rfqId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Draft","Requested"]},"supplierCount":{"type":["number","null"]},"supplierIds":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","customFields","employeeId","expirationDate","favorite","id","internalNotes","locationId","locationName","notes","revisionId","rfqDate","rfqId","status","supplierCount","supplierIds","updatedAt","updatedBy"]}}}}}}},"/purchasing/getPurchasingRFQs":{"post":{"operationId":"purchasing.getPurchasingRFQs","summary":"get purchasing r f qs","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"favorite":{"type":["boolean","null"]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"revisionId":{"type":["number","null"]},"rfqDate":{"type":["string","null"]},"rfqId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Draft","Requested"]},"supplierCount":{"type":["number","null"]},"supplierIds":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","customFields","employeeId","expirationDate","favorite","id","internalNotes","locationId","locationName","notes","revisionId","rfqDate","rfqId","status","supplierCount","supplierIds","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getPurchasingRFQLine":{"post":{"operationId":"purchasing.getPurchasingRFQLine","summary":"get purchasing r f q line","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"}},"required":["lineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"conversionFactor":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"inventoryUnitOfMeasureCode":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"modelPath":{"type":["string","null"]},"order":{"type":["number","null"]},"purchaseUnitOfMeasureCode":{"type":["string","null"]},"purchasingRfqId":{"type":["string","null"]},"quantity":{"type":["array","null"],"items":{"type":"number"}},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","conversionFactor","createdAt","createdBy","customFields","description","externalNotes","id","internalNotes","inventoryUnitOfMeasureCode","itemId","itemName","itemReadableId","itemType","modelPath","order","purchaseUnitOfMeasureCode","purchasingRfqId","quantity","thumbnailPath","updatedAt","updatedBy"]}}}}}}},"/purchasing/getPurchasingRFQLines":{"post":{"operationId":"purchasing.getPurchasingRFQLines","summary":"get purchasing r f q lines","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchasingRfqId":{"type":"string"}},"required":["purchasingRfqId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"conversionFactor":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"inventoryUnitOfMeasureCode":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"modelPath":{"type":["string","null"]},"order":{"type":["number","null"]},"purchaseUnitOfMeasureCode":{"type":["string","null"]},"purchasingRfqId":{"type":["string","null"]},"quantity":{"type":["array","null"],"items":{"type":"number"}},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","conversionFactor","createdAt","createdBy","customFields","description","externalNotes","id","internalNotes","inventoryUnitOfMeasureCode","itemId","itemName","itemReadableId","itemType","modelPath","order","purchaseUnitOfMeasureCode","purchasingRfqId","quantity","thumbnailPath","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getPurchasingRFQSuppliers":{"post":{"operationId":"purchasing.getPurchasingRFQSuppliers","summary":"get purchasing r f q suppliers","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchasingRfqId":{"type":"string"}},"required":["purchasingRfqId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/insertPurchasingRFQ":{"post":{"operationId":"purchasing.insertPurchasingRFQ","summary":"insert purchasing r f q","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rfqId":{"type":"string"},"rfqDate":{"type":"string"},"expirationDate":{"type":"string"},"locationId":{"type":"string"},"employeeId":{"type":"string"},"status":{"type":"string","enum":["Draft","Requested","Closed"]},"notes":{"type":"string"},"customFields":{}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"rfqId":{"type":"string"}},"required":["id","rfqId"]}}}}}}},"/purchasing/upsertPurchasingRFQ":{"post":{"operationId":"purchasing.upsertPurchasingRFQ","summary":"upsert purchasing r f q","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"rfqId":{"type":"string"},"rfqDate":{"type":"string"},"expirationDate":{"type":"string"},"locationId":{"type":"string"},"employeeId":{"type":"string"},"status":{"type":"string","enum":["Draft","Requested","Closed"]},"customFields":{}},"required":["rfqId","rfqDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/upsertPurchasingRFQLine":{"post":{"operationId":"purchasing.upsertPurchasingRFQLine","summary":"upsert purchasing r f q line","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchasingRfqLine":{"anyOf":[{"type":"object","properties":{"purchasingRfqId":{"type":"string"},"itemId":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"array","items":{"type":"number"}},"purchaseUnitOfMeasureCode":{"type":"string"},"inventoryUnitOfMeasureCode":{"type":"string"},"conversionFactor":{"type":"number"},"order":{"type":"number"},"customFields":{}},"required":["purchasingRfqId","itemId","quantity","purchaseUnitOfMeasureCode","inventoryUnitOfMeasureCode","order"]},{"type":"object","properties":{"id":{"type":"string"},"purchasingRfqId":{"type":"string"},"itemId":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"array","items":{"type":"number"}},"purchaseUnitOfMeasureCode":{"type":"string"},"inventoryUnitOfMeasureCode":{"type":"string"},"conversionFactor":{"type":"number"},"order":{"type":"number"},"customFields":{}},"required":["id","purchasingRfqId","itemId","quantity","purchaseUnitOfMeasureCode","inventoryUnitOfMeasureCode","order"]}]}},"required":["purchasingRfqLine"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/updatePurchasingRFQLineOrder":{"post":{"operationId":"purchasing.updatePurchasingRFQLineOrder","summary":"update purchasing r f q line order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchasingRfqId":{"type":"string"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["purchasingRfqId","updates"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/purchasing/upsertPurchasingRFQSuppliers":{"post":{"operationId":"purchasing.upsertPurchasingRFQSuppliers","summary":"upsert purchasing r f q suppliers","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchasingRfqId":{"type":"string"},"supplierIds":{"type":"array","items":{"type":"string"}}},"required":["purchasingRfqId","supplierIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{}},{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},{"type":"null"}]}}}}}}},"/purchasing/updatePurchasingRFQStatus":{"post":{"operationId":"purchasing.updatePurchasingRFQStatus","summary":"update purchasing r f q status","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Requested","Closed"]},"assignee":{"type":["string","null"]}},"required":["id","status"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/getLinkedSupplierQuotes":{"post":{"operationId":"purchasing.getLinkedSupplierQuotes","summary":"get linked supplier quotes","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchasingRfqId":{"type":"string"}},"required":["purchasingRfqId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"supplierQuoteId":{"type":"string"},"supplierQuote":{}},"required":["supplierQuoteId","supplierQuote"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getLinkedPurchasingRfqs":{"post":{"operationId":"purchasing.getLinkedPurchasingRfqs","summary":"get linked purchasing rfqs","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteId":{"type":"string"}},"required":["supplierQuoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"purchasingRfqId":{"type":"string"},"purchasingRfq":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"revisionId":{"type":"number"},"rfqDate":{"type":"string"},"rfqId":{"type":"string"},"status":{"type":"string","enum":["Closed","Draft","Requested"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","customFields","employeeId","expirationDate","id","internalNotes","locationId","notes","revisionId","rfqDate","rfqId","status","updatedAt","updatedBy"]}},"required":["purchasingRfqId","purchasingRfq"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getLinkedPurchasingRfqsForInteraction":{"post":{"operationId":"purchasing.getLinkedPurchasingRfqsForInteraction","summary":"get linked purchasing rfqs for interaction","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierInteractionId":{"type":"string"}},"required":["supplierInteractionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{}},{"type":"array","items":{"type":"object","properties":{"purchasingRfqId":{"type":"string"},"purchasingRfq":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]},"revisionId":{"type":"number"},"rfqDate":{"type":"string"},"rfqId":{"type":"string"},"status":{"type":"string","enum":["Closed","Draft","Requested"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","customFields","employeeId","expirationDate","id","internalNotes","locationId","notes","revisionId","rfqDate","rfqId","status","updatedAt","updatedBy"]}},"required":["purchasingRfqId","purchasingRfq"]}},{"type":"null"}]}}}}}}},"/purchasing/getSiblingQuotesForQuote":{"post":{"operationId":"purchasing.getSiblingQuotesForQuote","summary":"get sibling quotes for quote","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteId":{"type":"string"}},"required":["supplierQuoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"supplierQuoteId":{"type":"string"},"supplierQuote":{}},"required":["supplierQuoteId","supplierQuote"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getLinkedPurchasingRfqsForOrder":{"post":{"operationId":"purchasing.getLinkedPurchasingRfqsForOrder","summary":"get linked purchasing rfqs for order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseOrderId":{"type":"string"}},"required":["purchaseOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"purchasingRfqId":{"type":"string"},"purchasingRfq":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"revisionId":{"type":"number"},"rfqDate":{"type":"string"},"rfqId":{"type":"string"},"status":{"type":"string","enum":["Closed","Draft","Requested"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","customFields","employeeId","expirationDate","id","internalNotes","locationId","notes","revisionId","rfqDate","rfqId","status","updatedAt","updatedBy"]}},"required":["purchasingRfqId","purchasingRfq"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getSupplierQuotesForComparison":{"post":{"operationId":"purchasing.getSupplierQuotesForComparison","summary":"get supplier quotes for comparison","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchasingRfqId":{"type":"string"}},"required":["purchasingRfqId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"quotes":{"type":"array","items":{}},"lines":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":["string","null"]},"accountName":{"type":["string","null"]},"companyId":{"type":["string","null"]},"conversionFactor":{"type":["number","null"]},"costCenterId":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"inventoryUnitOfMeasureCode":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"ownerId":{"type":["string","null"]},"purchaseUnitOfMeasureCode":{"type":["string","null"]},"quantity":{"type":["array","null"],"items":{"type":"number"}},"requiredDate":{"type":["string","null"]},"sortOrder":{"type":["number","null"]},"supplierPartId":{"type":["string","null"]},"supplierPartRevision":{"type":["string","null"]},"supplierQuoteId":{"type":["string","null"]},"supplierQuoteLineType":{"type":["string","null"]},"supplierQuoteRevisionId":{"type":["number","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","accountName","companyId","conversionFactor","costCenterId","createdBy","customFields","description","externalNotes","id","internalNotes","inventoryUnitOfMeasureCode","itemId","itemReadableId","itemType","ownerId","purchaseUnitOfMeasureCode","quantity","requiredDate","sortOrder","supplierPartId","supplierPartRevision","supplierQuoteId","supplierQuoteLineType","supplierQuoteRevisionId","tags","thumbnailPath","unitCost","updatedAt","updatedBy"]}},"prices":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"exchangeRate":{"type":["number","null"]},"extendedPrice":{"type":["number","null"]},"leadTime":{"type":"number"},"quantity":{"type":"number"},"shippingCost":{"type":["number","null"]},"supplierExtendedPrice":{"type":["number","null"]},"supplierQuoteId":{"type":"string"},"supplierQuoteLineId":{"type":"string"},"supplierShippingCost":{"type":"number"},"supplierTaxAmount":{"type":"number"},"supplierUnitPrice":{"type":"number"},"taxAmount":{"type":["number","null"]},"taxPercent":{"type":["number","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","exchangeRate","extendedPrice","leadTime","quantity","shippingCost","supplierExtendedPrice","supplierQuoteId","supplierQuoteLineId","supplierShippingCost","supplierTaxAmount","supplierUnitPrice","taxAmount","taxPercent","unitPrice","updatedAt","updatedBy"]}}},"required":["quotes","lines","prices"]}}}}}}},"/purchasing/getPurchasingRFQSuppliersWithLinks":{"post":{"operationId":"purchasing.getPurchasingRFQSuppliersWithLinks","summary":"get purchasing r f q suppliers with links","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchasingRfqId":{"type":"string"}},"required":["purchasingRfqId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getDefaultAttachmentsForPO":{"post":{"operationId":"purchasing.getDefaultAttachmentsForPO","summary":"get default attachments for p o","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":["string","null"]},"itemIds":{"type":"array","items":{"type":"string"}}},"required":["supplierId","itemIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["company","supplier","item"]},"name":{"type":"string"},"size":{"type":["number","null"]},"path":{"type":"string"}},"required":["source","name","size","path"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getPurchaseReturnOrders":{"post":{"operationId":"purchasing.getPurchaseReturnOrders","summary":"get purchase return orders","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{"type":["string","null"]},"supplierId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"expirationDate":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"linesCount":{"type":["number","null"]},"locationId":{"type":["string","null"]},"orderDate":{"type":["string","null"]},"purchaseOrderId":{"type":["string","null"]},"purchaseReturnOrderId":{"type":["string","null"]},"quantityAuthorized":{"type":["number","null"]},"quantityCredited":{"type":["number","null"]},"quantityShipped":{"type":["number","null"]},"replacementPurchaseOrderId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Completed","Cancelled","Draft","To Ship"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"supplierReference":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","currencyCode","customFields","exchangeRate","expirationDate","externalNotes","id","internalNotes","linesCount","locationId","orderDate","purchaseOrderId","purchaseReturnOrderId","quantityAuthorized","quantityCredited","quantityShipped","replacementPurchaseOrderId","status","supplierContactId","supplierId","supplierLocationId","supplierReference","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getPurchaseReturnOrder":{"post":{"operationId":"purchasing.getPurchaseReturnOrder","summary":"get purchase return order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseReturnOrderId":{"type":"string"}},"required":["purchaseReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"expirationDate":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"linesCount":{"type":["number","null"]},"locationId":{"type":["string","null"]},"orderDate":{"type":["string","null"]},"purchaseOrderId":{"type":["string","null"]},"purchaseReturnOrderId":{"type":["string","null"]},"quantityAuthorized":{"type":["number","null"]},"quantityCredited":{"type":["number","null"]},"quantityShipped":{"type":["number","null"]},"replacementPurchaseOrderId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Completed","Cancelled","Draft","To Ship"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"supplierReference":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","currencyCode","customFields","exchangeRate","expirationDate","externalNotes","id","internalNotes","linesCount","locationId","orderDate","purchaseOrderId","purchaseReturnOrderId","quantityAuthorized","quantityCredited","quantityShipped","replacementPurchaseOrderId","status","supplierContactId","supplierId","supplierLocationId","supplierReference","updatedAt","updatedBy"]}}}}}}},"/purchasing/getPurchaseReturnOrderLines":{"post":{"operationId":"purchasing.getPurchaseReturnOrderLines","summary":"get purchase return order lines","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseReturnOrderId":{"type":"string"}},"required":["purchaseReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"closedComplete":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"lineNumber":{"type":"number"},"purchaseInvoiceLineId":{"type":["string","null"]},"purchaseOrderLineId":{"type":["string","null"]},"purchaseReturnOrderId":{"type":"string"},"quantity":{"type":"number"},"quantityShipped":{"type":"number"},"receiptLineId":{"type":["string","null"]},"restockFeePercent":{"type":"number"},"returnReasonId":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"returnReason":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]},"item":{"type":"object","properties":{"name":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"thumbnailPath":{"type":["string","null"]}},"required":["name","readableIdWithRevision","itemTrackingType","thumbnailPath"]}},"required":["closedComplete","companyId","createdAt","createdBy","customFields","id","itemId","lineNumber","purchaseInvoiceLineId","purchaseOrderLineId","purchaseReturnOrderId","quantity","quantityShipped","receiptLineId","restockFeePercent","returnReasonId","unitOfMeasureCode","unitPrice","updatedAt","updatedBy","returnReason","item"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getPurchaseReturnOrderLine":{"post":{"operationId":"purchasing.getPurchaseReturnOrderLine","summary":"get purchase return order line","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"}},"required":["lineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"closedComplete":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"lineNumber":{"type":"number"},"purchaseInvoiceLineId":{"type":["string","null"]},"purchaseOrderLineId":{"type":["string","null"]},"purchaseReturnOrderId":{"type":"string"},"quantity":{"type":"number"},"quantityShipped":{"type":"number"},"receiptLineId":{"type":["string","null"]},"restockFeePercent":{"type":"number"},"returnReasonId":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["closedComplete","companyId","createdAt","createdBy","customFields","id","itemId","lineNumber","purchaseInvoiceLineId","purchaseOrderLineId","purchaseReturnOrderId","quantity","quantityShipped","receiptLineId","restockFeePercent","returnReasonId","unitOfMeasureCode","unitPrice","updatedAt","updatedBy"]}}}}}}},"/purchasing/getPurchaseReturnOrderLineTrackedEntities":{"post":{"operationId":"purchasing.getPurchaseReturnOrderLineTrackedEntities","summary":"get purchase return order line tracked entities","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineIds":{"type":"array","items":{"type":"string"}}},"required":["lineIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"purchaseReturnOrderLineId":{"type":"string"},"quantity":{"type":"number"},"trackedEntityId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"trackedEntity":{"type":"object","properties":{"id":{"type":"string"},"readableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"quantity":{"type":"number"}},"required":["id","readableId","status","quantity"]}},"required":["companyId","createdAt","createdBy","purchaseReturnOrderLineId","quantity","trackedEntityId","updatedAt","updatedBy","trackedEntity"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/insertPurchaseReturnOrder":{"post":{"operationId":"purchasing.insertPurchaseReturnOrder","summary":"insert purchase return order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"},"purchaseReturnOrderId":{"type":"string"},"orderDate":{"type":"string"},"supplierLocationId":{"type":"string"},"supplierContactId":{"type":"string"},"supplierReference":{"type":"string"},"locationId":{"type":"string"},"purchaseOrderId":{"type":"string"},"currencyCode":{"type":"string"},"expirationDate":{"type":"string"},"assignee":{"type":"string"},"customFields":{}},"required":["supplierId","orderDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"purchaseReturnOrderId":{"type":"string"}},"required":["id","purchaseReturnOrderId"]}}}}}}},"/purchasing/upsertPurchaseReturnOrderLine":{"post":{"operationId":"purchasing.upsertPurchaseReturnOrderLine","summary":"upsert purchase return order line","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseReturnOrderId":{"type":"string","minLength":1},"itemId":{"type":"string","minLength":1},"quantity":{"type":"number","exclusiveMinimum":0},"unitOfMeasureCode":{"type":"string"},"unitPrice":{"type":"number","minimum":0},"restockFeePercent":{"type":"number","minimum":0,"maximum":1},"returnReasonId":{"type":"string"},"purchaseOrderLineId":{"type":"string"},"receiptLineId":{"type":"string"},"purchaseInvoiceLineId":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["purchaseReturnOrderId","itemId","quantity","unitPrice"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/deletePurchaseReturnOrder":{"post":{"operationId":"purchasing.deletePurchaseReturnOrder","summary":"delete purchase return order","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseReturnOrderId":{"type":"string"}},"required":["purchaseReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/deletePurchaseReturnOrderLine":{"post":{"operationId":"purchasing.deletePurchaseReturnOrderLine","summary":"delete purchase return order line","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"}},"required":["lineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/setPurchaseReturnOrderLineTrackedEntities":{"post":{"operationId":"purchasing.setPurchaseReturnOrderLineTrackedEntities","summary":"set purchase return order line tracked entities","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"},"entityIds":{"type":"array","items":{"type":"string"}}},"required":["lineId","entityIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/purchasing/getPurchaseReturnOrderShipments":{"post":{"operationId":"purchasing.getPurchaseReturnOrderShipments","summary":"get purchase return order shipments","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseReturnOrderId":{"type":"string"}},"required":["purchaseReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shipmentId":{"type":"string"},"status":{"type":"string","enum":["Pending","Draft","Posted","Voided"]},"postingDate":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","shipmentId","status","postingDate","createdAt"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getPurchaseReturnOrderCredits":{"post":{"operationId":"purchasing.getPurchaseReturnOrderCredits","summary":"get purchase return order credits","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseReturnOrderId":{"type":"string"}},"required":["purchaseReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"memoId":{"type":"string"},"status":{"type":"string","enum":["Draft","Posted","Voided"]},"amount":{"type":"number"},"currencyCode":{"type":"string"},"memoDate":{"type":"string"},"postingDate":{"type":["string","null"]}},"required":["id","memoId","status","amount","currencyCode","memoDate","postingDate"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getPurchaseReturnOrderIssues":{"post":{"operationId":"purchasing.getPurchaseReturnOrderIssues","summary":"get purchase return order issues","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseReturnOrderId":{"type":"string"}},"required":["purchaseReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"purchaseReturnOrderLineId":{"type":"string"},"nonConformance":{"type":"object","properties":{"id":{"type":"string"},"nonConformanceId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["Closed","In Progress","Registered"]}},"required":["id","nonConformanceId","name","status"]}},"required":["id","purchaseReturnOrderLineId","nonConformance"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/confirmPurchaseReturnOrder":{"post":{"operationId":"purchasing.confirmPurchaseReturnOrder","summary":"confirm a supplier return","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/purchasing/reopenPurchaseReturnOrder":{"post":{"operationId":"purchasing.reopenPurchaseReturnOrder","summary":"reopen a supplier return back to Draft so its lines can be edited","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/purchasing/cancelPurchaseReturnOrder":{"post":{"operationId":"purchasing.cancelPurchaseReturnOrder","summary":"cancel a supplier return","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/shortClosePurchaseReturnOrderLine":{"post":{"operationId":"purchasing.shortClosePurchaseReturnOrderLine","summary":"short-close (\"stop expecting\") a supplier return line — the shortClosePurchaseOrderLine mechanic","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"},"purchaseReturnOrderId":{"type":"string"},"intent":{"type":"string","enum":["close","reopen"]}},"required":["lineId","purchaseReturnOrderId","intent"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/purchasing/getReturnableLinesForSupplier":{"post":{"operationId":"purchasing.getReturnableLinesForSupplier","summary":"returnable receipt lines for a supplier, searched + paginated in the database via the get_returnable_receipt_lines RPC","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"},"args":{"type":"object","properties":{"purchaseOrderId":{"type":"string"},"search":{"type":"string"},"limit":{"type":"number"},"offset":{"type":"number"}}}},"required":["supplierId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"alreadyReturned":{"type":"number"},"itemId":{"type":"string"},"itemName":{"type":"string"},"itemReadableId":{"type":"string"},"itemTrackingType":{"type":"string"},"purchaseOrderLineId":{"type":"string"},"purchaseOrderReadableId":{"type":"string"},"receiptLineId":{"type":"string"},"receiptReadableId":{"type":"string"},"receivedQuantity":{"type":"number"},"returnableQuantity":{"type":"number"},"totalCount":{"type":"number"},"unitOfMeasureCode":{"type":"string"},"unitPrice":{"type":"number"}},"required":["alreadyReturned","itemId","itemName","itemReadableId","itemTrackingType","purchaseOrderLineId","purchaseOrderReadableId","receiptLineId","receiptReadableId","receivedQuantity","returnableQuantity","totalCount","unitOfMeasureCode","unitPrice"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getReturnableEntitiesForSupplier":{"post":{"operationId":"purchasing.getReturnableEntitiesForSupplier","summary":"entity picker source for supplier return lines: serials/batches on hand that were received from this supplier","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierId":{"type":"string"},"itemId":{"type":"string"}},"required":["supplierId","itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{}},{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"readableId":{"type":["string","null"]},"quantity":{"type":"number"},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},"required":["id","readableId","quantity","status","attributes"]}},{"type":"null"}]}}}}}}},"/purchasing/getReturnableEntitiesForReceiptLine":{"post":{"operationId":"purchasing.getReturnableEntitiesForReceiptLine","summary":"the Available tracked entities that came in on ONE receipt line, for the item","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"receiptLineId":{"type":"string"}},"required":["itemId","receiptLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"readableId":{"type":["string","null"]},"quantity":{"type":"number"},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]}},"required":["id","readableId","quantity","status"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/getCreditableQuantitiesForPurchaseReturn":{"post":{"operationId":"purchasing.getCreditableQuantitiesForPurchaseReturn","summary":"per-line creditable pool = shipped − already credited","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseReturnOrderId":{"type":"string"}},"required":["purchaseReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"purchaseReturnOrderLineId":{"type":"string"},"lineNumber":{"type":"number"},"quantityShipped":{"type":"number"},"quantityCredited":{"type":"number"},"creditableQuantity":{"type":"number"},"unitPrice":{"type":"number"},"restockFeePercent":{"type":"number"}},"required":["purchaseReturnOrderLineId","lineNumber","quantityShipped","quantityCredited","creditableQuantity","unitPrice","restockFeePercent"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/purchasing/createPurchaseReturnOrderCredit":{"post":{"operationId":"purchasing.createPurchaseReturnOrderCredit","summary":"issue supplier credit: one AP memo + per-line purchaseReturnOrderCreditLine breakdown","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseReturnOrderId":{"type":"string"},"memoDate":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"purchaseReturnOrderLineId":{"type":"string"},"quantity":{"type":"number"}},"required":["purchaseReturnOrderLineId","quantity"]}}},"required":["purchaseReturnOrderId","memoDate","lines"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/purchasing/createReplacementPurchaseOrder":{"post":{"operationId":"purchasing.createReplacementPurchaseOrder","summary":"create Replacement Purchase Order: a draft PO from the return lines, priced from the linked PO line (purchase-UOM price + conversion factor copied) else the su…","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseReturnOrderId":{"type":"string"}},"required":["purchaseReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/purchasing/createSupplierInteractionDocumentUploadUrl":{"post":{"operationId":"purchasing.createSupplierInteractionDocumentUploadUrl","summary":"create a presigned upload URL for a supplier interaction (purchase order/supplier quote/RFQ) document","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"interactionId":{"type":"string"},"name":{"type":"string"}},"required":["interactionId","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"signedUrl":{"type":"string"},"token":{"type":"string"},"path":{"type":"string"}},"required":["signedUrl","token","path"]}}}}}}},"/purchasing/createSupplierInteractionLineDocumentUploadUrl":{"post":{"operationId":"purchasing.createSupplierInteractionLineDocumentUploadUrl","summary":"create a presigned upload URL for a supplier interaction LINE document","tags":["purchasing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"},"name":{"type":"string"}},"required":["lineId","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"signedUrl":{"type":"string"},"token":{"type":"string"},"path":{"type":"string"}},"required":["signedUrl","token","path"]}}}}}}},"/quality/activateGauge":{"post":{"operationId":"quality.activateGauge","summary":"activate gauge","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"gaugeId":{"type":"string"}},"required":["gaugeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/deactivateGauge":{"post":{"operationId":"quality.deactivateGauge","summary":"deactivate gauge","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"gaugeId":{"type":"string"}},"required":["gaugeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/deleteGauge":{"post":{"operationId":"quality.deleteGauge","summary":"delete gauge","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"gaugeId":{"type":"string"}},"required":["gaugeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/deleteGaugeCalibrationRecord":{"post":{"operationId":"quality.deleteGaugeCalibrationRecord","summary":"delete gauge calibration record","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"gaugeCalibrationRecordId":{"type":"string"}},"required":["gaugeCalibrationRecordId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/deleteGaugeType":{"post":{"operationId":"quality.deleteGaugeType","summary":"delete gauge type","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"gaugeTypeId":{"type":"string"}},"required":["gaugeTypeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/deleteIssue":{"post":{"operationId":"quality.deleteIssue","summary":"delete issue","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nonConformanceId":{"type":"string"}},"required":["nonConformanceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/deleteIssueAssociation":{"post":{"operationId":"quality.deleteIssueAssociation","summary":"delete issue association","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"associationId":{"type":"string"}},"required":["type","associationId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/quality/deleteIssueType":{"post":{"operationId":"quality.deleteIssueType","summary":"delete issue type","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nonConformanceTypeId":{"type":"string"}},"required":["nonConformanceTypeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/deleteIssueWorkflow":{"post":{"operationId":"quality.deleteIssueWorkflow","summary":"delete issue workflow","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nonConformanceWorkflowId":{"type":"string"}},"required":["nonConformanceWorkflowId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/deleteRequiredAction":{"post":{"operationId":"quality.deleteRequiredAction","summary":"delete required action","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requiredActionId":{"type":"string"}},"required":["requiredActionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/deleteQualityDocument":{"post":{"operationId":"quality.deleteQualityDocument","summary":"delete quality document","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"qualityDocumentId":{"type":"string"}},"required":["qualityDocumentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/deleteRisk":{"post":{"operationId":"quality.deleteRisk","summary":"delete risk","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"riskId":{"type":"string"}},"required":["riskId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/getIssueFromExternalLink":{"post":{"operationId":"quality.getIssueFromExternalLink","summary":"get issue from external link","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"externalLinkId":{"type":["string","null"]},"id":{"type":"string"},"nonConformanceId":{"type":"string"},"supplierId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"nonConformance":{"type":"object","properties":{"approvalRequirements":{"type":["array","null"],"items":{"type":"string","enum":["MRB"]}},"assignee":{"type":["string","null"]},"closeDate":{"type":["string","null"]},"companyId":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"id":{"type":"string"},"locationId":{"type":"string"},"name":{"type":"string"},"nonConformanceId":{"type":"string"},"nonConformanceTypeId":{"type":"string"},"nonConformanceWorkflowId":{"type":["string","null"]},"openDate":{"type":"string"},"priority":{"type":["string","null"],"enum":["Low","Medium","High","Critical"]},"quantity":{"type":"number"},"requiredActionIds":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":"string","enum":["Internal","External"]},"status":{"type":"string","enum":["Closed","In Progress","Registered"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["approvalRequirements","assignee","closeDate","companyId","content","createdAt","createdBy","customFields","description","dueDate","id","locationId","name","nonConformanceId","nonConformanceTypeId","nonConformanceWorkflowId","openDate","priority","quantity","requiredActionIds","source","status","tags","updatedAt","updatedBy"]}},"required":["companyId","createdAt","createdBy","externalLinkId","id","nonConformanceId","supplierId","updatedAt","updatedBy","nonConformance"]}}}}}}},"/quality/getGauge":{"post":{"operationId":"quality.getGauge","summary":"get gauge","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"gaugeId":{"type":"string"}},"required":["gaugeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"calibrationIntervalInMonths":{"type":["number","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"dateAcquired":{"type":["string","null"]},"description":{"type":["string","null"]},"gaugeCalibrationStatus":{"type":["string","null"],"enum":["Pending","In-Calibration","Out-of-Calibration"]},"gaugeCalibrationStatusWithDueDate":{"type":["string","null"],"enum":["Pending","In-Calibration","Out-of-Calibration"]},"gaugeId":{"type":["string","null"]},"gaugeRole":{"type":["string","null"],"enum":["Master","Standard"]},"gaugeStatus":{"type":["string","null"],"enum":["Inactive","Active"]},"gaugeTypeId":{"type":["string","null"]},"id":{"type":["string","null"]},"lastCalibrationDate":{"type":["string","null"]},"lastCalibrationStatus":{"type":["string","null"],"enum":["Pending","In-Calibration","Out-of-Calibration"]},"locationId":{"type":["string","null"]},"modelNumber":{"type":["string","null"]},"nextCalibrationDate":{"type":["string","null"]},"serialNumber":{"type":["string","null"]},"storageUnitId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["calibrationIntervalInMonths","companyId","createdAt","createdBy","customFields","dateAcquired","description","gaugeCalibrationStatus","gaugeCalibrationStatusWithDueDate","gaugeId","gaugeRole","gaugeStatus","gaugeTypeId","id","lastCalibrationDate","lastCalibrationStatus","locationId","modelNumber","nextCalibrationDate","serialNumber","storageUnitId","supplierId","updatedAt","updatedBy"]}}}}}}},"/quality/getGauges":{"post":{"operationId":"quality.getGauges","summary":"get gauges","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"calibrationIntervalInMonths":{"type":["number","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"dateAcquired":{"type":["string","null"]},"description":{"type":["string","null"]},"gaugeCalibrationStatus":{"type":["string","null"],"enum":["Pending","In-Calibration","Out-of-Calibration"]},"gaugeCalibrationStatusWithDueDate":{"type":["string","null"],"enum":["Pending","In-Calibration","Out-of-Calibration"]},"gaugeId":{"type":["string","null"]},"gaugeRole":{"type":["string","null"],"enum":["Master","Standard"]},"gaugeStatus":{"type":["string","null"],"enum":["Inactive","Active"]},"gaugeTypeId":{"type":["string","null"]},"id":{"type":["string","null"]},"lastCalibrationDate":{"type":["string","null"]},"lastCalibrationStatus":{"type":["string","null"],"enum":["Pending","In-Calibration","Out-of-Calibration"]},"locationId":{"type":["string","null"]},"modelNumber":{"type":["string","null"]},"nextCalibrationDate":{"type":["string","null"]},"serialNumber":{"type":["string","null"]},"storageUnitId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["calibrationIntervalInMonths","companyId","createdAt","createdBy","customFields","dateAcquired","description","gaugeCalibrationStatus","gaugeCalibrationStatusWithDueDate","gaugeId","gaugeRole","gaugeStatus","gaugeTypeId","id","lastCalibrationDate","lastCalibrationStatus","locationId","modelNumber","nextCalibrationDate","serialNumber","storageUnitId","supplierId","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getGaugesList":{"post":{"operationId":"quality.getGaugesList","summary":"get gauges list","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"gaugeId":{"type":"string"},"description":{"type":"string"}},"required":["id","name","gaugeId","description"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getGaugeCalibrationRecord":{"post":{"operationId":"quality.getGaugeCalibrationRecord","summary":"get gauge calibration record","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"approvedBy":{"type":["string","null"]},"calibrationAttempts":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"dateCalibrated":{"type":["string","null"]},"description":{"type":["string","null"]},"gaugeId":{"type":["string","null"]},"gaugeReadableId":{"type":["string","null"]},"gaugeTypeId":{"type":["string","null"]},"humidity":{"type":["number","null"]},"id":{"type":["string","null"]},"inspectionStatus":{"type":["string","null"],"enum":["Pass","Fail"]},"measurementStandard":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"requiresAction":{"type":["boolean","null"]},"requiresAdjustment":{"type":["boolean","null"]},"requiresRepair":{"type":["boolean","null"]},"supplierId":{"type":["string","null"]},"temperature":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["approvedBy","calibrationAttempts","companyId","createdAt","createdBy","customFields","dateCalibrated","description","gaugeId","gaugeReadableId","gaugeTypeId","humidity","id","inspectionStatus","measurementStandard","notes","requiresAction","requiresAdjustment","requiresRepair","supplierId","temperature","updatedAt","updatedBy"]}}}}}}},"/quality/getGaugeCalibrationRecords":{"post":{"operationId":"quality.getGaugeCalibrationRecords","summary":"get gauge calibration records","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"approvedBy":{"type":["string","null"]},"calibrationAttempts":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"dateCalibrated":{"type":["string","null"]},"description":{"type":["string","null"]},"gaugeId":{"type":["string","null"]},"gaugeReadableId":{"type":["string","null"]},"gaugeTypeId":{"type":["string","null"]},"humidity":{"type":["number","null"]},"id":{"type":["string","null"]},"inspectionStatus":{"type":["string","null"],"enum":["Pass","Fail"]},"measurementStandard":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"requiresAction":{"type":["boolean","null"]},"requiresAdjustment":{"type":["boolean","null"]},"requiresRepair":{"type":["boolean","null"]},"supplierId":{"type":["string","null"]},"temperature":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["approvedBy","calibrationAttempts","companyId","createdAt","createdBy","customFields","dateCalibrated","description","gaugeId","gaugeReadableId","gaugeTypeId","humidity","id","inspectionStatus","measurementStandard","notes","requiresAction","requiresAdjustment","requiresRepair","supplierId","temperature","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getGaugeCalibrationRecordsByGaugeId":{"post":{"operationId":"quality.getGaugeCalibrationRecordsByGaugeId","summary":"get gauge calibration records by gauge id","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"gaugeId":{"type":"string"}},"required":["gaugeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"approvedBy":{"type":["string","null"]},"calibrationAttempts":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"dateCalibrated":{"type":["string","null"]},"description":{"type":["string","null"]},"gaugeId":{"type":["string","null"]},"gaugeReadableId":{"type":["string","null"]},"gaugeTypeId":{"type":["string","null"]},"humidity":{"type":["number","null"]},"id":{"type":["string","null"]},"inspectionStatus":{"type":["string","null"],"enum":["Pass","Fail"]},"measurementStandard":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"requiresAction":{"type":["boolean","null"]},"requiresAdjustment":{"type":["boolean","null"]},"requiresRepair":{"type":["boolean","null"]},"supplierId":{"type":["string","null"]},"temperature":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["approvedBy","calibrationAttempts","companyId","createdAt","createdBy","customFields","dateCalibrated","description","gaugeId","gaugeReadableId","gaugeTypeId","humidity","id","inspectionStatus","measurementStandard","notes","requiresAction","requiresAdjustment","requiresRepair","supplierId","temperature","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getGaugeTypesList":{"post":{"operationId":"quality.getGaugeTypesList","summary":"get gauge types list","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getGaugeType":{"post":{"operationId":"quality.getGaugeType","summary":"get gauge type","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"gaugeTypeId":{"type":"string"}},"required":["gaugeTypeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","updatedAt","updatedBy"]}}}}}}},"/quality/getGaugeTypes":{"post":{"operationId":"quality.getGaugeTypes","summary":"get gauge types","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getIssue":{"post":{"operationId":"quality.getIssue","summary":"get issue","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nonConformanceId":{"type":"string"}},"required":["nonConformanceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"approvalRequirements":{"type":["array","null"],"items":{"type":"string","enum":["MRB"]}},"assignee":{"type":["string","null"]},"closeDate":{"type":["string","null"]},"companyId":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"id":{"type":"string"},"locationId":{"type":"string"},"name":{"type":"string"},"nonConformanceId":{"type":"string"},"nonConformanceTypeId":{"type":"string"},"nonConformanceWorkflowId":{"type":["string","null"]},"openDate":{"type":"string"},"priority":{"type":["string","null"],"enum":["Low","Medium","High","Critical"]},"quantity":{"type":"number"},"requiredActionIds":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":"string","enum":["Internal","External"]},"status":{"type":"string","enum":["Closed","In Progress","Registered"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["approvalRequirements","assignee","closeDate","companyId","content","createdAt","createdBy","customFields","description","dueDate","id","locationId","name","nonConformanceId","nonConformanceTypeId","nonConformanceWorkflowId","openDate","priority","quantity","requiredActionIds","source","status","tags","updatedAt","updatedBy"]}}}}}}},"/quality/getIssues":{"post":{"operationId":"quality.getIssues","summary":"get issues","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"approvalRequirements":{"type":["array","null"],"items":{"type":"string","enum":["MRB"]}},"assignee":{"type":["string","null"]},"closeDate":{"type":["string","null"]},"companyId":{"type":["string","null"]},"containmentStatus":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"id":{"type":["string","null"]},"items":{"type":["array","null"],"items":{"type":"string"}},"locationId":{"type":["string","null"]},"name":{"type":["string","null"]},"nonConformanceId":{"type":["string","null"]},"nonConformanceTypeId":{"type":["string","null"]},"nonConformanceWorkflowId":{"type":["string","null"]},"openDate":{"type":["string","null"]},"priority":{"type":["string","null"],"enum":["Low","Medium","High","Critical"]},"quantity":{"type":["number","null"]},"requiredActionIds":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["string","null"],"enum":["Internal","External"]},"status":{"type":["string","null"],"enum":["Closed","In Progress","Registered"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["approvalRequirements","assignee","closeDate","companyId","containmentStatus","content","createdAt","createdBy","customFields","description","dueDate","id","items","locationId","name","nonConformanceId","nonConformanceTypeId","nonConformanceWorkflowId","openDate","priority","quantity","requiredActionIds","source","status","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getIssueWorkflow":{"post":{"operationId":"quality.getIssueWorkflow","summary":"get issue workflow","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nonConformanceWorkflowId":{"type":"string"}},"required":["nonConformanceWorkflowId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"approvalRequirements":{"type":["array","null"],"items":{"type":"string","enum":["MRB"]}},"companyId":{"type":"string"},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"requiredActionIds":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":"string","enum":["Internal","External"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","approvalRequirements","companyId","content","createdAt","createdBy","description","id","name","priority","requiredActionIds","source","tags","updatedAt","updatedBy"]}}}}}}},"/quality/getIssueActionTasks":{"post":{"operationId":"quality.getIssueActionTasks","summary":"get issue action tasks","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"supplierId":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"linearIssue":{"type":["object","null"]},"jiraIssue":{"type":["object","null"]},"actionTypeId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"dueDate":{"type":["string","null"]},"id":{"type":"string"},"nonConformanceId":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"sortOrder":{"type":"number"},"status":{"type":"string","enum":["Pending","Completed","Skipped","In Progress"]},"supplierId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"name":{"type":["string","null"]},"nonConformanceActionProcess":{"type":"array","items":{"type":"object","properties":{"processId":{"type":"string"},"name":{"type":"string"}},"required":["processId","name"]}},"supplier":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]}},"required":["linearIssue","jiraIssue","actionTypeId","assignee","companyId","completedDate","createdAt","createdBy","dueDate","id","nonConformanceId","notes","sortOrder","status","supplierId","tags","updatedAt","updatedBy","name","nonConformanceActionProcess","supplier"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getIssueApprovalTasks":{"post":{"operationId":"quality.getIssueApprovalTasks","summary":"get issue approval tasks","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"approvalType":{"type":["string","null"],"enum":["MRB"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"dueDate":{"type":["string","null"]},"id":{"type":"string"},"nonConformanceId":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"sortOrder":{"type":"number"},"status":{"type":"string","enum":["Pending","Completed","Skipped","In Progress"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["approvalType","assignee","companyId","completedDate","createdAt","createdBy","dueDate","id","nonConformanceId","notes","sortOrder","status","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getIssueItems":{"post":{"operationId":"quality.getIssueItems","summary":"get issue items","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"disposition":{"type":["string","null"],"enum":["Pending","Scrap","Conditional Acceptance","Deviation Accepted","Hold","No Action Required","Quarantine","Repair","Return to Supplier","Rework","Use As Is","Return to Customer"]},"id":{"type":"string"},"itemId":{"type":"string"},"nonConformanceId":{"type":"string"},"quantity":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"name":{"type":"string"}},"required":["companyId","createdAt","createdBy","disposition","id","itemId","nonConformanceId","quantity","updatedAt","updatedBy","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getIssueAssociations":{"post":{"operationId":"quality.getIssueAssociations","summary":"get issue associations","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nonConformanceId":{"type":"string"}},"required":["nonConformanceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{},"jobOperations":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"},"documentId":{"type":"string"},"documentLineId":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["type","id","documentId","documentLineId","documentReadableId"]}},"purchaseOrderLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"documentId":{"type":"string"},"documentLineId":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["id","type","documentId","documentLineId","documentReadableId"]}},"salesOrderLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"documentId":{"type":"string"},"documentLineId":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["id","type","documentId","documentLineId","documentReadableId"]}},"shipmentLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"documentId":{"type":"string"},"documentLineId":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["id","type","documentId","documentLineId","documentReadableId"]}},"receiptLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"documentId":{"type":"string"},"documentLineId":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["id","type","documentId","documentLineId","documentReadableId"]}},"salesReturnOrderLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"documentId":{"type":"string"},"documentLineId":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["id","type","documentId","documentLineId","documentReadableId"]}},"purchaseReturnOrderLines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"documentId":{"type":"string"},"documentLineId":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["id","type","documentId","documentLineId","documentReadableId"]}},"trackedEntities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"documentId":{"type":"string"},"documentLineId":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["id","type","documentId","documentLineId","documentReadableId"]}},"customers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"documentId":{"type":"string"},"documentLineId":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["id","type","documentId","documentLineId","documentReadableId"]}},"suppliers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"documentId":{"type":"string"},"documentLineId":{"type":"string"},"documentReadableId":{"type":"string"}},"required":["id","type","documentId","documentLineId","documentReadableId"]}},"inspections":{}},"required":["items","jobOperations","purchaseOrderLines","salesOrderLines","shipmentLines","receiptLines","salesReturnOrderLines","purchaseReturnOrderLines","trackedEntities","customers","suppliers","inspections"]}}}}}}},"/quality/getIssueReviewers":{"post":{"operationId":"quality.getIssueReviewers","summary":"get issue reviewers","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"nonConformanceId":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"status":{"type":"string","enum":["Pending","Completed","Skipped","In Progress"]},"title":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","completedDate","createdAt","createdBy","id","nonConformanceId","notes","status","title","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getIssueSuppliers":{"post":{"operationId":"quality.getIssueSuppliers","summary":"get issue suppliers","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"supplierId":{"type":"string"},"externalLinkId":{"type":["string","null"]}},"required":["supplierId","externalLinkId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getIssueTasks":{"post":{"operationId":"quality.getIssueTasks","summary":"get issue tasks","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"array","items":{"type":"object","properties":{"approvalType":{"type":["string","null"],"enum":["MRB"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"dueDate":{"type":["string","null"]},"id":{"type":"string"},"nonConformanceId":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]},"sortOrder":{"type":"number"},"status":{"type":"string","enum":["Pending","Completed","Skipped","In Progress"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["approvalType","assignee","companyId","completedDate","createdAt","createdBy","dueDate","id","nonConformanceId","notes","sortOrder","status","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"array","items":{"type":"object","properties":{"actionTypeId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"dueDate":{"type":["string","null"]},"id":{"type":"string"},"nonConformanceId":{"type":"string"},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]},"sortOrder":{"type":"number"},"status":{"type":"string","enum":["Pending","Completed","Skipped","In Progress"]},"supplierId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["actionTypeId","assignee","companyId","completedDate","createdAt","createdBy","dueDate","id","nonConformanceId","notes","sortOrder","status","supplierId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}}}}}}}},"/quality/getIssueType":{"post":{"operationId":"quality.getIssueType","summary":"get issue type","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nonConformanceTypeId":{"type":"string"}},"required":["nonConformanceTypeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","updatedAt","updatedBy"]}}}}}}},"/quality/getIssueTypeByName":{"post":{"operationId":"quality.getIssueTypeByName","summary":"get issue type by name","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"excludeId":{"type":"string"}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/quality/getIssueTypes":{"post":{"operationId":"quality.getIssueTypes","summary":"get issue types","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getIssueWorkflows":{"post":{"operationId":"quality.getIssueWorkflows","summary":"get issue workflows","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"approvalRequirements":{"type":["array","null"],"items":{"type":"string","enum":["MRB"]}},"companyId":{"type":"string"},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"requiredActionIds":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":"string","enum":["Internal","External"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","approvalRequirements","companyId","content","createdAt","createdBy","description","id","name","priority","requiredActionIds","source","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getIssueWorkflowsList":{"post":{"operationId":"quality.getIssueWorkflowsList","summary":"get issue workflows list","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"approvalRequirements":{"type":["array","null"],"items":{"type":"string","enum":["MRB"]}},"companyId":{"type":"string"},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"requiredActionIds":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":"string","enum":["Internal","External"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","approvalRequirements","companyId","content","createdAt","createdBy","description","id","name","priority","requiredActionIds","source","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getIssueTypesList":{"post":{"operationId":"quality.getIssueTypesList","summary":"get issue types list","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getQualityActions":{"post":{"operationId":"quality.getQualityActions","summary":"get quality actions","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"actionType":{"type":["string","null"]},"actionTypeId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"completedDate":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"id":{"type":["string","null"]},"items":{"type":["array","null"],"items":{"type":"string"}},"nonConformanceCloseDate":{"type":["string","null"]},"nonConformanceDueDate":{"type":["string","null"]},"nonConformanceId":{"type":["string","null"]},"nonConformanceName":{"type":["string","null"]},"nonConformanceOpenDate":{"type":["string","null"]},"nonConformanceStatus":{"type":["string","null"],"enum":["Closed","In Progress","Registered"]},"nonConformanceTypeName":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"readableNonConformanceId":{"type":["string","null"]},"sortOrder":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Pending","Completed","Skipped","In Progress"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["actionType","actionTypeId","assignee","companyId","completedDate","createdAt","createdBy","dueDate","id","items","nonConformanceCloseDate","nonConformanceDueDate","nonConformanceId","nonConformanceName","nonConformanceOpenDate","nonConformanceStatus","nonConformanceTypeName","notes","readableNonConformanceId","sortOrder","status","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getQualityDocument":{"post":{"operationId":"quality.getQualityDocument","summary":"get quality document","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["Active","Draft","Archived"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"},"qualityDocumentStep":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"fileTypes":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"listValues":{"type":["array","null"],"items":{"type":"string"}},"maxValue":{"type":["number","null"]},"minValue":{"type":["number","null"]},"name":{"type":"string"},"qualityDocumentId":{"type":"string"},"required":{"type":["boolean","null"]},"sortOrder":{"type":"number"},"type":{"type":"string","enum":["Value","Measurement","Checkbox","Timestamp","Person","List","File","Task","Inspection"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","description","fileTypes","id","listValues","maxValue","minValue","name","qualityDocumentId","required","sortOrder","type","unitOfMeasureCode","updatedAt","updatedBy"]}}},"required":["assignee","companyId","content","createdAt","createdBy","description","id","name","status","tags","updatedAt","updatedBy","version","qualityDocumentStep"]}}}}}}},"/quality/getQualityDocumentSteps":{"post":{"operationId":"quality.getQualityDocumentSteps","summary":"get quality document steps","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"qualityDocumentId":{"type":"string"}},"required":["qualityDocumentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"fileTypes":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"listValues":{"type":["array","null"],"items":{"type":"string"}},"maxValue":{"type":["number","null"]},"minValue":{"type":["number","null"]},"name":{"type":"string"},"qualityDocumentId":{"type":"string"},"required":{"type":["boolean","null"]},"sortOrder":{"type":"number"},"type":{"type":"string","enum":["Value","Measurement","Checkbox","Timestamp","Person","List","File","Task","Inspection"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","description","fileTypes","id","listValues","maxValue","minValue","name","qualityDocumentId","required","sortOrder","type","unitOfMeasureCode","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getQualityDocumentVersions":{"post":{"operationId":"quality.getQualityDocumentVersions","summary":"get quality document versions","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"number"}},"required":["name","version"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["Active","Draft","Archived"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"}},"required":["assignee","companyId","content","createdAt","createdBy","description","id","name","status","tags","updatedAt","updatedBy","version"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getQualityDocuments":{"post":{"operationId":"quality.getQualityDocuments","summary":"get quality documents","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"anyOf":[{"type":"string"},{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0}}}]}},"required":["search"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Active","Draft","Archived"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"version":{"type":["number","null"]},"versions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["assignee","companyId","id","name","status","tags","version","versions"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getQualityDocumentsList":{"post":{"operationId":"quality.getQualityDocumentsList","summary":"get quality documents list","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"version":{"type":"number"},"status":{"type":"string"}},"required":["id","name","version","status"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getQualityFiles":{"post":{"operationId":"quality.getQualityFiles","summary":"get quality files","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":["string","null"]},"updated_at":{"type":["string","null"]},"created_at":{"type":["string","null"]},"last_accessed_at":{"type":["string","null"]},"metadata":{"type":["object","null"],"additionalProperties":{}},"bucket_id":{"type":["string","null"]},"owner":{"type":["string","null"]},"buckets":{"type":["object","null"],"properties":{"id":{"type":"string"},"type":{"anyOf":[{},{"type":"string","enum":["STANDARD"]},{"type":"string","enum":["ANALYTICS"]},{"type":"null"}]},"name":{"type":"string"},"owner":{"type":"string"},"file_size_limit":{"type":["number","null"]},"allowed_mime_types":{"type":["array","null"],"items":{"type":"string"}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"public":{"type":"boolean"},"versioning_status":{"type":["string","null"],"enum":["DISABLED","ENABLED","SUSPENDED"]}},"required":["id","name","owner","created_at","updated_at","public"]},"version":{"type":["string","null"]},"archived_at":{"type":["string","null"]},"is_delete_marker":{"type":["boolean","null"]},"is_versioned":{"type":["boolean","null"]}},"required":["name","id","updated_at","created_at","last_accessed_at","metadata"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getRequiredActionsList":{"post":{"operationId":"quality.getRequiredActionsList","summary":"get required actions list","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getRequiredActions":{"post":{"operationId":"quality.getRequiredActions","summary":"get required actions","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"systemType":{"type":["string","null"],"enum":["Preventive","Containment","Corrective","Verification","Communication"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","id","name","systemType","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getRequiredAction":{"post":{"operationId":"quality.getRequiredAction","summary":"get required action","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requiredActionId":{"type":"string"}},"required":["requiredActionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"systemType":{"type":["string","null"],"enum":["Preventive","Containment","Corrective","Verification","Communication"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","id","name","systemType","updatedAt","updatedBy"]}}}}}}},"/quality/getRisk":{"post":{"operationId":"quality.getRisk","summary":"get risk","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"riskId":{"type":"string"}},"required":["riskId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":["string","null"]},"description":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"likelihood":{"type":["number","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"severity":{"type":["number","null"]},"source":{"type":"string","enum":["Customer","Supplier","Item","Job","General","Quote Line","Work Center"]},"sourceId":{"type":["string","null"]},"status":{"type":"string","enum":["Open","Closed","In Review","Mitigating","Accepted"]},"title":{"type":"string"},"type":{"type":"string","enum":["Risk","Opportunity"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","description","id","itemId","likelihood","notes","severity","source","sourceId","status","title","type","updatedAt","updatedBy"]}}}}}}},"/quality/getRisks":{"post":{"operationId":"quality.getRisks","summary":"get risks","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{},"source":{},"assignee":{"type":"array","items":{"type":"string"}}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"description":{"type":["string","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"likelihood":{"type":["number","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"severity":{"type":["number","null"]},"source":{"type":["string","null"],"enum":["Customer","Supplier","Item","Job","General","Quote Line","Work Center"]},"sourceId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Open","Closed","In Review","Mitigating","Accepted"]},"title":{"type":["string","null"]},"type":{"type":["string","null"],"enum":["Risk","Opportunity"]},"updatedAt":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workCenterName":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","description","id","itemId","likelihood","notes","severity","source","sourceId","status","title","type","updatedAt","workCenterId","workCenterName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/insertIssueReviewer":{"post":{"operationId":"quality.insertIssueReviewer","summary":"insert issue reviewer","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1},"nonConformanceId":{"type":"string"}},"required":["title","nonConformanceId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/updateIssueActionProcesses":{"post":{"operationId":"quality.updateIssueActionProcesses","summary":"update issue action processes","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"actionTaskId":{"type":"string"},"processIds":{"type":"array","items":{"type":"string"}}},"required":["actionTaskId","processIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/updateIssueStatus":{"post":{"operationId":"quality.updateIssueStatus","summary":"update issue status","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Registered","In Progress","Closed"]},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}]},"closeDate":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","status","assignee","closeDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/updateIssueTaskStatus":{"post":{"operationId":"quality.updateIssueTaskStatus","summary":"update issue task status","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Pending","Completed","Skipped","In Progress"]},"type":{"type":"string","enum":["investigation","action","approval","review"]},"assignee":{"type":["string","null"]}},"required":["id","status","type"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"nonConformanceId":{"type":"string"}},"required":["nonConformanceId"]}}}}}}},"/quality/updateIssueTaskContent":{"post":{"operationId":"quality.updateIssueTaskContent","summary":"update issue task content","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["action","approval","review"]},"content":{}},"required":["id","type","content"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"nonConformanceId":{"type":"string"}},"required":["nonConformanceId"]}}}}}}},"/quality/insertGauge":{"post":{"operationId":"quality.insertGauge","summary":"insert gauge","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"gaugeId":{"type":"string"},"gaugeTypeId":{"type":"string"},"gaugeRole":{"type":"string","enum":["Master","Standard"]},"gaugeCalibrationStatus":{"type":"string","enum":["Pending","In-Calibration","Out-of-Calibration"]},"supplierId":{"type":"string"},"modelNumber":{"type":"string"},"serialNumber":{"type":"string"},"description":{"type":"string"},"dateAcquired":{"type":"string"},"lastCalibrationDate":{"type":"string"},"nextCalibrationDate":{"type":"string"},"locationId":{"type":"string"},"storageUnitId":{"type":"string"},"calibrationIntervalInMonths":{"type":"number"},"customFields":{}},"required":["gaugeTypeId","gaugeRole","gaugeCalibrationStatus"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"gaugeId":{"type":"string"}},"required":["id","gaugeId"]}}}}}}},"/quality/updateGauge":{"post":{"operationId":"quality.updateGauge","summary":"update gauge","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"gaugeId":{"type":"string"},"gaugeTypeId":{"type":"string"},"gaugeRole":{"type":"string","enum":["Master","Standard"]},"gaugeCalibrationStatus":{"type":"string","enum":["Pending","In-Calibration","Out-of-Calibration"]},"supplierId":{"type":["string","null"]},"modelNumber":{"type":["string","null"]},"serialNumber":{"type":["string","null"]},"description":{"type":["string","null"]},"dateAcquired":{"type":["string","null"]},"lastCalibrationDate":{"type":["string","null"]},"nextCalibrationDate":{"type":["string","null"]},"locationId":{"type":["string","null"]},"storageUnitId":{"type":["string","null"]},"calibrationIntervalInMonths":{"type":"number"},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/quality/upsertGaugeCalibrationRecord":{"post":{"operationId":"quality.upsertGaugeCalibrationRecord","summary":"upsert gauge calibration record","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"gaugeId":{"type":"string","minLength":1},"supplierId":{"type":"string"},"dateCalibrated":{"type":"string","minLength":1},"requiresAction":{"type":"boolean"},"requiresAdjustment":{"type":"boolean"},"requiresRepair":{"type":"boolean"},"temperature":{"type":"number","minimum":-200,"maximum":500},"humidity":{"type":"number","minimum":0,"maximum":1},"approvedBy":{"type":"string"},"measurementStandard":{"type":"string"},"calibrationAttempts":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"number"},"actual":{"type":"number"}},"required":["reference","actual"]}},"notes":{"type":"string"},"inspectionStatus":{"type":"string","enum":["Pass","Fail"]},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["gaugeId","dateCalibrated","calibrationAttempts","inspectionStatus"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/quality/upsertGaugeType":{"post":{"operationId":"quality.upsertGaugeType","summary":"upsert gauge type","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/insertIssue":{"post":{"operationId":"quality.insertIssue","summary":"insert issue","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nonConformanceId":{"type":"string"},"name":{"type":"string"},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"source":{"type":"string","enum":["Internal","External"]},"locationId":{"type":"string"},"nonConformanceTypeId":{"type":"string"},"openDate":{"type":"string"},"description":{"type":"string"},"nonConformanceWorkflowId":{"type":"string"},"dueDate":{"type":"string"},"closeDate":{"type":"string"},"quantity":{"type":"number"},"requiredActionIds":{"type":"array","items":{"type":"string"}},"approvalRequirements":{"type":"array","items":{"type":"string","enum":["MRB"]}},"items":{"type":"array","items":{"type":"string"}},"jobOperationId":{"type":"string"},"customerId":{"type":"string"},"salesOrderLineId":{"type":"string"},"operationSupplierProcessId":{"type":"string"},"customFields":{}},"required":["name","priority","source","locationId","nonConformanceTypeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"nonConformanceId":{"type":"string"}},"required":["id","nonConformanceId"]}}}}}}},"/quality/updateIssue":{"post":{"operationId":"quality.updateIssue","summary":"update issue","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"nonConformanceId":{"type":"string"},"name":{"type":"string"},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"source":{"type":"string","enum":["Internal","External"]},"locationId":{"type":"string"},"nonConformanceTypeId":{"type":"string"},"nonConformanceWorkflowId":{"type":["string","null"]},"openDate":{"type":"string"},"dueDate":{"type":["string","null"]},"closeDate":{"type":["string","null"]},"description":{"type":["string","null"]},"quantity":{"type":"number"},"requiredActionIds":{"type":"array","items":{"type":"string"}},"approvalRequirements":{"type":"array","items":{"type":"string","enum":["MRB"]}},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/quality/upsertIssueWorkflow":{"post":{"operationId":"quality.upsertIssueWorkflow","summary":"upsert issue workflow","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"content":{"type":"string","minLength":1},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"source":{"type":"string","enum":["Internal","External"]},"requiredActionIds":{"type":"string"},"approvalRequirements":{"type":"array","items":{"type":"string","enum":["MRB"]}},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","content","priority","source"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/quality/upsertIssueType":{"post":{"operationId":"quality.upsertIssueType","summary":"upsert issue type","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/upsertRequiredAction":{"post":{"operationId":"quality.upsertRequiredAction","summary":"upsert required action","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"active":{"type":"boolean"},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/upsertQualityDocument":{"post":{"operationId":"quality.upsertQualityDocument","summary":"upsert quality document","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"version":{"type":"number","minimum":0},"content":{"type":"string"},"copyFromId":{"type":"string"},"id":{"type":"string"}},"required":["name","version"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/quality/upsertRisk":{"post":{"operationId":"quality.upsertRisk","summary":"upsert risk","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":"string"},"description":{"type":"string"},"itemId":{"type":"string"},"notes":{"type":"string"},"source":{"type":"string","enum":["Customer","General","Item","Job","Quote Line","Supplier","Work Center"]},"sourceId":{"type":"string"},"status":{"type":"string","enum":["Open","In Review","Mitigating","Closed","Accepted"]},"title":{"type":"string","minLength":1},"type":{"type":"string","enum":["Risk","Opportunity"]},"severity":{"type":"number"},"likelihood":{"type":"number"},"id":{"type":"string"}},"required":["source","status","title","type","severity","likelihood"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/quality/getInspections":{"post":{"operationId":"quality.getInspections","summary":"get inspections","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{"type":["string","null"]},"source":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"acceptanceNumber":{"type":"number"},"aql":{"type":["number","null"]},"codeLetter":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"dispositionedAt":{"type":["string","null"]},"dispositionedBy":{"type":["string","null"]},"id":{"type":"string"},"inspectionDocumentId":{"type":["string","null"]},"inspectionId":{"type":"string"},"inspectionLevel":{"type":["string","null"],"enum":["I","II","III","S1","S2","S3","S4"]},"itemId":{"type":"string"},"itemReadableId":{"type":["string","null"]},"lotSize":{"type":"number"},"notes":{"type":["string","null"]},"rejectionNumber":{"type":"number"},"sampleSize":{"type":"number"},"samplingPlanType":{"type":"string","enum":["All","First","Percentage","AQL"]},"samplingStandard":{"type":"string","enum":["ANSI_Z1_4","ISO_2859_1"]},"severity":{"type":["string","null"],"enum":["Normal","Tightened","Reduced"]},"sourceDocument":{"type":"string","enum":["Receipt","Job Operation"]},"sourceDocumentId":{"type":"string"},"sourceDocumentLineId":{"type":["string","null"]},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Pending","Failed","In Progress","Passed","Partial"]},"supplierId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"item":{"type":"object","properties":{"readableId":{"type":"string"},"name":{"type":"string"}},"required":["readableId","name"]},"supplier":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]},"inspectionSample":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["Pending","Failed","Passed"]}},"required":["status"]}}},"required":["acceptanceNumber","aql","codeLetter","companyId","createdAt","createdBy","dispositionedAt","dispositionedBy","id","inspectionDocumentId","inspectionId","inspectionLevel","itemId","itemReadableId","lotSize","notes","rejectionNumber","sampleSize","samplingPlanType","samplingStandard","severity","sourceDocument","sourceDocumentId","sourceDocumentLineId","sourceDocumentReadableId","status","supplierId","updatedAt","updatedBy","item","supplier","inspectionSample"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getInspection":{"post":{"operationId":"quality.getInspection","summary":"get inspection","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/quality/getReceiptInspections":{"post":{"operationId":"quality.getReceiptInspections","summary":"get receipt inspections","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receiptId":{"type":"string"}},"required":["receiptId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"inspectionId":{"type":"string"},"itemId":{"type":"string"},"itemReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Pending","Failed","In Progress","Passed","Partial"]}},"required":["id","inspectionId","itemId","itemReadableId","status"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getInspectionTrackedEntities":{"post":{"operationId":"quality.getInspectionTrackedEntities","summary":"get inspection tracked entities","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receiptLineId":{"type":"string"}},"required":["receiptLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expirationDate":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":["string","null"]},"quantity":{"type":"number"},"readableId":{"type":["string","null"]},"sourceDocument":{"type":"string"},"sourceDocumentId":{"type":"string"},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"updatedBy":{"type":["string","null"]}},"required":["attributes","companyId","createdAt","createdBy","expirationDate","id","itemId","quantity","readableId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getInspectionSamplingPlans":{"post":{"operationId":"quality.getInspectionSamplingPlans","summary":"get inspection sampling plans","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspectionId":{"type":"string"}},"required":["inspectionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"acceptanceNumber":{"type":"number"},"codeLetter":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"gaugeId":{"type":["string","null"]},"gaugeRecordedAt":{"type":["string","null"]},"id":{"type":"string"},"inspectionFeatureId":{"type":"string"},"inspectionId":{"type":"string"},"rejectionNumber":{"type":"number"},"sampleSize":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"inspectionFeature":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"description":{"type":["string","null"]},"pageNumber":{"type":"number"},"type":{"type":"string","enum":["Value","Measurement","Checkbox","Timestamp","Person","List","File","Task","Inspection"]},"nominalValue":{"type":["string","null"]},"tolerancePlus":{"type":["string","null"]},"toleranceMinus":{"type":["string","null"]},"unit":{"type":["string","null"]},"gaugeTypeId":{"type":["string","null"]},"gaugeType":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]}},"required":["id","label","description","pageNumber","type","nominalValue","tolerancePlus","toleranceMinus","unit","gaugeTypeId","gaugeType"]}},"required":["acceptanceNumber","codeLetter","companyId","createdAt","createdBy","gaugeId","gaugeRecordedAt","id","inspectionFeatureId","inspectionId","rejectionNumber","sampleSize","updatedAt","updatedBy","inspectionFeature"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getInspectionGauges":{"post":{"operationId":"quality.getInspectionGauges","summary":"get inspection gauges","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspectionId":{"type":"string"}},"required":["inspectionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"gaugeId":{"type":["string","null"]},"description":{"type":["string","null"]},"gaugeTypeId":{"type":["string","null"]},"gaugeStatus":{"type":["string","null"],"enum":["Inactive","Active"]},"gaugeCalibrationStatusWithDueDate":{"type":["string","null"],"enum":["Pending","In-Calibration","Out-of-Calibration"]},"nextCalibrationDate":{"type":["string","null"]}},"required":["id","gaugeId","description","gaugeTypeId","gaugeStatus","gaugeCalibrationStatusWithDueDate","nextCalibrationDate"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getInspectionMeasurements":{"post":{"operationId":"quality.getInspectionMeasurements","summary":"get inspection measurements","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspectionId":{"type":"string"}},"required":["inspectionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"inspectedAt":{"type":["string","null"]},"inspectedBy":{"type":["string","null"]},"inspectionFeatureId":{"type":"string"},"inspectionId":{"type":"string"},"inspectionSampleId":{"type":"string"},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["Pending","Failed","Passed"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"value":{"type":["number","null"]}},"required":["companyId","createdAt","createdBy","id","inspectedAt","inspectedBy","inspectionFeatureId","inspectionId","inspectionSampleId","notes","status","updatedAt","updatedBy","value"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getItemInspectionDocumentAssignments":{"post":{"operationId":"quality.getItemInspectionDocumentAssignments","summary":"get item inspection document assignments","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"inspectionDocumentId":{"type":"string"},"itemId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"usage":{"type":"string","enum":["Receipt"]}},"required":["companyId","createdAt","createdBy","inspectionDocumentId","itemId","updatedAt","updatedBy","usage"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/upsertItemInspectionDocumentAssignment":{"post":{"operationId":"quality.upsertItemInspectionDocumentAssignment","summary":"upsert item inspection document assignment","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"usage":{"type":"string","enum":["Receipt"]},"inspectionDocumentId":{"type":"string"}},"required":["itemId","usage"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/getInspectionDocuments":{"post":{"operationId":"quality.getInspectionDocuments","summary":"get inspection documents","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"anyOf":[{"type":"string"},{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0}}}]}},"required":["search"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"companyId":{"type":"string"},"partId":{"type":["string","null"]},"createdBy":{"type":"string"},"updatedBy":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":["string","null"]},"content":{"type":"object","properties":{"drawingNumber":{"type":["string","null"]},"pdfUrl":{"type":["string","null"]},"annotations":{"type":"array","items":{}},"features":{"type":"array","items":{}}},"required":["drawingNumber","pdfUrl","annotations","features"]},"sampling":{"type":"object","properties":{"samplingPlanType":{"type":["string","null"]},"samplingSampleSize":{"type":["number","null"]},"samplingPercentage":{"type":["number","null"]},"samplingAql":{"type":["number","null"]},"samplingInspectionLevel":{"type":["string","null"]},"samplingSeverity":{"type":["string","null"]}},"required":["samplingPlanType","samplingSampleSize","samplingPercentage","samplingAql","samplingInspectionLevel","samplingSeverity"]}},"required":["id","name","companyId","partId","createdBy","updatedBy","createdAt","updatedAt","content","sampling"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getInspectionDocumentsForItem":{"post":{"operationId":"quality.getInspectionDocumentsForItem","summary":"get inspection documents for item","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"fileName":{"type":["string","null"]},"drawingNumber":{"type":["string","null"]},"version":{"type":"number"}},"required":["id","fileName","drawingNumber","version"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getInspectionDocument":{"post":{"operationId":"quality.getInspectionDocument","summary":"get inspection document","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"companyId":{"type":"string"},"partId":{"type":["string","null"]},"createdBy":{"type":"string"},"updatedBy":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":["string","null"]},"content":{"type":"object","properties":{"drawingNumber":{"type":["string","null"]},"pdfUrl":{"type":["string","null"]},"annotations":{"type":"array","items":{}},"features":{"type":"array","items":{}}},"required":["drawingNumber","pdfUrl","annotations","features"]},"sampling":{"type":"object","properties":{"samplingPlanType":{"type":["string","null"]},"samplingSampleSize":{"type":["number","null"]},"samplingPercentage":{"type":["number","null"]},"samplingAql":{"type":["number","null"]},"samplingInspectionLevel":{"type":["string","null"]},"samplingSeverity":{"type":["string","null"]}},"required":["samplingPlanType","samplingSampleSize","samplingPercentage","samplingAql","samplingInspectionLevel","samplingSeverity"]}},"required":["id","name","companyId","partId","createdBy","updatedBy","createdAt","updatedAt","content","sampling"]}}}}}}},"/quality/upsertInspectionDocument":{"post":{"operationId":"quality.upsertInspectionDocument","summary":"upsert inspection document","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"partId":{"type":"string","minLength":1},"drawingNumber":{"type":"string"},"pdfUrl":{"type":"string"},"annotations":{"type":"string"},"features":{"type":"string"},"id":{"type":"string"},"pageCount":{"type":"number"},"defaultPageWidth":{"type":"number"},"defaultPageHeight":{"type":"number"}},"required":["partId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/quality/deleteInspectionDocument":{"post":{"operationId":"quality.deleteInspectionDocument","summary":"delete inspection document","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"storagePath":{"type":["string","null"]}},"required":["storagePath"]}}}}}}},"/quality/getInspectionFeatures":{"post":{"operationId":"quality.getInspectionFeatures","summary":"get inspection features","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspectionDocumentId":{"type":"string"}},"required":["inspectionDocumentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"inspectionDocumentId":{"type":"string"},"companyId":{"type":"string"},"pageNumber":{"type":"number"},"label":{"type":"string"},"description":{"type":["string","null"]},"nominalValue":{"type":["string","null"]},"tolerancePlus":{"type":["string","null"]},"toleranceMinus":{"type":["string","null"]},"unit":{"type":["string","null"]},"type":{"type":"string"},"samplingPlanType":{"type":["string","null"]},"samplingSampleSize":{"type":["number","null"]},"samplingPercentage":{"type":["number","null"]},"samplingAql":{"type":["number","null"]},"samplingInspectionLevel":{"type":["string","null"]},"samplingSeverity":{"type":["string","null"]},"gaugeTypeId":{"type":["string","null"]},"balloonId":{"type":["string","null"]},"createdBy":{"type":"string"},"updatedBy":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":["string","null"]}},"required":["id","inspectionDocumentId","companyId","pageNumber","label","description","nominalValue","tolerancePlus","toleranceMinus","unit","type","samplingPlanType","samplingSampleSize","samplingPercentage","samplingAql","samplingInspectionLevel","samplingSeverity","gaugeTypeId","balloonId","createdBy","updatedBy","createdAt","updatedAt"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getBalloons":{"post":{"operationId":"quality.getBalloons","summary":"get balloons","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspectionDocumentId":{"type":"string"}},"required":["inspectionDocumentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"inspectionDocumentId":{"type":"string"},"companyId":{"type":"string"},"inspectionFeatureId":{"type":"string"},"pageNumber":{"type":"number"},"regionX":{"type":"number"},"regionY":{"type":"number"},"regionWidth":{"type":"number"},"regionHeight":{"type":"number"},"xCoordinate":{"type":"number"},"yCoordinate":{"type":"number"},"createdBy":{"type":"string"},"updatedBy":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":["string","null"]},"balloonAnchorId":{"type":"string"}},"required":["id","inspectionDocumentId","companyId","inspectionFeatureId","pageNumber","regionX","regionY","regionWidth","regionHeight","xCoordinate","yCoordinate","createdBy","updatedBy","createdAt","updatedAt","balloonAnchorId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/getInspectionPlan":{"post":{"operationId":"quality.getInspectionPlan","summary":"get inspection plan","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspectionDocumentId":{"type":"string"}},"required":["inspectionDocumentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"featureId":{"type":"string"},"balloonId":{"type":["string","null"]},"inspectionDocumentId":{"type":"string"},"pageNumber":{"type":"number"},"label":{"type":"string"},"description":{"type":["string","null"]},"nominalValue":{"type":["string","null"]},"tolerancePlus":{"type":["string","null"]},"toleranceMinus":{"type":["string","null"]},"unit":{"type":["string","null"]},"regionX":{"type":["number","null"]},"regionY":{"type":["number","null"]},"regionWidth":{"type":["number","null"]},"regionHeight":{"type":["number","null"]},"xCoordinate":{"type":["number","null"]},"yCoordinate":{"type":["number","null"]}},"required":["id","featureId","balloonId","inspectionDocumentId","pageNumber","label","description","nominalValue","tolerancePlus","toleranceMinus","unit","regionX","regionY","regionWidth","regionHeight","xCoordinate","yCoordinate"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/quality/updateInspectionDocumentSampling":{"post":{"operationId":"quality.updateInspectionDocumentSampling","summary":"update inspection document sampling","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"samplingPlanType":{"anyOf":[{"type":"string","enum":["All","First","Percentage","AQL"]},{"type":"null"}]},"samplingSampleSize":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"samplingPercentage":{"anyOf":[{"type":"number","exclusiveMinimum":0,"maximum":100},{"type":"null"}]},"samplingAql":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]},"samplingInspectionLevel":{"anyOf":[{"type":"string","enum":["I","II","III","S1","S2","S3","S4"]},{"type":"null"}]},"samplingSeverity":{"anyOf":[{"type":"string","enum":["Normal","Tightened","Reduced"]},{"type":"null"}]},"inspectionDocumentId":{"type":"string"}},"required":["samplingPlanType","samplingSampleSize","samplingPercentage","samplingAql","samplingInspectionLevel","samplingSeverity","inspectionDocumentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/quality/saveInspectionDocumentAtomic":{"post":{"operationId":"quality.saveInspectionDocumentAtomic","summary":"save inspection document atomic","tags":["quality"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspectionDocumentId":{"type":"string"},"pdfUrl":{"type":["string","null"]},"pageCount":{"type":"number"},"defaultPageWidth":{"type":"number"},"defaultPageHeight":{"type":"number"},"features":{},"balloons":{}},"required":["inspectionDocumentId","features","balloons"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/resources/activateWorkCenter":{"post":{"operationId":"resources.activateWorkCenter","summary":"activate work center","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteAbility":{"post":{"operationId":"resources.deleteAbility","summary":"delete ability","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"abilityId":{"type":"string"},"hardDelete":{"type":"boolean"}},"required":["abilityId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteContractor":{"post":{"operationId":"resources.deleteContractor","summary":"delete contractor","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contractorId":{"type":"string"}},"required":["contractorId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteEmployeeAbility":{"post":{"operationId":"resources.deleteEmployeeAbility","summary":"delete employee ability","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeAbilityId":{"type":"string"}},"required":["employeeAbilityId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteFailureMode":{"post":{"operationId":"resources.deleteFailureMode","summary":"delete failure mode","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"failureModeId":{"type":"string"}},"required":["failureModeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteLocation":{"post":{"operationId":"resources.deleteLocation","summary":"delete location","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteMaintenanceDispatch":{"post":{"operationId":"resources.deleteMaintenanceDispatch","summary":"delete maintenance dispatch","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dispatchId":{"type":"string"}},"required":["dispatchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteMaintenanceDispatchEvent":{"post":{"operationId":"resources.deleteMaintenanceDispatchEvent","summary":"delete maintenance dispatch event","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eventId":{"type":"string"}},"required":["eventId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteMaintenanceDispatchItem":{"post":{"operationId":"resources.deleteMaintenanceDispatchItem","summary":"delete maintenance dispatch item","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteMaintenanceSchedule":{"post":{"operationId":"resources.deleteMaintenanceSchedule","summary":"delete maintenance schedule","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deletePartner":{"post":{"operationId":"resources.deletePartner","summary":"delete partner","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"partnerId":{"type":"string"}},"required":["partnerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/activateProcess":{"post":{"operationId":"resources.activateProcess","summary":"activate process","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"processId":{"type":"string"}},"required":["processId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/processDeactivate":{"post":{"operationId":"resources.processDeactivate","summary":"process deactivate","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"processId":{"type":"string"}},"required":["processId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteProcess":{"post":{"operationId":"resources.deleteProcess","summary":"delete process","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"processId":{"type":"string"}},"required":["processId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteShift":{"post":{"operationId":"resources.deleteShift","summary":"delete shift","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shiftId":{"type":"string"}},"required":["shiftId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteSuggestion":{"post":{"operationId":"resources.deleteSuggestion","summary":"delete suggestion","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"suggestionId":{"type":"string"}},"required":["suggestionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteTraining":{"post":{"operationId":"resources.deleteTraining","summary":"delete training","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trainingId":{"type":"string"}},"required":["trainingId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteTrainingAssignment":{"post":{"operationId":"resources.deleteTrainingAssignment","summary":"delete training assignment","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assignmentId":{"type":"string"}},"required":["assignmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteTrainingQuestion":{"post":{"operationId":"resources.deleteTrainingQuestion","summary":"delete training question","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trainingQuestionId":{"type":"string"}},"required":["trainingQuestionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/deleteWorkCenter":{"post":{"operationId":"resources.deleteWorkCenter","summary":"delete work center","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/getAbilities":{"post":{"operationId":"resources.getAbilities","summary":"get abilities","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"employeeAbility":{"type":"array","items":{"type":"object","properties":{"employeeId":{"type":"string"},"expiresAt":{"type":["string","null"]}},"required":["employeeId","expiresAt"]}},"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"curve":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"processId":{"type":["string","null"]},"recertifyEveryDays":{"type":["number","null"]},"shadowWeeks":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["employeeAbility","active","companyId","createdAt","createdBy","curve","id","name","processId","recertifyEveryDays","shadowWeeks","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getAbilitiesList":{"post":{"operationId":"resources.getAbilitiesList","summary":"get abilities list","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"]}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getAbility":{"post":{"operationId":"resources.getAbility","summary":"get ability","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"abilityId":{"type":"string"}},"required":["abilityId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"employeeAbility":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"employeeId":{"type":"string"},"lastTrainingDate":{"type":["string","null"]},"expiresAt":{"type":["string","null"]}},"required":["id","employeeId","lastTrainingDate","expiresAt"]}},"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"curve":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"processId":{"type":["string","null"]},"recertifyEveryDays":{"type":["number","null"]},"shadowWeeks":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["id","name","employeeAbility","active","companyId","createdAt","createdBy","curve","processId","recertifyEveryDays","shadowWeeks","updatedAt","updatedBy"]}}}}}}},"/resources/getContractor":{"post":{"operationId":"resources.getContractor","summary":"get contractor","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contractorId":{"type":"string"}},"required":["contractorId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"abilityIds":{"type":["array","null"],"items":{"type":"string"}},"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"email":{"type":["string","null"]},"firstName":{"type":["string","null"]},"fullName":{"type":["string","null"]},"hoursPerWeek":{"type":["number","null"]},"lastName":{"type":["string","null"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierName":{"type":["string","null"]}},"required":["abilityIds","active","companyId","customFields","email","firstName","fullName","hoursPerWeek","lastName","supplierContactId","supplierId","supplierName"]}}}}}}},"/resources/getContractors":{"post":{"operationId":"resources.getContractors","summary":"get contractors","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"abilityIds":{"type":["array","null"],"items":{"type":"string"}},"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"email":{"type":["string","null"]},"firstName":{"type":["string","null"]},"fullName":{"type":["string","null"]},"hoursPerWeek":{"type":["number","null"]},"lastName":{"type":["string","null"]},"supplierContactId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierName":{"type":["string","null"]}},"required":["abilityIds","active","companyId","customFields","email","firstName","fullName","hoursPerWeek","lastName","supplierContactId","supplierId","supplierName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getEmployeeAbilities":{"post":{"operationId":"resources.getEmployeeAbilities","summary":"get employee abilities","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"}},"required":["employeeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"abilityId":{"type":"string"},"companyId":{"type":"string"},"employeeId":{"type":"string"},"expiresAt":{"type":["string","null"]},"id":{"type":"string"},"lastTrainingDate":{"type":["string","null"]},"ability":{"type":"object","properties":{"id":{"type":"string"},"curve":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"shadowWeeks":{"type":"number"},"process":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["id","curve","shadowWeeks","process"]}},"required":["abilityId","companyId","employeeId","expiresAt","id","lastTrainingDate","ability"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getEmployeeAbility":{"post":{"operationId":"resources.getEmployeeAbility","summary":"get employee ability","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeAbilityId":{"type":"string"}},"required":["employeeAbilityId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"abilityId":{"type":"string"},"companyId":{"type":"string"},"employeeId":{"type":"string"},"expiresAt":{"type":["string","null"]},"id":{"type":"string"},"lastTrainingDate":{"type":["string","null"]}},"required":["abilityId","companyId","employeeId","expiresAt","id","lastTrainingDate"]}}}}}}},"/resources/getFailureMode":{"post":{"operationId":"resources.getFailureMode","summary":"get failure mode","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"failureModeId":{"type":"string"}},"required":["failureModeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["Other","Quality","Maintenance","Operations"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","id","name","type","updatedAt","updatedBy"]}}}}}}},"/resources/getFailureModes":{"post":{"operationId":"resources.getFailureModes","summary":"get failure modes","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["Other","Quality","Maintenance","Operations"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","id","name","type","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getFailureModesList":{"post":{"operationId":"resources.getFailureModesList","summary":"get failure modes list","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getLocation":{"post":{"operationId":"resources.getLocation","summary":"get location","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"addressLine1":{"type":"string"},"addressLine2":{"type":["string","null"]},"city":{"type":"string"},"code":{"type":["string","null"]},"companyId":{"type":"string"},"countryCode":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"name":{"type":"string"},"postalCode":{"type":"string"},"requiresStaffing":{"type":"boolean"},"stateProvince":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"timezone":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["addressLine1","addressLine2","city","code","companyId","countryCode","createdAt","createdBy","customFields","id","latitude","longitude","name","postalCode","requiresStaffing","stateProvince","tags","timezone","updatedAt","updatedBy"]}}}}}}},"/resources/getLocations":{"post":{"operationId":"resources.getLocations","summary":"get locations","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"addressLine1":{"type":"string"},"addressLine2":{"type":["string","null"]},"city":{"type":"string"},"code":{"type":["string","null"]},"companyId":{"type":"string"},"countryCode":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"name":{"type":"string"},"postalCode":{"type":"string"},"requiresStaffing":{"type":"boolean"},"stateProvince":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"timezone":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["addressLine1","addressLine2","city","code","companyId","countryCode","createdAt","createdBy","customFields","id","latitude","longitude","name","postalCode","requiresStaffing","stateProvince","tags","timezone","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getLocationsList":{"post":{"operationId":"resources.getLocationsList","summary":"get locations list","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"timezone":{"type":"string"}},"required":["id","name","timezone"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getMaintenanceDispatch":{"post":{"operationId":"resources.getMaintenanceDispatch","summary":"get maintenance dispatch","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dispatchId":{"type":"string"}},"required":["dispatchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"actualEndTime":{"type":["string","null"]},"actualFailureModeId":{"type":["string","null"]},"actualStartTime":{"type":["string","null"]},"assignee":{},"companyId":{"type":"string"},"completedAt":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"duration":{"type":["number","null"]},"id":{"type":"string"},"locationId":{"type":["string","null"]},"maintenanceDispatchId":{"type":"string"},"maintenanceScheduleId":{"type":["string","null"]},"nonConformanceId":{"type":["string","null"]},"oeeImpact":{"type":"string","enum":["Planned","Down","Impact","No Impact"]},"plannedEndTime":{"type":["string","null"]},"plannedStartTime":{"type":["string","null"]},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"procedureId":{"type":["string","null"]},"severity":{"type":"string","enum":["Preventive","Operator Performed","Support Required","OEM Required"]},"source":{"type":"string","enum":["Non-Conformance","Scheduled","Reactive"]},"status":{"type":"string","enum":["Open","Completed","Cancelled","In Progress","Assigned"]},"suspectedFailureModeId":{"type":["string","null"]},"takesWorkCenterOffline":{"type":"boolean"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"suspectedFailureMode":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"actualFailureMode":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"schedule":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"procedure":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["actualEndTime","actualFailureModeId","actualStartTime","assignee","companyId","completedAt","content","createdAt","createdBy","duration","id","locationId","maintenanceDispatchId","maintenanceScheduleId","nonConformanceId","oeeImpact","plannedEndTime","plannedStartTime","priority","procedureId","severity","source","status","suspectedFailureModeId","takesWorkCenterOffline","updatedAt","updatedBy","workCenterId","suspectedFailureMode","actualFailureMode","schedule","procedure"]}}}}}}},"/resources/getMaintenanceDispatchComments":{"post":{"operationId":"resources.getMaintenanceDispatchComments","summary":"get maintenance dispatch comments","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dispatchId":{"type":"string"}},"required":["dispatchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"comment":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["id","fullName","avatarUrl"]}},"required":["id","comment","createdAt","createdBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getMaintenanceDispatchEvents":{"post":{"operationId":"resources.getMaintenanceDispatchEvents","summary":"get maintenance dispatch events","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dispatchId":{"type":"string"}},"required":["dispatchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"startTime":{"type":"string"},"endTime":{"type":["string","null"]},"duration":{"type":["number","null"]},"notes":{"type":["string","null"]},"employee":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["id","fullName","avatarUrl"]},"workCenter":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["id","startTime","endTime","duration","notes","employee","workCenter"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getMaintenanceDispatchItems":{"post":{"operationId":"resources.getMaintenanceDispatchItems","summary":"get maintenance dispatch items","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dispatchId":{"type":"string"}},"required":["dispatchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"itemId":{"type":"string"},"quantity":{"type":"number"},"unitOfMeasureCode":{"type":"string"},"unitCost":{"type":["number","null"]},"totalCost":{"type":["number","null"]},"item":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]}},"required":["id","name","itemTrackingType"]}},"required":["id","itemId","quantity","unitOfMeasureCode","unitCost","totalCost","item"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getMaintenanceDispatchItemTrackedEntities":{"post":{"operationId":"resources.getMaintenanceDispatchItemTrackedEntities","summary":"get maintenance dispatch item tracked entities","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maintenanceDispatchItemId":{"type":"string"}},"required":["maintenanceDispatchItemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"maintenanceDispatchItemId":{"type":"string"},"quantity":{"type":"number"},"trackedEntityId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"trackedEntity":{"type":"object","properties":{"id":{"type":"string"},"quantity":{"type":"number"},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"readableId":{"type":["string","null"]}},"required":["id","quantity","status","readableId"]}},"required":["companyId","createdAt","createdBy","id","maintenanceDispatchItemId","quantity","trackedEntityId","updatedAt","updatedBy","trackedEntity"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getMaintenanceDispatches":{"post":{"operationId":"resources.getMaintenanceDispatches","summary":"get maintenance dispatches","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{"type":"string"}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"actualEndTime":{"type":["string","null"]},"actualFailureModeId":{"type":["string","null"]},"actualStartTime":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedAt":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"duration":{"type":["number","null"]},"id":{"type":"string"},"locationId":{"type":["string","null"]},"maintenanceDispatchId":{"type":"string"},"maintenanceScheduleId":{"type":["string","null"]},"nonConformanceId":{"type":["string","null"]},"oeeImpact":{"type":"string","enum":["Planned","Down","Impact","No Impact"]},"plannedEndTime":{"type":["string","null"]},"plannedStartTime":{"type":["string","null"]},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"procedureId":{"type":["string","null"]},"severity":{"type":"string","enum":["Preventive","Operator Performed","Support Required","OEM Required"]},"source":{"type":"string","enum":["Non-Conformance","Scheduled","Reactive"]},"status":{"type":"string","enum":["Open","Completed","Cancelled","In Progress","Assigned"]},"suspectedFailureModeId":{"type":["string","null"]},"takesWorkCenterOffline":{"type":"boolean"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]}},"required":["actualEndTime","actualFailureModeId","actualStartTime","assignee","companyId","completedAt","content","createdAt","createdBy","duration","id","locationId","maintenanceDispatchId","maintenanceScheduleId","nonConformanceId","oeeImpact","plannedEndTime","plannedStartTime","priority","procedureId","severity","source","status","suspectedFailureModeId","takesWorkCenterOffline","updatedAt","updatedBy","workCenterId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getMaintenanceDispatchesByLocation":{"post":{"operationId":"resources.getMaintenanceDispatchesByLocation","summary":"get maintenance dispatches by location","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{"type":"string"}}}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"actualEndTime":{"type":"string"},"actualFailureModeId":{"type":"string"},"actualStartTime":{"type":"string"},"assignee":{"type":"string"},"companyId":{"type":"string"},"completedAt":{"type":"string"},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"duration":{"type":"number"},"id":{"type":"string"},"locationId":{"type":"string"},"locationName":{"type":"string"},"maintenanceDispatchId":{"type":"string"},"maintenanceScheduleId":{"type":"string"},"nonConformanceId":{"type":"string"},"oeeImpact":{"type":"string","enum":["Planned","Down","Impact","No Impact"]},"plannedEndTime":{"type":"string"},"plannedStartTime":{"type":"string"},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"severity":{"type":"string","enum":["Preventive","Operator Performed","Support Required","OEM Required"]},"source":{"type":"string","enum":["Non-Conformance","Scheduled","Reactive"]},"status":{"type":"string","enum":["Open","Completed","Cancelled","In Progress","Assigned"]},"suspectedFailureModeId":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"},"workCenterId":{"type":"string"},"workCenterName":{"type":"string"}},"required":["actualEndTime","actualFailureModeId","actualStartTime","assignee","companyId","completedAt","content","createdAt","createdBy","duration","id","locationId","locationName","maintenanceDispatchId","maintenanceScheduleId","nonConformanceId","oeeImpact","plannedEndTime","plannedStartTime","priority","severity","source","status","suspectedFailureModeId","updatedAt","updatedBy","workCenterId","workCenterName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getMaintenanceDispatchWorkCenters":{"post":{"operationId":"resources.getMaintenanceDispatchWorkCenters","summary":"get maintenance dispatch work centers","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dispatchId":{"type":"string"}},"required":["dispatchId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"workCenterId":{"type":"string"},"workCenter":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["id","workCenterId","workCenter"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getMaintenanceSchedule":{"post":{"operationId":"resources.getMaintenanceSchedule","summary":"get maintenance schedule","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"estimatedDuration":{"type":["number","null"]},"frequency":{"type":"string","enum":["Daily","Weekly","Monthly","Quarterly","Annual"]},"friday":{"type":"boolean"},"id":{"type":"string"},"lastGeneratedAt":{"type":["string","null"]},"locationId":{"type":["string","null"]},"monday":{"type":"boolean"},"name":{"type":"string"},"nextDueAt":{"type":["string","null"]},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"procedureId":{"type":["string","null"]},"saturday":{"type":"boolean"},"skipHolidays":{"type":"boolean"},"sunday":{"type":"boolean"},"takesWorkCenterOffline":{"type":"boolean"},"thursday":{"type":"boolean"},"tuesday":{"type":"boolean"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"wednesday":{"type":"boolean"},"workCenterId":{"type":"string"},"workCenter":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["active","companyId","createdAt","createdBy","description","estimatedDuration","frequency","friday","id","lastGeneratedAt","locationId","monday","name","nextDueAt","priority","procedureId","saturday","skipHolidays","sunday","takesWorkCenterOffline","thursday","tuesday","updatedAt","updatedBy","wednesday","workCenterId","workCenter"]}}}}}}},"/resources/getMaintenanceScheduleItems":{"post":{"operationId":"resources.getMaintenanceScheduleItems","summary":"get maintenance schedule items","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"quantity":{"type":"number"},"unitOfMeasureCode":{"type":"string"},"item":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["id","quantity","unitOfMeasureCode","item"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getMaintenanceSchedules":{"post":{"operationId":"resources.getMaintenanceSchedules","summary":"get maintenance schedules","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"active":{"type":"boolean"}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"description":{"type":["string","null"]},"estimatedDuration":{"type":["number","null"]},"frequency":{"type":["string","null"],"enum":["Daily","Weekly","Monthly","Quarterly","Annual"]},"friday":{"type":["boolean","null"]},"id":{"type":["string","null"]},"lastGeneratedAt":{"type":["string","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"monday":{"type":["boolean","null"]},"name":{"type":["string","null"]},"nextDueAt":{"type":["string","null"]},"priority":{"type":["string","null"],"enum":["Low","Medium","High","Critical"]},"procedureId":{"type":["string","null"]},"saturday":{"type":["boolean","null"]},"skipHolidays":{"type":["boolean","null"]},"sunday":{"type":["boolean","null"]},"takesWorkCenterOffline":{"type":["boolean","null"]},"thursday":{"type":["boolean","null"]},"tuesday":{"type":["boolean","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"wednesday":{"type":["boolean","null"]},"workCenterId":{"type":["string","null"]},"workCenterName":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","description","estimatedDuration","frequency","friday","id","lastGeneratedAt","locationId","locationName","monday","name","nextDueAt","priority","procedureId","saturday","skipHolidays","sunday","takesWorkCenterOffline","thursday","tuesday","updatedAt","updatedBy","wednesday","workCenterId","workCenterName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getMaintenanceSchedulesByLocation":{"post":{"operationId":"resources.getMaintenanceSchedulesByLocation","summary":"get maintenance schedules by location","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"active":{"type":"boolean"}}}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":"string"},"estimatedDuration":{"type":"number"},"frequency":{"type":"string","enum":["Daily","Weekly","Monthly","Quarterly","Annual"]},"friday":{"type":"boolean"},"id":{"type":"string"},"lastGeneratedAt":{"type":"string"},"locationId":{"type":"string"},"locationName":{"type":"string"},"monday":{"type":"boolean"},"name":{"type":"string"},"nextDueAt":{"type":"string"},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"saturday":{"type":"boolean"},"sunday":{"type":"boolean"},"takesWorkCenterOffline":{"type":"boolean"},"thursday":{"type":"boolean"},"tuesday":{"type":"boolean"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"},"wednesday":{"type":"boolean"},"workCenterId":{"type":"string"},"workCenterName":{"type":"string"}},"required":["active","companyId","createdAt","createdBy","description","estimatedDuration","frequency","friday","id","lastGeneratedAt","locationId","locationName","monday","name","nextDueAt","priority","saturday","sunday","takesWorkCenterOffline","thursday","tuesday","updatedAt","updatedBy","wednesday","workCenterId","workCenterName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getOutstandingTrainingsForUser":{"post":{"operationId":"resources.getOutstandingTrainingsForUser","summary":"get outstanding trainings for user","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"}},"required":["employeeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"avatarUrl":{"type":"string"},"companyId":{"type":"string"},"completedAt":{"type":"string"},"completionId":{"type":"number"},"currentPeriod":{"type":"string"},"employeeId":{"type":"string"},"employeeName":{"type":"string"},"employeeStartDate":{"type":"string"},"frequency":{"type":"string","enum":["Quarterly","Annual","Once"]},"status":{"type":"string"},"trainingAssignmentId":{"type":"string"},"trainingId":{"type":"string"},"trainingName":{"type":"string"},"trainingType":{"type":"string","enum":["Mandatory","Optional"]}},"required":["avatarUrl","companyId","completedAt","completionId","currentPeriod","employeeId","employeeName","employeeStartDate","frequency","status","trainingAssignmentId","trainingId","trainingName","trainingType"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getTrainingAssignmentStatusForEmployee":{"post":{"operationId":"resources.getTrainingAssignmentStatusForEmployee","summary":"get training assignment status for employee","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"}},"required":["employeeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"avatarUrl":{"type":"string"},"companyId":{"type":"string"},"completedAt":{"type":"string"},"completionId":{"type":"number"},"currentPeriod":{"type":"string"},"employeeId":{"type":"string"},"employeeName":{"type":"string"},"employeeStartDate":{"type":"string"},"frequency":{"type":"string","enum":["Quarterly","Annual","Once"]},"status":{"type":"string"},"trainingAssignmentId":{"type":"string"},"trainingId":{"type":"string"},"trainingName":{"type":"string"},"trainingType":{"type":"string","enum":["Mandatory","Optional"]}},"required":["avatarUrl","companyId","completedAt","completionId","currentPeriod","employeeId","employeeName","employeeStartDate","frequency","status","trainingAssignmentId","trainingId","trainingName","trainingType"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getPartner":{"post":{"operationId":"resources.getPartner","summary":"get partner","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"partnerId":{"type":"string"},"abilityId":{"type":"string"}},"required":["partnerId","abilityId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"abilityId":{"type":["string","null"]},"abilityName":{"type":["string","null"]},"active":{"type":["boolean","null"]},"city":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"hoursPerWeek":{"type":["number","null"]},"id":{"type":["string","null"]},"state":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"supplierName":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["abilityId","abilityName","active","city","companyId","createdAt","createdBy","customFields","hoursPerWeek","id","state","supplierId","supplierLocationId","supplierName","tags","updatedAt","updatedBy"]}}}}}}},"/resources/getPartnerBySupplierId":{"post":{"operationId":"resources.getPartnerBySupplierId","summary":"get partner by supplier id","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"partnerId":{"type":"string"}},"required":["partnerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"abilityId":{"type":["string","null"]},"abilityName":{"type":["string","null"]},"active":{"type":["boolean","null"]},"city":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"hoursPerWeek":{"type":["number","null"]},"id":{"type":["string","null"]},"state":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"supplierName":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["abilityId","abilityName","active","city","companyId","createdAt","createdBy","customFields","hoursPerWeek","id","state","supplierId","supplierLocationId","supplierName","tags","updatedAt","updatedBy"]}}}}}}},"/resources/getPartners":{"post":{"operationId":"resources.getPartners","summary":"get partners","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"abilityId":{"type":["string","null"]},"abilityName":{"type":["string","null"]},"active":{"type":["boolean","null"]},"city":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"hoursPerWeek":{"type":["number","null"]},"id":{"type":["string","null"]},"state":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"supplierName":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["abilityId","abilityName","active","city","companyId","createdAt","createdBy","customFields","hoursPerWeek","id","state","supplierId","supplierLocationId","supplierName","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getProcess":{"post":{"operationId":"resources.getProcess","summary":"get process","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"processId":{"type":"string"}},"required":["processId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":["boolean","null"]},"batchable":{"type":["boolean","null"]},"batchRules":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"batchType":{"type":["string","null"],"enum":["Sequential","Simultaneous"]},"companyId":{"type":["string","null"]},"completeAllOnScan":{"type":["boolean","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultStandardFactor":{"type":["string","null"],"enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"processType":{"type":["string","null"],"enum":["Inspection","Process","Assembly","Outside Processing"]},"requiresAbility":{"type":["boolean","null"]},"suppliers":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenters":{"type":["array","null"],"items":{"type":"string"}}},"required":["active","batchable","batchRules","batchType","companyId","completeAllOnScan","createdAt","createdBy","customFields","defaultStandardFactor","id","name","processType","requiresAbility","suppliers","tags","updatedAt","updatedBy","workCenters"]}}}}}}},"/resources/getProcesses":{"post":{"operationId":"resources.getProcesses","summary":"get processes","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"batchable":{"type":["boolean","null"]},"batchRules":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"batchType":{"type":["string","null"],"enum":["Sequential","Simultaneous"]},"companyId":{"type":["string","null"]},"completeAllOnScan":{"type":["boolean","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultStandardFactor":{"type":["string","null"],"enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"processType":{"type":["string","null"],"enum":["Inspection","Process","Assembly","Outside Processing"]},"requiresAbility":{"type":["boolean","null"]},"suppliers":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenters":{"type":["array","null"],"items":{"type":"string"}}},"required":["active","batchable","batchRules","batchType","companyId","completeAllOnScan","createdAt","createdBy","customFields","defaultStandardFactor","id","name","processType","requiresAbility","suppliers","tags","updatedAt","updatedBy","workCenters"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getProcessesList":{"post":{"operationId":"resources.getProcessesList","summary":"get processes list","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getSuggestion":{"post":{"operationId":"resources.getSuggestion","summary":"get suggestion","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"suggestionId":{"type":"string"}},"required":["suggestionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"attachmentPath":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"emoji":{"type":["string","null"]},"employeeAvatarUrl":{"type":["string","null"]},"employeeName":{"type":["string","null"]},"id":{"type":["string","null"]},"path":{"type":["string","null"]},"suggestion":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"userId":{"type":["string","null"]}},"required":["attachmentPath","companyId","createdAt","emoji","employeeAvatarUrl","employeeName","id","path","suggestion","tags","userId"]}}}}}}},"/resources/getSuggestions":{"post":{"operationId":"resources.getSuggestions","summary":"get suggestions","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"attachmentPath":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"emoji":{"type":["string","null"]},"employeeAvatarUrl":{"type":["string","null"]},"employeeName":{"type":["string","null"]},"id":{"type":["string","null"]},"path":{"type":["string","null"]},"suggestion":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"userId":{"type":["string","null"]}},"required":["attachmentPath","companyId","createdAt","emoji","employeeAvatarUrl","employeeName","id","path","suggestion","tags","userId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getTraining":{"post":{"operationId":"resources.getTraining","summary":"get training","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"estimatedDuration":{"type":["string","null"]},"frequency":{"type":"string","enum":["Quarterly","Annual","Once"]},"grantsAbilityId":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"processId":{"type":["string","null"]},"status":{"type":"string","enum":["Active","Draft","Archived"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"type":{"type":"string","enum":["Mandatory","Optional"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"},"trainingQuestion":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"correctAnswers":{"type":["array","null"],"items":{"type":"string"}},"correctBoolean":{"type":["boolean","null"]},"correctNumber":{"type":["number","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"matchingPairs":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"options":{"type":["array","null"],"items":{"type":"string"}},"question":{"type":"string"},"required":{"type":["boolean","null"]},"sortOrder":{"type":"number"},"tolerance":{"type":["number","null"]},"trainingId":{"type":"string"},"type":{"type":"string","enum":["MultipleChoice","TrueFalse","MultipleAnswers","MatchingPairs","Numerical"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","correctAnswers","correctBoolean","correctNumber","createdAt","createdBy","id","matchingPairs","options","question","required","sortOrder","tolerance","trainingId","type","updatedAt","updatedBy"]}}},"required":["assignee","companyId","content","createdAt","createdBy","description","estimatedDuration","frequency","grantsAbilityId","id","name","processId","status","tags","type","updatedAt","updatedBy","version","trainingQuestion"]}}}}}}},"/resources/getTrainingAssignment":{"post":{"operationId":"resources.getTrainingAssignment","summary":"get training assignment","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assignmentId":{"type":"string"}},"required":["assignmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"groupIds":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"trainingId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"training":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"frequency":{"type":"string","enum":["Quarterly","Annual","Once"]},"type":{"type":"string","enum":["Mandatory","Optional"]},"status":{"type":"string","enum":["Active","Draft","Archived"]}},"required":["id","name","frequency","type","status"]}},"required":["companyId","createdAt","createdBy","groupIds","id","trainingId","updatedAt","updatedBy","training"]}}}}}}},"/resources/getTrainingAssignmentForCompletion":{"post":{"operationId":"resources.getTrainingAssignmentForCompletion","summary":"get training assignment for completion","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assignmentId":{"type":"string"}},"required":["assignmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"groupIds":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"trainingId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"training":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"frequency":{"type":"string","enum":["Quarterly","Annual","Once"]},"type":{"type":"string","enum":["Mandatory","Optional"]},"status":{"type":"string","enum":["Active","Draft","Archived"]},"estimatedDuration":{"type":["string","null"]},"trainingQuestion":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"correctAnswers":{"type":["array","null"],"items":{"type":"string"}},"correctBoolean":{"type":["boolean","null"]},"correctNumber":{"type":["number","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"matchingPairs":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]},"options":{"type":["array","null"],"items":{"type":"string"}},"question":{"type":"string"},"required":{"type":["boolean","null"]},"sortOrder":{"type":"number"},"tolerance":{"type":["number","null"]},"trainingId":{"type":"string"},"type":{"type":"string","enum":["MultipleChoice","TrueFalse","MultipleAnswers","MatchingPairs","Numerical"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","correctAnswers","correctBoolean","correctNumber","createdAt","createdBy","id","matchingPairs","options","question","required","sortOrder","tolerance","trainingId","type","updatedAt","updatedBy"]}}},"required":["id","name","description","content","frequency","type","status","estimatedDuration","trainingQuestion"]}},"required":["companyId","createdAt","createdBy","groupIds","id","trainingId","updatedAt","updatedBy","training"]}}}}}}},"/resources/getTrainingAssignments":{"post":{"operationId":"resources.getTrainingAssignments","summary":"get training assignments","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trainingId":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"groupIds":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"trainingId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"training":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"frequency":{"type":"string","enum":["Quarterly","Annual","Once"]}},"required":["id","name","frequency"]}},"required":["companyId","createdAt","createdBy","groupIds","id","trainingId","updatedAt","updatedBy","training"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getTrainingAssignmentStatus":{"post":{"operationId":"resources.getTrainingAssignmentStatus","summary":"get training assignment status","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trainingId":{"type":"string"},"status":{"type":"string","enum":["Completed","Pending","Overdue","Not Required"]},"search":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"avatarUrl":{"type":"string"},"companyId":{"type":"string"},"completedAt":{"type":"string"},"completionId":{"type":"number"},"currentPeriod":{"type":"string"},"employeeId":{"type":"string"},"employeeName":{"type":"string"},"employeeStartDate":{"type":"string"},"frequency":{"type":"string","enum":["Quarterly","Annual","Once"]},"status":{"type":"string"},"trainingAssignmentId":{"type":"string"},"trainingId":{"type":"string"},"trainingName":{"type":"string"},"trainingType":{"type":"string","enum":["Mandatory","Optional"]}},"required":["avatarUrl","companyId","completedAt","completionId","currentPeriod","employeeId","employeeName","employeeStartDate","frequency","status","trainingAssignmentId","trainingId","trainingName","trainingType"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getTrainingAssignmentSummary":{"post":{"operationId":"resources.getTrainingAssignmentSummary","summary":"get training assignment summary","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"completed":{"type":"number"},"completionPercent":{"type":"number"},"currentPeriod":{"type":"string"},"frequency":{"type":"string","enum":["Quarterly","Annual","Once"]},"overdue":{"type":"number"},"pending":{"type":"number"},"totalAssigned":{"type":"number"},"trainingId":{"type":"string"},"trainingName":{"type":"string"}},"required":["completed","completionPercent","currentPeriod","frequency","overdue","pending","totalAssigned","trainingId","trainingName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getTrainingQuestions":{"post":{"operationId":"resources.getTrainingQuestions","summary":"get training questions","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trainingId":{"type":"string"}},"required":["trainingId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"correctAnswers":{"type":["array","null"],"items":{"type":"string"}},"correctBoolean":{"type":["boolean","null"]},"correctNumber":{"type":["number","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"matchingPairs":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"options":{"type":["array","null"],"items":{"type":"string"}},"question":{"type":"string"},"required":{"type":["boolean","null"]},"sortOrder":{"type":"number"},"tolerance":{"type":["number","null"]},"trainingId":{"type":"string"},"type":{"type":"string","enum":["MultipleChoice","TrueFalse","MultipleAnswers","MatchingPairs","Numerical"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","correctAnswers","correctBoolean","correctNumber","createdAt","createdBy","id","matchingPairs","options","question","required","sortOrder","tolerance","trainingId","type","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getTrainings":{"post":{"operationId":"resources.getTrainings","summary":"get trainings","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"anyOf":[{"type":"string"},{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0}}}]}},"required":["search"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"description":{"type":["string","null"]},"estimatedDuration":{"type":["string","null"]},"frequency":{"type":["string","null"],"enum":["Quarterly","Annual","Once"]},"grantsAbilityId":{"type":["string","null"]},"grantsAbilityName":{"type":["string","null"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Active","Draft","Archived"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"type":{"type":["string","null"],"enum":["Mandatory","Optional"]},"version":{"type":["number","null"]},"versions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["assignee","companyId","description","estimatedDuration","frequency","grantsAbilityId","grantsAbilityName","id","name","status","tags","type","version","versions"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getTrainingsList":{"post":{"operationId":"resources.getTrainingsList","summary":"get trainings list","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["Active","Draft","Archived"]}},"required":["id","name","status"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getWorkCenter":{"post":{"operationId":"resources.getWorkCenter","summary":"get work center","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"alwaysOn":{"type":"boolean"},"shifts":{"type":"array","items":{"type":"string"}},"active":{"type":["boolean","null"]},"batchCapacity":{"type":["number","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultStandardFactor":{"type":["string","null"],"enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"departmentId":{"type":["string","null"]},"departmentName":{"type":["string","null"]},"description":{"type":["string","null"]},"id":{"type":["string","null"]},"laborRate":{"type":["number","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"machineRate":{"type":["number","null"]},"minimumBatchQuantity":{"type":["number","null"]},"name":{"type":["string","null"]},"overheadRate":{"type":["number","null"]},"processes":{"type":["array","null"],"items":{"type":"string"}},"requiredAbilityId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["alwaysOn","shifts","active","batchCapacity","companyId","createdAt","createdBy","customFields","defaultStandardFactor","departmentId","departmentName","description","id","laborRate","locationId","locationName","machineRate","minimumBatchQuantity","name","overheadRate","processes","requiredAbilityId","tags","updatedAt","updatedBy"]}}}}}}},"/resources/getWorkCenters":{"post":{"operationId":"resources.getWorkCenters","summary":"get work centers","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"anyOf":[{"type":"string"},{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0}}}]}},"required":["search"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"alwaysOn":{"type":["boolean","null"]},"batchCapacity":{"type":["number","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultStandardFactor":{"type":["string","null"],"enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"departmentId":{"type":["string","null"]},"departmentName":{"type":["string","null"]},"description":{"type":["string","null"]},"id":{"type":["string","null"]},"laborRate":{"type":["number","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"machineRate":{"type":["number","null"]},"minimumBatchQuantity":{"type":["number","null"]},"name":{"type":["string","null"]},"overheadRate":{"type":["number","null"]},"processes":{"type":["array","null"],"items":{"type":"string"}},"requiredAbilityId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","alwaysOn","batchCapacity","companyId","createdAt","createdBy","customFields","defaultStandardFactor","departmentId","departmentName","description","id","laborRate","locationId","locationName","machineRate","minimumBatchQuantity","name","overheadRate","processes","requiredAbilityId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getWorkCentersByLocation":{"post":{"operationId":"resources.getWorkCentersByLocation","summary":"get work centers by location","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":"string"}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"isBlocked":{"type":"boolean"},"blockingDispatchId":{"type":["string","null"]},"blockingDispatchReadableId":{"type":["string","null"]},"active":{"type":["boolean","null"]},"alwaysOn":{"type":["boolean","null"]},"batchCapacity":{"type":["number","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultStandardFactor":{"type":["string","null"],"enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"departmentId":{"type":["string","null"]},"departmentName":{"type":["string","null"]},"description":{"type":["string","null"]},"id":{"type":["string","null"]},"laborRate":{"type":["number","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"machineRate":{"type":["number","null"]},"minimumBatchQuantity":{"type":["number","null"]},"name":{"type":["string","null"]},"overheadRate":{"type":["number","null"]},"processes":{"type":["array","null"],"items":{"type":"string"}},"requiredAbilityId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["isBlocked","blockingDispatchId","blockingDispatchReadableId","active","alwaysOn","batchCapacity","companyId","createdAt","createdBy","customFields","defaultStandardFactor","departmentId","departmentName","description","id","laborRate","locationId","locationName","machineRate","minimumBatchQuantity","name","overheadRate","processes","requiredAbilityId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getWorkCentersList":{"post":{"operationId":"resources.getWorkCentersList","summary":"get work centers list","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"alwaysOn":{"type":["boolean","null"]},"batchCapacity":{"type":["number","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultStandardFactor":{"type":["string","null"],"enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"departmentId":{"type":["string","null"]},"departmentName":{"type":["string","null"]},"description":{"type":["string","null"]},"id":{"type":["string","null"]},"laborRate":{"type":["number","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"machineRate":{"type":["number","null"]},"minimumBatchQuantity":{"type":["number","null"]},"name":{"type":["string","null"]},"overheadRate":{"type":["number","null"]},"processes":{"type":["array","null"],"items":{"type":"string"}},"requiredAbilityId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","alwaysOn","batchCapacity","companyId","createdAt","createdBy","customFields","defaultStandardFactor","departmentId","departmentName","description","id","laborRate","locationId","locationName","machineRate","minimumBatchQuantity","name","overheadRate","processes","requiredAbilityId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getWorkCentersListWithBlockingStatus":{"post":{"operationId":"resources.getWorkCentersListWithBlockingStatus","summary":"get work centers list with blocking status","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"alwaysOn":{"type":["boolean","null"]},"batchCapacity":{"type":["number","null"]},"blockingDispatchId":{"type":["string","null"]},"blockingDispatchReadableId":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultStandardFactor":{"type":["string","null"],"enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"departmentId":{"type":["string","null"]},"description":{"type":["string","null"]},"id":{"type":["string","null"]},"isBlocked":{"type":["boolean","null"]},"laborRate":{"type":["number","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"machineRate":{"type":["number","null"]},"minimumBatchQuantity":{"type":["number","null"]},"name":{"type":["string","null"]},"overheadRate":{"type":["number","null"]},"requiredAbilityId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","alwaysOn","batchCapacity","blockingDispatchId","blockingDispatchReadableId","companyId","createdAt","createdBy","customFields","defaultStandardFactor","departmentId","description","id","isBlocked","laborRate","locationId","locationName","machineRate","minimumBatchQuantity","name","overheadRate","requiredAbilityId","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getProcessesWithoutAbility":{"post":{"operationId":"resources.getProcessesWithoutAbility","summary":"processes that do not yet have an ability","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/getTrainingGrantedAbilityId":{"post":{"operationId":"resources.getTrainingGrantedAbilityId","summary":"the ability a training assignment's training grants on completion, or null","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trainingAssignmentId":{"type":"string"}},"required":["trainingAssignmentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["string","null"]}}}}}}},"/resources/updateAbility":{"post":{"operationId":"resources.updateAbility","summary":"update ability","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"ability":{"type":"object","properties":{"name":{"type":"string"},"recertifyEveryDays":{"type":["number","null"]}}}},"required":["id","ability"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/resolveEmployeeAbilityExpiresAt":{"post":{"operationId":"resources.resolveEmployeeAbilityExpiresAt","summary":"resolves the qualification expiry for an employee ability","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"abilityId":{"type":"string"},"lastTrainingDate":{"type":["string","null"]},"expiresAt":{"type":["string","null"]}},"required":["abilityId","lastTrainingDate","expiresAt"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["string","null"]}}}}}}},"/resources/upsertEmployeeAbilityCell":{"post":{"operationId":"resources.upsertEmployeeAbilityCell","summary":"upsert employee ability cell","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeId":{"type":"string"},"abilityId":{"type":"string"},"lastTrainingDate":{"type":["string","null"]},"expiresAt":{"type":["string","null"]}},"required":["employeeId","abilityId","lastTrainingDate","expiresAt"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/resources/ensureProcessAbility":{"post":{"operationId":"resources.ensureProcessAbility","summary":"find-or-create the ability linked 1:1 to a process","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"processId":{"type":"string"},"recertifyEveryDays":{"type":["number","null"]}},"required":["processId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/resources/updateSuggestionEmoji":{"post":{"operationId":"resources.updateSuggestionEmoji","summary":"update suggestion emoji","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"suggestionId":{"type":"string"},"emoji":{"type":"string"}},"required":["suggestionId","emoji"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/updateTrainingQuestionOrder":{"post":{"operationId":"resources.updateTrainingQuestionOrder","summary":"update training question order","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/upsertContractor":{"post":{"operationId":"resources.upsertContractor","summary":"upsert contractor","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contractorWithAbilities":{"type":"object","properties":{"id":{"type":"string","description":"Updates the existing record with this key; creates one when there is none."},"hoursPerWeek":{"type":"number"},"abilities":{"type":"array","items":{"type":"string"}},"customFields":{}},"required":["id","abilities"]}},"required":["contractorWithAbilities"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/upsertFailureMode":{"post":{"operationId":"resources.upsertFailureMode","summary":"upsert failure mode","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["Maintenance","Quality","Operations","Other"]},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","type"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/resources/upsertLocation":{"post":{"operationId":"resources.upsertLocation","summary":"upsert location","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"code":{"type":"string"},"addressLine1":{"type":"string","minLength":1},"addressLine2":{"type":"string"},"city":{"type":"string","minLength":1},"stateProvince":{"type":"string"},"postalCode":{"type":"string","minLength":1},"countryCode":{"type":"string","minLength":1},"timezone":{"type":"string","minLength":1},"latitude":{"type":"number"},"longitude":{"type":"number"},"customFields":{},"id":{"type":"string"}},"required":["name","addressLine1","city","postalCode","countryCode","timezone"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"addressLine1":{"type":"string"},"addressLine2":{"type":["string","null"]},"city":{"type":"string"},"code":{"type":["string","null"]},"companyId":{"type":"string"},"countryCode":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"name":{"type":"string"},"postalCode":{"type":"string"},"requiresStaffing":{"type":"boolean"},"stateProvince":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"timezone":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["addressLine1","addressLine2","city","code","companyId","countryCode","createdAt","createdBy","customFields","id","latitude","longitude","name","postalCode","requiresStaffing","stateProvince","tags","timezone","updatedAt","updatedBy"]}}}}}}},"/resources/insertMaintenanceDispatch":{"post":{"operationId":"resources.insertMaintenanceDispatch","summary":"insert maintenance dispatch","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maintenanceDispatchId":{"type":"string"},"status":{"type":"string","enum":["Open","Assigned","In Progress","Completed","Cancelled"]},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"severity":{"type":"string","enum":["Preventive","Operator Performed","Support Required","OEM Required"]},"source":{"type":"string","enum":["Scheduled","Reactive","Non-Conformance"]},"oeeImpact":{"type":"string","enum":["Down","Planned","Impact","No Impact"]},"workCenterId":{"type":"string"},"locationId":{"type":"string"},"assignee":{"type":"string"},"suspectedFailureModeId":{"type":"string"},"plannedStartTime":{"type":"string"},"plannedEndTime":{"type":"string"},"takesWorkCenterOffline":{"type":"boolean"},"content":{}},"required":["locationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"maintenanceDispatchId":{"type":"string"}},"required":["id","maintenanceDispatchId"]}}}}}}},"/resources/updateMaintenanceDispatch":{"post":{"operationId":"resources.updateMaintenanceDispatch","summary":"update maintenance dispatch","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Open","Assigned","In Progress","Completed","Cancelled"]},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"severity":{"type":"string","enum":["Preventive","Operator Performed","Support Required","OEM Required"]},"source":{"type":"string","enum":["Scheduled","Reactive","Non-Conformance"]},"oeeImpact":{"type":"string","enum":["Down","Planned","Impact","No Impact"]},"workCenterId":{"type":["string","null"]},"locationId":{"type":"string"},"assignee":{"type":["string","null"]},"suspectedFailureModeId":{"type":["string","null"]},"actualFailureModeId":{"type":["string","null"]},"procedureId":{"type":["string","null"]},"plannedStartTime":{"type":["string","null"]},"plannedEndTime":{"type":["string","null"]},"actualStartTime":{"type":["string","null"]},"actualEndTime":{"type":["string","null"]},"takesWorkCenterOffline":{"type":"boolean"},"content":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/resources/upsertMaintenanceDispatchComment":{"post":{"operationId":"resources.upsertMaintenanceDispatchComment","summary":"upsert maintenance dispatch comment","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maintenanceDispatchId":{"type":"string","minLength":1},"comment":{"type":"string","minLength":1},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["maintenanceDispatchId","comment"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/resources/upsertMaintenanceDispatchEvent":{"post":{"operationId":"resources.upsertMaintenanceDispatchEvent","summary":"upsert maintenance dispatch event","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maintenanceDispatchId":{"type":"string","minLength":1},"employeeId":{"type":"string","minLength":1},"workCenterId":{"type":"string","minLength":1},"startTime":{"type":"string","minLength":1},"endTime":{"type":"string"},"notes":{"type":"string"},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["maintenanceDispatchId","employeeId","workCenterId","startTime"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/resources/upsertMaintenanceDispatchItem":{"post":{"operationId":"resources.upsertMaintenanceDispatchItem","summary":"upsert maintenance dispatch item","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maintenanceDispatchId":{"type":"string","minLength":1},"itemId":{"type":"string","minLength":1},"quantity":{"type":"number","minimum":1},"unitOfMeasureCode":{"type":"string","minLength":1},"unitCost":{"type":"number","minimum":0},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["maintenanceDispatchId","itemId","quantity","unitOfMeasureCode"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/resources/upsertMaintenanceSchedule":{"post":{"operationId":"resources.upsertMaintenanceSchedule","summary":"upsert maintenance schedule","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"workCenterId":{"type":"string","minLength":1},"locationId":{"type":"string","minLength":1},"frequency":{"type":"string","enum":["Daily","Weekly","Monthly","Quarterly","Annual"]},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"estimatedDuration":{"type":"number"},"takesWorkCenterOffline":{"type":"boolean"},"nextDueAt":{"type":"string"},"active":{"type":"boolean"},"monday":{"type":"boolean"},"tuesday":{"type":"boolean"},"wednesday":{"type":"boolean"},"thursday":{"type":"boolean"},"friday":{"type":"boolean"},"saturday":{"type":"boolean"},"sunday":{"type":"boolean"},"skipHolidays":{"type":"boolean"},"procedureId":{"type":"string"},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","workCenterId","locationId","frequency","priority"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/resources/upsertPartner":{"post":{"operationId":"resources.upsertPartner","summary":"upsert partner","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Updates the existing record with this key; creates one when there is none."},"hoursPerWeek":{"type":"number","minimum":0},"customFields":{}},"required":["id","hoursPerWeek"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/resources/upsertProcess":{"post":{"operationId":"resources.upsertProcess","summary":"upsert process","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"processType":{"type":"string","enum":["Process","Assembly","Inspection","Outside Processing"]},"defaultStandardFactor":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"workCenters":{"type":"array","items":{"type":"string","minLength":1}},"completeAllOnScan":{"type":"boolean"},"batchable":{"type":"boolean"},"batchType":{"default":"Sequential","type":"string","enum":["Sequential","Simultaneous"]},"requiresAbility":{"type":"boolean"},"batchRuleItem":{"type":"string","enum":["must","guide","ignore"]},"batchRuleSubstance":{"type":"string","enum":["must","guide","ignore"]},"batchRuleGrade":{"type":"string","enum":["must","guide","ignore"]},"batchRuleDimension":{"type":"string","enum":["must","guide","ignore"]},"batchRuleForm":{"type":"string","enum":["must","guide","ignore"]},"batchRuleFinish":{"type":"string","enum":["must","guide","ignore"]},"batchRuleProducedItem":{"type":"string","enum":["must","guide","ignore"]},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","processType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/resources/upsertTraining":{"post":{"operationId":"resources.upsertTraining","summary":"upsert training","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"content":{"type":"string"},"grantsAbilityId":{"type":"string"},"id":{"type":"string"}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/resources/upsertTrainingAssignment":{"post":{"operationId":"resources.upsertTrainingAssignment","summary":"upsert training assignment","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"trainingId":{"type":"string"},"groupIds":{"type":"array","items":{"type":"string"}}},"required":["trainingId","groupIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/resources/upsertTrainingQuestion":{"post":{"operationId":"resources.upsertTrainingQuestion","summary":"upsert training question","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trainingId":{"type":"string","minLength":1},"question":{"type":"string","minLength":1},"type":{"type":"string","enum":["MultipleChoice","TrueFalse","MultipleAnswers","MatchingPairs","Numerical"]},"sortOrder":{"type":"number","minimum":0},"required":{"type":"boolean"},"options":{"type":"array","items":{"type":"string"}},"correctAnswers":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"correctBoolean":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"matchingPairs":{"type":"string"},"correctNumber":{"type":"number"},"tolerance":{"type":"number","minimum":0},"id":{"type":"string"}},"required":["trainingId","question","type"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/resources/upsertWorkCenter":{"post":{"operationId":"resources.upsertWorkCenter","summary":"upsert work center","tags":["resources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"defaultStandardFactor":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"departmentId":{"type":"string"},"laborRate":{"type":"number","minimum":0},"locationId":{"type":"string","minLength":1},"machineRate":{"type":"number","minimum":0},"overheadRate":{"type":"number","minimum":0},"processes":{"type":"array","items":{"type":"string","minLength":1}},"shifts":{"type":"array","items":{"type":"string","minLength":1}},"alwaysOn":{"type":"boolean"},"batchCapacity":{"type":"integer","minimum":1,"maximum":9007199254740991},"minimumBatchQuantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","description","defaultStandardFactor","laborRate","locationId","machineRate","overheadRate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/convertSalesRfqToQuote":{"post":{"operationId":"sales.convertSalesRfqToQuote","summary":"convert sales rfq to quote","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"convertedId":{"type":"string"}},"required":["convertedId"]}}}}}}},"/sales/convertQuoteToOrder":{"post":{"operationId":"sales.convertQuoteToOrder","summary":"convert quote to order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"selectedLines":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"addOn":{"type":"number"},"convertedAddOn":{"type":"number"},"taxableAddOn":{"type":"number"},"convertedTaxableAddOn":{"type":"number"},"convertedNetUnitPrice":{"type":"number"},"convertedShippingCost":{"type":"number"},"leadTime":{"type":"number"},"netUnitPrice":{"type":"number"},"quantity":{"type":"number","minimum":0},"shippingCost":{"type":"number"}},"required":["convertedNetUnitPrice","convertedShippingCost","leadTime","netUnitPrice","quantity","shippingCost"]}},"purchaseOrderNumber":{"type":"string"},"digitalQuoteAcceptedBy":{"type":"string"},"digitalQuoteAcceptedByEmail":{"type":"string"}},"required":["id","selectedLines"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"convertedId":{"type":"string"}},"required":["convertedId"]}}}}}}},"/sales/copyQuoteLine":{"post":{"operationId":"sales.copyQuoteLine","summary":"copy quote line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["item","quoteLine","method","quoteToQuote"]},"sourceId":{"type":"string","minLength":1},"targetId":{"type":"string","minLength":1},"billOfMaterial":{"type":"boolean"},"billOfProcess":{"type":"boolean"},"parameters":{"type":"boolean"},"tools":{"type":"boolean"},"steps":{"type":"boolean"},"workInstructions":{"type":"boolean"}},"required":["type","sourceId","targetId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"copiedId":{"type":"string"}},"required":["copiedId"]}}}}}}},"/sales/copyQuote":{"post":{"operationId":"sales.copyQuote","summary":"copy quote","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceId":{"type":"string","minLength":1},"targetId":{"type":"string","minLength":1},"billOfMaterial":{"type":"boolean"},"billOfProcess":{"type":"boolean"},"parameters":{"type":"boolean"},"tools":{"type":"boolean"},"steps":{"type":"boolean"},"workInstructions":{"type":"boolean"}},"required":["sourceId","targetId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"newQuoteId":{"type":"string"}},"required":["newQuoteId"]}}}}}}},"/sales/createPricingRule":{"post":{"operationId":"sales.createPricingRule","summary":"create pricing rule","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1},"ruleType":{"type":"string","enum":["Discount","Markup","Configuration"]},"amountType":{"type":"string","enum":["Percentage","Fixed"]},"amount":{"type":"number","minimum":0},"minQuantity":{"type":"number","minimum":0},"maxQuantity":{"type":"number","minimum":0},"customerIds":{"default":[],"type":"array","items":{"type":"string"}},"customerTypeIds":{"default":[],"type":"array","items":{"type":"string"}},"itemIds":{"default":[],"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"itemId":{"type":"string"},"itemPostingGroupId":{"type":"string"},"validFrom":{"type":"string"},"validTo":{"type":"string"},"priority":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"active":{"type":"boolean"},"configurationPrices":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"value":{"type":["string","null"]},"amount":{"type":"number"},"label":{"type":"string"}},"required":["key","value","amount"]}}},"required":["name","ruleType","amountType","amount"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/deleteCustomer":{"post":{"operationId":"sales.deleteCustomer","summary":"delete customer","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteCustomerBankAccount":{"post":{"operationId":"sales.deleteCustomerBankAccount","summary":"delete customer bank account","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/getCustomerBankAccounts":{"post":{"operationId":"sales.getCustomerBankAccounts","summary":"get customer bank accounts","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountHolderName":{"type":["string","null"]},"accountNumber":{"type":["string","null"]},"active":{"type":"boolean"},"bankAddress":{"type":["string","null"]},"bankCode":{"type":["string","null"]},"bankName":{"type":["string","null"]},"companyId":{"type":"string"},"countryCode":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":["string","null"]},"customerId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"isPrimary":{"type":"boolean"},"name":{"type":"string"},"notes":{"type":["string","null"]},"swiftBic":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountHolderName","accountNumber","active","bankAddress","bankCode","bankName","companyId","countryCode","createdAt","createdBy","currencyCode","customerId","customFields","id","isPrimary","name","notes","swiftBic","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/upsertCustomerBankAccount":{"post":{"operationId":"sales.upsertCustomerBankAccount","summary":"upsert customer bank account","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"accountHolderName":{"type":"string"},"bankName":{"type":"string","minLength":1},"bankAddress":{"type":"string","minLength":1},"countryCode":{"type":"string","minLength":1},"currencyCode":{"type":"string"},"accountNumber":{"type":"string"},"bankCode":{"type":"string"},"swiftBic":{"type":"string"},"notes":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["customerId","name","bankName","bankAddress","countryCode"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/deleteCustomerContact":{"post":{"operationId":"sales.deleteCustomerContact","summary":"delete customer contact","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"customerContactId":{"type":"string"}},"required":["customerId","customerContactId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"contactId":{"type":"string"}},"required":["contactId"]}}}}}}},"/sales/deleteCustomerLocation":{"post":{"operationId":"sales.deleteCustomerLocation","summary":"delete customer location","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"customerLocationId":{"type":"string"}},"required":["customerId","customerLocationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteCustomerStatus":{"post":{"operationId":"sales.deleteCustomerStatus","summary":"delete customer status","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerStatusId":{"type":"string"}},"required":["customerStatusId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteCustomerType":{"post":{"operationId":"sales.deleteCustomerType","summary":"delete customer type","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerTypeId":{"type":"string"}},"required":["customerTypeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteNoQuoteReason":{"post":{"operationId":"sales.deleteNoQuoteReason","summary":"delete no quote reason","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"noQuoteReasonId":{"type":"string"}},"required":["noQuoteReasonId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deletePricingRule":{"post":{"operationId":"sales.deletePricingRule","summary":"delete pricing rule","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pricingRuleId":{"type":"string"}},"required":["pricingRuleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteQuote":{"post":{"operationId":"sales.deleteQuote","summary":"delete quote","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteQuoteLine":{"post":{"operationId":"sales.deleteQuoteLine","summary":"delete quote line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteLineId":{"type":"string"}},"required":["quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteQuoteMaterial":{"post":{"operationId":"sales.deleteQuoteMaterial","summary":"delete quote material","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteMaterialId":{"type":"string"}},"required":["quoteMaterialId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteQuoteOperationStep":{"post":{"operationId":"sales.deleteQuoteOperationStep","summary":"delete quote operation step","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteQuoteOperationParameter":{"post":{"operationId":"sales.deleteQuoteOperationParameter","summary":"delete quote operation parameter","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteQuoteOperationTool":{"post":{"operationId":"sales.deleteQuoteOperationTool","summary":"delete quote operation tool","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteSalesOrder":{"post":{"operationId":"sales.deleteSalesOrder","summary":"delete sales order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderId":{"type":"string"}},"required":["salesOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteSalesOrderLine":{"post":{"operationId":"sales.deleteSalesOrderLine","summary":"delete sales order line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderLineId":{"type":"string"}},"required":["salesOrderLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteSalesRFQ":{"post":{"operationId":"sales.deleteSalesRFQ","summary":"delete sales r f q","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesRfqId":{"type":"string"}},"required":["salesRfqId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteSalesRFQLine":{"post":{"operationId":"sales.deleteSalesRFQLine","summary":"delete sales r f q line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesRFQLineId":{"type":"string"}},"required":["salesRFQLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/duplicatePricingRule":{"post":{"operationId":"sales.duplicatePricingRule","summary":"duplicate pricing rule","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/getConfigurationParametersByQuoteLineId":{"post":{"operationId":"sales.getConfigurationParametersByQuoteLineId","summary":"get configuration parameters by quote line id","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteLineId":{"type":"string"}},"required":["quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"id":{"type":"string"},"isUngrouped":{"type":"boolean"},"itemId":{"type":"string"},"name":{"type":"string"},"sortOrder":{"type":"number"}},"required":["companyId","id","isUngrouped","itemId","name","sortOrder"]}},"parameters":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"configurationParameterGroupId":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"dataType":{"type":"string","enum":["boolean","text","numeric","list","date","material"]},"id":{"type":"string"},"itemId":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"},"listOptions":{"type":["array","null"],"items":{"type":"string"}},"materialFormFilterId":{"type":["string","null"]},"sortOrder":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","configurationParameterGroupId","createdAt","createdBy","dataType","id","itemId","key","label","listOptions","materialFormFilterId","sortOrder","updatedAt","updatedBy"]}}},"required":["groups","parameters"]}}}}}}},"/sales/getCustomer":{"post":{"operationId":"sales.getCustomer","summary":"get customer","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accountManagerId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customerStatusId":{"type":["string","null"]},"customerTypeId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultCc":{"type":["array","null"],"items":{"type":"string"}},"eori":{"type":["string","null"]},"externalId":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"fax":{"type":["string","null"]},"id":{"type":["string","null"]},"logo":{"type":["string","null"]},"name":{"type":["string","null"]},"orderCount":{"type":["number","null"]},"phone":{"type":["string","null"]},"readableId":{"type":["string","null"]},"salesContactId":{"type":["string","null"]},"status":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxId":{"type":["string","null"]},"taxPercent":{"type":["number","null"]},"type":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"website":{"type":["string","null"]}},"required":["accountManagerId","assignee","companyId","createdAt","createdBy","currencyCode","customerStatusId","customerTypeId","customFields","defaultCc","eori","externalId","fax","id","logo","name","orderCount","phone","readableId","salesContactId","status","tags","taxId","taxPercent","type","updatedAt","updatedBy","vatNumber","website"]}}}}}}},"/sales/getCustomerContact":{"post":{"operationId":"sales.getCustomerContact","summary":"get customer contact","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerContactId":{"type":"string"}},"required":["customerContactId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"contactId":{"type":"string"},"customerId":{"type":"string"},"customerLocationId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"userId":{"type":["string","null"]},"contact":{"type":"object","properties":{"id":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"type":["string","null"]},"mobilePhone":{"type":["string","null"]},"homePhone":{"type":["string","null"]},"workPhone":{"type":["string","null"]},"fax":{"type":["string","null"]},"title":{"type":["string","null"]},"notes":{"type":["string","null"]}},"required":["id","firstName","lastName","email","mobilePhone","homePhone","workPhone","fax","title","notes"]}},"required":["companyId","contactId","customerId","customerLocationId","customFields","id","tags","userId","contact"]}}}}}}},"/sales/getCustomerContacts":{"post":{"operationId":"sales.getCustomerContacts","summary":"get customer contacts","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"contactId":{"type":"string"},"customerId":{"type":"string"},"customerLocationId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"userId":{"type":["string","null"]},"contact":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"type":["string","null"]},"mobilePhone":{"type":["string","null"]},"homePhone":{"type":["string","null"]},"workPhone":{"type":["string","null"]},"fax":{"type":["string","null"]},"title":{"type":["string","null"]},"notes":{"type":["string","null"]}},"required":["id","fullName","firstName","lastName","email","mobilePhone","homePhone","workPhone","fax","title","notes"]},"user":{"type":["object","null"],"properties":{"id":{"type":"string"},"active":{"type":["boolean","null"]}},"required":["id","active"]}},"required":["companyId","contactId","customerId","customerLocationId","customFields","id","tags","userId","contact","user"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getCustomerItemPriceOverride":{"post":{"operationId":"sales.getCustomerItemPriceOverride","summary":"get customer item price override","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"itemId":{"type":"string"},"quantity":{"type":"number"},"date":{"type":"string"}},"required":["customerId","itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"quantity":{"type":"number"},"overridePrice":{"type":"number"},"notes":{"type":["string","null"]},"validFrom":{"type":["string","null"]},"validTo":{"type":["string","null"]},"applyRulesOnTop":{"type":"boolean"}},"required":["id","quantity","overridePrice","notes","validFrom","validTo","applyRulesOnTop"]}}}}}}},"/sales/getCustomerLocation":{"post":{"operationId":"sales.getCustomerLocation","summary":"get customer location","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerLocationId":{"type":"string"}},"required":["customerLocationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"addressId":{"type":"string"},"companyId":{"type":"string"},"customerId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"address":{"type":"object","properties":{"id":{"type":"string"},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"stateProvince":{"type":["string","null"]},"countryCode":{"type":["string","null"]},"country":{"type":["object","null"],"properties":{"alpha2":{"type":"string"},"name":{"type":"string"}},"required":["alpha2","name"]},"postalCode":{"type":["string","null"]}},"required":["id","addressLine1","addressLine2","city","stateProvince","countryCode","country","postalCode"]}},"required":["addressId","companyId","customerId","customFields","id","name","tags","address"]}}}}}}},"/sales/getCustomerLocations":{"post":{"operationId":"sales.getCustomerLocations","summary":"get customer locations","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"addressId":{"type":"string"},"companyId":{"type":"string"},"customerId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"address":{"type":"object","properties":{"id":{"type":"string"},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"stateProvince":{"type":["string","null"]},"country":{"type":["object","null"],"properties":{"alpha2":{"type":"string"},"name":{"type":"string"}},"required":["alpha2","name"]},"postalCode":{"type":["string","null"]}},"required":["id","addressLine1","addressLine2","city","stateProvince","country","postalCode"]}},"required":["addressId","companyId","customerId","customFields","id","name","tags","address"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getCustomerPayment":{"post":{"operationId":"sales.getCustomerPayment","summary":"get customer payment","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customerId":{"type":"string"},"invoiceCustomerContactId":{"type":["string","null"]},"invoiceCustomerId":{"type":["string","null"]},"invoiceCustomerLocationId":{"type":["string","null"]},"paymentTermId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","customerId","invoiceCustomerContactId","invoiceCustomerId","invoiceCustomerLocationId","paymentTermId","updatedAt","updatedBy"]}}}}}}},"/sales/getCustomerShipping":{"post":{"operationId":"sales.getCustomerShipping","summary":"get customer shipping","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customerId":{"type":"string"},"incoterm":{"type":["string","null"],"enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":["string","null"]},"shippingCustomerContactId":{"type":["string","null"]},"shippingCustomerId":{"type":["string","null"]},"shippingCustomerLocationId":{"type":["string","null"]},"shippingMethodId":{"type":["string","null"]},"shippingTermId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","customerId","incoterm","incotermLocation","shippingCustomerContactId","shippingCustomerId","shippingCustomerLocationId","shippingMethodId","shippingTermId","updatedAt","updatedBy"]}}}}}}},"/sales/getCustomerTax":{"post":{"operationId":"sales.getCustomerTax","summary":"get customer tax","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customerId":{"type":"string"},"eori":{"type":["string","null"]},"taxExempt":{"type":"boolean"},"taxExemptionCertificateNumber":{"type":["string","null"]},"taxExemptionCertificatePath":{"type":["string","null"]},"taxExemptionReason":{"type":["string","null"],"enum":["Resale","Government","Nonprofit","Agriculture","Industrial","Export","Medical","Educational","Religious","Other"]},"taxId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"vatNumber":{"type":["string","null"]}},"required":["companyId","customerId","eori","taxExempt","taxExemptionCertificateNumber","taxExemptionCertificatePath","taxExemptionReason","taxId","updatedAt","updatedBy","vatNumber"]}}}}}}},"/sales/getCustomerTypeItemPriceOverride":{"post":{"operationId":"sales.getCustomerTypeItemPriceOverride","summary":"get customer type item price override","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerTypeId":{"type":"string"},"itemId":{"type":"string"},"quantity":{"type":"number"},"date":{"type":"string"}},"required":["customerTypeId","itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"quantity":{"type":"number"},"overridePrice":{"type":"number"},"notes":{"type":["string","null"]},"validFrom":{"type":["string","null"]},"validTo":{"type":["string","null"]},"applyRulesOnTop":{"type":"boolean"}},"required":["id","quantity","overridePrice","notes","validFrom","validTo","applyRulesOnTop"]}}}}}}},"/sales/getAllCustomersItemPriceOverride":{"post":{"operationId":"sales.getAllCustomersItemPriceOverride","summary":"get all customers item price override","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"quantity":{"type":"number"},"date":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"quantity":{"type":"number"},"overridePrice":{"type":"number"},"notes":{"type":["string","null"]},"validFrom":{"type":["string","null"]},"validTo":{"type":["string","null"]},"applyRulesOnTop":{"type":"boolean"}},"required":["id","quantity","overridePrice","notes","validFrom","validTo","applyRulesOnTop"]}}}}}}},"/sales/getCustomers":{"post":{"operationId":"sales.getCustomers","summary":"get customers","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountManagerId":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customerStatusId":{"type":["string","null"]},"customerTypeId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"defaultCc":{"type":["array","null"],"items":{"type":"string"}},"eori":{"type":["string","null"]},"externalId":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"fax":{"type":["string","null"]},"id":{"type":["string","null"]},"logo":{"type":["string","null"]},"name":{"type":["string","null"]},"orderCount":{"type":["number","null"]},"phone":{"type":["string","null"]},"readableId":{"type":["string","null"]},"salesContactId":{"type":["string","null"]},"status":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxId":{"type":["string","null"]},"taxPercent":{"type":["number","null"]},"type":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"website":{"type":["string","null"]}},"required":["accountManagerId","assignee","companyId","createdAt","createdBy","currencyCode","customerStatusId","customerTypeId","customFields","defaultCc","eori","externalId","fax","id","logo","name","orderCount","phone","readableId","salesContactId","status","tags","taxId","taxPercent","type","updatedAt","updatedBy","vatNumber","website"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getCustomersList":{"post":{"operationId":"sales.getCustomersList","summary":"get customers list","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getCustomerStatus":{"post":{"operationId":"sales.getCustomerStatus","summary":"get customer status","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerStatusId":{"type":"string"}},"required":["customerStatusId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","tags","updatedAt","updatedBy"]}}}}}}},"/sales/getCustomerStatuses":{"post":{"operationId":"sales.getCustomerStatuses","summary":"get customer statuses","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["id","name","customFields"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getCustomerStatusesList":{"post":{"operationId":"sales.getCustomerStatusesList","summary":"get customer statuses list","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getCustomerType":{"post":{"operationId":"sales.getCustomerType","summary":"get customer type","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerTypeId":{"type":"string"}},"required":["customerTypeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"protected":{"type":"boolean"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","protected","tags","updatedAt","updatedBy"]}}}}}}},"/sales/getCustomerTypes":{"post":{"operationId":"sales.getCustomerTypes","summary":"get customer types","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"protected":{"type":"boolean"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","protected","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getCustomerTypesList":{"post":{"operationId":"sales.getCustomerTypesList","summary":"get customer types list","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getExternalSalesOrderLines":{"post":{"operationId":"sales.getExternalSalesOrderLines","summary":"get external sales order lines","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}},"required":["customerId","args"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"customerContactName":{"type":"string"},"customerEngineeringContactName":{"type":"string"},"customerId":{"type":"string"},"customerReference":{"type":"string"},"jobOperations":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"jobProductionQuantity":{"type":"number"},"jobQuantityComplete":{"type":"number"},"jobQuantityShipped":{"type":"number"},"jobStatus":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"locationId":{"type":"string"},"orderDate":{"type":"string"},"promisedDate":{"type":"string"},"quantityInvoiced":{"type":"number"},"quantitySent":{"type":"number"},"quantityToSend":{"type":"number"},"readableId":{"type":"string"},"readableIdWithRevision":{"type":"string"},"receiptPromisedDate":{"type":"string"},"receiptRequestedDate":{"type":"string"},"revision":{"type":"string"},"saleQuantity":{"type":"number"},"salesOrderId":{"type":"string"},"salesOrderStatus":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","To Invoice","Needs Approval","To Ship","Confirmed","Invoiced","To Ship and Invoice"]},"thumbnailPath":{"type":"string"},"unitOfMeasureCode":{"type":"string"},"unitPrice":{"type":"number"}},"required":["customerContactName","customerEngineeringContactName","customerId","customerReference","jobOperations","jobProductionQuantity","jobQuantityComplete","jobQuantityShipped","jobStatus","locationId","orderDate","promisedDate","quantityInvoiced","quantitySent","quantityToSend","readableId","readableIdWithRevision","receiptPromisedDate","receiptRequestedDate","revision","saleQuantity","salesOrderId","salesOrderStatus","thumbnailPath","unitOfMeasureCode","unitPrice"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getModelByQuoteLineId":{"post":{"operationId":"sales.getModelByQuoteLineId","summary":"get model by quote line id","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteLineId":{"type":"string"}},"required":["quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/sales/getNoQuoteReasonsList":{"post":{"operationId":"sales.getNoQuoteReasonsList","summary":"get no quote reasons list","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getNoQuoteReason":{"post":{"operationId":"sales.getNoQuoteReason","summary":"get no quote reason","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"noQuoteReasonId":{"type":"string"}},"required":["noQuoteReasonId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","updatedAt","updatedBy"]}}}}}}},"/sales/getNoQuoteReasons":{"post":{"operationId":"sales.getNoQuoteReasons","summary":"get no quote reasons","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","name","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getOpportunity":{"post":{"operationId":"sales.getOpportunity","summary":"get opportunity","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opportunityId":{"type":["string","null"]}},"required":["opportunityId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"companyId":{"type":"string"},"purchaseOrderDocumentPath":{"type":"string"},"requestForQuoteDocumentPath":{"type":"string"},"salesRfqs":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"completedDate":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"noQuoteReasonId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"rfqDate":{"type":["string","null"]},"rfqId":{"type":["string","null"]},"salesPersonId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Draft","Ready for Quote","Quoted"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","completedDate","createdAt","createdBy","customerContactId","customerEngineeringContactId","customerId","customerLocationId","customerReference","customFields","employeeId","expirationDate","externalNotes","id","internalNotes","locationId","locationName","noQuoteReasonId","opportunityId","revisionId","rfqDate","rfqId","salesPersonId","status","tags","updatedAt","updatedBy"]}},"quotes":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"completedDate":{"type":["string","null"]},"completedLines":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"digitalQuoteAcceptedBy":{"type":["string","null"]},"digitalQuoteAcceptedByEmail":{"type":["string","null"]},"digitalQuoteRejectedBy":{"type":["string","null"]},"digitalQuoteRejectedByEmail":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"estimatorId":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalLinkId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"lines":{"type":["number","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"quoteId":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"salesPersonId":{"type":["string","null"]},"shippingCost":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Cancelled","Draft","Partial","Sent","Ordered","Lost","Expired"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","completedDate","completedLines","createdAt","createdBy","currencyCode","customerContactId","customerEngineeringContactId","customerId","customerLocationId","customerReference","customFields","digitalQuoteAcceptedBy","digitalQuoteAcceptedByEmail","digitalQuoteRejectedBy","digitalQuoteRejectedByEmail","dueDate","estimatorId","exchangeRate","exchangeRateUpdatedAt","expirationDate","externalLinkId","externalNotes","id","internalNotes","itemType","lines","locationId","locationName","opportunityId","quoteId","revisionId","salesPersonId","shippingCost","status","tags","thumbnailPath","updatedAt","updatedBy"]}},"salesOrders":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closedBy":{"type":["string","null"]},"companyId":{"type":["string","null"]},"completedDate":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"displayStatus":{"type":["string","null"],"enum":["Closed","Completed","Cancelled","Draft","In Progress","To Invoice","Needs Approval","To Ship","Confirmed","Invoiced","To Ship and Invoice"]},"dropShipment":{"type":["boolean","null"]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"externalId":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"incoterm":{"type":["string","null"],"enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"jobs":{"type":["array","null"],"items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},"lines":{"type":["array","null"],"items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},"locationId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"orderDate":{"type":["string","null"]},"orderTotal":{"type":["number","null"]},"paymentTermId":{"type":["string","null"]},"receiptPromisedDate":{"type":["string","null"]},"receiptRequestedDate":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"salesOrderId":{"type":["string","null"]},"salesPersonId":{"type":["string","null"]},"sentCompleteDate":{"type":["string","null"]},"shippingCost":{"type":["number","null"]},"shippingMethodId":{"type":["string","null"]},"shippingTermName":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Completed","Cancelled","Draft","In Progress","To Invoice","Needs Approval","To Ship","Confirmed","Invoiced","To Ship and Invoice"]},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","closedAt","closedBy","companyId","completedDate","createdAt","createdBy","currencyCode","customerContactId","customerEngineeringContactId","customerId","customerLocationId","customerReference","customFields","displayStatus","dropShipment","exchangeRate","exchangeRateUpdatedAt","externalId","externalNotes","id","incoterm","incotermLocation","internalNotes","itemType","jobs","lines","locationId","opportunityId","orderDate","orderTotal","paymentTermId","receiptPromisedDate","receiptRequestedDate","revisionId","salesOrderId","salesPersonId","sentCompleteDate","shippingCost","shippingMethodId","shippingTermName","status","thumbnailPath","updatedAt","updatedBy"]}}},"required":["id","companyId","purchaseOrderDocumentPath","requestForQuoteDocumentPath","salesRfqs","quotes","salesOrders"]}}}}}}},"/sales/getOpportunityDocuments":{"post":{"operationId":"sales.getOpportunityDocuments","summary":"get opportunity documents","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opportunityId":{"type":"string"}},"required":["opportunityId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"bucket":{"type":"string"},"name":{"type":"string"},"id":{"type":["string","null"]},"updated_at":{"type":["string","null"]},"created_at":{"type":["string","null"]},"last_accessed_at":{"type":["string","null"]},"metadata":{"type":["object","null"],"additionalProperties":{}},"bucket_id":{"type":["string","null"]},"owner":{"type":["string","null"]},"buckets":{"type":["object","null"],"properties":{"id":{"type":"string"},"type":{"anyOf":[{},{"type":"string","enum":["STANDARD"]},{"type":"string","enum":["ANALYTICS"]},{"type":"null"}]},"name":{"type":"string"},"owner":{"type":"string"},"file_size_limit":{"type":["number","null"]},"allowed_mime_types":{"type":["array","null"],"items":{"type":"string"}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"public":{"type":"boolean"},"versioning_status":{"type":["string","null"],"enum":["DISABLED","ENABLED","SUSPENDED"]}},"required":["id","name","owner","created_at","updated_at","public"]},"version":{"type":["string","null"]},"archived_at":{"type":["string","null"]},"is_delete_marker":{"type":["boolean","null"]},"is_versioned":{"type":["boolean","null"]}},"required":["bucket","name","id","updated_at","created_at","last_accessed_at","metadata"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getOpportunityLineDocuments":{"post":{"operationId":"sales.getOpportunityLineDocuments","summary":"get opportunity line documents","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"},"itemId":{"type":["string","null"]}},"required":["lineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"bucket":{"type":"string"},"name":{"type":"string"},"id":{"type":["string","null"]},"updated_at":{"type":["string","null"]},"created_at":{"type":["string","null"]},"last_accessed_at":{"type":["string","null"]},"metadata":{"type":["object","null"],"additionalProperties":{}},"bucket_id":{"type":["string","null"]},"owner":{"type":["string","null"]},"buckets":{"type":["object","null"],"properties":{"id":{"type":"string"},"type":{"anyOf":[{},{"type":"string","enum":["STANDARD"]},{"type":"string","enum":["ANALYTICS"]},{"type":"null"}]},"name":{"type":"string"},"owner":{"type":"string"},"file_size_limit":{"type":["number","null"]},"allowed_mime_types":{"type":["array","null"],"items":{"type":"string"}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"public":{"type":"boolean"},"versioning_status":{"type":["string","null"],"enum":["DISABLED","ENABLED","SUSPENDED"]}},"required":["id","name","owner","created_at","updated_at","public"]},"version":{"type":["string","null"]},"archived_at":{"type":["string","null"]},"is_delete_marker":{"type":["boolean","null"]},"is_versioned":{"type":["boolean","null"]}},"required":["bucket","name","id","updated_at","created_at","last_accessed_at","metadata"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getPricingRule":{"post":{"operationId":"sales.getPricingRule","summary":"get pricing rule","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"amount":{"type":"number"},"amountType":{"type":"string","enum":["Percentage","Fixed"]},"companyId":{"type":"string"},"configurationPrices":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customerIds":{"type":["array","null"],"items":{"type":"string"}},"customerTypeIds":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"itemIds":{"type":["array","null"],"items":{"type":"string"}},"itemPostingGroupId":{"type":["string","null"]},"maxQuantity":{"type":["number","null"]},"minQuantity":{"type":["number","null"]},"name":{"type":"string"},"priority":{"type":"number"},"ruleType":{"type":"string","enum":["Discount","Markup","Configuration"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"validFrom":{"type":["string","null"]},"validTo":{"type":["string","null"]}},"required":["active","amount","amountType","companyId","configurationPrices","createdAt","createdBy","customerIds","customerTypeIds","id","itemIds","itemPostingGroupId","maxQuantity","minQuantity","name","priority","ruleType","updatedAt","updatedBy","validFrom","validTo"]}}}}}}},"/sales/getPricingRules":{"post":{"operationId":"sales.getPricingRules","summary":"get pricing rules","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":"string"}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"amount":{"type":"number"},"amountType":{"type":"string","enum":["Percentage","Fixed"]},"companyId":{"type":"string"},"configurationPrices":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customerIds":{"type":["array","null"],"items":{"type":"string"}},"customerTypeIds":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"itemIds":{"type":["array","null"],"items":{"type":"string"}},"itemPostingGroupId":{"type":["string","null"]},"maxQuantity":{"type":["number","null"]},"minQuantity":{"type":["number","null"]},"name":{"type":"string"},"priority":{"type":"number"},"ruleType":{"type":"string","enum":["Discount","Markup","Configuration"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"validFrom":{"type":["string","null"]},"validTo":{"type":["string","null"]}},"required":["active","amount","amountType","companyId","configurationPrices","createdAt","createdBy","customerIds","customerTypeIds","id","itemIds","itemPostingGroupId","maxQuantity","minQuantity","name","priority","ruleType","updatedAt","updatedBy","validFrom","validTo"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuote":{"post":{"operationId":"sales.getQuote","summary":"get quote","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"completedDate":{"type":["string","null"]},"completedLines":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"digitalQuoteAcceptedBy":{"type":["string","null"]},"digitalQuoteAcceptedByEmail":{"type":["string","null"]},"digitalQuoteRejectedBy":{"type":["string","null"]},"digitalQuoteRejectedByEmail":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"estimatorId":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalLinkId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"lines":{"type":["number","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"quoteId":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"salesPersonId":{"type":["string","null"]},"shippingCost":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Cancelled","Draft","Partial","Sent","Ordered","Lost","Expired"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","completedDate","completedLines","createdAt","createdBy","currencyCode","customerContactId","customerEngineeringContactId","customerId","customerLocationId","customerReference","customFields","digitalQuoteAcceptedBy","digitalQuoteAcceptedByEmail","digitalQuoteRejectedBy","digitalQuoteRejectedByEmail","dueDate","estimatorId","exchangeRate","exchangeRateUpdatedAt","expirationDate","externalLinkId","externalNotes","id","internalNotes","itemType","lines","locationId","locationName","opportunityId","quoteId","revisionId","salesPersonId","shippingCost","status","tags","thumbnailPath","updatedAt","updatedBy"]}}}}}}},"/sales/getQuotes":{"post":{"operationId":"sales.getQuotes","summary":"get quotes","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"quoteId":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"dueDate":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Cancelled","Draft","Partial","Sent","Ordered","Lost","Expired"]},"salesPersonId":{"type":["string","null"]},"estimatorId":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"assignee":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"locationName":{"type":["string","null"]},"lines":{"type":["number","null"]},"completedLines":{"type":["number","null"]}},"required":["id","quoteId","revisionId","dueDate","expirationDate","status","salesPersonId","estimatorId","customerId","customerReference","assignee","customFields","companyId","createdAt","createdBy","updatedAt","updatedBy","thumbnailPath","itemType","locationName","lines","completedLines"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuotesList":{"post":{"operationId":"sales.getQuotesList","summary":"get quotes list","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"quoteId":{"type":"string"},"revisionId":{"type":"string"}},"required":["id","quoteId","revisionId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteAssembliesByLine":{"post":{"operationId":"sales.getQuoteAssembliesByLine","summary":"get quote assemblies by line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteLineId":{"type":"string"}},"required":["quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"parentMaterialId":{"type":["string","null"]},"quantityPerParent":{"type":"number"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"}},"required":["companyId","createdAt","createdBy","customFields","id","itemId","parentMaterialId","quantityPerParent","quoteId","quoteLineId","tags","updatedAt","updatedBy","version"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteAssemblies":{"post":{"operationId":"sales.getQuoteAssemblies","summary":"get quote assemblies","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"parentMaterialId":{"type":["string","null"]},"quantityPerParent":{"type":"number"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"}},"required":["companyId","createdAt","createdBy","customFields","id","itemId","parentMaterialId","quantityPerParent","quoteId","quoteLineId","tags","updatedAt","updatedBy","version"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteCustomerDetails":{"post":{"operationId":"sales.getQuoteCustomerDetails","summary":"get quote customer details","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"contactEmail":{"type":["string","null"]},"contactName":{"type":["string","null"]},"customerAddressLine1":{"type":["string","null"]},"customerAddressLine2":{"type":["string","null"]},"customerCity":{"type":["string","null"]},"customerCountryCode":{"type":["string","null"]},"customerCountryName":{"type":["string","null"]},"customerEori":{"type":["string","null"]},"customerName":{"type":["string","null"]},"customerPostalCode":{"type":["string","null"]},"customerStateProvince":{"type":["string","null"]},"customerTaxId":{"type":["string","null"]},"customerVatNumber":{"type":["string","null"]},"quoteId":{"type":["string","null"]}},"required":["contactEmail","contactName","customerAddressLine1","customerAddressLine2","customerCity","customerCountryCode","customerCountryName","customerEori","customerName","customerPostalCode","customerStateProvince","customerTaxId","customerVatNumber","quoteId"]}}}}}}},"/sales/getQuoteLine":{"post":{"operationId":"sales.getQuoteLine","summary":"get quote line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteLineId":{"type":"string"}},"required":["quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"additionalCharges":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdBy":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customerPartRevision":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"estimatorId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"]},"locationId":{"type":["string","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"noQuoteReason":{"type":["string","null"]},"priceTrace":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"pricingRuleId":{"type":["string","null"]},"quantity":{"type":["array","null"],"items":{"type":"number"}},"quoteId":{"type":["string","null"]},"quoteRevisionId":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["In Progress","Not Started","Complete","No Quote"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPricePrecision":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["additionalCharges","autodeskUrn","companyId","configuration","createdBy","customerPartId","customerPartRevision","customFields","description","estimatorId","externalNotes","id","internalNotes","itemId","itemReadableId","itemType","locationId","methodType","modelId","modelName","modelPath","modelSize","modelUploadId","noQuoteReason","priceTrace","pricingRuleId","quantity","quoteId","quoteRevisionId","sortOrder","status","tags","taxPercent","thumbnailPath","unitCost","unitOfMeasureCode","unitPricePrecision","updatedAt","updatedBy"]}}}}}}},"/sales/getQuoteLinesList":{"post":{"operationId":"sales.getQuoteLinesList","summary":"get quote lines list","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]}},"required":["id","description","readableIdWithRevision"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteMakeMethod":{"post":{"operationId":"sales.getQuoteMakeMethod","summary":"get quote make method","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteMakeMethodId":{"type":"string"}},"required":["quoteMakeMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"parentMaterialId":{"type":["string","null"]},"quantityPerParent":{"type":"number"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"},"itemType":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]}},"required":["companyId","createdAt","createdBy","customFields","id","itemId","parentMaterialId","quantityPerParent","quoteId","quoteLineId","tags","updatedAt","updatedBy","version","itemType"]}}}}}}},"/sales/getRootQuoteMakeMethod":{"post":{"operationId":"sales.getRootQuoteMakeMethod","summary":"get root quote make method","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteLineId":{"type":"string"}},"required":["quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"itemId":{"type":"string"},"parentMaterialId":{"type":["string","null"]},"quantityPerParent":{"type":"number"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":"number"},"itemType":{"type":"string","enum":["Part","Service","Material","Tool","Fixture","Consumable"]}},"required":["companyId","createdAt","createdBy","customFields","id","itemId","parentMaterialId","quantityPerParent","quoteId","quoteLineId","tags","updatedAt","updatedBy","version","itemType"]}}}}}}},"/sales/getQuoteMethodTrees":{"post":{"operationId":"sales.getQuoteMethodTrees","summary":"get quote method trees","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"data":{"type":"object","properties":{"description":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"isRoot":{"type":"boolean"},"itemId":{"type":"string"},"itemReadableId":{"type":"string"},"itemType":{"type":"string"},"kit":{"type":"boolean"},"methodMaterialId":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":"number"},"parentMaterialId":{"type":"string"},"quantity":{"type":"number"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quoteMakeMethodId":{"type":"string"},"quoteMaterialMakeMethodId":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":"string"},"storageUnitId":{"type":"string"},"unitCost":{"type":"number"},"unitCostSource":{"type":"string"},"version":{"type":"number"}},"required":["description","externalId","isRoot","itemId","itemReadableId","itemType","kit","methodMaterialId","methodType","order","parentMaterialId","quantity","quoteId","quoteLineId","quoteMakeMethodId","quoteMaterialMakeMethodId","replenishmentSystem","revision","storageUnitId","unitCost","unitCostSource","version"]},"children":{"type":"array","items":{"type":"object"}}},"required":["id","data","children"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteMethodTreeArray":{"post":{"operationId":"sales.getQuoteMethodTreeArray","summary":"get quote method tree array","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"isRoot":{"type":"boolean"},"itemId":{"type":"string"},"itemReadableId":{"type":"string"},"itemType":{"type":"string"},"kit":{"type":"boolean"},"methodMaterialId":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":"number"},"parentMaterialId":{"type":"string"},"quantity":{"type":"number"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quoteMakeMethodId":{"type":"string"},"quoteMaterialMakeMethodId":{"type":"string"},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]},"revision":{"type":"string"},"storageUnitId":{"type":"string"},"unitCost":{"type":"number"},"unitCostSource":{"type":"string"},"version":{"type":"number"}},"required":["description","externalId","isRoot","itemId","itemReadableId","itemType","kit","methodMaterialId","methodType","order","parentMaterialId","quantity","quoteId","quoteLineId","quoteMakeMethodId","quoteMaterialMakeMethodId","replenishmentSystem","revision","storageUnitId","unitCost","unitCostSource","version"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteLines":{"post":{"operationId":"sales.getQuoteLines","summary":"get quote lines","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"additionalCharges":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdBy":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customerPartRevision":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"estimatorId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"]},"locationId":{"type":["string","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"noQuoteReason":{"type":["string","null"]},"priceTrace":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"pricingRuleId":{"type":["string","null"]},"quantity":{"type":["array","null"],"items":{"type":"number"}},"quoteId":{"type":["string","null"]},"quoteRevisionId":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["In Progress","Not Started","Complete","No Quote"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPricePrecision":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["additionalCharges","autodeskUrn","companyId","configuration","createdBy","customerPartId","customerPartRevision","customFields","description","estimatorId","externalNotes","id","internalNotes","itemId","itemReadableId","itemType","locationId","methodType","modelId","modelName","modelPath","modelSize","modelUploadId","noQuoteReason","priceTrace","pricingRuleId","quantity","quoteId","quoteRevisionId","sortOrder","status","tags","taxPercent","thumbnailPath","unitCost","unitOfMeasureCode","unitPricePrecision","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteByExternalId":{"post":{"operationId":"sales.getQuoteByExternalId","summary":"get quote by external id","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalId":{"type":"string"}},"required":["externalId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerId":{"type":"string"},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"digitalQuoteAcceptedBy":{"type":["string","null"]},"digitalQuoteAcceptedByEmail":{"type":["string","null"]},"digitalQuoteRejectedBy":{"type":["string","null"]},"digitalQuoteRejectedByEmail":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"estimatorId":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalLinkId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"quoteId":{"type":"string"},"revisionId":{"type":"number"},"salesPersonId":{"type":["string","null"]},"status":{"type":"string","enum":["Cancelled","Draft","Partial","Sent","Ordered","Lost","Expired"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","completedDate","createdAt","createdBy","currencyCode","customerContactId","customerEngineeringContactId","customerId","customerLocationId","customerReference","customFields","digitalQuoteAcceptedBy","digitalQuoteAcceptedByEmail","digitalQuoteRejectedBy","digitalQuoteRejectedByEmail","dueDate","estimatorId","exchangeRate","exchangeRateUpdatedAt","expirationDate","externalLinkId","externalNotes","id","internalNotes","locationId","opportunityId","quoteId","revisionId","salesPersonId","status","tags","updatedAt","updatedBy"]}}}}}}},"/sales/getQuoteLinePrices":{"post":{"operationId":"sales.getQuoteLinePrices","summary":"get quote line prices","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteLineId":{"type":"string"}},"required":["quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"categoryMarkups":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"convertedNetExtendedPrice":{"type":["number","null"]},"convertedNetUnitPrice":{"type":["number","null"]},"convertedShippingCost":{"type":["number","null"]},"convertedUnitPrice":{"type":["number","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"discountPercent":{"type":"number"},"exchangeRate":{"type":["number","null"]},"leadTime":{"type":"number"},"netExtendedPrice":{"type":["number","null"]},"netUnitPrice":{"type":["number","null"]},"priceSource":{"type":"string"},"priceTrace":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"quantity":{"type":"number"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"shippingCost":{"type":"number"},"unitPrice":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["categoryMarkups","companyId","convertedNetExtendedPrice","convertedNetUnitPrice","convertedShippingCost","convertedUnitPrice","createdAt","createdBy","discountPercent","exchangeRate","leadTime","netExtendedPrice","netUnitPrice","priceSource","priceTrace","quantity","quoteId","quoteLineId","shippingCost","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteLinePricesByQuoteId":{"post":{"operationId":"sales.getQuoteLinePricesByQuoteId","summary":"get quote line prices by quote id","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"categoryMarkups":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"convertedNetExtendedPrice":{"type":["number","null"]},"convertedNetUnitPrice":{"type":["number","null"]},"convertedShippingCost":{"type":["number","null"]},"convertedUnitPrice":{"type":["number","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"discountPercent":{"type":"number"},"exchangeRate":{"type":["number","null"]},"leadTime":{"type":"number"},"netExtendedPrice":{"type":["number","null"]},"netUnitPrice":{"type":["number","null"]},"priceSource":{"type":"string"},"priceTrace":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"quantity":{"type":"number"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"shippingCost":{"type":"number"},"unitPrice":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["categoryMarkups","companyId","convertedNetExtendedPrice","convertedNetUnitPrice","convertedShippingCost","convertedUnitPrice","createdAt","createdBy","discountPercent","exchangeRate","leadTime","netExtendedPrice","netUnitPrice","priceSource","priceTrace","quantity","quoteId","quoteLineId","shippingCost","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteLinePricesByItemId":{"post":{"operationId":"sales.getQuoteLinePricesByItemId","summary":"get quote line prices by item id","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"currentQuoteId":{"type":"string"}},"required":["itemId","currentQuoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"additionalCharges":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdBy":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customerPartRevision":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"estimatorId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"]},"locationId":{"type":["string","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"noQuoteReason":{"type":["string","null"]},"priceTrace":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"pricingRuleId":{"type":["string","null"]},"qty":{"type":["number","null"]},"quantity":{"type":["array","null"],"items":{"type":"number"}},"quoteCreatedAt":{"type":["string","null"]},"quoteId":{"type":["string","null"]},"quoteReadableId":{"type":["string","null"]},"quoteRevisionId":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["In Progress","Not Started","Complete","No Quote"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":["number","null"]},"unitPricePrecision":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["additionalCharges","autodeskUrn","companyId","configuration","createdBy","customerId","customerPartId","customerPartRevision","customFields","description","estimatorId","externalNotes","id","internalNotes","itemId","itemReadableId","itemType","locationId","methodType","modelId","modelName","modelPath","modelSize","modelUploadId","noQuoteReason","priceTrace","pricingRuleId","qty","quantity","quoteCreatedAt","quoteId","quoteReadableId","quoteRevisionId","sortOrder","status","tags","taxPercent","thumbnailPath","unitCost","unitOfMeasureCode","unitPrice","unitPricePrecision","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteLinePricesByItemIds":{"post":{"operationId":"sales.getQuoteLinePricesByItemIds","summary":"get quote line prices by item ids","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"type":"array","items":{"type":"string"}},"currentQuoteId":{"type":"string"}},"required":["itemIds","currentQuoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"additionalCharges":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdBy":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customerPartRevision":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"estimatorId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"]},"locationId":{"type":["string","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"noQuoteReason":{"type":["string","null"]},"priceTrace":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"pricingRuleId":{"type":["string","null"]},"qty":{"type":["number","null"]},"quantity":{"type":["array","null"],"items":{"type":"number"}},"quoteCreatedAt":{"type":["string","null"]},"quoteId":{"type":["string","null"]},"quoteReadableId":{"type":["string","null"]},"quoteRevisionId":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["In Progress","Not Started","Complete","No Quote"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":["number","null"]},"unitPricePrecision":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["additionalCharges","autodeskUrn","companyId","configuration","createdBy","customerId","customerPartId","customerPartRevision","customFields","description","estimatorId","externalNotes","id","internalNotes","itemId","itemReadableId","itemType","locationId","methodType","modelId","modelName","modelPath","modelSize","modelUploadId","noQuoteReason","priceTrace","pricingRuleId","qty","quantity","quoteCreatedAt","quoteId","quoteReadableId","quoteRevisionId","sortOrder","status","tags","taxPercent","thumbnailPath","unitCost","unitOfMeasureCode","unitPrice","unitPricePrecision","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteMaterials":{"post":{"operationId":"sales.getQuoteMaterials","summary":"get quote materials","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":"string"},"id":{"type":"string"},"itemId":{"type":"string"},"itemType":{"type":"string"},"kit":{"type":"boolean"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":"number"},"productionQuantity":{"type":["number","null"]},"quantity":{"type":"number"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quoteMakeMethodId":{"type":"string"},"quoteOperationId":{"type":["string","null"]},"scrapQuantity":{"type":"number"},"storageUnitId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitCost":{"type":"number"},"unitCostSource":{"type":"string"},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","description","id","itemId","itemType","kit","methodType","order","productionQuantity","quantity","quoteId","quoteLineId","quoteMakeMethodId","quoteOperationId","scrapQuantity","storageUnitId","tags","unitCost","unitCostSource","unitOfMeasureCode","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteMaterial":{"post":{"operationId":"sales.getQuoteMaterial","summary":"get quote material","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materialId":{"type":"string"}},"required":["materialId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemType":{"type":["string","null"]},"kit":{"type":["boolean","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":["number","null"]},"productionQuantity":{"type":["number","null"]},"quantity":{"type":["number","null"]},"quoteId":{"type":["string","null"]},"quoteLineId":{"type":["string","null"]},"quoteMakeMethodId":{"type":["string","null"]},"quoteMaterialMakeMethodId":{"type":["string","null"]},"quoteOperationId":{"type":["string","null"]},"scrapQuantity":{"type":["number","null"]},"storageUnitId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitCost":{"type":["number","null"]},"unitCostSource":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"version":{"type":["number","null"]}},"required":["companyId","createdAt","createdBy","customFields","description","id","itemId","itemType","kit","methodType","order","productionQuantity","quantity","quoteId","quoteLineId","quoteMakeMethodId","quoteMaterialMakeMethodId","quoteOperationId","scrapQuantity","storageUnitId","tags","unitCost","unitCostSource","unitOfMeasureCode","updatedAt","updatedBy","version"]}}}}}}},"/sales/getQuoteMaterialsByLine":{"post":{"operationId":"sales.getQuoteMaterialsByLine","summary":"get quote materials by line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteLineId":{"type":"string"}},"required":["quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":"string"},"id":{"type":"string"},"itemId":{"type":"string"},"itemType":{"type":"string"},"kit":{"type":"boolean"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":"number"},"productionQuantity":{"type":["number","null"]},"quantity":{"type":"number"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quoteMakeMethodId":{"type":"string"},"quoteOperationId":{"type":["string","null"]},"scrapQuantity":{"type":"number"},"storageUnitId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitCost":{"type":"number"},"unitCostSource":{"type":"string"},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","description","id","itemId","itemType","kit","methodType","order","productionQuantity","quantity","quoteId","quoteLineId","quoteMakeMethodId","quoteOperationId","scrapQuantity","storageUnitId","tags","unitCost","unitCostSource","unitOfMeasureCode","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteMaterialsByMethodId":{"post":{"operationId":"sales.getQuoteMaterialsByMethodId","summary":"get quote materials by method id","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteMakeMethodId":{"type":"string"}},"required":["quoteMakeMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":"string"},"id":{"type":"string"},"itemId":{"type":"string"},"itemType":{"type":"string"},"kit":{"type":"boolean"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":"number"},"productionQuantity":{"type":["number","null"]},"quantity":{"type":"number"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quoteMakeMethodId":{"type":"string"},"quoteOperationId":{"type":["string","null"]},"scrapQuantity":{"type":"number"},"storageUnitId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitCost":{"type":"number"},"unitCostSource":{"type":"string"},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"item":{"type":"object","properties":{"name":{"type":"string"},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"replenishmentSystem":{"type":"string","enum":["Buy","Make","Buy and Make"]}},"required":["name","itemTrackingType","replenishmentSystem"]}},"required":["companyId","createdAt","createdBy","customFields","description","id","itemId","itemType","kit","methodType","order","productionQuantity","quantity","quoteId","quoteLineId","quoteMakeMethodId","quoteOperationId","scrapQuantity","storageUnitId","tags","unitCost","unitCostSource","unitOfMeasureCode","updatedAt","updatedBy","item"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteMaterialsByOperation":{"post":{"operationId":"sales.getQuoteMaterialsByOperation","summary":"get quote materials by operation","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteOperationId":{"type":"string"}},"required":["quoteOperationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":"string"},"id":{"type":"string"},"itemId":{"type":"string"},"itemType":{"type":"string"},"kit":{"type":"boolean"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"order":{"type":"number"},"productionQuantity":{"type":["number","null"]},"quantity":{"type":"number"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quoteMakeMethodId":{"type":"string"},"quoteOperationId":{"type":["string","null"]},"scrapQuantity":{"type":"number"},"storageUnitId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitCost":{"type":"number"},"unitCostSource":{"type":"string"},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","description","id","itemId","itemType","kit","methodType","order","productionQuantity","quantity","quoteId","quoteLineId","quoteMakeMethodId","quoteOperationId","scrapQuantity","storageUnitId","tags","unitCost","unitCostSource","unitOfMeasureCode","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteOperation":{"post":{"operationId":"sales.getQuoteOperation","summary":"get quote operation","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteOperationId":{"type":"string"}},"required":["quoteOperationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assemblyInstructionId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"id":{"type":"string"},"inspectionDocumentId":{"type":["string","null"]},"laborRate":{"type":"number"},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineRate":{"type":["number","null"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"operationLeadTime":{"type":"number"},"operationMinimumCost":{"type":"number"},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationSupplierProcessId":{"type":["string","null"]},"operationType":{"type":"string","enum":["Inspection","Process","Assembly","Outside Processing"]},"operationUnitCost":{"type":"number"},"order":{"type":"number"},"overheadRate":{"type":"number"},"procedureId":{"type":["string","null"]},"processId":{"type":"string"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quoteMakeMethodId":{"type":["string","null"]},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workInstruction":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["assemblyInstructionId","companyId","createdAt","createdBy","customFields","description","id","inspectionDocumentId","laborRate","laborTime","laborUnit","machineRate","machineTime","machineUnit","operationLeadTime","operationMinimumCost","operationOrder","operationSupplierProcessId","operationType","operationUnitCost","order","overheadRate","procedureId","processId","quoteId","quoteLineId","quoteMakeMethodId","setupTime","setupUnit","tags","updatedAt","updatedBy","workCenterId","workInstruction"]}}}}}}},"/sales/getQuoteOperationsByLine":{"post":{"operationId":"sales.getQuoteOperationsByLine","summary":"get quote operations by line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteLineId":{"type":"string"}},"required":["quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assemblyInstructionId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"id":{"type":"string"},"inspectionDocumentId":{"type":["string","null"]},"laborRate":{"type":"number"},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineRate":{"type":["number","null"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"operationLeadTime":{"type":"number"},"operationMinimumCost":{"type":"number"},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationSupplierProcessId":{"type":["string","null"]},"operationType":{"type":"string","enum":["Inspection","Process","Assembly","Outside Processing"]},"operationUnitCost":{"type":"number"},"order":{"type":"number"},"overheadRate":{"type":"number"},"procedureId":{"type":["string","null"]},"processId":{"type":"string"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quoteMakeMethodId":{"type":["string","null"]},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workInstruction":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["assemblyInstructionId","companyId","createdAt","createdBy","customFields","description","id","inspectionDocumentId","laborRate","laborTime","laborUnit","machineRate","machineTime","machineUnit","operationLeadTime","operationMinimumCost","operationOrder","operationSupplierProcessId","operationType","operationUnitCost","order","overheadRate","procedureId","processId","quoteId","quoteLineId","quoteMakeMethodId","setupTime","setupUnit","tags","updatedAt","updatedBy","workCenterId","workInstruction"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteOperationsByMethodId":{"post":{"operationId":"sales.getQuoteOperationsByMethodId","summary":"get quote operations by method id","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteMakeMethodId":{"type":"string"}},"required":["quoteMakeMethodId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assemblyInstructionId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"id":{"type":"string"},"inspectionDocumentId":{"type":["string","null"]},"laborRate":{"type":"number"},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineRate":{"type":["number","null"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"operationLeadTime":{"type":"number"},"operationMinimumCost":{"type":"number"},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationSupplierProcessId":{"type":["string","null"]},"operationType":{"type":"string","enum":["Inspection","Process","Assembly","Outside Processing"]},"operationUnitCost":{"type":"number"},"order":{"type":"number"},"overheadRate":{"type":"number"},"procedureId":{"type":["string","null"]},"processId":{"type":"string"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quoteMakeMethodId":{"type":["string","null"]},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workInstruction":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"quoteOperationTool":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"operationId":{"type":"string"},"quantity":{"type":"number"},"toolId":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","id","operationId","quantity","toolId","updatedAt","updatedBy"]}},"quoteOperationParameter":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"key":{"type":"string"},"operationId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"value":{"type":"string"}},"required":["companyId","createdAt","createdBy","id","key","operationId","updatedAt","updatedBy","value"]}},"quoteOperationStep":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]},"fileTypes":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"listValues":{"type":["array","null"],"items":{"type":"string"}},"maxValue":{"type":["number","null"]},"minValue":{"type":["number","null"]},"name":{"type":"string"},"operationId":{"type":"string"},"required":{"type":["boolean","null"]},"sortOrder":{"type":"number"},"type":{"type":"string","enum":["Value","Measurement","Checkbox","Timestamp","Person","List","File","Task","Inspection"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","description","fileTypes","id","listValues","maxValue","minValue","name","operationId","required","sortOrder","type","unitOfMeasureCode","updatedAt","updatedBy"]}}},"required":["assemblyInstructionId","companyId","createdAt","createdBy","customFields","description","id","inspectionDocumentId","laborRate","laborTime","laborUnit","machineRate","machineTime","machineUnit","operationLeadTime","operationMinimumCost","operationOrder","operationSupplierProcessId","operationType","operationUnitCost","order","overheadRate","procedureId","processId","quoteId","quoteLineId","quoteMakeMethodId","setupTime","setupUnit","tags","updatedAt","updatedBy","workCenterId","workInstruction","quoteOperationTool","quoteOperationParameter","quoteOperationStep"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuoteOperations":{"post":{"operationId":"sales.getQuoteOperations","summary":"get quote operations","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assemblyInstructionId":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"id":{"type":"string"},"inspectionDocumentId":{"type":["string","null"]},"laborRate":{"type":"number"},"laborTime":{"type":"number"},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineRate":{"type":["number","null"]},"machineTime":{"type":"number"},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"operationLeadTime":{"type":"number"},"operationMinimumCost":{"type":"number"},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationSupplierProcessId":{"type":["string","null"]},"operationType":{"type":"string","enum":["Inspection","Process","Assembly","Outside Processing"]},"operationUnitCost":{"type":"number"},"order":{"type":"number"},"overheadRate":{"type":"number"},"procedureId":{"type":["string","null"]},"processId":{"type":"string"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quoteMakeMethodId":{"type":["string","null"]},"setupTime":{"type":"number"},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"workCenterId":{"type":["string","null"]},"workInstruction":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["assemblyInstructionId","companyId","createdAt","createdBy","customFields","description","id","inspectionDocumentId","laborRate","laborTime","laborUnit","machineRate","machineTime","machineUnit","operationLeadTime","operationMinimumCost","operationOrder","operationSupplierProcessId","operationType","operationUnitCost","order","overheadRate","procedureId","processId","quoteId","quoteLineId","quoteMakeMethodId","setupTime","setupUnit","tags","updatedAt","updatedBy","workCenterId","workInstruction"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getQuotePayment":{"post":{"operationId":"sales.getQuotePayment","summary":"get quote payment","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"invoiceCustomerContactId":{"type":["string","null"]},"invoiceCustomerId":{"type":["string","null"]},"invoiceCustomerLocationId":{"type":["string","null"]},"paymentTermId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","customFields","id","invoiceCustomerContactId","invoiceCustomerId","invoiceCustomerLocationId","paymentTermId","updatedAt","updatedBy"]}}}}}}},"/sales/getQuoteShipment":{"post":{"operationId":"sales.getQuoteShipment","summary":"get quote shipment","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"id":{"type":"string"},"incoterm":{"type":["string","null"],"enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":["string","null"]},"locationId":{"type":["string","null"]},"receiptRequestedDate":{"type":["string","null"]},"shippingCost":{"type":["number","null"]},"shippingMethodId":{"type":["string","null"]},"shippingTermId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","id","incoterm","incotermLocation","locationId","receiptRequestedDate","shippingCost","shippingMethodId","shippingTermId","updatedAt","updatedBy"]}}}}}}},"/sales/getRelatedPricesForQuoteLine":{"post":{"operationId":"sales.getRelatedPricesForQuoteLine","summary":"get related prices for quote line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"quoteId":{"type":"string"}},"required":["itemId","quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"historicalQuoteLinePrices":{"type":["array","null"],"items":{"type":"object","properties":{"additionalCharges":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"createdBy":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customerPartRevision":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"estimatorId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"]},"locationId":{"type":["string","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"noQuoteReason":{"type":["string","null"]},"priceTrace":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"pricingRuleId":{"type":["string","null"]},"qty":{"type":["number","null"]},"quantity":{"type":["array","null"],"items":{"type":"number"}},"quoteCreatedAt":{"type":["string","null"]},"quoteId":{"type":["string","null"]},"quoteReadableId":{"type":["string","null"]},"quoteRevisionId":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["In Progress","Not Started","Complete","No Quote"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":["number","null"]},"unitPricePrecision":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["additionalCharges","autodeskUrn","companyId","configuration","createdBy","customerId","customerPartId","customerPartRevision","customFields","description","estimatorId","externalNotes","id","internalNotes","itemId","itemReadableId","itemType","locationId","methodType","modelId","modelName","modelPath","modelSize","modelUploadId","noQuoteReason","priceTrace","pricingRuleId","qty","quantity","quoteCreatedAt","quoteId","quoteReadableId","quoteRevisionId","sortOrder","status","tags","taxPercent","thumbnailPath","unitCost","unitOfMeasureCode","unitPrice","unitPricePrecision","updatedAt","updatedBy"]}},"relatedSalesOrderLines":{"type":["array","null"],"items":{"type":"object","properties":{"accountId":{"type":["string","null"]},"addOnCost":{"type":["number","null"]},"assetId":{"type":["string","null"]},"assetName":{"type":["string","null"]},"assetReadableId":{"type":["string","null"]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"convertedAddOnCost":{"type":["number","null"]},"convertedNonTaxableAddOnCost":{"type":["number","null"]},"convertedShippingCost":{"type":["number","null"]},"convertedUnitPrice":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customerPartRevision":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"invoicedComplete":{"type":["boolean","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"nonTaxableAddOnCost":{"type":["number","null"]},"orderDate":{"type":["string","null"]},"priceTrace":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"pricingRuleId":{"type":["string","null"]},"promisedDate":{"type":["string","null"]},"quantityInvoiced":{"type":["number","null"]},"quantitySent":{"type":["number","null"]},"quantityToInvoice":{"type":["number","null"]},"quantityToSend":{"type":["number","null"]},"saleQuantity":{"type":["number","null"]},"salesOrderId":{"type":["string","null"]},"salesOrderLineType":{"type":["string","null"],"enum":["Fixed Asset","Part","Service","Material","Tool","Fixture","Consumable","Comment"]},"salesOrderReadableId":{"type":["string","null"]},"sentComplete":{"type":["boolean","null"]},"sentDate":{"type":["string","null"]},"setupPrice":{"type":["number","null"]},"shippingCost":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Completed","In Progress","Ordered"]},"storageUnitId":{"type":["string","null"]},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","addOnCost","assetId","assetName","assetReadableId","autodeskUrn","companyId","configuration","convertedAddOnCost","convertedNonTaxableAddOnCost","convertedShippingCost","convertedUnitPrice","createdAt","createdBy","customerId","customerPartId","customerPartRevision","customFields","description","exchangeRate","externalNotes","id","internalNotes","invoicedComplete","itemId","itemReadableId","locationId","methodType","modelId","modelName","modelPath","modelSize","modelUploadId","nonTaxableAddOnCost","orderDate","priceTrace","pricingRuleId","promisedDate","quantityInvoiced","quantitySent","quantityToInvoice","quantityToSend","saleQuantity","salesOrderId","salesOrderLineType","salesOrderReadableId","sentComplete","sentDate","setupPrice","shippingCost","sortOrder","status","storageUnitId","taxPercent","thumbnailPath","unitCost","unitOfMeasureCode","unitPrice","updatedAt","updatedBy"]}}},"required":["historicalQuoteLinePrices","relatedSalesOrderLines"]}}}}}}},"/sales/getSalesDocumentsAssignedToMe":{"post":{"operationId":"sales.getSalesDocumentsAssignedToMe","summary":"get sales documents assigned to me","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"assignee":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closedBy":{"type":["string","null"]},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":"string"},"customerContactId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerId":{"type":"string"},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"orderDate":{"type":["string","null"]},"revisionId":{"type":"number"},"salesOrderId":{"type":"string"},"salesPersonId":{"type":["string","null"]},"sentCompleteDate":{"type":["string","null"]},"status":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","To Invoice","Needs Approval","To Ship","Confirmed","Invoiced","To Ship and Invoice"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["type","assignee","closedAt","closedBy","companyId","completedDate","createdAt","createdBy","currencyCode","customerContactId","customerEngineeringContactId","customerId","customerLocationId","customerReference","customFields","exchangeRate","exchangeRateUpdatedAt","externalNotes","id","internalNotes","locationId","opportunityId","orderDate","revisionId","salesOrderId","salesPersonId","sentCompleteDate","status","updatedAt","updatedBy"]},{"type":"object","properties":{"type":{"type":"string"},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"currencyCode":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerId":{"type":"string"},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"digitalQuoteAcceptedBy":{"type":["string","null"]},"digitalQuoteAcceptedByEmail":{"type":["string","null"]},"digitalQuoteRejectedBy":{"type":["string","null"]},"digitalQuoteRejectedByEmail":{"type":["string","null"]},"dueDate":{"type":["string","null"]},"estimatorId":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalLinkId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"quoteId":{"type":"string"},"revisionId":{"type":"number"},"salesPersonId":{"type":["string","null"]},"status":{"type":"string","enum":["Cancelled","Draft","Partial","Sent","Ordered","Lost","Expired"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["type","assignee","companyId","completedDate","createdAt","createdBy","currencyCode","customerContactId","customerEngineeringContactId","customerId","customerLocationId","customerReference","customFields","digitalQuoteAcceptedBy","digitalQuoteAcceptedByEmail","digitalQuoteRejectedBy","digitalQuoteRejectedByEmail","dueDate","estimatorId","exchangeRate","exchangeRateUpdatedAt","expirationDate","externalLinkId","externalNotes","id","internalNotes","locationId","opportunityId","quoteId","revisionId","salesPersonId","status","tags","updatedAt","updatedBy"]},{"type":"object","properties":{"type":{"type":"string"},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"noQuoteReasonId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"revisionId":{"type":"number"},"rfqDate":{"type":"string"},"rfqId":{"type":"string"},"salesPersonId":{"type":["string","null"]},"status":{"type":"string","enum":["Closed","Draft","Ready for Quote","Quoted"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["type","assignee","companyId","completedDate","createdAt","createdBy","customerContactId","customerEngineeringContactId","customerId","customerLocationId","customerReference","customFields","employeeId","expirationDate","externalNotes","id","internalNotes","locationId","noQuoteReasonId","opportunityId","revisionId","rfqDate","rfqId","salesPersonId","status","tags","updatedAt","updatedBy"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesOrder":{"post":{"operationId":"sales.getSalesOrder","summary":"get sales order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderId":{"type":"string"}},"required":["salesOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"closedBy":{"type":["string","null"]},"companyId":{"type":["string","null"]},"completedDate":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"displayStatus":{"type":["string","null"],"enum":["Closed","Completed","Cancelled","Draft","In Progress","To Invoice","Needs Approval","To Ship","Confirmed","Invoiced","To Ship and Invoice"]},"dropShipment":{"type":["boolean","null"]},"exchangeRate":{"type":["number","null"]},"exchangeRateUpdatedAt":{"type":["string","null"]},"externalId":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"incoterm":{"type":["string","null"],"enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"jobs":{"type":["array","null"],"items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"lines":{"type":["array","null"],"items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"locationId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"orderDate":{"type":["string","null"]},"orderTotal":{"type":["number","null"]},"paymentTermId":{"type":["string","null"]},"receiptPromisedDate":{"type":["string","null"]},"receiptRequestedDate":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"salesOrderId":{"type":["string","null"]},"salesPersonId":{"type":["string","null"]},"sentCompleteDate":{"type":["string","null"]},"shippingCost":{"type":["number","null"]},"shippingMethodId":{"type":["string","null"]},"shippingTermName":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Completed","Cancelled","Draft","In Progress","To Invoice","Needs Approval","To Ship","Confirmed","Invoiced","To Ship and Invoice"]},"thumbnailPath":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","closedAt","closedBy","companyId","completedDate","createdAt","createdBy","currencyCode","customerContactId","customerEngineeringContactId","customerId","customerLocationId","customerReference","customFields","displayStatus","dropShipment","exchangeRate","exchangeRateUpdatedAt","externalId","externalNotes","id","incoterm","incotermLocation","internalNotes","itemType","jobs","lines","locationId","opportunityId","orderDate","orderTotal","paymentTermId","receiptPromisedDate","receiptRequestedDate","revisionId","salesOrderId","salesPersonId","sentCompleteDate","shippingCost","shippingMethodId","shippingTermName","status","thumbnailPath","updatedAt","updatedBy"]}}}}}}},"/sales/getSalesOrderCustomerDetails":{"post":{"operationId":"sales.getSalesOrderCustomerDetails","summary":"get sales order customer details","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderId":{"type":"string"}},"required":["salesOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"customerAddressLine1":{"type":["string","null"]},"customerAddressLine2":{"type":["string","null"]},"customerCity":{"type":["string","null"]},"customerCountryCode":{"type":["string","null"]},"customerCountryName":{"type":["string","null"]},"customerEori":{"type":["string","null"]},"customerName":{"type":["string","null"]},"customerPostalCode":{"type":["string","null"]},"customerStateProvince":{"type":["string","null"]},"customerTaxId":{"type":["string","null"]},"customerVatNumber":{"type":["string","null"]},"id":{"type":["string","null"]},"paymentAddressLine1":{"type":["string","null"]},"paymentAddressLine2":{"type":["string","null"]},"paymentCity":{"type":["string","null"]},"paymentCountryCode":{"type":["string","null"]},"paymentCountryName":{"type":["string","null"]},"paymentCustomerName":{"type":["string","null"]},"paymentPostalCode":{"type":["string","null"]},"paymentStateProvince":{"type":["string","null"]}},"required":["customerAddressLine1","customerAddressLine2","customerCity","customerCountryCode","customerCountryName","customerEori","customerName","customerPostalCode","customerStateProvince","customerTaxId","customerVatNumber","id","paymentAddressLine1","paymentAddressLine2","paymentCity","paymentCountryCode","paymentCountryName","paymentCustomerName","paymentPostalCode","paymentStateProvince"]}}}}}}},"/sales/getSalesOrderRelatedItems":{"post":{"operationId":"sales.getSalesOrderRelatedItems","summary":"get sales order related items","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderId":{"type":"string"},"opportunityId":{"type":"string"}},"required":["salesOrderId","opportunityId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"jobs":{"type":"array","items":{"type":"object","properties":{"actualTime":{"type":["number","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"completedDate":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"deadlineType":{"type":"string","enum":["No Deadline","ASAP","Soft Deadline","Hard Deadline"]},"dueDate":{"type":["string","null"]},"estimatedTime":{"type":["number","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"jobId":{"type":"string"},"locationId":{"type":"string"},"modelUploadId":{"type":["string","null"]},"notes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"priority":{"type":"number"},"productionQuantity":{"type":["number","null"]},"projectedCompletionAt":{"type":["string","null"]},"quantity":{"type":"number"},"quantityComplete":{"type":"number"},"quantityReceivedToInventory":{"type":"number"},"quantityShipped":{"type":"number"},"quoteId":{"type":["string","null"]},"quoteLineId":{"type":["string","null"]},"releasedDate":{"type":["string","null"]},"salesOrderId":{"type":["string","null"]},"salesOrderLineId":{"type":["string","null"]},"scheduleOutdatedAt":{"type":["string","null"]},"scheduleOutdatedReason":{"type":["string","null"]},"scrapQuantity":{"type":"number"},"secondsToComplete":{"type":["number","null"]},"startDate":{"type":["string","null"]},"status":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","Ready","Paused","Overdue","Due Today","Planned"]},"storageUnitId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"unitOfMeasureCode":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["actualTime","assignee","companyId","completedDate","configuration","createdAt","createdBy","customerId","customFields","deadlineType","dueDate","estimatedTime","id","itemId","jobId","locationId","modelUploadId","notes","priority","productionQuantity","projectedCompletionAt","quantity","quantityComplete","quantityReceivedToInventory","quantityShipped","quoteId","quoteLineId","releasedDate","salesOrderId","salesOrderLineId","scheduleOutdatedAt","scheduleOutdatedReason","scrapQuantity","secondsToComplete","startDate","status","storageUnitId","tags","unitOfMeasureCode","updatedAt","updatedBy"]}},"shipments":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"externalDocumentId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"invoiced":{"type":["boolean","null"]},"locationId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"shipmentId":{"type":"string"},"shippingMethodId":{"type":["string","null"]},"sourceDocument":{"type":["string","null"],"enum":["Sales Invoice","Purchase Invoice","Purchase Order","Sales Order","Purchase Return Order","Sales Return Order","Inbound Transfer","Outbound Transfer"]},"sourceDocumentId":{"type":["string","null"]},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Pending","Draft","Posted","Voided"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"trackingNumber":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"shipmentLine":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"fulfillmentId":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"lineId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"orderQuantity":{"type":"number"},"outstandingQuantity":{"type":"number"},"requiresBatchTracking":{"type":"boolean"},"requiresSerialTracking":{"type":"boolean"},"shipmentId":{"type":"string"},"shippedQuantity":{"type":"number"},"storageUnitId":{"type":["string","null"]},"unitOfMeasure":{"type":"string"},"unitPrice":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","fulfillmentId","id","itemId","lineId","locationId","orderQuantity","outstandingQuantity","requiresBatchTracking","requiresSerialTracking","shipmentId","shippedQuantity","storageUnitId","unitOfMeasure","unitPrice","updatedAt","updatedBy"]}}},"required":["assignee","companyId","createdAt","createdBy","customerId","customFields","externalDocumentId","externalNotes","id","internalNotes","invoiced","locationId","opportunityId","postedBy","postingDate","shipmentId","shippingMethodId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","supplierId","supplierInteractionId","tags","trackingNumber","updatedAt","updatedBy","shipmentLine"]}},"invoices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"invoiceId":{"type":"string"},"status":{"type":"string","enum":["Pending","Draft","Voided","Overdue","Return","Paid","Partially Paid","Submitted","Credit Note Issued"]}},"required":["id","invoiceId","status"]}},"salesReturnOrders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"salesReturnOrderId":{"type":"string"},"status":{"type":"string"}},"required":["id","salesReturnOrderId","status"]}}},"required":["jobs","shipments","invoices","salesReturnOrders"]}}}}}}},"/sales/getSalesOrders":{"post":{"operationId":"sales.getSalesOrders","summary":"get sales orders","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{"type":["string","null"]},"customerId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"salesOrderId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Completed","Cancelled","Draft","In Progress","To Invoice","Needs Approval","To Ship","Confirmed","Invoiced","To Ship and Invoice"]},"orderDate":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"locationId":{"type":["string","null"]},"displayStatus":{"type":["string","null"],"enum":["Closed","Completed","Cancelled","Draft","In Progress","To Invoice","Needs Approval","To Ship","Confirmed","Invoiced","To Ship and Invoice"]},"thumbnailPath":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"orderTotal":{"type":["number","null"]},"jobs":{"type":["array","null"],"items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},"lines":{"type":["array","null"],"items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},"paymentTermId":{"type":["string","null"]},"shippingMethodId":{"type":["string","null"]},"receiptPromisedDate":{"type":["string","null"]},"dropShipment":{"type":["boolean","null"]}},"required":["id","salesOrderId","status","orderDate","customerId","customerReference","assignee","companyId","customFields","createdAt","createdBy","updatedAt","updatedBy","locationId","displayStatus","thumbnailPath","itemType","orderTotal","jobs","lines","paymentTermId","shippingMethodId","receiptPromisedDate","dropShipment"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesOrdersList":{"post":{"operationId":"sales.getSalesOrdersList","summary":"get sales orders list","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"salesOrderId":{"type":"string"}},"required":["id","salesOrderId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesOrdersByIds":{"post":{"operationId":"sales.getSalesOrdersByIds","summary":"get sales orders by ids","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}},"required":["ids"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"salesOrderId":{"type":"string"}},"required":["id","salesOrderId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesOrderPayment":{"post":{"operationId":"sales.getSalesOrderPayment","summary":"get sales order payment","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderId":{"type":"string"}},"required":["salesOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"invoiceCustomerContactId":{"type":["string","null"]},"invoiceCustomerId":{"type":["string","null"]},"invoiceCustomerLocationId":{"type":["string","null"]},"paymentComplete":{"type":"boolean"},"paymentTermId":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","customFields","id","invoiceCustomerContactId","invoiceCustomerId","invoiceCustomerLocationId","paymentComplete","paymentTermId","updatedAt","updatedBy"]}}}}}}},"/sales/getSalesTerms":{"post":{"operationId":"sales.getSalesTerms","summary":"get sales terms","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"salesTerms":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["salesTerms"]}}}}}}},"/sales/getSalesOrderShipment":{"post":{"operationId":"sales.getSalesOrderShipment","summary":"get sales order shipment","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderId":{"type":"string"}},"required":["salesOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"customerId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"deliveryDate":{"type":["string","null"]},"dropShipment":{"type":"boolean"},"id":{"type":"string"},"incoterm":{"type":["string","null"],"enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":["string","null"]},"locationId":{"type":["string","null"]},"notes":{"type":["string","null"]},"receiptPromisedDate":{"type":["string","null"]},"receiptRequestedDate":{"type":["string","null"]},"shippingCost":{"type":["number","null"]},"shippingMethodId":{"type":["string","null"]},"shippingTermId":{"type":["string","null"]},"supplierId":{"type":["string","null"]},"supplierLocationId":{"type":["string","null"]},"trackingNumber":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","customerId","customerLocationId","customFields","deliveryDate","dropShipment","id","incoterm","incotermLocation","locationId","notes","receiptPromisedDate","receiptRequestedDate","shippingCost","shippingMethodId","shippingTermId","supplierId","supplierLocationId","trackingNumber","updatedAt","updatedBy"]}}}}}}},"/sales/getSalesOrderCustomers":{"post":{"operationId":"sales.getSalesOrderCustomers","summary":"get sales order customers","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"]}},"required":["id","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesOrderLines":{"post":{"operationId":"sales.getSalesOrderLines","summary":"get sales order lines","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderId":{"type":"string"}},"required":["salesOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":["string","null"]},"addOnCost":{"type":["number","null"]},"assetId":{"type":["string","null"]},"assetName":{"type":["string","null"]},"assetReadableId":{"type":["string","null"]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"convertedAddOnCost":{"type":["number","null"]},"convertedNonTaxableAddOnCost":{"type":["number","null"]},"convertedShippingCost":{"type":["number","null"]},"convertedUnitPrice":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customerPartRevision":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoicedComplete":{"type":["boolean","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"nonTaxableAddOnCost":{"type":["number","null"]},"orderDate":{"type":["string","null"]},"priceTrace":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"pricingRuleId":{"type":["string","null"]},"promisedDate":{"type":["string","null"]},"quantityInvoiced":{"type":["number","null"]},"quantitySent":{"type":["number","null"]},"quantityToInvoice":{"type":["number","null"]},"quantityToSend":{"type":["number","null"]},"saleQuantity":{"type":["number","null"]},"salesOrderId":{"type":["string","null"]},"salesOrderLineType":{"type":["string","null"],"enum":["Fixed Asset","Part","Service","Material","Tool","Fixture","Consumable","Comment"]},"salesOrderReadableId":{"type":["string","null"]},"sentComplete":{"type":["boolean","null"]},"sentDate":{"type":["string","null"]},"setupPrice":{"type":["number","null"]},"shippingCost":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Completed","In Progress","Ordered"]},"storageUnitId":{"type":["string","null"]},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","addOnCost","assetId","assetName","assetReadableId","autodeskUrn","companyId","configuration","convertedAddOnCost","convertedNonTaxableAddOnCost","convertedShippingCost","convertedUnitPrice","createdAt","createdBy","customerId","customerPartId","customerPartRevision","customFields","description","exchangeRate","externalNotes","id","internalNotes","invoicedComplete","itemId","itemReadableId","locationId","methodType","modelId","modelName","modelPath","modelSize","modelUploadId","nonTaxableAddOnCost","orderDate","priceTrace","pricingRuleId","promisedDate","quantityInvoiced","quantitySent","quantityToInvoice","quantityToSend","saleQuantity","salesOrderId","salesOrderLineType","salesOrderReadableId","sentComplete","sentDate","setupPrice","shippingCost","sortOrder","status","storageUnitId","taxPercent","thumbnailPath","unitCost","unitOfMeasureCode","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesOrderInvoiceLines":{"post":{"operationId":"sales.getSalesOrderInvoiceLines","summary":"get sales order invoice lines","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderId":{"type":"string"}},"required":["salesOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"invoiceId":{"type":"string"}},"required":["invoiceId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesOrderInvoicesByIds":{"post":{"operationId":"sales.getSalesOrderInvoicesByIds","summary":"get sales order invoices by ids","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"invoiceIds":{"type":"array","items":{"type":"string"}}},"required":["invoiceIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"invoiceTotal":{"type":["number","null"]},"balance":{"type":["number","null"]},"status":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]}},"required":["id","invoiceTotal","balance","status","currencyCode","exchangeRate"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesOrderInvoicePaymentsByIds":{"post":{"operationId":"sales.getSalesOrderInvoicePaymentsByIds","summary":"get sales order invoice payments by ids","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"invoiceIds":{"type":"array","items":{"type":"string"}}},"required":["invoiceIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"targetSalesInvoiceId":{"type":["string","null"]},"appliedAmount":{"type":"number"},"payment":{"type":["object","null"],"properties":{"status":{"type":"string"}},"required":["status"]}},"required":["targetSalesInvoiceId","appliedAmount","payment"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesOrderLinesByItemId":{"post":{"operationId":"sales.getSalesOrderLinesByItemId","summary":"get sales order lines by item id","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":["string","null"]},"addOnCost":{"type":["number","null"]},"assetId":{"type":["string","null"]},"assetName":{"type":["string","null"]},"assetReadableId":{"type":["string","null"]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"convertedAddOnCost":{"type":["number","null"]},"convertedNonTaxableAddOnCost":{"type":["number","null"]},"convertedShippingCost":{"type":["number","null"]},"convertedUnitPrice":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customerPartRevision":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoicedComplete":{"type":["boolean","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"nonTaxableAddOnCost":{"type":["number","null"]},"orderDate":{"type":["string","null"]},"priceTrace":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"pricingRuleId":{"type":["string","null"]},"promisedDate":{"type":["string","null"]},"quantityInvoiced":{"type":["number","null"]},"quantitySent":{"type":["number","null"]},"quantityToInvoice":{"type":["number","null"]},"quantityToSend":{"type":["number","null"]},"saleQuantity":{"type":["number","null"]},"salesOrderId":{"type":["string","null"]},"salesOrderLineType":{"type":["string","null"],"enum":["Fixed Asset","Part","Service","Material","Tool","Fixture","Consumable","Comment"]},"salesOrderReadableId":{"type":["string","null"]},"sentComplete":{"type":["boolean","null"]},"sentDate":{"type":["string","null"]},"setupPrice":{"type":["number","null"]},"shippingCost":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Completed","In Progress","Ordered"]},"storageUnitId":{"type":["string","null"]},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","addOnCost","assetId","assetName","assetReadableId","autodeskUrn","companyId","configuration","convertedAddOnCost","convertedNonTaxableAddOnCost","convertedShippingCost","convertedUnitPrice","createdAt","createdBy","customerId","customerPartId","customerPartRevision","customFields","description","exchangeRate","externalNotes","id","internalNotes","invoicedComplete","itemId","itemReadableId","locationId","methodType","modelId","modelName","modelPath","modelSize","modelUploadId","nonTaxableAddOnCost","orderDate","priceTrace","pricingRuleId","promisedDate","quantityInvoiced","quantitySent","quantityToInvoice","quantityToSend","saleQuantity","salesOrderId","salesOrderLineType","salesOrderReadableId","sentComplete","sentDate","setupPrice","shippingCost","sortOrder","status","storageUnitId","taxPercent","thumbnailPath","unitCost","unitOfMeasureCode","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getOpenSalesOrderLinesForItem":{"post":{"operationId":"sales.getOpenSalesOrderLinesForItem","summary":"sales order lines eligible for a job to link to: lines whose item matches the job's item, on sales orders that are still open (not Completed/Invoiced/ Cancelle…","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"saleQuantity":{"type":["number","null"]},"salesOrderLineType":{"type":"string","enum":["Fixed Asset","Part","Service","Material","Tool","Fixture","Consumable","Comment"]},"salesOrder":{"type":"object","properties":{"id":{"type":"string"},"salesOrderId":{"type":"string"},"customerId":{"type":"string"},"status":{"type":"string","enum":["Closed","Completed","Cancelled","Draft","In Progress","To Invoice","Needs Approval","To Ship","Confirmed","Invoiced","To Ship and Invoice"]}},"required":["id","salesOrderId","customerId","status"]}},"required":["id","saleQuantity","salesOrderLineType","salesOrder"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesOrderLinesByItemIds":{"post":{"operationId":"sales.getSalesOrderLinesByItemIds","summary":"get sales order lines by item ids","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"type":"array","items":{"type":"string"}}},"required":["itemIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":["string","null"]},"addOnCost":{"type":["number","null"]},"assetId":{"type":["string","null"]},"assetName":{"type":["string","null"]},"assetReadableId":{"type":["string","null"]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"convertedAddOnCost":{"type":["number","null"]},"convertedNonTaxableAddOnCost":{"type":["number","null"]},"convertedShippingCost":{"type":["number","null"]},"convertedUnitPrice":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customerPartRevision":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoicedComplete":{"type":["boolean","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"nonTaxableAddOnCost":{"type":["number","null"]},"orderDate":{"type":["string","null"]},"priceTrace":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"pricingRuleId":{"type":["string","null"]},"promisedDate":{"type":["string","null"]},"quantityInvoiced":{"type":["number","null"]},"quantitySent":{"type":["number","null"]},"quantityToInvoice":{"type":["number","null"]},"quantityToSend":{"type":["number","null"]},"saleQuantity":{"type":["number","null"]},"salesOrderId":{"type":["string","null"]},"salesOrderLineType":{"type":["string","null"],"enum":["Fixed Asset","Part","Service","Material","Tool","Fixture","Consumable","Comment"]},"salesOrderReadableId":{"type":["string","null"]},"sentComplete":{"type":["boolean","null"]},"sentDate":{"type":["string","null"]},"setupPrice":{"type":["number","null"]},"shippingCost":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Completed","In Progress","Ordered"]},"storageUnitId":{"type":["string","null"]},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","addOnCost","assetId","assetName","assetReadableId","autodeskUrn","companyId","configuration","convertedAddOnCost","convertedNonTaxableAddOnCost","convertedShippingCost","convertedUnitPrice","createdAt","createdBy","customerId","customerPartId","customerPartRevision","customFields","description","exchangeRate","externalNotes","id","internalNotes","invoicedComplete","itemId","itemReadableId","locationId","methodType","modelId","modelName","modelPath","modelSize","modelUploadId","nonTaxableAddOnCost","orderDate","priceTrace","pricingRuleId","promisedDate","quantityInvoiced","quantitySent","quantityToInvoice","quantityToSend","saleQuantity","salesOrderId","salesOrderLineType","salesOrderReadableId","sentComplete","sentDate","setupPrice","shippingCost","sortOrder","status","storageUnitId","taxPercent","thumbnailPath","unitCost","unitOfMeasureCode","unitPrice","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesOrderLine":{"post":{"operationId":"sales.getSalesOrderLine","summary":"get sales order line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderLineId":{"type":"string"}},"required":["salesOrderLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":["string","null"]},"addOnCost":{"type":["number","null"]},"assetId":{"type":["string","null"]},"assetName":{"type":["string","null"]},"assetReadableId":{"type":["string","null"]},"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"configuration":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"convertedAddOnCost":{"type":["number","null"]},"convertedNonTaxableAddOnCost":{"type":["number","null"]},"convertedShippingCost":{"type":["number","null"]},"convertedUnitPrice":{"type":["number","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customerPartRevision":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"exchangeRate":{"type":["number","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"invoicedComplete":{"type":["boolean","null"]},"itemId":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"nonTaxableAddOnCost":{"type":["number","null"]},"orderDate":{"type":["string","null"]},"priceTrace":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"pricingRuleId":{"type":["string","null"]},"promisedDate":{"type":["string","null"]},"quantityInvoiced":{"type":["number","null"]},"quantitySent":{"type":["number","null"]},"quantityToInvoice":{"type":["number","null"]},"quantityToSend":{"type":["number","null"]},"saleQuantity":{"type":["number","null"]},"salesOrderId":{"type":["string","null"]},"salesOrderLineType":{"type":["string","null"],"enum":["Fixed Asset","Part","Service","Material","Tool","Fixture","Consumable","Comment"]},"salesOrderReadableId":{"type":["string","null"]},"sentComplete":{"type":["boolean","null"]},"sentDate":{"type":["string","null"]},"setupPrice":{"type":["number","null"]},"shippingCost":{"type":["number","null"]},"sortOrder":{"type":["number","null"]},"status":{"type":["string","null"],"enum":["Completed","In Progress","Ordered"]},"storageUnitId":{"type":["string","null"]},"taxPercent":{"type":["number","null"]},"thumbnailPath":{"type":["string","null"]},"unitCost":{"type":["number","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":["number","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["accountId","addOnCost","assetId","assetName","assetReadableId","autodeskUrn","companyId","configuration","convertedAddOnCost","convertedNonTaxableAddOnCost","convertedShippingCost","convertedUnitPrice","createdAt","createdBy","customerId","customerPartId","customerPartRevision","customFields","description","exchangeRate","externalNotes","id","internalNotes","invoicedComplete","itemId","itemReadableId","locationId","methodType","modelId","modelName","modelPath","modelSize","modelUploadId","nonTaxableAddOnCost","orderDate","priceTrace","pricingRuleId","promisedDate","quantityInvoiced","quantitySent","quantityToInvoice","quantityToSend","saleQuantity","salesOrderId","salesOrderLineType","salesOrderReadableId","sentComplete","sentDate","setupPrice","shippingCost","sortOrder","status","storageUnitId","taxPercent","thumbnailPath","unitCost","unitOfMeasureCode","unitPrice","updatedAt","updatedBy"]}}}}}}},"/sales/getSalesOrderLineShipments":{"post":{"operationId":"sales.getSalesOrderLineShipments","summary":"get sales order line shipments","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderLineId":{"type":"string"}},"required":["salesOrderLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"fulfillmentId":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"lineId":{"type":["string","null"]},"locationId":{"type":["string","null"]},"orderQuantity":{"type":"number"},"outstandingQuantity":{"type":"number"},"requiresBatchTracking":{"type":"boolean"},"requiresSerialTracking":{"type":"boolean"},"shipmentId":{"type":"string"},"shippedQuantity":{"type":"number"},"storageUnitId":{"type":["string","null"]},"unitOfMeasure":{"type":"string"},"unitPrice":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"shipment":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customerId":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"externalDocumentId":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]},"invoiced":{"type":["boolean","null"]},"locationId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"postedBy":{"type":["string","null"]},"postingDate":{"type":["string","null"]},"shipmentId":{"type":"string"},"shippingMethodId":{"type":["string","null"]},"sourceDocument":{"type":["string","null"],"enum":["Sales Invoice","Purchase Invoice","Purchase Order","Sales Order","Purchase Return Order","Sales Return Order","Inbound Transfer","Outbound Transfer"]},"sourceDocumentId":{"type":["string","null"]},"sourceDocumentReadableId":{"type":["string","null"]},"status":{"type":"string","enum":["Pending","Draft","Posted","Voided"]},"supplierId":{"type":["string","null"]},"supplierInteractionId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"trackingNumber":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","customerId","customFields","externalDocumentId","externalNotes","id","internalNotes","invoiced","locationId","opportunityId","postedBy","postingDate","shipmentId","shippingMethodId","sourceDocument","sourceDocumentId","sourceDocumentReadableId","status","supplierId","supplierInteractionId","tags","trackingNumber","updatedAt","updatedBy"]},"storageUnit":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["companyId","createdAt","createdBy","fulfillmentId","id","itemId","lineId","locationId","orderQuantity","outstandingQuantity","requiresBatchTracking","requiresSerialTracking","shipmentId","shippedQuantity","storageUnitId","unitOfMeasure","unitPrice","updatedAt","updatedBy","shipment","storageUnit"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesRFQ":{"post":{"operationId":"sales.getSalesRFQ","summary":"get sales r f q","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"completedDate":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"noQuoteReasonId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"rfqDate":{"type":["string","null"]},"rfqId":{"type":["string","null"]},"salesPersonId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Draft","Ready for Quote","Quoted"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","completedDate","createdAt","createdBy","customerContactId","customerEngineeringContactId","customerId","customerLocationId","customerReference","customFields","employeeId","expirationDate","externalNotes","id","internalNotes","locationId","locationName","noQuoteReasonId","opportunityId","revisionId","rfqDate","rfqId","salesPersonId","status","tags","updatedAt","updatedBy"]}}}}}}},"/sales/getSalesRFQs":{"post":{"operationId":"sales.getSalesRFQs","summary":"get sales r f qs","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"completedDate":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"employeeId":{"type":["string","null"]},"expirationDate":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"noQuoteReasonId":{"type":["string","null"]},"opportunityId":{"type":["string","null"]},"revisionId":{"type":["number","null"]},"rfqDate":{"type":["string","null"]},"rfqId":{"type":["string","null"]},"salesPersonId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Closed","Draft","Ready for Quote","Quoted"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","completedDate","createdAt","createdBy","customerContactId","customerEngineeringContactId","customerId","customerLocationId","customerReference","customFields","employeeId","expirationDate","externalNotes","id","internalNotes","locationId","locationName","noQuoteReasonId","opportunityId","revisionId","rfqDate","rfqId","salesPersonId","status","tags","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesRFQLine":{"post":{"operationId":"sales.getSalesRFQLine","summary":"get sales r f q line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"}},"required":["lineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customerPartRevision":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemId":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"order":{"type":["number","null"]},"quantity":{"type":["array","null"],"items":{"type":"number"}},"salesRfqId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["autodeskUrn","companyId","createdAt","createdBy","customerPartId","customerPartRevision","customFields","description","externalNotes","id","internalNotes","itemId","itemName","itemReadableId","itemType","methodType","modelId","modelName","modelPath","modelSize","modelUploadId","order","quantity","salesRfqId","tags","thumbnailPath","unitOfMeasureCode","updatedAt","updatedBy"]}}}}}}},"/sales/getSalesRFQLines":{"post":{"operationId":"sales.getSalesRFQLines","summary":"get sales r f q lines","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesRfqId":{"type":"string"}},"required":["salesRfqId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"autodeskUrn":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"customerPartId":{"type":["string","null"]},"customerPartRevision":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"itemId":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemType":{"type":["string","null"],"enum":["Part","Service","Material","Tool","Fixture","Consumable"]},"methodType":{"type":["string","null"],"enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelId":{"type":["string","null"]},"modelName":{"type":["string","null"]},"modelPath":{"type":["string","null"]},"modelSize":{"type":["number","null"]},"modelUploadId":{"type":["string","null"]},"order":{"type":["number","null"]},"quantity":{"type":["array","null"],"items":{"type":"number"}},"salesRfqId":{"type":["string","null"]},"tags":{"type":["array","null"],"items":{"type":"string"}},"thumbnailPath":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["autodeskUrn","companyId","createdAt","createdBy","customerPartId","customerPartRevision","customFields","description","externalNotes","id","internalNotes","itemId","itemName","itemReadableId","itemType","methodType","modelId","modelName","modelPath","modelSize","modelUploadId","order","quantity","salesRfqId","tags","thumbnailPath","unitOfMeasureCode","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/insertCustomerContact":{"post":{"operationId":"sales.insertCustomerContact","summary":"insert customer contact","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"contact":{"type":"object","properties":{"id":{"type":"string"},"contactId":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"title":{"type":"string"},"email":{"type":"string","minLength":1,"format":"email"},"mobilePhone":{"type":"string"},"homePhone":{"type":"string"},"workPhone":{"type":"string"},"notes":{"type":"string"},"customerLocationId":{"type":"string"}}},"customerLocationId":{"type":"string"},"customFields":{}},"required":["customerId","contact"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/insertCustomerLocation":{"post":{"operationId":"sales.insertCustomerLocation","summary":"insert customer location","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"name":{"type":"string"},"address":{"type":"object","properties":{"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"stateProvince":{"type":"string"},"countryCode":{"type":"string"},"postalCode":{"type":"string"}}},"customFields":{}},"required":["customerId","name","address"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/finalizeQuote":{"post":{"operationId":"sales.finalizeQuote","summary":"finalize quote","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/releaseSalesOrder":{"post":{"operationId":"sales.releaseSalesOrder","summary":"release sales order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderId":{"type":"string"}},"required":["salesOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/resolvePrice":{"post":{"operationId":"sales.resolvePrice","summary":"resolve price","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","properties":{"customerId":{"type":"string"},"customerTypeId":{"type":"string"},"itemId":{"type":"string"},"itemPostingGroupId":{"type":"string"},"quantity":{"type":"number"},"date":{"type":"string"},"existingBasePrice":{"type":"number"},"configuration":{"type":["object","null"]}},"required":["itemId","quantity"]}},"required":["input"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"finalPrice":{"type":"number"},"basePrice":{"type":"number"},"trace":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"source":{"type":"string"},"amount":{"type":"number"},"adjustment":{"type":["number","null"]},"ruleId":{"type":["string","null"]},"label":{"type":["string","null"]}},"required":["step","source","amount"]}}},"required":["finalPrice","basePrice","trace"]}}}}}}},"/sales/resolvePriceList":{"post":{"operationId":"sales.resolvePriceList","summary":"resolve price list","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"customerId":{"type":"string"},"customerTypeId":{"type":"string"},"search":{"type":"string"},"quantity":{"type":"number"}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"partId":{"type":"string"},"itemName":{"type":"string"},"itemPostingGroupId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"basePrice":{"type":"number"},"resolvedPrice":{"type":"number"},"isOverridden":{"type":"boolean"},"source":{"type":"string","enum":["Base","Override","Type Override","All Override","Rule"]},"trace":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"source":{"type":"string"},"amount":{"type":"number"},"adjustment":{"type":["number","null"]},"ruleId":{"type":["string","null"]},"label":{"type":["string","null"]}},"required":["step","source","amount"]}},"overrideId":{"type":["string","null"]},"overrideQuantity":{"type":["number","null"]},"overrideNotes":{"type":["string","null"]},"overrideValidFrom":{"type":["string","null"]},"overrideValidTo":{"type":["string","null"]}},"required":["itemId","partId","itemName","itemPostingGroupId","thumbnailPath","basePrice","resolvedPrice","isOverridden","source","trace","overrideId","overrideQuantity","overrideNotes","overrideValidFrom","overrideValidTo"]}},"count":{"type":"number"}},"required":["data","count"]}}}}}}},"/sales/getBaseCatalog":{"post":{"operationId":"sales.getBaseCatalog","summary":"get base catalog","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":"string"}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"itemId":{"type":"string"},"partId":{"type":"string"},"itemName":{"type":"string"},"itemPostingGroupId":{"type":["string","null"]},"thumbnailPath":{"type":["string","null"]},"basePrice":{"type":"number"},"resolvedPrice":{"type":"number"},"isOverridden":{"type":"boolean"},"source":{"type":"string","enum":["Base","Override","Type Override","All Override","Rule"]},"trace":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"source":{"type":"string"},"amount":{"type":"number"},"adjustment":{"type":["number","null"]},"ruleId":{"type":["string","null"]},"label":{"type":["string","null"]}},"required":["step","source","amount"]}},"overrideId":{"type":["string","null"]},"overrideQuantity":{"type":["number","null"]},"overrideNotes":{"type":["string","null"]},"overrideValidFrom":{"type":["string","null"]},"overrideValidTo":{"type":["string","null"]}},"required":["itemId","partId","itemName","itemPostingGroupId","thumbnailPath","basePrice","resolvedPrice","isOverridden","source","trace","overrideId","overrideQuantity","overrideNotes","overrideValidFrom","overrideValidTo"]}},"count":{"type":"number"}},"required":["data","count"]}}}}}}},"/sales/upsertCustomer":{"post":{"operationId":"sales.upsertCustomer","summary":"upsert customer","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"readableId":{"type":"string"},"name":{"type":"string","minLength":1},"customerStatusId":{"type":"string"},"customerTypeId":{"type":"string"},"accountManagerId":{"type":"string"},"currencyCode":{"type":"string"},"taxPercent":{"type":"number","minimum":0,"maximum":1},"salesContactId":{"type":"string"},"website":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name","taxPercent"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/upsertCustomerItemPriceOverride":{"post":{"operationId":"sales.upsertCustomerItemPriceOverride","summary":"upsert customer item price override","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"customerId":{"type":"string"},"customerTypeId":{"type":"string"},"itemId":{"type":"string"},"breaks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"quantity":{"type":"number"},"overridePrice":{"type":"number"},"active":{"type":"boolean"}},"required":["quantity","overridePrice","active"]}},"active":{"type":"boolean"},"applyRulesOnTop":{"type":"boolean"},"notes":{"type":"string"},"validFrom":{"type":"string"},"validTo":{"type":"string"}},"required":["itemId","breaks","active","applyRulesOnTop"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/deleteCustomerItemPriceOverride":{"post":{"operationId":"sales.deleteCustomerItemPriceOverride","summary":"delete customer item price override","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/getCustomerItemPriceOverrideById":{"post":{"operationId":"sales.getCustomerItemPriceOverrideById","summary":"get customer item price override by id","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/sales/getCustomerItemPriceOverridesList":{"post":{"operationId":"sales.getCustomerItemPriceOverridesList","summary":"get customer item price overrides list","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":"string"},"customerId":{"type":"string"},"customerTypeId":{"type":"string"},"itemId":{"type":"string"}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"applyRulesOnTop":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customerId":{"type":["string","null"]},"customerTypeId":{"type":["string","null"]},"id":{"type":"string"},"itemId":{"type":"string"},"notes":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"validFrom":{"type":["string","null"]},"validTo":{"type":["string","null"]},"customer":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"customerType":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"item":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"unitSalePrice":{"type":"array","items":{"type":"object","properties":{"unitSalePrice":{"type":"number"}},"required":["unitSalePrice"]}}},"required":["id","name","unitSalePrice"]}},"required":["active","applyRulesOnTop","companyId","createdAt","createdBy","customerId","customerTypeId","id","itemId","notes","updatedAt","updatedBy","validFrom","validTo","customer","customerType","item"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/updateCustomerContact":{"post":{"operationId":"sales.updateCustomerContact","summary":"update customer contact","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contactId":{"type":"string"},"contact":{"type":"object","properties":{"id":{"type":"string"},"contactId":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"title":{"type":"string"},"email":{"type":"string","minLength":1,"format":"email"},"mobilePhone":{"type":"string"},"homePhone":{"type":"string"},"workPhone":{"type":"string"},"notes":{"type":"string"},"customerLocationId":{"type":"string"}},"required":["email"]},"customerLocationId":{"type":"string"},"customFields":{}},"required":["contactId","contact"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/updateCustomerLocation":{"post":{"operationId":"sales.updateCustomerLocation","summary":"update customer location","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"addressId":{"type":"string"},"name":{"type":"string"},"address":{"type":"object","properties":{"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"stateProvince":{"type":"string"},"countryCode":{"type":"string"},"postalCode":{"type":"string"}}},"customFields":{}},"required":["addressId","name","address"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/updateCustomerPayment":{"post":{"operationId":"sales.updateCustomerPayment","summary":"update customer payment","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string","minLength":1},"invoiceCustomerId":{"type":"string"},"invoiceCustomerLocationId":{"type":"string"},"invoiceCustomerContactId":{"type":"string"},"paymentTermId":{"type":"string"}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/updateCustomerShipping":{"post":{"operationId":"sales.updateCustomerShipping","summary":"update customer shipping","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string","minLength":1},"shippingCustomerId":{"type":"string"},"shippingCustomerLocationId":{"type":"string"},"shippingCustomerContactId":{"type":"string"},"shippingMethodId":{"type":"string"},"incoterm":{"type":"string","enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":"string"}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/updateCustomerTax":{"post":{"operationId":"sales.updateCustomerTax","summary":"update customer tax","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string","minLength":1},"taxId":{"type":"string"},"vatNumber":{"type":"string"},"eori":{"type":"string"},"taxExempt":{"default":false,"type":"boolean"},"taxExemptionReason":{"anyOf":[{"type":"string","enum":["Resale","Government","Nonprofit","Agriculture","Industrial","Export","Medical","Educational","Religious","Other"]},{"type":"null"}]},"taxExemptionCertificateNumber":{"type":"string"},"taxExemptionCertificatePath":{"type":["string","null"]}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/updatePricingRule":{"post":{"operationId":"sales.updatePricingRule","summary":"update pricing rule","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1},"ruleType":{"type":"string","enum":["Discount","Markup","Configuration"]},"amountType":{"type":"string","enum":["Percentage","Fixed"]},"amount":{"type":"number","minimum":0},"minQuantity":{"type":"number","minimum":0},"maxQuantity":{"type":"number","minimum":0},"customerIds":{"default":[],"type":"array","items":{"type":"string"}},"customerTypeIds":{"default":[],"type":"array","items":{"type":"string"}},"itemIds":{"default":[],"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"itemId":{"type":"string"},"itemPostingGroupId":{"type":"string"},"validFrom":{"type":"string"},"validTo":{"type":"string"},"priority":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"active":{"type":"boolean"},"configurationPrices":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"value":{"type":["string","null"]},"amount":{"type":"number"},"label":{"type":"string"}},"required":["key","value","amount"]}}}}},"required":["id","data"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/upsertCustomerStatus":{"post":{"operationId":"sales.upsertCustomerStatus","summary":"upsert customer status","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/upsertCustomerType":{"post":{"operationId":"sales.upsertCustomerType","summary":"upsert customer type","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/upsertNoQuoteReason":{"post":{"operationId":"sales.upsertNoQuoteReason","summary":"upsert no quote reason","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/updateQuoteExchangeRate":{"post":{"operationId":"sales.updateQuoteExchangeRate","summary":"update quote exchange rate","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"exchangeRate":{"type":"number"}},"required":["id","exchangeRate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/updateQuoteLinePrecision":{"post":{"operationId":"sales.updateQuoteLinePrecision","summary":"update quote line precision","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"lineId":{"type":"string"},"precision":{"type":"number"}},"required":["quoteId","lineId","precision"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/sales/updateSalesOrderExchangeRate":{"post":{"operationId":"sales.updateSalesOrderExchangeRate","summary":"update sales order exchange rate","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"exchangeRate":{"type":"number"}},"required":["id","exchangeRate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/updateSalesRFQStatus":{"post":{"operationId":"sales.updateSalesRFQStatus","summary":"update sales r f q status","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Ready for Quote","Quoted","Closed"]},"noQuoteReasonId":{"type":["string","null"]},"assignee":{"type":"null"}},"required":["id","status","noQuoteReasonId","assignee"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/updateQuoteMaterialOrder":{"post":{"operationId":"sales.updateQuoteMaterialOrder","summary":"update quote material order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"order":{"type":"number"}},"required":["id","order"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/updateQuoteOperationOrder":{"post":{"operationId":"sales.updateQuoteOperationOrder","summary":"update quote operation order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"order":{"type":"number"}},"required":["id","order"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/updateQuoteStatus":{"post":{"operationId":"sales.updateQuoteStatus","summary":"update quote status","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Sent","Ordered","Partial","Lost","Cancelled","Expired"]},"assignee":{"type":"null"}},"required":["id","status","assignee"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/upsertMakeMethodFromQuoteLine":{"post":{"operationId":"sales.upsertMakeMethodFromQuoteLine","summary":"upsert make method from quote line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"parts":{"type":"object","properties":{"billOfMaterial":{"type":"boolean"},"billOfProcess":{"type":"boolean"},"parameters":{"type":"boolean"},"tools":{"type":"boolean"},"steps":{"type":"boolean"},"workInstructions":{"type":"boolean"}},"required":["billOfMaterial","billOfProcess","parameters","tools","steps","workInstructions"]}},"required":["itemId","quoteId","quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/sales/upsertMakeMethodFromQuoteMethod":{"post":{"operationId":"sales.upsertMakeMethodFromQuoteMethod","summary":"upsert make method from quote method","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceId":{"type":"string"},"targetId":{"type":"string"},"parts":{"type":"object","properties":{"billOfMaterial":{"type":"boolean"},"billOfProcess":{"type":"boolean"},"parameters":{"type":"boolean"},"tools":{"type":"boolean"},"steps":{"type":"boolean"},"workInstructions":{"type":"boolean"}},"required":["billOfMaterial","billOfProcess","parameters","tools","steps","workInstructions"]}},"required":["sourceId","targetId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/insertQuote":{"post":{"operationId":"sales.insertQuote","summary":"Create a new quote with all business logic - generates sequence, creates opportunity, resolves payment/shipping defaults from customer. LLM can create a quote with just customerId.","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"quoteId":{"type":"string"},"locationId":{"type":"string"},"status":{"type":"string","enum":["Draft","Sent","Ordered","Partial","Lost","Cancelled","Expired"]},"currencyCode":{"type":"string"},"expirationDate":{"type":"string"},"customerContactId":{"type":"string"},"customerLocationId":{"type":"string"},"customerEngineeringContactId":{"type":"string"},"customerReference":{"type":"string"},"salesPersonId":{"type":"string"},"estimatorId":{"type":"string"},"dueDate":{"type":"string"},"opportunityId":{"type":"string"},"notes":{"type":"string"},"customFields":{}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"quoteId":{"type":"string"}},"required":["id","quoteId"]}}}}}}},"/sales/updateQuote":{"post":{"operationId":"sales.updateQuote","summary":"Update an existing quote - handles exchange rate updates when currency changes, syncs customer to opportunity","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","Sent","Ordered","Partial","Lost","Cancelled","Expired"]},"currencyCode":{"type":"string"},"expirationDate":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customerEngineeringContactId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customerId":{"type":"string"},"salesPersonId":{"type":["string","null"]},"estimatorId":{"type":["string","null"]},"locationId":{"type":"string"},"dueDate":{"type":["string","null"]},"digitalQuoteAcceptedBy":{"type":["string","null"]},"digitalQuoteAcceptedByEmail":{"type":["string","null"]},"notes":{"type":["string","null"]},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/upsertQuote":{"post":{"operationId":"sales.upsertQuote","summary":"upsert quote","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"salesPersonId":{"type":"string"},"estimatorId":{"type":"string"},"customerId":{"type":"string","minLength":1},"customerLocationId":{"type":"string"},"customerContactId":{"type":"string"},"customerEngineeringContactId":{"type":"string"},"customerReference":{"type":"string"},"locationId":{"type":"string","minLength":1},"status":{"type":"string","enum":["Draft","Sent","Ordered","Partial","Lost","Cancelled","Expired"]},"notes":{"anyOf":[{"type":"string"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]},"dueDate":{"type":"string"},"expirationDate":{"type":"string"},"currencyCode":{"type":"string"},"exchangeRate":{"type":"number"},"exchangeRateUpdatedAt":{"type":"string"},"digitalQuoteAcceptedBy":{"type":"string"},"digitalQuoteAcceptedByEmail":{"type":"string"},"quoteId":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["customerId","locationId","quoteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"quoteId":{"type":"string"}},"required":["id","quoteId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/upsertQuoteLine":{"post":{"operationId":"sales.upsertQuoteLine","summary":"Create or update a quote line. Keep description to a short one-line label - it is truncated on the digital quote. Long specifications belong in externalNotes (TipTap doc JSON, rendered in full under the line on the digital quote and PDF); internalNotes takes the same shape and is never shown to the customer.","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"itemType":{"type":"string","enum":["Part","Material","Tool","Consumable","Service"]},"itemId":{"type":"string","minLength":1},"status":{"type":"string","enum":["Not Started","In Progress","Complete","No Quote"]},"estimatorId":{"type":"string"},"description":{"type":"string","minLength":1},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"customerPartId":{"type":"string"},"customerPartRevision":{"type":"string"},"unitOfMeasureCode":{"type":"string","minLength":1},"quantity":{"type":"array","items":{"type":"number","minimum":0.00001}},"modelUploadId":{"type":"string"},"noQuoteReason":{"type":"string"},"taxPercent":{"type":"number","minimum":0,"maximum":1},"internalNotes":{},"externalNotes":{},"configuration":{},"customFields":{},"id":{"type":"string"}},"required":["quoteId","itemId","status","description","methodType","unitOfMeasureCode","quantity","taxPercent"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/updateQuoteLineOrder":{"post":{"operationId":"sales.updateQuoteLineOrder","summary":"update quote line order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["quoteId","updates"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/sales/upsertQuoteLineAdditionalCharges":{"post":{"operationId":"sales.upsertQuoteLineAdditionalCharges","summary":"upsert quote line additional charges","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"},"update":{"type":"object","properties":{"additionalCharges":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"description":{"type":"string"},"amounts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"taxable":{"default":true,"type":"boolean"}},"required":["description","amounts"]}}},"required":["additionalCharges"]}},"required":["lineId","update"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/upsertQuoteLinePrices":{"post":{"operationId":"sales.upsertQuoteLinePrices","summary":"upsert quote line prices","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"lineId":{"type":"string"},"quoteLinePrices":{"type":"array","items":{"type":"object","properties":{"quoteLineId":{"type":"string"},"unitPrice":{"type":"number"},"quantity":{"type":"number"},"leadTime":{"type":"number"},"discountPercent":{"type":"number"},"shippingCost":{"type":"number"},"categoryMarkups":{"type":"object","additionalProperties":{"type":"number"}},"priceSource":{"type":"string","enum":["system","manual"]},"priceTrace":{"type":["array","null"],"items":{"type":"object","properties":{"step":{"type":"string"},"source":{"type":"string"},"amount":{"type":"number"},"adjustment":{"type":"number"},"ruleId":{"type":"string"},"label":{"type":"string"}},"required":["step","source","amount"]}}},"required":["quoteLineId","unitPrice","quantity"]}}},"required":["quoteId","lineId","quoteLinePrices"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/sales/buildMakeToOrderPriceRows":{"post":{"operationId":"sales.buildMakeToOrderPriceRows","summary":"build make to order price rows","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quantities":{"type":"array","items":{"type":"number"}},"itemIdOverride":{"type":["string","null"]}},"required":["quoteId","quoteLineId","quantities"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"companyId":{"type":"string"},"quantity":{"type":"number"},"unitPrice":{"type":"number"},"exchangeRate":{"type":"number"},"createdBy":{"type":"string"},"leadTime":{"type":"number"},"discountPercent":{"type":"number"},"categoryMarkups":{"type":["object","null"],"additionalProperties":{"type":"number"}},"priceSource":{"type":["string","null"]},"priceTrace":{"type":["array","null"],"items":{"type":"object","properties":{"step":{"type":"string"},"source":{"type":"string"},"amount":{"type":"number"},"adjustment":{"type":["number","null"]},"ruleId":{"type":["string","null"]},"label":{"type":["string","null"]}},"required":["step","source","amount"]}}},"required":["quoteId","quoteLineId","companyId","quantity","unitPrice","exchangeRate","createdBy","leadTime","discountPercent"]}},"error":{}},"required":["rows","error"]}}}}}}},"/sales/calculatePricesForQuantities":{"post":{"operationId":"sales.calculatePricesForQuantities","summary":"calculate prices for quantities","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quantities":{"type":"array","items":{"type":"number"}}},"required":["quoteId","quoteLineId","quantities"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"object"}},"required":["error"]},{"type":"object","properties":{"error":{"type":"null"}},"required":["error"]}]}}}}}}},"/sales/buildPullFromInventoryPriceRows":{"post":{"operationId":"sales.buildPullFromInventoryPriceRows","summary":"build pull from inventory price rows","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quantities":{"type":"array","items":{"type":"number"}},"itemIdOverride":{"type":["string","null"]}},"required":["quoteId","quoteLineId","quantities"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"companyId":{"type":"string"},"quantity":{"type":"number"},"unitPrice":{"type":"number"},"exchangeRate":{"type":"number"},"createdBy":{"type":"string"},"leadTime":{"type":"number"},"discountPercent":{"type":"number"},"categoryMarkups":{"type":["object","null"],"additionalProperties":{"type":"number"}},"priceSource":{"type":["string","null"]},"priceTrace":{"type":["array","null"],"items":{"type":"object","properties":{"step":{"type":"string"},"source":{"type":"string"},"amount":{"type":"number"},"adjustment":{"type":["number","null"]},"ruleId":{"type":["string","null"]},"label":{"type":["string","null"]}},"required":["step","source","amount"]}}},"required":["quoteId","quoteLineId","companyId","quantity","unitPrice","exchangeRate","createdBy","leadTime","discountPercent"]}},"error":{}},"required":["rows","error"]}}}}}}},"/sales/resolveQuoteLinePrices":{"post":{"operationId":"sales.resolveQuoteLinePrices","summary":"resolve quote line prices","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quantities":{"type":"array","items":{"type":"number"}}},"required":["quoteId","quoteLineId","quantities"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"object"}},"required":["error"]},{"type":"object","properties":{"error":{"type":"null"}},"required":["error"]}]}}}}}}},"/sales/buildPurchaseToOrderPriceRows":{"post":{"operationId":"sales.buildPurchaseToOrderPriceRows","summary":"build purchase to order price rows","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quantities":{"type":"array","items":{"type":"number"}},"itemIdOverride":{"type":["string","null"]}},"required":["quoteId","quoteLineId","quantities"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"companyId":{"type":"string"},"quantity":{"type":"number"},"unitPrice":{"type":"number"},"exchangeRate":{"type":"number"},"createdBy":{"type":"string"},"leadTime":{"type":"number"},"discountPercent":{"type":"number"},"categoryMarkups":{"type":["object","null"],"additionalProperties":{"type":"number"}},"priceSource":{"type":["string","null"]},"priceTrace":{"type":["array","null"],"items":{"type":"object","properties":{"step":{"type":"string"},"source":{"type":"string"},"amount":{"type":"number"},"adjustment":{"type":["number","null"]},"ruleId":{"type":["string","null"]},"label":{"type":["string","null"]}},"required":["step","source","amount"]}}},"required":["quoteId","quoteLineId","companyId","quantity","unitPrice","exchangeRate","createdBy","leadTime","discountPercent"]}},"error":{}},"required":["rows","error"]}}}}}}},"/sales/resolvePurchaseToOrderPrices":{"post":{"operationId":"sales.resolvePurchaseToOrderPrices","summary":"resolve purchase to order prices","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"quantities":{"type":"array","items":{"type":"number"}}},"required":["quoteId","quoteLineId","quantities"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"object"}},"required":["error"]},{"type":"object","properties":{"error":{"type":"null"}},"required":["error"]}]}}}}}}},"/sales/recalculateQuoteLinePrices":{"post":{"operationId":"sales.recalculateQuoteLinePrices","summary":"recalculate quote line prices","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"quoteLineId":{"type":"string"}},"required":["quoteId","quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]}},"required":["error"]},{"type":"object","properties":{"error":{"type":"null"}},"required":["error"]}]}}}}}}},"/sales/getQuoteLinePriceTraces":{"post":{"operationId":"sales.getQuoteLinePriceTraces","summary":"explains each quantity's price on a quote line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"quoteLineId":{"type":"string"}},"required":["quoteId","quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"number"},"unitPrice":{"type":"number"},"priceSource":{"type":"string","enum":["system","manual"]},"trace":{"type":["array","null"],"items":{"type":"object","properties":{"step":{"type":"string"},"source":{"type":"string"},"amount":{"type":"number"},"adjustment":{"type":["number","null"]},"ruleId":{"type":["string","null"]},"label":{"type":["string","null"]}},"required":["step","source","amount"]}},"currentTrace":{"type":["array","null"],"items":{"type":"object","properties":{"step":{"type":"string"},"source":{"type":"string"},"amount":{"type":"number"},"adjustment":{"type":["number","null"]},"ruleId":{"type":["string","null"]},"label":{"type":["string","null"]}},"required":["step","source","amount"]}}},"required":["quantity","unitPrice","priceSource","trace","currentTrace"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/repriceQuoteLineFromRules":{"post":{"operationId":"sales.repriceQuoteLineFromRules","summary":"reprices a quote line's system rows to what today's rules give — the `currentTrace` getQuoteLinePriceTraces shows — storing that trace with the price","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"quoteLineId":{"type":"string"}},"required":["quoteId","quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/upsertQuoteLineMethod":{"post":{"operationId":"sales.upsertQuoteLineMethod","summary":"upsert quote line method","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"configuration":{"type":"object"},"parts":{"type":"object","properties":{"billOfMaterial":{"type":"boolean"},"billOfProcess":{"type":"boolean"},"parameters":{"type":"boolean"},"tools":{"type":"boolean"},"steps":{"type":"boolean"},"workInstructions":{"type":"boolean"}},"required":["billOfMaterial","billOfProcess","parameters","tools","steps","workInstructions"]}},"required":["itemId","quoteId","quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/sales/upsertQuoteMaterial":{"post":{"operationId":"sales.upsertQuoteMaterial","summary":"upsert quote material","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Updates the existing record with this key; creates one when there is none."},"quoteMakeMethodId":{"type":"string","minLength":1},"order":{"type":"number","minimum":0},"itemType":{"type":"string","enum":["Part","Material","Consumable"]},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"itemId":{"type":"string","minLength":1},"kit":{"type":"string","enum":["true","false"]},"description":{"type":"string","minLength":1},"quoteOperationId":{"type":"string"},"quantity":{"type":"number","minimum":0},"storageUnitId":{"type":"string"},"unitCost":{"type":"number","minimum":0},"unitCostSource":{"type":"string","enum":["system","manual"]},"unitOfMeasureCode":{"type":"string","minLength":1},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"customFields":{}},"required":["id","quoteMakeMethodId","order","itemType","methodType","itemId","description","quantity","unitCost","unitCostSource","unitOfMeasureCode","quoteId","quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]}},"required":["id","methodType"]}}}}}}},"/sales/upsertQuoteMaterialMakeMethod":{"post":{"operationId":"sales.upsertQuoteMaterialMakeMethod","summary":"upsert quote material make method","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceId":{"type":"string"},"targetId":{"type":"string"},"configuration":{"type":"object"},"parts":{"type":"object","properties":{"billOfMaterial":{"type":"boolean"},"billOfProcess":{"type":"boolean"},"parameters":{"type":"boolean"},"tools":{"type":"boolean"},"steps":{"type":"boolean"},"workInstructions":{"type":"boolean"}},"required":["billOfMaterial","billOfProcess","parameters","tools","steps","workInstructions"]}},"required":["sourceId","targetId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/upsertQuoteOperation":{"post":{"operationId":"sales.upsertQuoteOperation","summary":"upsert quote operation","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteMakeMethodId":{"type":"string","minLength":1},"order":{"type":"number","minimum":0},"operationOrder":{"type":"string","enum":["After Previous","With Previous"]},"operationType":{"type":"string","enum":["Process","Assembly","Inspection","Outside Processing"]},"processId":{"type":"string","minLength":1},"procedureId":{"type":"string"},"assemblyInstructionId":{"type":"string"},"inspectionDocumentId":{"type":"string"},"workCenterId":{"type":"string"},"description":{"type":"string","minLength":0},"setupUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"setupTime":{"type":"number","minimum":0},"laborUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"laborTime":{"type":"number","minimum":0},"machineUnit":{"type":"string","enum":["Hours/Piece","Hours/100 Pieces","Hours/1000 Pieces","Minutes/Piece","Minutes/100 Pieces","Minutes/1000 Pieces","Pieces/Hour","Pieces/Minute","Seconds/Piece","Total Hours","Total Minutes"]},"machineTime":{"type":"number","minimum":0},"machineRate":{"type":"number","minimum":0},"overheadRate":{"type":"number","minimum":0},"laborRate":{"type":"number","minimum":0},"operationSupplierProcessId":{"type":"string"},"operationMinimumCost":{"type":"number","minimum":0},"operationUnitCost":{"type":"number","minimum":0},"operationLeadTime":{"type":"number","minimum":0},"quoteId":{"type":"string"},"quoteLineId":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Updates the existing record with this key; creates one when there is none."}},"required":["quoteMakeMethodId","order","operationOrder","operationType","processId","description","quoteId","quoteLineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/upsertQuoteOperationStep":{"post":{"operationId":"sales.upsertQuoteOperationStep","summary":"upsert quote operation step","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"type":{"type":"string","enum":["Task","Value","Measurement","Checkbox","Timestamp","Person","List","File","Inspection"]},"unitOfMeasureCode":{"type":"string"},"minValue":{"type":["number","null"]},"maxValue":{"type":["number","null"]},"listValues":{"type":"array","items":{"type":"string"}},"sortOrder":{"type":"number","minimum":0},"id":{"type":"string","description":"Send to update that record; omit to create a new one."},"updatedAt":{"type":"string"}},"required":["operationId","name","description","type"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/upsertQuoteOperationParameter":{"post":{"operationId":"sales.upsertQuoteOperationParameter","summary":"upsert quote operation parameter","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","minLength":1},"key":{"type":"string","minLength":1},"value":{"type":"string","minLength":1},"id":{"type":"string","description":"Send to update that record; omit to create a new one."},"updatedAt":{"type":"string"}},"required":["operationId","key","value"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/upsertQuoteOperationTool":{"post":{"operationId":"sales.upsertQuoteOperationTool","summary":"upsert quote operation tool","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operationId":{"type":"string","minLength":1},"toolId":{"type":"string","minLength":1},"quantity":{"type":"number","minimum":0.000001},"id":{"type":"string","description":"Send to update that record; omit to create a new one."},"updatedAt":{"type":"string"}},"required":["operationId","toolId","quantity"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/upsertQuotePayment":{"post":{"operationId":"sales.upsertQuotePayment","summary":"upsert quote payment","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"invoiceCustomerId":{"type":"string"},"invoiceCustomerLocationId":{"type":"string"},"invoiceCustomerContactId":{"type":"string"},"paymentTermId":{"type":"string"},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/upsertQuoteShipment":{"post":{"operationId":"sales.upsertQuoteShipment","summary":"upsert quote shipment","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"locationId":{"type":"string"},"shippingMethodId":{"type":"string"},"receiptRequestedDate":{"type":"string"},"shippingCost":{"type":"number"},"incoterm":{"type":"string","enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/updateSalesOrderStatus":{"post":{"operationId":"sales.updateSalesOrderStatus","summary":"update sales order status","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","In Progress","Needs Approval","To Ship and Invoice","To Ship","To Invoice","Completed","Cancelled","Closed"]},"assignee":{"type":"null"}},"required":["id","status","assignee"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/insertSalesOrder":{"post":{"operationId":"sales.insertSalesOrder","summary":"Create a new sales order with all business logic - generates sequence, creates opportunity, resolves payment/shipping defaults from customer. LLM can create a sales order with just customerId.","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"salesOrderId":{"type":"string"},"locationId":{"type":"string"},"status":{"type":"string","enum":["Draft","In Progress","Needs Approval","To Ship and Invoice","To Ship","To Invoice","Completed","Cancelled","Closed"]},"currencyCode":{"type":"string"},"orderDate":{"type":"string"},"customerContactId":{"type":"string"},"customerLocationId":{"type":"string"},"quoteId":{"type":"string"},"opportunityId":{"type":"string"},"requestedDate":{"type":"string"},"promisedDate":{"type":"string"},"notes":{"type":"string"},"customerReference":{"type":"string"},"customerEngineeringContactId":{"type":"string"},"salesPersonId":{"type":"string"},"customFields":{}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"salesOrderId":{"type":"string"}},"required":["id","salesOrderId"]}}}}}}},"/sales/updateSalesOrder":{"post":{"operationId":"sales.updateSalesOrder","summary":"Update an existing sales order - handles exchange rate updates when currency changes, syncs customer to opportunity","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["Draft","In Progress","Needs Approval","To Ship and Invoice","To Ship","To Invoice","Completed","Cancelled","Closed"]},"currencyCode":{"type":"string"},"orderDate":{"type":"string"},"customerContactId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customerId":{"type":"string"},"notes":{"type":["string","null"]},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/cancelSalesOrder":{"post":{"operationId":"sales.cancelSalesOrder","summary":"cancel sales order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"jobs":{"type":"array","items":{"type":"string"}}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"cancelledJobIds":{"type":"array","items":{"type":"string"}}},"required":["success","message","cancelledJobIds"]}}}}}}},"/sales/upsertSalesOrder":{"post":{"operationId":"sales.upsertSalesOrder","summary":"upsert sales order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orderDate":{"type":"string"},"requestedDate":{"type":"string"},"promisedDate":{"type":"string"},"status":{"type":"string","enum":["Draft","In Progress","Needs Approval","To Ship and Invoice","To Ship","To Invoice","Completed","Cancelled","Closed"]},"notes":{"type":"string"},"customerId":{"type":"string","minLength":1},"customerLocationId":{"type":"string"},"customerContactId":{"type":"string"},"customerEngineeringContactId":{"type":"string"},"customerReference":{"type":"string"},"quoteId":{"type":"string"},"locationId":{"type":"string","minLength":1},"currencyCode":{"type":"string"},"exchangeRate":{"type":"number"},"exchangeRateUpdatedAt":{"type":"string"},"salesPersonId":{"type":"string"},"salesOrderId":{"type":"string"},"customFields":{},"id":{"type":"string"}},"required":["customerId","locationId","currencyCode","salesOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"salesOrderId":{"type":"string"}},"required":["id","salesOrderId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/upsertSalesOrderShipment":{"post":{"operationId":"sales.upsertSalesOrderShipment","summary":"upsert sales order shipment","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"locationId":{"type":"string"},"shippingMethodId":{"type":"string"},"trackingNumber":{"type":"string"},"deliveryDate":{"type":"string"},"receiptRequestedDate":{"type":"string"},"receiptPromisedDate":{"type":"string"},"dropShipment":{"type":"boolean"},"customerId":{"type":"string"},"customerLocationId":{"type":"string"},"supplierId":{"type":"string"},"supplierLocationId":{"type":"string"},"shippingCost":{"type":"number"},"notes":{"type":"string"},"incoterm":{"type":"string","enum":["EXW","FCA","FAS","FOB","CPT","CIP","CFR","CIF","DAP","DPU","DDP"]},"incotermLocation":{"type":"string"},"customFields":{}},"required":["id","trackingNumber"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/upsertSalesOrderLine":{"post":{"operationId":"sales.upsertSalesOrderLine","summary":"upsert sales order line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderId":{"type":"string","minLength":1},"salesOrderLineType":{"type":"string","enum":["Part","Service","Material","Tool","Consumable","Comment","Fixed Asset"]},"accountId":{"type":"string"},"shippingCost":{"type":"number"},"addOnCost":{"type":"number"},"nonTaxableAddOnCost":{"type":"number"},"assetId":{"type":"string"},"description":{"type":"string"},"itemId":{"type":"string"},"locationId":{"type":"string","minLength":0},"methodType":{"type":"string","enum":["Purchase to Order","Pull from Inventory","Make to Order"]},"modelUploadId":{"type":"string"},"promisedDate":{"type":"string"},"saleQuantity":{"type":"number"},"serviceId":{"type":"string"},"setupPrice":{"type":"number"},"storageUnitId":{"type":"string"},"taxPercent":{"type":"number","minimum":0,"maximum":1},"unitOfMeasureCode":{"type":"string"},"unitPrice":{"type":"number"},"exchangeRate":{"type":"number"},"configuration":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"priceTrace":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"source":{"type":"string"},"amount":{"type":"number"},"adjustment":{"type":"number"},"ruleId":{"type":"string"},"label":{"type":"string"}},"required":["step","source","amount"]}},{"type":"null"}]},"customFields":{},"id":{"type":"string"}},"required":["salesOrderId","salesOrderLineType","locationId","taxPercent"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/updateSalesOrderLineOrder":{"post":{"operationId":"sales.updateSalesOrderLineOrder","summary":"update sales order line order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesOrderId":{"type":"string"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["salesOrderId","updates"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/sales/upsertSalesOrderPayment":{"post":{"operationId":"sales.upsertSalesOrderPayment","summary":"upsert sales order payment","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"invoiceCustomerId":{"type":"string"},"invoiceCustomerLocationId":{"type":"string"},"invoiceCustomerContactId":{"type":"string"},"paymentTermId":{"type":"string"},"paymentComplete":{"type":"boolean"},"currencyCode":{"type":"string","enum":["AFN","AFA","ALL","ALK","DZD","ADP","AOA","AOK","AON","AOR","ARA","ARS","ARM","ARP","ARL","AMD","AWG","AUD","ATS","AZN","AZM","BSD","BHD","BDT","BBD","BYN","BYB","BYR","BEF","BEC","BEL","BZD","BMD","BTN","BOB","BOL","BOV","BOP","BAM","BAD","BAN","BWP","BRC","BRZ","BRE","BRR","BRN","BRB","BRL","GBP","BND","BGL","BGN","BGO","BGM","BUK","BIF","XPF","KHR","CAD","CVE","KYD","XAF","CLE","CLP","CLF","CNX","CNY","CNH","COP","COU","KMF","CDF","CRC","HRD","HRK","CUC","CUP","CYP","CZK","CSK","DKK","DJF","DOP","NLG","XCD","DDM","ECS","ECV","EGP","GQE","ERN","EEK","ETB","EUR","XBA","XEU","XBB","XBC","XBD","FKP","FJD","FIM","FRF","XFO","XFU","GMD","GEK","GEL","DEM","GHS","GHC","GIP","XAU","GRD","GTQ","GWP","GNF","GNS","GYD","HTG","HNL","HKD","HUF","IMP","ISK","ISJ","INR","IDR","IRR","IQD","IEP","ILS","ILP","ILR","ITL","JMD","JPY","JOD","KZT","KES","KWD","KGS","LAK","LVL","LVR","LBP","LSL","LRD","LYD","LTL","LTT","LUL","LUC","LUF","MOP","MKD","MKN","MGA","MGF","MWK","MYR","MVR","MVP","MLF","MTL","MTP","MRU","MRO","MUR","MXV","MXN","MXP","MDC","MDL","MCF","MNT","MAD","MAF","MZE","MZN","MZM","MMK","NAD","NPR","ANG","TWD","NZD","NIO","NIC","NGN","KPW","NOK","OMR","PKR","XPD","PAB","PGK","PYG","PEI","PEN","PES","PHP","XPT","PLN","PLZ","PTE","GWE","QAR","XRE","RHD","RON","ROL","RUB","RUR","RWF","SVC","WST","SAR","RSD","CSD","SCR","SLL","XAG","SGD","SKK","SIT","SBD","SOS","ZAR","ZAL","KRH","KRW","KRO","SSP","SUR","ESP","ESA","ESB","XDR","LKR","SHP","XSU","SDD","SDG","SDP","SRD","SRG","SZL","SEK","CHF","SYP","STN","STD","TVD","TJR","TJS","TZS","XTS","THB","XXX","TPE","TOP","TTD","TND","TRY","TRL","TMT","TMM","USD","USN","USS","UGX","UGS","UAH","UAK","AED","UYW","UYU","UYP","UYI","UZS","VUV","VES","VEB","VEF","VND","VNN","CHE","CHW","XOF","YDD","YER","YUN","YUD","YUM","YUR","ZWN","ZRN","ZRZ","ZMW","ZMK","ZWD","ZWR","ZWL","XUA"]},"customFields":{}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/insertSalesRFQ":{"post":{"operationId":"sales.insertSalesRFQ","summary":"insert sales r f q","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"rfqId":{"type":"string"},"rfqDate":{"type":"string"},"expirationDate":{"type":"string"},"locationId":{"type":"string"},"salesPersonId":{"type":"string"},"customerContactId":{"type":"string"},"customerEngineeringContactId":{"type":"string"},"customerLocationId":{"type":"string"},"customerReference":{"type":"string"},"status":{"type":"string","enum":["Draft","Ready for Quote","Quoted","Closed"]},"notes":{"type":"string"},"customFields":{}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"rfqId":{"type":"string"}},"required":["id","rfqId"]}}}}}}},"/sales/upsertSalesRFQ":{"post":{"operationId":"sales.upsertSalesRFQ","summary":"upsert sales r f q","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerLocationId":{"type":"string"},"customerContactId":{"type":"string"},"customerEngineeringContactId":{"type":"string"},"customerId":{"type":"string","minLength":1},"customerReference":{"type":"string"},"expirationDate":{"type":"string"},"externalNotes":{"type":"string"},"internalNotes":{"type":"string"},"locationId":{"type":"string"},"rfqDate":{"type":"string","minLength":1},"status":{"type":"string","enum":["Draft","Ready for Quote","Quoted","Closed"]},"salesPersonId":{"type":"string"},"rfqId":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["customerId","rfqDate","rfqId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"rfqId":{"type":"string"}},"required":["id","rfqId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/upsertSalesRFQLine":{"post":{"operationId":"sales.upsertSalesRFQLine","summary":"upsert sales r f q line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesRfqId":{"type":"string","minLength":1},"customerPartId":{"type":"string","minLength":1},"customerPartRevision":{"type":"string"},"itemId":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"array","items":{"type":"number","minimum":0.00001}},"unitOfMeasureCode":{"type":"string","minLength":1},"order":{"type":"number","minimum":0},"modelUploadId":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["salesRfqId","customerPartId","quantity","unitOfMeasureCode","order"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/updateSalesRFQLineOrder":{"post":{"operationId":"sales.updateSalesRFQLineOrder","summary":"update sales r f q line order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesRfqId":{"type":"string"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["salesRfqId","updates"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/sales/getReturnReasons":{"post":{"operationId":"sales.getReturnReasons","summary":"get return reasons","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"inventoryValueZero":{"type":"boolean"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","inventoryValueZero","name","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getReturnReasonsList":{"post":{"operationId":"sales.getReturnReasonsList","summary":"get return reasons list","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"inventoryValueZero":{"type":"boolean"}},"required":["id","name","inventoryValueZero"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getReturnReason":{"post":{"operationId":"sales.getReturnReason","summary":"get return reason","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"returnReasonId":{"type":"string"}},"required":["returnReasonId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":"string"},"inventoryValueZero":{"type":"boolean"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","customFields","id","inventoryValueZero","name","updatedAt","updatedBy"]}}}}}}},"/sales/upsertReturnReason":{"post":{"operationId":"sales.upsertReturnReason","summary":"upsert return reason","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"inventoryValueZero":{"type":"boolean"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/deleteReturnReason":{"post":{"operationId":"sales.deleteReturnReason","summary":"delete return reason","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"returnReasonId":{"type":"string"}},"required":["returnReasonId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/getSalesReturnOrders":{"post":{"operationId":"sales.getSalesReturnOrders","summary":"get sales return orders","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"status":{"type":["string","null"]},"customerId":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"expirationDate":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"linesCount":{"type":["number","null"]},"locationId":{"type":["string","null"]},"orderDate":{"type":["string","null"]},"quantityAuthorized":{"type":["number","null"]},"quantityCredited":{"type":["number","null"]},"quantityReceived":{"type":["number","null"]},"replacementSalesOrderId":{"type":["string","null"]},"salesOrderId":{"type":["string","null"]},"salesReturnOrderId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Completed","Cancelled","Draft","To Receive"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","currencyCode","customerContactId","customerId","customerLocationId","customerReference","customFields","exchangeRate","expirationDate","externalNotes","id","internalNotes","linesCount","locationId","orderDate","quantityAuthorized","quantityCredited","quantityReceived","replacementSalesOrderId","salesOrderId","salesReturnOrderId","status","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesReturnOrder":{"post":{"operationId":"sales.getSalesReturnOrder","summary":"get sales return order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesReturnOrderId":{"type":"string"}},"required":["salesReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"assignee":{"type":["string","null"]},"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"currencyCode":{"type":["string","null"]},"customerContactId":{"type":["string","null"]},"customerId":{"type":["string","null"]},"customerLocationId":{"type":["string","null"]},"customerReference":{"type":["string","null"]},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"exchangeRate":{"type":["number","null"]},"expirationDate":{"type":["string","null"]},"externalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"id":{"type":["string","null"]},"internalNotes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"linesCount":{"type":["number","null"]},"locationId":{"type":["string","null"]},"orderDate":{"type":["string","null"]},"quantityAuthorized":{"type":["number","null"]},"quantityCredited":{"type":["number","null"]},"quantityReceived":{"type":["number","null"]},"replacementSalesOrderId":{"type":["string","null"]},"salesOrderId":{"type":["string","null"]},"salesReturnOrderId":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["Completed","Cancelled","Draft","To Receive"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["assignee","companyId","createdAt","createdBy","currencyCode","customerContactId","customerId","customerLocationId","customerReference","customFields","exchangeRate","expirationDate","externalNotes","id","internalNotes","linesCount","locationId","orderDate","quantityAuthorized","quantityCredited","quantityReceived","replacementSalesOrderId","salesOrderId","salesReturnOrderId","status","updatedAt","updatedBy"]}}}}}}},"/sales/getSalesReturnOrderLines":{"post":{"operationId":"sales.getSalesReturnOrderLines","summary":"get sales return order lines","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesReturnOrderId":{"type":"string"}},"required":["salesReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"closedComplete":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"disposition":{"type":"string","enum":["Pending","Scrap","Conditional Acceptance","Deviation Accepted","Hold","No Action Required","Quarantine","Repair","Return to Supplier","Rework","Use As Is","Return to Customer"]},"id":{"type":"string"},"itemId":{"type":"string"},"lineNumber":{"type":"number"},"quantity":{"type":"number"},"quantityReceived":{"type":"number"},"restockFeePercent":{"type":"number"},"returnReasonId":{"type":["string","null"]},"salesInvoiceLineId":{"type":["string","null"]},"salesOrderLineId":{"type":["string","null"]},"salesReturnOrderId":{"type":"string"},"shipmentLineId":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"returnReason":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]},"item":{"type":"object","properties":{"name":{"type":"string"},"readableIdWithRevision":{"type":["string","null"]},"itemTrackingType":{"type":"string","enum":["Inventory","Non-Inventory","Serial","Batch"]},"thumbnailPath":{"type":["string","null"]}},"required":["name","readableIdWithRevision","itemTrackingType","thumbnailPath"]}},"required":["closedComplete","companyId","createdAt","createdBy","customFields","disposition","id","itemId","lineNumber","quantity","quantityReceived","restockFeePercent","returnReasonId","salesInvoiceLineId","salesOrderLineId","salesReturnOrderId","shipmentLineId","unitOfMeasureCode","unitPrice","updatedAt","updatedBy","returnReason","item"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesReturnOrderLine":{"post":{"operationId":"sales.getSalesReturnOrderLine","summary":"get sales return order line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"}},"required":["lineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"closedComplete":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"disposition":{"type":"string","enum":["Pending","Scrap","Conditional Acceptance","Deviation Accepted","Hold","No Action Required","Quarantine","Repair","Return to Supplier","Rework","Use As Is","Return to Customer"]},"id":{"type":"string"},"itemId":{"type":"string"},"lineNumber":{"type":"number"},"quantity":{"type":"number"},"quantityReceived":{"type":"number"},"restockFeePercent":{"type":"number"},"returnReasonId":{"type":["string","null"]},"salesInvoiceLineId":{"type":["string","null"]},"salesOrderLineId":{"type":["string","null"]},"salesReturnOrderId":{"type":"string"},"shipmentLineId":{"type":["string","null"]},"unitOfMeasureCode":{"type":["string","null"]},"unitPrice":{"type":"number"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["closedComplete","companyId","createdAt","createdBy","customFields","disposition","id","itemId","lineNumber","quantity","quantityReceived","restockFeePercent","returnReasonId","salesInvoiceLineId","salesOrderLineId","salesReturnOrderId","shipmentLineId","unitOfMeasureCode","unitPrice","updatedAt","updatedBy"]}}}}}}},"/sales/getSalesReturnOrderLineTrackedEntities":{"post":{"operationId":"sales.getSalesReturnOrderLineTrackedEntities","summary":"get sales return order line tracked entities","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineIds":{"type":"array","items":{"type":"string"}}},"required":["lineIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"quantity":{"type":"number"},"salesReturnOrderLineId":{"type":"string"},"trackedEntityId":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"trackedEntity":{"type":"object","properties":{"id":{"type":"string"},"readableId":{"type":["string","null"]},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"quantity":{"type":"number"}},"required":["id","readableId","status","quantity"]}},"required":["companyId","createdAt","createdBy","quantity","salesReturnOrderLineId","trackedEntityId","updatedAt","updatedBy","trackedEntity"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/insertSalesReturnOrder":{"post":{"operationId":"sales.insertSalesReturnOrder","summary":"insert sales return order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"salesReturnOrderId":{"type":"string"},"orderDate":{"type":"string"},"customerLocationId":{"type":"string"},"customerContactId":{"type":"string"},"customerReference":{"type":"string"},"locationId":{"type":"string"},"salesOrderId":{"type":"string"},"currencyCode":{"type":"string"},"expirationDate":{"type":"string"},"assignee":{"type":"string"},"customFields":{}},"required":["customerId","orderDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"salesReturnOrderId":{"type":"string"}},"required":["id","salesReturnOrderId"]}}}}}}},"/sales/upsertSalesReturnOrderLine":{"post":{"operationId":"sales.upsertSalesReturnOrderLine","summary":"upsert sales return order line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesReturnOrderId":{"type":"string","minLength":1},"itemId":{"type":"string","minLength":1},"quantity":{"type":"number","exclusiveMinimum":0},"unitOfMeasureCode":{"type":"string"},"unitPrice":{"type":"number","minimum":0},"restockFeePercent":{"type":"number","minimum":0,"maximum":1},"returnReasonId":{"type":"string"},"salesOrderLineId":{"type":"string"},"shipmentLineId":{"type":"string"},"salesInvoiceLineId":{"type":"string"},"customFields":{},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["salesReturnOrderId","itemId","quantity","unitPrice"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/deleteSalesReturnOrder":{"post":{"operationId":"sales.deleteSalesReturnOrder","summary":"delete sales return order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesReturnOrderId":{"type":"string"}},"required":["salesReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/deleteSalesReturnOrderLine":{"post":{"operationId":"sales.deleteSalesReturnOrderLine","summary":"delete sales return order line","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"}},"required":["lineId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/sales/getSalesReturnOrderReceipts":{"post":{"operationId":"sales.getSalesReturnOrderReceipts","summary":"get sales return order receipts","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesReturnOrderId":{"type":"string"}},"required":["salesReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"receiptId":{"type":"string"},"status":{"type":"string","enum":["Pending","Draft","Posted","Voided"]},"postingDate":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","receiptId","status","postingDate","createdAt"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesReturnOrderCredits":{"post":{"operationId":"sales.getSalesReturnOrderCredits","summary":"get sales return order credits","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesReturnOrderId":{"type":"string"}},"required":["salesReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"memoId":{"type":"string"},"status":{"type":"string","enum":["Draft","Posted","Voided"]},"amount":{"type":"number"},"currencyCode":{"type":"string"},"memoDate":{"type":"string"},"postingDate":{"type":["string","null"]}},"required":["id","memoId","status","amount","currencyCode","memoDate","postingDate"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getSalesReturnOrderIssues":{"post":{"operationId":"sales.getSalesReturnOrderIssues","summary":"get sales return order issues","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesReturnOrderId":{"type":"string"}},"required":["salesReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"salesReturnOrderLineId":{"type":"string"},"nonConformance":{"type":"object","properties":{"id":{"type":"string"},"nonConformanceId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["Closed","In Progress","Registered"]}},"required":["id","nonConformanceId","name","status"]}},"required":["id","salesReturnOrderLineId","nonConformance"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/confirmSalesReturnOrder":{"post":{"operationId":"sales.confirmSalesReturnOrder","summary":"confirm an RMA","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/sales/reopenSalesReturnOrder":{"post":{"operationId":"sales.reopenSalesReturnOrder","summary":"reopen an RMA to Draft so its lines can be edited again","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/sales/cancelSalesReturnOrder":{"post":{"operationId":"sales.cancelSalesReturnOrder","summary":"cancel sales return order","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/shortCloseSalesReturnOrderLine":{"post":{"operationId":"sales.shortCloseSalesReturnOrderLine","summary":"short-close (\"stop expecting\") an RMA line — the shortClosePurchaseOrderLine mechanic","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"},"salesReturnOrderId":{"type":"string"},"intent":{"type":"string","enum":["close","reopen"]}},"required":["lineId","salesReturnOrderId","intent"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/sales/getReturnableLinesForCustomer":{"post":{"operationId":"sales.getReturnableLinesForCustomer","summary":"returnable shipment lines for a customer, searched + paginated in the database via the get_returnable_shipment_lines RPC","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"args":{"type":"object","properties":{"salesOrderId":{"type":"string"},"search":{"type":"string"},"limit":{"type":"number"},"offset":{"type":"number"}}}},"required":["customerId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"alreadyReturned":{"type":"number"},"itemId":{"type":"string"},"itemName":{"type":"string"},"itemReadableId":{"type":"string"},"itemTrackingType":{"type":"string"},"returnableQuantity":{"type":"number"},"salesOrderLineId":{"type":"string"},"salesOrderReadableId":{"type":"string"},"shipmentLineId":{"type":"string"},"shipmentReadableId":{"type":"string"},"shippedQuantity":{"type":"number"},"totalCount":{"type":"number"},"unitOfMeasureCode":{"type":"string"},"unitPrice":{"type":"number"}},"required":["alreadyReturned","itemId","itemName","itemReadableId","itemTrackingType","returnableQuantity","salesOrderLineId","salesOrderReadableId","shipmentLineId","shipmentReadableId","shippedQuantity","totalCount","unitOfMeasureCode","unitPrice"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getShippedTrackedEntitiesForCustomer":{"post":{"operationId":"sales.getShippedTrackedEntitiesForCustomer","summary":"entity picker source for RMA lines: serials/batches shipped to this customer (Consumed entities tagged with a posted shipment's id — the attributes->>X query p…","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"itemId":{"type":"string"}},"required":["customerId","itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"readableId":{"type":["string","null"]},"quantity":{"type":"number"},"status":{"type":"string","enum":["Rejected","Available","Reserved","On Hold","Consumed","Scrapped"]},"attributes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["id","readableId","quantity","status","attributes"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/getCreditableQuantities":{"post":{"operationId":"sales.getCreditableQuantities","summary":"per-line creditable pool = received − already credited","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesReturnOrderId":{"type":"string"}},"required":["salesReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"salesReturnOrderLineId":{"type":"string"},"lineNumber":{"type":"number"},"quantityReceived":{"type":"number"},"quantityCredited":{"type":"number"},"creditableQuantity":{"type":"number"},"unitPrice":{"type":"number"},"restockFeePercent":{"type":"number"}},"required":["salesReturnOrderLineId","lineNumber","quantityReceived","quantityCredited","creditableQuantity","unitPrice","restockFeePercent"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/sales/createSalesReturnOrderCredit":{"post":{"operationId":"sales.createSalesReturnOrderCredit","summary":"issue Credit: one AR memo (direction Credit, linked via memo.salesReturnOrderId) + per-line salesReturnOrderCreditLine breakdown","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesReturnOrderId":{"type":"string"},"memoDate":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"salesReturnOrderLineId":{"type":"string"},"quantity":{"type":"number"}},"required":["salesReturnOrderLineId","quantity"]}}},"required":["salesReturnOrderId","memoDate","lines"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/sales/createReplacementSalesOrder":{"post":{"operationId":"sales.createReplacementSalesOrder","summary":"create Replacement Order: a draft sales order pre-filled from the RMA lines, priced via resolvePrice (user adjusts on the draft — e.g","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesReturnOrderId":{"type":"string"}},"required":["salesReturnOrderId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/setSalesReturnOrderLineDisposition":{"post":{"operationId":"sales.setSalesReturnOrderLineDisposition","summary":"set an RMA line's disposition","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"},"disposition":{"type":"string","enum":["Conditional Acceptance","Deviation Accepted","Hold","No Action Required","Pending","Quarantine","Repair","Return to Supplier","Rework","Scrap","Use As Is","Return to Customer"]}},"required":["lineId","disposition"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/sales/createOpportunityDocumentUploadUrl":{"post":{"operationId":"sales.createOpportunityDocumentUploadUrl","summary":"create a presigned upload URL for an opportunity (quote/sales order/RFQ/sales invoice) document","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opportunityId":{"type":"string"},"name":{"type":"string"}},"required":["opportunityId","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"signedUrl":{"type":"string"},"token":{"type":"string"},"path":{"type":"string"}},"required":["signedUrl","token","path"]}}}}}}},"/sales/createOpportunityLineDocumentUploadUrl":{"post":{"operationId":"sales.createOpportunityLineDocumentUploadUrl","summary":"create a presigned upload URL for an opportunity LINE document","tags":["sales"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lineId":{"type":"string"},"name":{"type":"string"}},"required":["lineId","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"signedUrl":{"type":"string"},"token":{"type":"string"},"path":{"type":"string"}},"required":["signedUrl","token","path"]}}}}}}},"/settings/getAccountsPayableBillingAddress":{"post":{"operationId":"settings.getAccountsPayableBillingAddress","summary":"get accounts payable billing address","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"countryCode":{"type":["string","null"]},"email":{"type":["string","null"]},"fax":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":["string","null"]},"phone":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"state":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["addressLine1","addressLine2","city","countryCode","email","fax","id","name","phone","postalCode","state","updatedAt","updatedBy"]}}}}}}},"/settings/getAccountsReceivableBillingAddress":{"post":{"operationId":"settings.getAccountsReceivableBillingAddress","summary":"get accounts receivable billing address","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"city":{"type":["string","null"]},"countryCode":{"type":["string","null"]},"email":{"type":["string","null"]},"fax":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":["string","null"]},"phone":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"state":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["addressLine1","addressLine2","city","countryCode","email","fax","id","name","phone","postalCode","state","updatedAt","updatedBy"]}}}}}}},"/settings/updateAccountsPayableBillingAddress":{"post":{"operationId":"settings.updateAccountsPayableBillingAddress","summary":"update accounts payable billing address","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"countryCode":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"},"email":{"type":"string","format":"email"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateAccountsReceivableBillingAddress":{"post":{"operationId":"settings.updateAccountsReceivableBillingAddress","summary":"update accounts receivable billing address","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"countryCode":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"},"email":{"type":"string","format":"email"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/getApiKeys":{"post":{"operationId":"settings.getApiKeys","summary":"get api keys","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"expiresAt":{"type":["string","null"]},"id":{"type":"string"},"keyHash":{"type":"string"},"keyPreview":{"type":["string","null"]},"lastUsedAt":{"type":["string","null"]},"name":{"type":"string"},"rateLimit":{"type":"number"},"rateLimitWindow":{"type":"string"},"scopes":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","expiresAt","id","keyHash","keyPreview","lastUsedAt","name","rateLimit","rateLimitWindow","scopes","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getCompanies":{"post":{"operationId":"settings.getCompanies","summary":"the view already carries `companyGroupName`, so there is nothing to embed","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"logoLight":{"type":["string","null"]},"logoDark":{"type":["string","null"]},"logoLightIcon":{"type":["string","null"]},"logoDarkIcon":{"type":["string","null"]},"logoWatermark":{"type":["string","null"]},"active":{"type":["boolean","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"auditLogEnabled":{"type":["boolean","null"]},"baseCurrencyCode":{"type":["string","null"]},"city":{"type":["string","null"]},"companyGroupId":{"type":["string","null"]},"companyGroupName":{"type":["string","null"]},"companyId":{"type":["string","null"]},"countryCode":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"customIndustryDescription":{"type":["string","null"]},"email":{"type":["string","null"]},"employeeType":{"type":["string","null"]},"eori":{"type":["string","null"]},"fax":{"type":["string","null"]},"featureRequests":{"type":["string","null"]},"id":{"type":["string","null"]},"industryId":{"type":["string","null"]},"isEliminationEntity":{"type":["boolean","null"]},"name":{"type":["string","null"]},"ownerId":{"type":["string","null"]},"parentCompanyId":{"type":["string","null"]},"phone":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"registrationNumber":{"type":["string","null"]},"role":{"type":["string","null"],"enum":["supplier","customer","employee"]},"selectedModules":{"type":["array","null"],"items":{"type":"string"}},"slackChannel":{"type":["string","null"]},"stateProvince":{"type":["string","null"]},"suggestionNotificationGroup":{"type":["array","null"],"items":{"type":"string"}},"taxId":{"type":["string","null"]},"timezone":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"userId":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"website":{"type":["string","null"]}},"required":["logoLight","logoDark","logoLightIcon","logoDarkIcon","logoWatermark","active","addressLine1","addressLine2","auditLogEnabled","baseCurrencyCode","city","companyGroupId","companyGroupName","companyId","countryCode","createdAt","customIndustryDescription","email","employeeType","eori","fax","featureRequests","id","industryId","isEliminationEntity","name","ownerId","parentCompanyId","phone","postalCode","registrationNumber","role","selectedModules","slackChannel","stateProvince","suggestionNotificationGroup","taxId","timezone","updatedBy","userId","vatNumber","website"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getEmployeeCompanies":{"post":{"operationId":"settings.getEmployeeCompanies","summary":"the companies a user can enter in the ERP","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"logoLight":{"type":["string","null"]},"logoDark":{"type":["string","null"]},"logoLightIcon":{"type":["string","null"]},"logoDarkIcon":{"type":["string","null"]},"logoWatermark":{"type":["string","null"]},"active":{"type":["boolean","null"]},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"auditLogEnabled":{"type":["boolean","null"]},"baseCurrencyCode":{"type":["string","null"]},"city":{"type":["string","null"]},"companyGroupId":{"type":["string","null"]},"companyGroupName":{"type":["string","null"]},"companyId":{"type":["string","null"]},"countryCode":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"customIndustryDescription":{"type":["string","null"]},"email":{"type":["string","null"]},"employeeType":{"type":["string","null"]},"eori":{"type":["string","null"]},"fax":{"type":["string","null"]},"featureRequests":{"type":["string","null"]},"id":{"type":["string","null"]},"industryId":{"type":["string","null"]},"isEliminationEntity":{"type":["boolean","null"]},"name":{"type":["string","null"]},"ownerId":{"type":["string","null"]},"parentCompanyId":{"type":["string","null"]},"phone":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"registrationNumber":{"type":["string","null"]},"role":{"type":["string","null"],"enum":["supplier","customer","employee"]},"selectedModules":{"type":["array","null"],"items":{"type":"string"}},"slackChannel":{"type":["string","null"]},"stateProvince":{"type":["string","null"]},"suggestionNotificationGroup":{"type":["array","null"],"items":{"type":"string"}},"taxId":{"type":["string","null"]},"timezone":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"userId":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"website":{"type":["string","null"]}},"required":["logoLight","logoDark","logoLightIcon","logoDarkIcon","logoWatermark","active","addressLine1","addressLine2","auditLogEnabled","baseCurrencyCode","city","companyGroupId","companyGroupName","companyId","countryCode","createdAt","customIndustryDescription","email","employeeType","eori","fax","featureRequests","id","industryId","isEliminationEntity","name","ownerId","parentCompanyId","phone","postalCode","registrationNumber","role","selectedModules","slackChannel","stateProvince","suggestionNotificationGroup","taxId","timezone","updatedBy","userId","vatNumber","website"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getIndustries":{"post":{"operationId":"settings.getIndustries","summary":"get industries","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"iconName":{"type":["string","null"]}},"required":["id","name","description","iconName"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getCompany":{"post":{"operationId":"settings.getCompany","summary":"get company","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"logoLight":{"type":["string","null"]},"logoDark":{"type":["string","null"]},"logoLightIcon":{"type":["string","null"]},"logoDarkIcon":{"type":["string","null"]},"logoWatermark":{"type":["string","null"]},"active":{"type":"boolean"},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"auditLogEnabled":{"type":"boolean"},"baseCurrencyCode":{"type":"string"},"city":{"type":["string","null"]},"companyGroupId":{"type":["string","null"]},"countryCode":{"type":["string","null"]},"createdAt":{"type":"string"},"customIndustryDescription":{"type":["string","null"]},"email":{"type":["string","null"]},"eori":{"type":["string","null"]},"fax":{"type":["string","null"]},"featureRequests":{"type":["string","null"]},"id":{"type":"string"},"industryId":{"type":["string","null"]},"isEliminationEntity":{"type":"boolean"},"name":{"type":"string"},"parentCompanyId":{"type":["string","null"]},"phone":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"registrationNumber":{"type":["string","null"]},"selectedModules":{"type":["array","null"],"items":{"type":"string"}},"slackChannel":{"type":["string","null"]},"stateProvince":{"type":["string","null"]},"suggestionNotificationGroup":{"type":"array","items":{"type":"string"}},"taxId":{"type":["string","null"]},"timezone":{"type":"string"},"updatedBy":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"website":{"type":["string","null"]}},"required":["logoLight","logoDark","logoLightIcon","logoDarkIcon","logoWatermark","active","addressLine1","addressLine2","auditLogEnabled","baseCurrencyCode","city","companyGroupId","countryCode","createdAt","customIndustryDescription","email","eori","fax","featureRequests","id","industryId","isEliminationEntity","name","parentCompanyId","phone","postalCode","registrationNumber","selectedModules","slackChannel","stateProvince","suggestionNotificationGroup","taxId","timezone","updatedBy","vatNumber","website"]}}}}}}},"/settings/getCompanyIntegrations":{"post":{"operationId":"settings.getCompanyIntegrations","summary":"get company integrations","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"id":{"type":"string"},"metadata":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"secretRef":{"type":["string","null"]},"updatedAt":{"type":"string"},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","id","metadata","secretRef","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getCompanyPlan":{"post":{"operationId":"settings.getCompanyPlan","summary":"get company plan","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/settings/getCompanySettings":{"post":{"operationId":"settings.getCompanySettings","summary":"get company settings","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accountingEnabled":{"type":"boolean"},"accountsPayableAddress":{"type":["boolean","null"]},"accountsPayableEmail":{"type":["string","null"]},"accountsReceivableAddress":{"type":["boolean","null"]},"accountsReceivableEmail":{"type":["string","null"]},"allowLowercaseItemIds":{"type":"boolean"},"assetTaxDepreciationEnabled":{"type":"boolean"},"assetTaxRate":{"type":["number","null"]},"autoSelectMaterialWithoutPickingList":{"type":"boolean"},"autoStartOperationTimer":{"type":"boolean"},"consoleEnabled":{"type":"boolean"},"defaultCustomerCc":{"type":["array","null"],"items":{"type":"string"}},"defaultSupplierCc":{"type":["array","null"],"items":{"type":"string"}},"digitalQuoteEnabled":{"type":"boolean"},"digitalQuoteIncludesPurchaseOrders":{"type":"boolean"},"digitalQuoteNotificationGroup":{"type":"array","items":{"type":"string"}},"enforceInspectionFourEyes":{"type":"boolean"},"gaugeCalibrationExpiredNotificationGroup":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"includeMaterialsOnTraveler":{"type":"boolean"},"includeOperationsOnTraveler":{"type":"boolean"},"incompletePickingListPolicy":{"type":"string"},"inventoryJobCompletedNotificationGroup":{"type":"array","items":{"type":"string"}},"inventoryShelfLife":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"kanbanOutput":{"type":"string","enum":["label","qrcode","url"]},"maintenanceDispatchNotificationGroup":{"type":["array","null"],"items":{"type":"string"}},"materialGeneratedIds":{"type":"boolean"},"operationsDispatchNotificationGroup":{"type":["array","null"],"items":{"type":"string"}},"otherDispatchNotificationGroup":{"type":["array","null"],"items":{"type":"string"}},"plmReleaseControl":{"type":"string"},"printing":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"productLabelSize":{"type":["string","null"]},"purchasePriceUpdateTiming":{"type":"string","enum":["Purchase Invoice Post","Purchase Order Finalize"]},"qualityDispatchNotificationGroup":{"type":["array","null"],"items":{"type":"string"}},"qualityIssueTarget":{"type":"number"},"quoteLineCategoryMarkups":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"requireCustomerContactAndLocation":{"type":"boolean"},"requireMfa":{"type":"boolean"},"requireSupplierContactAndLocation":{"type":"boolean"},"returnPickedMaterialTiming":{"type":"string"},"rfqReadyNotificationGroup":{"type":"array","items":{"type":"string"}},"salesJobCompletedNotificationGroup":{"type":"array","items":{"type":"string"}},"salesRuleNotificationGroup":{"type":"array","items":{"type":"string"}},"samplingStandard":{"type":"string","enum":["ANSI_Z1_4","ISO_2859_1"]},"shelfLabelSize":{"type":["string","null"]},"showBomExplorerReadableId":{"type":"boolean"},"showCurrencyTrailingZeros":{"type":"boolean"},"showCustomerReadableId":{"type":"boolean"},"showSupplierReadableId":{"type":"boolean"},"supplierQuoteNotificationGroup":{"type":"array","items":{"type":"string"}},"timeCardEnabled":{"type":"boolean"},"updateLeadTimesOnReceipt":{"type":"boolean"},"useMetric":{"type":"boolean"}},"required":["accountingEnabled","accountsPayableAddress","accountsPayableEmail","accountsReceivableAddress","accountsReceivableEmail","allowLowercaseItemIds","assetTaxDepreciationEnabled","assetTaxRate","autoSelectMaterialWithoutPickingList","autoStartOperationTimer","consoleEnabled","defaultCustomerCc","defaultSupplierCc","digitalQuoteEnabled","digitalQuoteIncludesPurchaseOrders","digitalQuoteNotificationGroup","enforceInspectionFourEyes","gaugeCalibrationExpiredNotificationGroup","id","includeMaterialsOnTraveler","includeOperationsOnTraveler","incompletePickingListPolicy","inventoryJobCompletedNotificationGroup","inventoryShelfLife","kanbanOutput","maintenanceDispatchNotificationGroup","materialGeneratedIds","operationsDispatchNotificationGroup","otherDispatchNotificationGroup","plmReleaseControl","printing","productLabelSize","purchasePriceUpdateTiming","qualityDispatchNotificationGroup","qualityIssueTarget","quoteLineCategoryMarkups","requireCustomerContactAndLocation","requireMfa","requireSupplierContactAndLocation","returnPickedMaterialTiming","rfqReadyNotificationGroup","salesJobCompletedNotificationGroup","salesRuleNotificationGroup","samplingStandard","shelfLabelSize","showBomExplorerReadableId","showCurrencyTrailingZeros","showCustomerReadableId","showSupplierReadableId","supplierQuoteNotificationGroup","timeCardEnabled","updateLeadTimesOnReceipt","useMetric"]}}}}}}},"/settings/getConfig":{"post":{"operationId":"settings.getConfig","summary":"get config","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"anonKey":{"type":"string"},"apiUrl":{"type":"string"},"id":{"type":"boolean"}},"required":["anonKey","apiUrl","id"]}}}}}}},"/settings/getCurrentSequence":{"post":{"operationId":"settings.getCurrentSequence","summary":"get current sequence","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"string"}},"required":["table"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/settings/getCustomField":{"post":{"operationId":"settings.getCustomField","summary":"get custom field","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":["boolean","null"]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"dataTypeId":{"type":"number"},"id":{"type":"string"},"listOptions":{"type":["array","null"],"items":{"type":"string"}},"name":{"type":"string"},"required":{"type":"boolean"},"sortOrder":{"type":"number"},"table":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","dataTypeId","id","listOptions","name","required","sortOrder","table","tags","updatedAt","updatedBy"]}}}}}}},"/settings/getCustomFields":{"post":{"operationId":"settings.getCustomFields","summary":"get custom fields","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"string"}},"required":["table"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"fields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"module":{"type":["string","null"],"enum":["Inventory","Accounting","Documents","Invoicing","Items","Messaging","Parts","People","Production","Purchasing","Resources","Sales","Settings","Users","Quality","Printing","Workflows"]},"name":{"type":["string","null"]},"table":{"type":["string","null"]}},"required":["companyId","fields","module","name","table"]}}}}}}},"/settings/getCustomFieldsTables":{"post":{"operationId":"settings.getCustomFieldsTables","summary":"get custom fields tables","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"fields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"module":{"type":["string","null"],"enum":["Inventory","Accounting","Documents","Invoicing","Items","Messaging","Parts","People","Production","Purchasing","Resources","Sales","Settings","Users","Quality","Printing","Workflows"]},"name":{"type":["string","null"]},"table":{"type":["string","null"]}},"required":["companyId","fields","module","name","table"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getIntegration":{"post":{"operationId":"settings.getIntegration","summary":"get integration","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"id":{"type":"string"},"metadata":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"secretRef":{"type":["string","null"]},"updatedAt":{"type":"string"},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","id","metadata","secretRef","updatedAt","updatedBy"]}}}}}}},"/settings/getIntegrations":{"post":{"operationId":"settings.getIntegrations","summary":"get integrations","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"companyId":{"type":["string","null"]},"id":{"type":["string","null"]},"jsonschema":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"metadata":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["active","companyId","id","jsonschema","metadata"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getKanbanOutputSetting":{"post":{"operationId":"settings.getKanbanOutputSetting","summary":"get kanban output setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"kanbanOutput":{"type":"string","enum":["label","qrcode","url"]}},"required":["kanbanOutput"]}}}}}}},"/settings/getNextSequence":{"post":{"operationId":"settings.getNextSequence","summary":"get next sequence","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"string"}},"required":["table"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/settings/getPlanById":{"post":{"operationId":"settings.getPlanById","summary":"get plan by id","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string"}},"required":["planId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/settings/getPlans":{"post":{"operationId":"settings.getPlans","summary":"get plans","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getSequence":{"post":{"operationId":"settings.getSequence","summary":"get sequence","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"string"}},"required":["table"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"next":{"type":"number"},"prefix":{"type":["string","null"]},"size":{"type":"number"},"step":{"type":"number"},"suffix":{"type":["string","null"]},"table":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","id","name","next","prefix","size","step","suffix","table","updatedAt","updatedBy"]}}}}}}},"/settings/getSequences":{"post":{"operationId":"settings.getSequences","summary":"get sequences","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"next":{"type":"number"},"prefix":{"type":["string","null"]},"size":{"type":"number"},"step":{"type":"number"},"suffix":{"type":["string","null"]},"table":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","id","name","next","prefix","size","step","suffix","table","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getSequencesList":{"post":{"operationId":"settings.getSequencesList","summary":"get sequences list","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"string"}},"required":["table"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getItemSerialSequences":{"post":{"operationId":"settings.getItemSerialSequences","summary":"get item serial sequences","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemTrackingType":{"type":["string","null"],"enum":["Inventory","Non-Inventory","Serial","Batch"]},"next":{"type":["number","null"]},"prefix":{"type":["string","null"]},"size":{"type":["number","null"]},"step":{"type":["number","null"]},"suffix":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","id","itemId","itemName","itemReadableId","itemTrackingType","next","prefix","size","step","suffix","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getItemSerialSequence":{"post":{"operationId":"settings.getItemSerialSequence","summary":"get item serial sequence","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"createdBy":{"type":["string","null"]},"id":{"type":["string","null"]},"itemId":{"type":["string","null"]},"itemName":{"type":["string","null"]},"itemReadableId":{"type":["string","null"]},"itemTrackingType":{"type":["string","null"],"enum":["Inventory","Non-Inventory","Serial","Batch"]},"next":{"type":["number","null"]},"prefix":{"type":["string","null"]},"size":{"type":["number","null"]},"step":{"type":["number","null"]},"suffix":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","id","itemId","itemName","itemReadableId","itemTrackingType","next","prefix","size","step","suffix","updatedAt","updatedBy"]}}}}}}},"/settings/getItemSerialSequenceByItemId":{"post":{"operationId":"settings.getItemSerialSequenceByItemId","summary":"get item serial sequence by item id","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"itemId":{"type":"string"},"next":{"type":"number"},"prefix":{"type":["string","null"]},"size":{"type":"number"},"step":{"type":"number"},"suffix":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","id","itemId","next","prefix","size","step","suffix","updatedAt","updatedBy"]}}}}}}},"/settings/upsertItemSerialSequence":{"post":{"operationId":"settings.upsertItemSerialSequence","summary":"upsert item serial sequence","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1},"prefix":{"type":"string"},"suffix":{"type":"string"},"next":{"type":"number","minimum":0},"step":{"type":"number","minimum":1},"size":{"type":"number","minimum":1,"maximum":20},"id":{"type":"string","description":"Send to update that record; omit to create a new one."}},"required":["itemId","next","step","size"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/settings/deleteItemSerialSequence":{"post":{"operationId":"settings.deleteItemSerialSequence","summary":"delete item serial sequence","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/getSubsidiaries":{"post":{"operationId":"settings.getSubsidiaries","summary":"get subsidiaries","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"baseCurrencyCode":{"type":"string"},"countryCode":{"type":["string","null"]},"parentCompanyId":{"type":["string","null"]},"isEliminationEntity":{"type":"boolean"},"active":{"type":"boolean"}},"required":["id","name","baseCurrencyCode","countryCode","parentCompanyId","isEliminationEntity","active"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getSubsidiary":{"post":{"operationId":"settings.getSubsidiary","summary":"get subsidiary","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"addressLine1":{"type":["string","null"]},"addressLine2":{"type":["string","null"]},"auditLogEnabled":{"type":"boolean"},"baseCurrencyCode":{"type":"string"},"city":{"type":["string","null"]},"companyGroupId":{"type":["string","null"]},"countryCode":{"type":["string","null"]},"createdAt":{"type":"string"},"customIndustryDescription":{"type":["string","null"]},"email":{"type":["string","null"]},"eori":{"type":["string","null"]},"fax":{"type":["string","null"]},"featureRequests":{"type":["string","null"]},"id":{"type":"string"},"industryId":{"type":["string","null"]},"isEliminationEntity":{"type":"boolean"},"logoDark":{"type":["string","null"]},"logoDarkIcon":{"type":["string","null"]},"logoLight":{"type":["string","null"]},"logoLightIcon":{"type":["string","null"]},"logoWatermark":{"type":["string","null"]},"name":{"type":"string"},"parentCompanyId":{"type":["string","null"]},"phone":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"registrationNumber":{"type":["string","null"]},"selectedModules":{"type":["array","null"],"items":{"type":"string"}},"slackChannel":{"type":["string","null"]},"stateProvince":{"type":["string","null"]},"suggestionNotificationGroup":{"type":"array","items":{"type":"string"}},"taxId":{"type":["string","null"]},"timezone":{"type":"string"},"updatedBy":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"website":{"type":["string","null"]}},"required":["active","addressLine1","addressLine2","auditLogEnabled","baseCurrencyCode","city","companyGroupId","countryCode","createdAt","customIndustryDescription","email","eori","fax","featureRequests","id","industryId","isEliminationEntity","logoDark","logoDarkIcon","logoLight","logoLightIcon","logoWatermark","name","parentCompanyId","phone","postalCode","registrationNumber","selectedModules","slackChannel","stateProvince","suggestionNotificationGroup","taxId","timezone","updatedBy","vatNumber","website"]}}}}}}},"/settings/getTerms":{"post":{"operationId":"settings.getTerms","summary":"get terms","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"purchasingTerms":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"salesTerms":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["id","purchasingTerms","salesTerms","updatedAt","updatedBy"]}}}}}}},"/settings/getDocumentTemplate":{"post":{"operationId":"settings.getDocumentTemplate","summary":"get document template","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"documentType":{}},"required":["documentType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"blocks":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"documentType":{"type":"string"},"footerSectionId":{"type":["string","null"]},"formatVersion":{"type":"number"},"headerSectionId":{"type":["string","null"]},"id":{"type":"string"},"settings":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"theme":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["blocks","companyId","createdAt","createdBy","documentType","footerSectionId","formatVersion","headerSectionId","id","settings","theme","updatedAt","updatedBy"]}}}}}}},"/settings/getDocumentTemplateConfig":{"post":{"operationId":"settings.getDocumentTemplateConfig","summary":"load a stored document template as a `DocumentTemplate | null` ready to pass to a PDF (which runs it through `resolveTemplate`)","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"documentType":{}},"required":["documentType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["object","null"],"properties":{"formatVersion":{"type":"number"},"documentType":{"type":"string","enum":["purchaseOrder","stockTransfer","salesInvoice","quote","salesOrder","purchaseReturnOrder","salesReturnOrder","issue","packingSlip","jobTraveler","trackingLabel"]},"blocks":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["header"]},"id":{"type":"string"},"visible":{"type":"boolean"},"options":{"type":["object","null"],"properties":{"showLogo":{"type":"boolean"},"logoVariant":{"type":"string","enum":["icon","mark"]},"logoHeight":{"type":"number"},"showCompanyDetails":{"type":"boolean"},"showDocumentTitle":{"type":"boolean"},"showDocumentId":{"type":"boolean"},"logoCrop":{"type":["object","null"],"properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"},"aspect":{"type":"number"}},"required":["x","y","width","height","aspect"]}},"required":["showLogo","logoVariant","logoHeight","showCompanyDetails","showDocumentTitle","showDocumentId"]}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["watermark"]},"opacity":{"type":"number"},"placement":{"type":"string","enum":["top","center","bottom"]},"size":{"type":"number"},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","opacity","placement","size","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["parties"]},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["notes"]},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["details"]},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["lineItems"]},"id":{"type":"string"},"visible":{"type":"boolean"},"options":{"type":["object","null"],"properties":{"showThumbnails":{"type":"boolean"},"zebra":{"type":"boolean"},"textOverflow":{"type":"string","enum":["wrap","truncate"]}},"required":["showThumbnails","zebra","textOverflow"]}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["summary"]},"id":{"type":"string"},"visible":{"type":"boolean"},"options":{"type":["object","null"],"properties":{"taxLabel":{"type":"string"}},"required":["taxLabel"]}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["terms"]},"id":{"type":"string"},"visible":{"type":"boolean"},"content":{"type":["object","null"],"additionalProperties":{}}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["jobDetails"]},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["operations"]},"showWorkInstructions":{"type":"boolean"},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","showWorkInstructions","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["issueDetails"]},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["associations"]},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["actionTasks"]},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["reviewers"]},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["labelHeading"]},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["labelRevision"]},"id":{"type":"string"},"visible":{"type":"boolean"},"label":{"type":["string","null"]}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["labelQuantity"]},"id":{"type":"string"},"visible":{"type":"boolean"},"label":{"type":["string","null"]}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["labelTracking"]},"id":{"type":"string"},"visible":{"type":"boolean"},"label":{"type":["string","null"]}},"required":["type","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["labelEntityId"]},"value":{"type":"string"},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","value","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["labelBarcode"]},"symbology":{"type":"string","enum":["qrcode","pdf417","code128","datamatrix"]},"value":{"type":"string"},"placement":{"type":"string","enum":["full","center","right"]},"id":{"type":"string"},"visible":{"type":"boolean"},"height":{"type":["number","null"]}},"required":["type","symbology","value","placement","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["labelLogo"]},"variant":{"type":"string","enum":["icon","mark"]},"id":{"type":"string"},"visible":{"type":"boolean"},"monochrome":{"type":["boolean","null"]},"crop":{"type":["object","null"],"properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"},"aspect":{"type":"number"}},"required":["x","y","width","height","aspect"]},"height":{"type":["number","null"]}},"required":["type","variant","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["richText"]},"content":{"type":"object","additionalProperties":{}},"id":{"type":"string"},"visible":{"type":"boolean"},"title":{"type":["string","null"]}},"required":["type","content","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["keyValue"]},"rows":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"]}},"id":{"type":"string"},"visible":{"type":"boolean"},"title":{"type":["string","null"]}},"required":["type","rows","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["spacer"]},"variant":{"type":"string","enum":["space","divider","pageBreak"]},"id":{"type":"string"},"visible":{"type":"boolean"},"size":{"type":["number","null"]}},"required":["type","variant","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["shared"]},"sectionId":{"type":"string"},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","sectionId","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["field"]},"value":{"type":"string"},"id":{"type":"string"},"visible":{"type":"boolean"},"label":{"type":["string","null"]}},"required":["type","value","id","visible"]},{"type":"object","properties":{"type":{"type":"string","enum":["customField"]},"fieldId":{"type":"string"},"label":{"type":"string"},"id":{"type":"string"},"visible":{"type":"boolean"}},"required":["type","fieldId","label","id","visible"]}]}},"theme":{"type":"object","properties":{"accent":{"type":"string"},"accentForeground":{"type":"string"},"heading":{"type":"string"},"text":{"type":"string"}},"required":["accent","accentForeground","heading","text"]},"settings":{"type":"object","properties":{"fontFamily":{"type":"string","enum":["Inter","Helvetica","Times-Roman","Courier","Roboto","Open Sans","Lato","Montserrat","Merriweather","Playfair Display","Lora"]},"showPageNumbers":{"type":"boolean"},"pageNumberFormat":{"type":"string","enum":["page","pageOfTotal"]},"showRegistrationLine":{"type":"boolean"}},"required":["fontFamily","showPageNumbers","pageNumberFormat","showRegistrationLine"]},"headerSectionId":{"type":["string","null"]},"footerSectionId":{"type":["string","null"]}},"required":["formatVersion","documentType","blocks","theme","settings","headerSectionId","footerSectionId"]}}}}}}},"/settings/upsertDocumentTemplate":{"post":{"operationId":"settings.upsertDocumentTemplate","summary":"upsert document template","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"documentType":{},"blocks":{"type":"array","items":{}},"theme":{},"settings":{},"headerSectionId":{"type":["string","null"]},"footerSectionId":{"type":["string","null"]}},"required":["documentType","blocks","theme","settings","headerSectionId","footerSectionId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/getDocumentSections":{"post":{"operationId":"settings.getDocumentSections","summary":"get document sections","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"config":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"placement":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","config","content","createdAt","createdBy","id","name","placement","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getDocumentSection":{"post":{"operationId":"settings.getDocumentSection","summary":"get document section","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"config":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"placement":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","config","content","createdAt","createdBy","id","name","placement","updatedAt","updatedBy"]}}}}}}},"/settings/getDocumentSectionsByIds":{"post":{"operationId":"settings.getDocumentSectionsByIds","summary":"get document sections by ids","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}},"required":["ids"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"config":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"content":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"placement":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["companyId","config","content","createdAt","createdBy","id","name","placement","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/upsertDocumentSection":{"post":{"operationId":"settings.upsertDocumentSection","summary":"upsert document section","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Updates the existing record with this key; creates one when there is none."},"name":{"type":"string"},"placement":{},"content":{},"config":{"type":"object"}},"required":["name","placement","content"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/deleteDocumentSection":{"post":{"operationId":"settings.deleteDocumentSection","summary":"delete document section","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/resolveSections":{"post":{"operationId":"settings.resolveSections","summary":"fetch the given section ids and return them keyed by id for rendering","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}},"required":["ids"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"placement":{"type":"string","enum":["body","header","footer"]},"content":{"type":"object","additionalProperties":{}},"config":{"type":["object","null"],"properties":{"showLogo":{"type":["boolean","null"]},"logoVariant":{"type":["string","null"],"enum":["icon","mark"]},"logoHeight":{"type":["number","null"]},"logoCrop":{"type":["object","null"],"properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"},"aspect":{"type":"number"}},"required":["x","y","width","height","aspect"]},"showCompanyDetails":{"type":["boolean","null"]},"showDocumentTitle":{"type":["boolean","null"]},"showDocumentId":{"type":["boolean","null"]},"showRegistrationLine":{"type":["boolean","null"]},"registrationNumber":{"type":["string","null"]}}},"builtIn":{"type":["boolean","null"]}},"required":["id","name","placement","content"]}}}}}}}},"/settings/getWebhook":{"post":{"operationId":"settings.getWebhook","summary":"get webhook","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"errorCount":{"type":"number"},"id":{"type":"string"},"lastError":{"type":["string","null"]},"lastSuccess":{"type":["string","null"]},"name":{"type":"string"},"onDelete":{"type":"boolean"},"onInsert":{"type":"boolean"},"onUpdate":{"type":"boolean"},"successCount":{"type":"number"},"table":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"url":{"type":"string"}},"required":["active","companyId","createdAt","createdBy","errorCount","id","lastError","lastSuccess","name","onDelete","onInsert","onUpdate","successCount","table","updatedAt","updatedBy","url"]}}}}}}},"/settings/getWebhooks":{"post":{"operationId":"settings.getWebhooks","summary":"get webhooks","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"errorCount":{"type":"number"},"id":{"type":"string"},"lastError":{"type":["string","null"]},"lastSuccess":{"type":["string","null"]},"name":{"type":"string"},"onDelete":{"type":"boolean"},"onInsert":{"type":"boolean"},"onUpdate":{"type":"boolean"},"successCount":{"type":"number"},"table":{"type":"string"},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"url":{"type":"string"}},"required":["active","companyId","createdAt","createdBy","errorCount","id","lastError","lastSuccess","name","onDelete","onInsert","onUpdate","successCount","table","updatedAt","updatedBy","url"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/getWebhookTables":{"post":{"operationId":"settings.getWebhookTables","summary":"get webhook tables","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string","enum":["Inventory","Accounting","Documents","Invoicing","Items","Messaging","Parts","People","Production","Purchasing","Resources","Sales","Settings","Users","Quality","Printing","Workflows"]},"name":{"type":"string"},"table":{"type":"string"}},"required":["module","name","table"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/settings/updateSubsidiary":{"post":{"operationId":"settings.updateSubsidiary","summary":"update subsidiary","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"subsidiary":{"type":"object","properties":{"name":{"type":"string","minLength":1},"addressLine1":{"type":"string","minLength":1},"addressLine2":{"type":"string"},"city":{"type":"string","minLength":1},"stateProvince":{"type":"string"},"postalCode":{"type":"string","minLength":1},"countryCode":{"type":"string","minLength":1},"baseCurrencyCode":{"type":"string"},"timezone":{"type":"string","minLength":1},"website":{"type":"string"},"taxId":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"},"email":{"type":"string"},"vatNumber":{"type":"string"},"eori":{"type":"string"},"registrationNumber":{"type":"string"},"id":{"type":"string"},"parentCompanyId":{"type":"string"}}}},"required":["id","subsidiary"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateDefaultCustomerCc":{"post":{"operationId":"settings.updateDefaultCustomerCc","summary":"update default customer cc","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"defaultCustomerCc":{"type":"array","items":{"type":"string"}}},"required":["defaultCustomerCc"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateCompany":{"post":{"operationId":"settings.updateCompany","summary":"update company","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"addressLine1":{"type":"string","minLength":1},"addressLine2":{"type":"string"},"city":{"type":"string","minLength":1},"stateProvince":{"type":"string"},"postalCode":{"type":"string","minLength":1},"countryCode":{"type":"string","minLength":1},"baseCurrencyCode":{"type":"string"},"timezone":{"type":"string","minLength":1},"website":{"type":"string"},"taxId":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"},"email":{"type":"string"},"vatNumber":{"type":"string"},"eori":{"type":"string"},"registrationNumber":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateCompanyWithBaseCurrencyChange":{"post":{"operationId":"settings.updateCompanyWithBaseCurrencyChange","summary":"company update for a BASE-CURRENCY change: exchange-rate overrides are denominated in the old base, so they must be cleared in the SAME transaction — a committ…","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"addressLine1":{"type":"string","minLength":1},"addressLine2":{"type":"string"},"city":{"type":"string","minLength":1},"stateProvince":{"type":"string"},"postalCode":{"type":"string","minLength":1},"countryCode":{"type":"string","minLength":1},"baseCurrencyCode":{"type":"string"},"timezone":{"type":"string","minLength":1},"website":{"type":"string"},"taxId":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"},"email":{"type":"string"},"vatNumber":{"type":"string"},"eori":{"type":"string"},"registrationNumber":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/settings/updateShelfLifeSettings":{"post":{"operationId":"settings.updateShelfLifeSettings","summary":"update shelf life settings","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nearExpiryWarningDays":{"type":"number"},"defaultShelfLifeDays":{"type":"number"},"calculatedInputScope":{"type":"string","enum":["AllInputs","ManagedInputsOnly"]},"expiredEntityPolicy":{"type":"string","enum":["Warn","Block","BlockWithOverride"]}},"required":["nearExpiryWarningDays","defaultShelfLifeDays","calculatedInputScope","expiredEntityPolicy"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateDigitalQuoteSetting":{"post":{"operationId":"settings.updateDigitalQuoteSetting","summary":"update digital quote setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"digitalQuoteEnabled":{"type":"boolean"},"digitalQuoteNotificationGroup":{"type":"array","items":{"type":"string"}},"digitalQuoteIncludesPurchaseOrders":{"type":"boolean"}},"required":["digitalQuoteEnabled","digitalQuoteNotificationGroup","digitalQuoteIncludesPurchaseOrders"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateAccountingEnabledSetting":{"post":{"operationId":"settings.updateAccountingEnabledSetting","summary":"update accounting enabled setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountingEnabled":{"type":"boolean"}},"required":["accountingEnabled"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateAssetTaxDepreciationSettings":{"post":{"operationId":"settings.updateAssetTaxDepreciationSettings","summary":"update asset tax depreciation settings","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assetTaxDepreciationEnabled":{"type":"boolean"},"assetTaxRate":{"type":["number","null"]}},"required":["assetTaxDepreciationEnabled","assetTaxRate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateTimeCardSetting":{"post":{"operationId":"settings.updateTimeCardSetting","summary":"update time card setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"timeCardEnabled":{"type":"boolean"}},"required":["timeCardEnabled"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateKanbanOutputSetting":{"post":{"operationId":"settings.updateKanbanOutputSetting","summary":"update kanban output setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kanbanOutput":{"type":"string","enum":["label","qrcode","url"]}},"required":["kanbanOutput"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateLogoDark":{"post":{"operationId":"settings.updateLogoDark","summary":"update logo dark","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"logoDark":{"type":["string","null"]}},"required":["logoDark"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateLogoDarkIcon":{"post":{"operationId":"settings.updateLogoDarkIcon","summary":"update logo dark icon","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"logoDarkIcon":{"type":["string","null"]}},"required":["logoDarkIcon"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateLogoLight":{"post":{"operationId":"settings.updateLogoLight","summary":"update logo light","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"logoLight":{"type":["string","null"]}},"required":["logoLight"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateLogoLightIcon":{"post":{"operationId":"settings.updateLogoLightIcon","summary":"update logo light icon","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"logoLightIcon":{"type":["string","null"]}},"required":["logoLightIcon"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateLogoWatermark":{"post":{"operationId":"settings.updateLogoWatermark","summary":"update logo watermark","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"logoWatermark":{"type":["string","null"]}},"required":["logoWatermark"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateMaintenanceDispatchNotificationSettings":{"post":{"operationId":"settings.updateMaintenanceDispatchNotificationSettings","summary":"update maintenance dispatch notification settings","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maintenanceDispatchNotificationGroup":{"type":"array","items":{"type":"string"}},"qualityDispatchNotificationGroup":{"type":"array","items":{"type":"string"}},"operationsDispatchNotificationGroup":{"type":"array","items":{"type":"string"}},"otherDispatchNotificationGroup":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateMaterialGeneratedIdsSetting":{"post":{"operationId":"settings.updateMaterialGeneratedIdsSetting","summary":"update material generated ids setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"materialGeneratedIds":{"type":"boolean"}},"required":["materialGeneratedIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateMetricSettings":{"post":{"operationId":"settings.updateMetricSettings","summary":"update metric settings","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"useMetric":{"type":"boolean"}},"required":["useMetric"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateAllowLowercaseItemIdsSetting":{"post":{"operationId":"settings.updateAllowLowercaseItemIdsSetting","summary":"update allow lowercase item ids setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allowLowercaseItemIds":{"type":"boolean"}},"required":["allowLowercaseItemIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateBomExplorerReadableIdSetting":{"post":{"operationId":"settings.updateBomExplorerReadableIdSetting","summary":"update bom explorer readable id setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"showBomExplorerReadableId":{"type":"boolean"}},"required":["showBomExplorerReadableId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updatePlmReleaseControlSetting":{"post":{"operationId":"settings.updatePlmReleaseControlSetting","summary":"update plm release control setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plmReleaseControl":{"type":"string"}},"required":["plmReleaseControl"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updatePurchasePriceUpdateTimingSetting":{"post":{"operationId":"settings.updatePurchasePriceUpdateTimingSetting","summary":"update purchase price update timing setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchasePriceUpdateTiming":{"type":"string","enum":["Purchase Invoice Post","Purchase Order Finalize"]}},"required":["purchasePriceUpdateTiming"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateLeadTimesOnReceiptSetting":{"post":{"operationId":"settings.updateLeadTimesOnReceiptSetting","summary":"update lead times on receipt setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updateLeadTimesOnReceipt":{"type":"boolean"}},"required":["updateLeadTimesOnReceipt"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/settings/updateIncludeMaterialsOnTravelerSetting":{"post":{"operationId":"settings.updateIncludeMaterialsOnTravelerSetting","summary":"update include materials on traveler setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"includeMaterialsOnTraveler":{"type":"boolean"}},"required":["includeMaterialsOnTraveler"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/settings/updateIncludeOperationsOnTravelerSetting":{"post":{"operationId":"settings.updateIncludeOperationsOnTravelerSetting","summary":"update include operations on traveler setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"includeOperationsOnTraveler":{"type":"boolean"}},"required":["includeOperationsOnTraveler"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateAccountsPayableAddressSetting":{"post":{"operationId":"settings.updateAccountsPayableAddressSetting","summary":"update accounts payable address setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountsPayableAddress":{"type":"boolean"}},"required":["accountsPayableAddress"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateRequireSupplierContactSetting":{"post":{"operationId":"settings.updateRequireSupplierContactSetting","summary":"require a supplier to have a contact with an email before its documents issue","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requireSupplierContactAndLocation":{"type":"boolean"}},"required":["requireSupplierContactAndLocation"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateRequireCustomerContactSetting":{"post":{"operationId":"settings.updateRequireCustomerContactSetting","summary":"the customer-side mirror","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requireCustomerContactAndLocation":{"type":"boolean"}},"required":["requireCustomerContactAndLocation"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateAccountsReceivableAddressSetting":{"post":{"operationId":"settings.updateAccountsReceivableAddressSetting","summary":"update accounts receivable address setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountsReceivableAddress":{"type":"boolean"}},"required":["accountsReceivableAddress"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateSalesRuleNotificationSetting":{"post":{"operationId":"settings.updateSalesRuleNotificationSetting","summary":"update sales rule notification setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salesRuleNotificationGroup":{"type":"array","items":{"type":"string"}}},"required":["salesRuleNotificationGroup"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateQuoteLineCategoryMarkups":{"post":{"operationId":"settings.updateQuoteLineCategoryMarkups","summary":"update quote line category markups","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteLineCategoryMarkups":{"type":"object","additionalProperties":{"type":"number"}}},"required":["quoteLineCategoryMarkups"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateRfqReadySetting":{"post":{"operationId":"settings.updateRfqReadySetting","summary":"update rfq ready setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rfqReadyNotificationGroup":{"type":"array","items":{"type":"string"}}},"required":["rfqReadyNotificationGroup"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateSequence":{"post":{"operationId":"settings.updateSequence","summary":"update sequence","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"string"},"sequence":{"type":"object","properties":{"table":{"type":"string","minLength":1},"prefix":{"type":"string"},"suffix":{"type":"string"},"next":{"type":"number","minimum":0},"step":{"type":"number","minimum":1},"size":{"type":"number","minimum":1,"maximum":20}}}},"required":["table","sequence"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateSuggestionNotificationSetting":{"post":{"operationId":"settings.updateSuggestionNotificationSetting","summary":"update suggestion notification setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"suggestionNotificationGroup":{"type":"array","items":{"type":"string"}}},"required":["suggestionNotificationGroup"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateSupplierQuoteNotificationSetting":{"post":{"operationId":"settings.updateSupplierQuoteNotificationSetting","summary":"update supplier quote notification setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplierQuoteNotificationGroup":{"type":"array","items":{"type":"string"}}},"required":["supplierQuoteNotificationGroup"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateDefaultSupplierCc":{"post":{"operationId":"settings.updateDefaultSupplierCc","summary":"update default supplier cc","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"defaultSupplierCc":{"type":"array","items":{"type":"string"}}},"required":["defaultSupplierCc"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateShowCurrencyTrailingZerosSetting":{"post":{"operationId":"settings.updateShowCurrencyTrailingZerosSetting","summary":"update show currency trailing zeros setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"showCurrencyTrailingZeros":{"type":"boolean"}},"required":["showCurrencyTrailingZeros"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateShowSupplierReadableIdSetting":{"post":{"operationId":"settings.updateShowSupplierReadableIdSetting","summary":"update show supplier readable id setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"showSupplierReadableId":{"type":"boolean"}},"required":["showSupplierReadableId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateShowCustomerReadableIdSetting":{"post":{"operationId":"settings.updateShowCustomerReadableIdSetting","summary":"update show customer readable id setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"showCustomerReadableId":{"type":"boolean"}},"required":["showCustomerReadableId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateAutoSelectMaterialWithoutPickingListSetting":{"post":{"operationId":"settings.updateAutoSelectMaterialWithoutPickingListSetting","summary":"update auto select material without picking list setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"autoSelectMaterialWithoutPickingList":{"type":"boolean"}},"required":["autoSelectMaterialWithoutPickingList"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateIncompletePickingListPolicySetting":{"post":{"operationId":"settings.updateIncompletePickingListPolicySetting","summary":"update incomplete picking list policy setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"incompletePickingListPolicy":{"type":"string","enum":["warn","error"]}},"required":["incompletePickingListPolicy"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/settings/updateReturnPickedMaterialTimingSetting":{"post":{"operationId":"settings.updateReturnPickedMaterialTimingSetting","summary":"update return picked material timing setting","tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"returnPickedMaterialTiming":{"type":"string","enum":["job","operation"]}},"required":["returnPickedMaterialTiming"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/shared/deleteSavedView":{"post":{"operationId":"shared.deleteSavedView","summary":"delete saved view","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"viewId":{"type":"string"}},"required":["viewId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/shared/getBase64ImageFromSupabase":{"post":{"operationId":"shared.getBase64ImageFromSupabase","summary":"get base64 image from supabase","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"}},"required":["path"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":["string","null"]}}}}}}},"/shared/getCountries":{"post":{"operationId":"shared.getCountries","summary":"get countries","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"alpha2":{"type":"string"},"alpha3":{"type":"string"},"name":{"type":"string"}},"required":["alpha2","alpha3","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/shared/getTimezoneNames":{"post":{"operationId":"shared.getTimezoneNames","summary":"timezone names from the database's own tzdata (pg_timezone_names via the get_timezone_names RPC) — the authoritative list for what AT TIME ZONE resolves","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"utcOffset":{"type":"string"}},"required":["name","utcOffset"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/shared/getModelByItemId":{"post":{"operationId":"shared.getModelByItemId","summary":"the item's CAD model in the same shape the line views expose it, so it drops straight into `<CadModel modelUpload={...} />`","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/shared/getNotes":{"post":{"operationId":"shared.getNotes","summary":"get notes","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"documentId":{"type":"string"}},"required":["documentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"note":{"type":"string"},"createdAt":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["id","fullName","avatarUrl"]}},"required":["id","note","createdAt","user"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/shared/getPeriods":{"post":{"operationId":"shared.getPeriods","summary":"get periods","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["startDate","endDate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string"},"endDate":{"type":"string"},"id":{"type":"string"},"periodType":{"type":"string","enum":["Week","Day","Month"]},"startDate":{"type":"string"}},"required":["createdAt","endDate","id","periodType","startDate"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/shared/getSavedViews":{"post":{"operationId":"shared.getSavedViews","summary":"get saved views","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"columnOrder":{"type":["array","null"],"items":{"type":"string"}},"columnPinning":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"columnVisibility":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"description":{"type":["string","null"]},"filters":{"type":["array","null"],"items":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"sortOrder":{"type":"number"},"sorts":{"type":["array","null"],"items":{"type":"string"}},"table":{"type":"string"},"type":{"type":"string","enum":["Private","Public"]},"updatedBy":{"type":["string","null"]}},"required":["columnOrder","columnPinning","columnVisibility","companyId","createdAt","createdBy","description","filters","id","name","sortOrder","sorts","table","type","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/shared/getTagsList":{"post":{"operationId":"shared.getTagsList","summary":"get tags list","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":["string","null"]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/shared/importCsv":{"post":{"operationId":"shared.importCsv","summary":"import csv","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"string"},"filePath":{"type":"string"},"columnMappings":{"type":"object","additionalProperties":{"type":"string"}},"enumMappings":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["table","filePath","columnMappings"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/shared/insertNote":{"post":{"operationId":"shared.insertNote","summary":"insert note","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string"},"documentId":{"type":"string"}},"required":["note","documentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"documentId":{"type":"string"},"id":{"type":"string"},"note":{"type":"string"},"noteRichText":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","companyId","createdAt","createdBy","documentId","id","note","noteRichText","updatedAt","updatedBy"]}}}}}}},"/shared/insertTag":{"post":{"operationId":"shared.insertTag","summary":"insert tag","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tag":{"type":"object","properties":{"createdAt":{"type":"string"},"name":{"type":"string"},"table":{"type":"string"}},"required":["name","table"]}},"required":["tag"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"name":{"type":"string"},"table":{"type":"string"},"updatedBy":{"type":["string","null"]}},"required":["companyId","createdAt","createdBy","name","table","updatedBy"]}}}}}}},"/shared/getExternalLink":{"post":{"operationId":"shared.getExternalLink","summary":"get external link","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"customerId":{"type":["string","null"]},"documentId":{"type":"string"},"documentType":{"type":"string","enum":["Customer","Quote","SupplierQuote","Non-Conformance Supplier"]},"expiresAt":{"type":["string","null"]},"id":{"type":"string"},"supplierId":{"type":["string","null"]}},"required":["companyId","createdAt","customerId","documentId","documentType","expiresAt","id","supplierId"]}}}}}}},"/shared/upsertExternalLink":{"post":{"operationId":"shared.upsertExternalLink","summary":"upsert external link","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalLink":{"anyOf":[{"type":"object","properties":{"createdAt":{"type":"string"},"customerId":{"type":["string","null"]},"documentId":{"type":"string"},"documentType":{"type":"string","enum":["Quote","SupplierQuote","Customer","Non-Conformance Supplier"]},"expiresAt":{"type":["string","null"]},"id":{"type":"string"},"supplierId":{"type":["string","null"]}},"required":["documentId","documentType"]},{"type":"object","properties":{"createdAt":{"type":"string"},"customerId":{"type":["string","null"]},"documentId":{"type":"string"},"documentType":{"type":"string","enum":["Quote","SupplierQuote","Customer","Non-Conformance Supplier"]},"expiresAt":{"type":["string","null"]},"id":{"type":"string"},"supplierId":{"type":["string","null"]}}}]}},"required":["externalLink"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/shared/getCustomerPortals":{"post":{"operationId":"shared.getCustomerPortals","summary":"get customer portals","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"customerId":{"type":["string","null"]},"documentId":{"type":"string"},"documentType":{"type":"string","enum":["Customer","Quote","SupplierQuote","Non-Conformance Supplier"]},"expiresAt":{"type":["string","null"]},"id":{"type":"string"},"supplierId":{"type":["string","null"]}},"required":["companyId","createdAt","customerId","documentId","documentType","expiresAt","id","supplierId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/shared/getCustomerPortal":{"post":{"operationId":"shared.getCustomerPortal","summary":"get customer portal","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{}}}}},"/shared/upsertSavedView":{"post":{"operationId":"shared.upsertSavedView","summary":"upsert saved view","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"table":{"type":"string"},"type":{"type":"string","enum":["Public","Private"]},"filters":{"type":"array","items":{"type":"string"}},"sorts":{"type":"array","items":{"type":"string"}},"columnPinning":{"type":"object","additionalProperties":{"type":"boolean"}},"columnVisibility":{"type":"object","additionalProperties":{"type":"boolean"}},"columnOrder":{"type":"array","items":{"type":"string"}}},"required":["name","table","type"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}}}}},"/shared/updateSavedViewOrder":{"post":{"operationId":"shared.updateSavedViewOrder","summary":"update saved view order","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sortOrder":{"type":"number"}},"required":["id","sortOrder"]}}},"required":["updates"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"null"},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/shared/lookupPriceFromBreaks":{"post":{"operationId":"shared.lookupPriceFromBreaks","summary":"core sync lookup: given price break tiers and a requested quantity, return the unit price from the highest qualifying tier (where tier.quantity <= requestedQty)","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"priceBreaks":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"number"},"unitPrice":{"type":"number"}},"required":["quantity","unitPrice"]}},"requestedQty":{"type":"number"},"fallbackPrice":{"type":"number"}},"required":["priceBreaks","requestedQty","fallbackPrice"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/shared/lookupBuyPriceFromMap":{"post":{"operationId":"shared.lookupBuyPriceFromMap","summary":"map-aware wrapper: look up itemId in a SupplierPriceMap, then resolve via lookupPriceFromBreaks","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"requestedQty":{"type":"number"},"priceMap":{"type":"object","additionalProperties":{"type":"object","properties":{"priceBreaks":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"number"},"unitPrice":{"type":"number"}},"required":["quantity","unitPrice"]}},"fallbackUnitPrice":{"type":["number","null"]}},"required":["priceBreaks","fallbackUnitPrice"]}},"fallbackCost":{"type":"number"}},"required":["itemId","requestedQty","priceMap","fallbackCost"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/shared/resolveBuyUnitCost":{"post":{"operationId":"shared.resolveBuyUnitCost","summary":"what a \"Purchase to Order\" quote material's unit cost IS: a typed cost wins, anything else re-resolves from supplier price breaks","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"material":{"type":"object","properties":{"itemId":{"type":"string"},"unitCost":{"type":"number"},"unitCostSource":{"type":["string","null"]}},"required":["itemId","unitCost"]},"requestedQty":{"type":"number"},"priceMap":{"type":"object","additionalProperties":{"type":"object","properties":{"priceBreaks":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"number"},"unitPrice":{"type":"number"}},"required":["quantity","unitPrice"]}},"fallbackUnitPrice":{"type":["number","null"]}},"required":["priceBreaks","fallbackUnitPrice"]}}},"required":["material","requestedQty","priceMap"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/shared/resolveSupplierPrice":{"post":{"operationId":"shared.resolveSupplierPrice","summary":"resolve the supplier unit price for a quantity","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"priceBreaks":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"number"},"unitPrice":{"type":"number"}},"required":["quantity","unitPrice"]}},"quantity":{"type":"number"},"fallbackUnitPrice":{"type":"number"},"exchangeRate":{"type":"number"}},"required":["priceBreaks","quantity","fallbackUnitPrice","exchangeRate"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number"}}}}}}},"/shared/getEnforcementRules":{"post":{"operationId":"shared.getEnforcementRules","summary":"get enforcement rules","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"family":{"type":"string","enum":["storage","sales"]},"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"targetType":{"type":["string","null"],"enum":["item","workCenter"]}}}},"required":["family"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"appliesToAll":{"type":"boolean"},"companyId":{"type":"string"},"conditionAst":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"family":{"type":"string","enum":["storage","sales"]},"filteredItemGroupIds":{"type":"array","items":{"type":"string"}},"filteredItemMatchAll":{"type":"boolean"},"filteredItemTypes":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"message":{"type":"string"},"name":{"type":"string"},"severity":{"type":"string"},"surfaces":{"type":"array","items":{"type":"string","enum":["salesOrderLine","receipt","shipment","stockTransfer","warehouseTransfer","inventoryAdjustment","place","pick","operationStart","operationFinish","materialIssue","materialReceive","quoteLine","salesInvoiceLine"]}},"targetType":{"type":"string","enum":["item","workCenter"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","appliesToAll","companyId","conditionAst","createdAt","createdBy","customFields","description","family","filteredItemGroupIds","filteredItemMatchAll","filteredItemTypes","id","message","name","severity","surfaces","targetType","updatedAt","updatedBy"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/shared/getEnforcementRule":{"post":{"operationId":"shared.getEnforcementRule","summary":"get enforcement rule","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"family":{"type":"string","enum":["storage","sales"]},"id":{"type":"string"}},"required":["family","id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"appliesToAll":{"type":"boolean"},"companyId":{"type":"string"},"conditionAst":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"customFields":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{}},{"type":"array","items":{}},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]},"description":{"type":["string","null"]},"family":{"type":"string","enum":["storage","sales"]},"filteredItemGroupIds":{"type":"array","items":{"type":"string"}},"filteredItemMatchAll":{"type":"boolean"},"filteredItemTypes":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"message":{"type":"string"},"name":{"type":"string"},"severity":{"type":"string"},"surfaces":{"type":"array","items":{"type":"string","enum":["salesOrderLine","receipt","shipment","stockTransfer","warehouseTransfer","inventoryAdjustment","place","pick","operationStart","operationFinish","materialIssue","materialReceive","quoteLine","salesInvoiceLine"]}},"targetType":{"type":"string","enum":["item","workCenter"]},"updatedAt":{"type":["string","null"]},"updatedBy":{"type":["string","null"]}},"required":["active","appliesToAll","companyId","conditionAst","createdAt","createdBy","customFields","description","family","filteredItemGroupIds","filteredItemMatchAll","filteredItemTypes","id","message","name","severity","surfaces","targetType","updatedAt","updatedBy"]}}}}}}},"/shared/getEnforcementRuleAssignmentCounts":{"post":{"operationId":"shared.getEnforcementRuleAssignmentCounts","summary":"pin counts per rule id","tags":["shared"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ruleIds":{"type":"array","items":{"type":"string"}}},"required":["ruleIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":{"type":"number"}},{"type":"object"}]}}}}}}},"/users/getItarCertificationStatus":{"post":{"operationId":"users.getItarCertificationStatus","summary":"the ITAR gate: does a valid, unexpired entity Rider acceptance exist for this company, and a valid user attestation for this user","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"entityCertified":{"type":"boolean"},"userCertified":{"type":"boolean"}},"required":["entityCertified","userCertified"]}}}}}}},"/users/getItarEntityCertification":{"post":{"operationId":"users.getItarEntityCertification","summary":"the company's latest entity Rider acceptance, or null when nobody has accepted one yet","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string"},"fullLegalName":{"type":"string"},"title":{"type":["string","null"]},"complianceContact":{"type":["string","null"]},"docVersion":{"type":"string"},"certifiedAt":{"type":"string"},"expiresAt":{"type":"string"}},"required":["userId","fullLegalName","title","complianceContact","docVersion","certifiedAt","expiresAt"]}}}}}}},"/users/getItarCertificationReport":{"post":{"operationId":"users.getItarCertificationReport","summary":"compliance report source: every active employee with their latest ITAR certification (version / date / expiry)","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"certVersion":{"type":["string","null"]},"certifiedAt":{"type":["string","null"]},"expiresAt":{"type":["string","null"]}},"required":["id","name","email","certVersion","certifiedAt","expiresAt"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/deleteGroup":{"post":{"operationId":"users.deleteGroup","summary":"delete group","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"groupId":{"type":"string"}},"required":["groupId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/users/getCompaniesForUser":{"post":{"operationId":"users.getCompaniesForUser","summary":"get companies for user","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"string"}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getCustomers":{"post":{"operationId":"users.getCustomers","summary":"get customers","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"user":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":["string","null"]},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","fullName","firstName","lastName","email","avatarUrl"]},"customer":{"type":"object","properties":{"name":{"type":"string"},"customerType":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]}},"required":["name","customerType"]}},"required":["active","user","customer"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getEmployee":{"post":{"operationId":"users.getEmployee","summary":"get employee","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":["boolean","null"]},"avatarUrl":{"type":["string","null"]},"companyId":{"type":["string","null"]},"email":{"type":["string","null"]},"employeeTypeId":{"type":["string","null"]},"firstName":{"type":["string","null"]},"id":{"type":["string","null"]},"lastName":{"type":["string","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"name":{"type":["string","null"]},"shiftId":{"type":["string","null"]},"shiftName":{"type":["string","null"]},"status":{"type":["string","null"]}},"required":["active","avatarUrl","companyId","email","employeeTypeId","firstName","id","lastName","locationId","locationName","name","shiftId","shiftName","status"]}}}}}}},"/users/getUnrevokedInviteEmails":{"post":{"operationId":"users.getUnrevokedInviteEmails","summary":"get unrevoked invite emails","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getUsersWithVerifiedMfa":{"post":{"operationId":"users.getUsersWithVerifiedMfa","summary":"user ids in this company with a verified authenticator","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getEmployees":{"post":{"operationId":"users.getEmployees","summary":"get employees","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"avatarUrl":{"type":["string","null"]},"companyId":{"type":["string","null"]},"email":{"type":["string","null"]},"employeeTypeId":{"type":["string","null"]},"firstName":{"type":["string","null"]},"id":{"type":["string","null"]},"lastName":{"type":["string","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"name":{"type":["string","null"]},"shiftId":{"type":["string","null"]},"shiftName":{"type":["string","null"]},"status":{"type":["string","null"]}},"required":["active","avatarUrl","companyId","email","employeeTypeId","firstName","id","lastName","locationId","locationName","name","shiftId","shiftName","status"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getConsoleOperators":{"post":{"operationId":"users.getConsoleOperators","summary":"gets console operators — users with @console.internal emails","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"avatarUrl":{"type":["string","null"]},"companyId":{"type":["string","null"]},"email":{"type":["string","null"]},"employeeTypeId":{"type":["string","null"]},"firstName":{"type":["string","null"]},"id":{"type":["string","null"]},"lastName":{"type":["string","null"]},"locationId":{"type":["string","null"]},"locationName":{"type":["string","null"]},"name":{"type":["string","null"]},"shiftId":{"type":["string","null"]},"shiftName":{"type":["string","null"]},"status":{"type":["string","null"]}},"required":["active","avatarUrl","companyId","email","employeeTypeId","firstName","id","lastName","locationId","locationName","name","shiftId","shiftName","status"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getEmployeeType":{"post":{"operationId":"users.getEmployeeType","summary":"get employee type","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeTypeId":{"type":"string"}},"required":["employeeTypeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"protected":{"type":"boolean"},"systemType":{"type":["string","null"],"enum":["Admin","Console Operator"]},"updatedAt":{"type":["string","null"]}},"required":["companyId","createdAt","id","name","protected","systemType","updatedAt"]}}}}}}},"/users/getEmployeeTypes":{"post":{"operationId":"users.getEmployeeTypes","summary":"get employee types","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"createdAt":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"protected":{"type":"boolean"},"systemType":{"type":["string","null"],"enum":["Admin","Console Operator"]},"updatedAt":{"type":["string","null"]}},"required":["companyId","createdAt","id","name","protected","systemType","updatedAt"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getInvitable":{"post":{"operationId":"users.getInvitable","summary":"get invitable","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":["boolean","null"]},"avatarUrl":{"type":["string","null"]},"companyId":{"type":["array","null"],"items":{"type":"string"}},"email":{"type":["string","null"]},"firstName":{"type":["string","null"]},"id":{"type":["string","null"]},"lastName":{"type":["string","null"]},"name":{"type":["string","null"]}},"required":["active","avatarUrl","companyId","email","firstName","id","lastName","name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getModules":{"post":{"operationId":"users.getModules","summary":"get modules","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"name":{"type":["string","null"],"enum":["Inventory","Accounting","Documents","Invoicing","Items","Messaging","Parts","People","Production","Purchasing","Resources","Sales","Settings","Users","Quality","Printing","Workflows"]}},"required":["name"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getGroup":{"post":{"operationId":"users.getGroup","summary":"get group","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"groupId":{"type":"string"}},"required":["groupId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}}}}}},"/users/getGroupMembers":{"post":{"operationId":"users.getGroupMembers","summary":"get group members","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"groupId":{"type":"string"}},"required":["groupId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"name":{"type":["string","null"]},"groupId":{"type":["string","null"]},"memberGroupId":{"type":["string","null"]},"memberUserId":{"type":["string","null"]}},"required":["name","groupId","memberGroupId","memberUserId"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getGroups":{"post":{"operationId":"users.getGroups","summary":"get groups","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]},"uid":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string"},"id":{"type":"string"},"isCustomerOrgGroup":{"type":"boolean"},"isCustomerTypeGroup":{"type":"boolean"},"isEmployeeTypeGroup":{"type":"boolean"},"isSupplierOrgGroup":{"type":"boolean"},"isSupplierTypeGroup":{"type":"boolean"},"name":{"type":"string"},"parentId":{"type":"string"},"users":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["companyId","id","isCustomerOrgGroup","isCustomerTypeGroup","isEmployeeTypeGroup","isSupplierOrgGroup","isSupplierTypeGroup","name","parentId","users"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getGroupEmails":{"post":{"operationId":"users.getGroupEmails","summary":"get group emails","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string"}}},"required":["groupIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"string"}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getUserSelectGroups":{"post":{"operationId":"users.getUserSelectGroups","summary":"get user select groups","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"search":{"type":"string"},"limit":{"type":"number"},"offset":{"type":"number"}},"required":["limit","offset"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"groupCount":{"type":"number"},"id":{"type":"string"},"isCustomerOrgGroup":{"type":"boolean"},"isCustomerTypeGroup":{"type":"boolean"},"isEmployeeTypeGroup":{"type":"boolean"},"isRoot":{"type":"boolean"},"isSupplierOrgGroup":{"type":"boolean"},"isSupplierTypeGroup":{"type":"boolean"},"name":{"type":"string"},"userCount":{"type":"number"}},"required":["groupCount","id","isCustomerOrgGroup","isCustomerTypeGroup","isEmployeeTypeGroup","isRoot","isSupplierOrgGroup","isSupplierTypeGroup","name","userCount"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getUserSelectGroupMembers":{"post":{"operationId":"users.getUserSelectGroupMembers","summary":"get user select group members","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"groupId":{"type":"string"}},"required":["groupId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"isEmployeeTypeGroup":{"type":"boolean"},"isCustomerOrgGroup":{"type":"boolean"},"isCustomerTypeGroup":{"type":"boolean"},"isSupplierOrgGroup":{"type":"boolean"},"isSupplierTypeGroup":{"type":"boolean"},"userCount":{"type":"number"},"groupCount":{"type":"number"},"isRoot":{"type":["boolean","null"]}},"required":["id","name","isEmployeeTypeGroup","isCustomerOrgGroup","isCustomerTypeGroup","isSupplierOrgGroup","isSupplierTypeGroup","userCount","groupCount"]}},"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","firstName","lastName","fullName","email","avatarUrl"]}}},"required":["groups","users"]}}}}}}},"/users/searchUsersForSelect":{"post":{"operationId":"users.searchUsersForSelect","summary":"search users for select","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string"},"type":{"type":"string"},"excludeSelf":{"type":"boolean"},"allowedIds":{"type":"array","items":{"type":"string"}}},"required":["q"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"memberUserId":{"type":"string"},"user":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","additionalProperties":{"anyOf":[{},{"type":"null"}]}},{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},{"type":"null"}]}},{"type":"null"}]}},"required":["memberUserId","user"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/resolveUserSelectIds":{"post":{"operationId":"users.resolveUserSelectIds","summary":"resolve user select ids","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}},"required":["ids"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"fullName":{"type":["string","null"]},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","firstName","lastName","fullName","email","avatarUrl"]}},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]},"groups":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"object","properties":{"details":{"type":"string"},"hint":{"type":"string"},"code":{"type":"string"},"toJSON":{"type":"object"},"name":{"type":"string"},"message":{"type":"string"},"stack":{"type":["string","null"]},"cause":{}},"required":["details","hint","code","toJSON","name","message"]},"data":{"type":"null"},"count":{"type":"null"},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]},{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"null"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"count":{"type":["number","null"]},"status":{"type":"number"},"statusText":{"type":"string"}},"required":["success","error","data","count","status","statusText"]}]}},"required":["users","groups"]}}}}}}},"/users/getPermissionsByEmployeeType":{"post":{"operationId":"users.getPermissionsByEmployeeType","summary":"get permissions by employee type","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"employeeTypeId":{"type":"string"}},"required":["employeeTypeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"view":{"type":"array","items":{"type":"string"}},"create":{"type":"array","items":{"type":"string"}},"update":{"type":"array","items":{"type":"string"}},"delete":{"type":"array","items":{"type":"string"}},"module":{"type":"string","enum":["Inventory","Accounting","Documents","Invoicing","Items","Messaging","Parts","People","Production","Purchasing","Resources","Sales","Settings","Users","Quality","Printing","Workflows"]}},"required":["view","create","update","delete","module"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getSuppliers":{"post":{"operationId":"users.getSuppliers","summary":"get suppliers","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"type":"object","properties":{"limit":{"type":"integer","default":100},"offset":{"type":"integer","default":0},"search":{"type":["string","null"]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"active":{"type":"boolean"},"user":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":["string","null"]},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","fullName","firstName","lastName","email","avatarUrl"]},"supplier":{"type":"object","properties":{"name":{"type":"string"},"supplierType":{"type":["object","null"],"properties":{"name":{"type":"string"}},"required":["name"]}},"required":["name","supplierType"]}},"required":["active","user","supplier"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getUsers":{"post":{"operationId":"users.getUsers","summary":"get users","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":["string","null"]}},"required":["id","firstName","lastName","fullName","email","avatarUrl"]}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/getUserEmails":{"post":{"operationId":"users.getUserEmails","summary":"get user emails","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userIds":{"type":"array","items":{"type":"string"}}},"required":["userIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"string"}},"count":{"type":["number","null"],"description":"Total matching rows, present on paginated reads."}},"required":["results"]}}}}}}},"/users/insertGroup":{"post":{"operationId":"users.insertGroup","summary":"insert group","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":["string","null"]},"createdAt":{"type":"string"},"id":{"type":"string"},"isCustomerOrgGroup":{"type":"boolean"},"isCustomerTypeGroup":{"type":"boolean"},"isEmployeeTypeGroup":{"type":"boolean"},"isIdentityGroup":{"type":"boolean"},"isSupplierOrgGroup":{"type":"boolean"},"isSupplierTypeGroup":{"type":"boolean"},"name":{"type":"string"},"updatedAt":{"type":["string","null"]}},"required":["companyId","createdAt","id","isCustomerOrgGroup","isCustomerTypeGroup","isEmployeeTypeGroup","isIdentityGroup","isSupplierOrgGroup","isSupplierTypeGroup","name","updatedAt"]}}}}}}},"/users/upsertGroup":{"post":{"operationId":"users.upsertGroup","summary":"upsert group","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}},"/users/upsertGroupMembers":{"post":{"operationId":"users.upsertGroupMembers","summary":"upsert group members","tags":["users"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"groupId":{"type":"string"},"selections":{"type":"array","items":{"type":"string"}}},"required":["groupId","selections"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"null"}}}}}}}}}