{"openapi":"3.1.0","info":{"title":"Luceryn integration API","version":"1","description":"The JSON endpoints of Luceryn that a customer's own systems call, and the webhook messages Luceryn sends. SCIM 2.0 provisioning (/api/scim/v2) and the OData v4 reporting feed (/api/odata/v1) describe themselves through their own standard documents and are documented at /developers/scim and /developers/odata. Field tables and limits in this document are generated from the same constants the service validates with."},"servers":[{"url":"https://{host}","description":"The address you sign in to Luceryn at.","variables":{"host":{"default":"www.luceryn.com"}}}],"tags":[{"name":"Finance feed"},{"name":"Asset hand-off"},{"name":"CRM API"},{"name":"Lead capture"},{"name":"Salesforce intake"},{"name":"Health"},{"name":"Webhooks"}],"paths":{"/api/finance/v1/actuals":{"post":{"operationId":"financeFeed_actual","tags":["Finance feed"],"summary":"Send actuals","description":"Posted income and expense transactions. Each becomes a cost entry on its project and counts as spent. The same id again, unchanged, does nothing. A changed amount, date, account or project corrects the cost entry. reversed set to true removes it. Switched on by Financial system sync (Banner, ERP).","security":[{"financeToken":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"description":"1 or true: the batch is checked and the answer says what would happen, and nothing is written.","schema":{"type":"string"}},{"name":"source","in":"query","required":false,"description":"CSV only: the same as source in a JSON body.","schema":{"type":"string"}},{"name":"batch_id","in":"query","required":false,"description":"CSV only: the same as batch_id in a JSON body.","schema":{"type":"string"}},{"name":"period","in":"query","required":false,"description":"CSV only: the same as period in a JSON body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceActualBatch"},"example":{"source":"banner","batch_id":"2026-11-18-actuals","transactions":[{"id":"J0012345-1","date":"2026-11-18","amount":1234.56,"fund":"110000","organization":"2200","account":"7010","program":"10","description":"Consulting services, invoice 4471","document":"I0045871"},{"id":"J0012346-1","date":"2026-11-18","amount":-200,"fund":"110000","organization":"2200","account":"7010","description":"Credit note for invoice 4402","document":"I0045872"}]}},"text/csv":{"schema":{"type":"string","description":"A header row, then one row per line. Columns: id, date, amount, fund, organization, account, program, activity, location, project_code, grant, description, document, reversed."}}}},"responses":{"200":{"description":"The batch was read. Counts, the first row errors and the first unmatched rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceBatchResult"}}}},"400":{"description":"The body is not valid UTF-8 text. (The body cannot be decoded as UTF-8.) | The body is not valid JSON. (Content-Type application/json and the body does not parse.) | source must be \"banner\" (Any other source.) | batch_id must be text (batch_id is an object, an array or a boolean.) | batch_id is longer than 120 characters (batch_id is too long.) | period must be written YYYY-MM (for example 2026-11) (Any other period form.) | CSV line <n>: <what is wrong>. (The CSV cannot be split into values: a quote in the middle of a value, text after a closing quote, or a quoted value that is never closed.) | The CSV is empty. The first line must be the header row. (A CSV body with no lines.) | The CSV header row has an empty column name. (A header cell is empty.) | Unknown CSV column \"<name>\". Columns allowed: <the list>. (A header names a column the kind does not have.) | The CSV column \"<name>\" appears twice. (A header is repeated.) | The CSV header row has no \"<name>\" column. Required columns: <the required columns>. (A required column of the kind is missing from the header.) | CSV row <n> has <n> values but the header has <n> columns. A value that contains a comma must be in quotes. (A line has more values than the header.) | The body must be a JSON object with a transactions array. (The JSON is an array, a string, a number or null.) | transactions must be an array. (transactions is missing or is not an array.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"401":{"description":"Unauthorized. Send the token as: Authorization: Bearer <token>. (No Authorization header, a token of the wrong shape, an unknown token or a revoked token. The answer is the same for all four, whatever the address, and carries WWW-Authenticate: Bearer.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"403":{"description":"Financial system sync is switched off for this workspace. (The token is valid and the workspace's Financial system sync switch is off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"413":{"description":"The body is larger than 2 MB. Split the batch. (The body is larger than 2 MB.) | Too many rows: <n>. Send at most 5000 transactions in one batch. (More than 5,000 transactions.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"415":{"description":"Send Content-Type: application/json or Content-Type: text/csv. (Any other Content-Type, or none.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"429":{"description":"Too many requests. This token may send 30 requests a minute. (More than 30 requests in a minute on one token, counted across every address of the feed. The answer carries Retry-After: 60.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"500":{"description":"The batch was valid but could not be written. Nothing was posted. Send the same batch again; if it keeps failing, the reason is on the connection card in Luceryn. (The batch was read but the database write failed. The whole batch is written in one piece, so nothing was posted. The answer also carries batch_id.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}}}}},"/api/finance/v1/budgets":{"post":{"operationId":"financeFeed_budget","tags":["Finance feed"],"summary":"Send budgets","description":"Adopted and adjusted budget amounts. The Banner budget of a project is the sum of the adjusted amount of every budget line placed on it, so send each line once: for a project that runs over several fiscal years, send its project-to-date budget, or one line a year only where each year's amount is new money. A later record with the same id replaces the earlier amounts. An unchanged record does nothing. Switched on by Financial system sync (Banner, ERP) together with Banner budgets, purchase orders and commitments.","security":[{"financeToken":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"description":"1 or true: the batch is checked and the answer says what would happen, and nothing is written.","schema":{"type":"string"}},{"name":"source","in":"query","required":false,"description":"CSV only: the same as source in a JSON body.","schema":{"type":"string"}},{"name":"batch_id","in":"query","required":false,"description":"CSV only: the same as batch_id in a JSON body.","schema":{"type":"string"}},{"name":"period","in":"query","required":false,"description":"CSV only: the same as period in a JSON body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceBudgetBatch"},"example":{"source":"banner","batch_id":"2026-11-18-budgets","records":[{"id":"110000-2200-7200-2027","fiscal_year":"2027","adopted":2400000,"adjusted":2550000,"fund":"110000","organization":"2200","account":"7200","description":"Construction"},{"id":"110000-2200-7010-2027","fiscal_year":"2027","adopted":300000,"fund":"110000","organization":"2200","account":"7010","description":"Consulting"}]}},"text/csv":{"schema":{"type":"string","description":"A header row, then one row per line. Columns: id, fiscal_year, period, adopted, adjusted, fund, organization, account, program, activity, location, project_code, grant, description, removed."}}}},"responses":{"200":{"description":"The batch was read. Counts, the first row errors and the first unmatched rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceRecordsResult"}}}},"400":{"description":"The body is not valid UTF-8 text. (The body cannot be decoded as UTF-8.) | The body is not valid JSON. (Content-Type application/json and the body does not parse.) | source must be \"banner\" (Any other source.) | batch_id must be text (batch_id is an object, an array or a boolean.) | batch_id is longer than 120 characters (batch_id is too long.) | period must be written YYYY-MM (for example 2026-11) (Any other period form.) | CSV line <n>: <what is wrong>. (The CSV cannot be split into values: a quote in the middle of a value, text after a closing quote, or a quoted value that is never closed.) | The CSV is empty. The first line must be the header row. (A CSV body with no lines.) | The CSV header row has an empty column name. (A header cell is empty.) | Unknown CSV column \"<name>\". Columns allowed: <the list>. (A header names a column the kind does not have.) | The CSV column \"<name>\" appears twice. (A header is repeated.) | The CSV header row has no \"<name>\" column. Required columns: <the required columns>. (A required column of the kind is missing from the header.) | CSV row <n> has <n> values but the header has <n> columns. A value that contains a comma must be in quotes. (A line has more values than the header.) | The body must be a JSON object with a records array. (The JSON is an array, a string, a number or null.) | This address takes <the kind> in a records array. Transactions (actuals) go to /api/finance/v1/actuals. (The body carries a transactions property.) | Unknown property \"<name>\". The body holds: <the names allowed>. (A property at the top level of the JSON other than source, batch_id, period, kind and records.) | kind is \"<sent>\" but this address takes <the kind> (kind \"<kind>\"). Each kind has its own address under /api/finance/v1. (The body names a kind that is not the address's.) | records must be an array. (records is missing or is not an array.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"401":{"description":"Unauthorized. Send the token as: Authorization: Bearer <token>. (No Authorization header, a token of the wrong shape, an unknown token or a revoked token. The answer is the same for all four, whatever the address, and carries WWW-Authenticate: Bearer.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"403":{"description":"Financial system sync is switched off for this workspace. (The token is valid and the workspace's Financial system sync switch is off.) | Banner budgets, purchase orders and commitments is switched off for this workspace. Only actuals are accepted. (Financial system sync is on and the second switch, Banner budgets, purchase orders and commitments, is off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"404":{"description":"Unknown record kind \"<name>\". This feed takes: <the addresses> (for example /api/finance/v1/purchase-orders). (The last part of the address is not one of the feed's kinds. Checked after the token, so an address is never confirmed to a caller without one.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"413":{"description":"The body is larger than 2 MB. Split the batch. (The body is larger than 2 MB.) | Too many rows: <n>. Send at most 5000 records in one batch. (More than 5,000 records.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"415":{"description":"Send Content-Type: application/json or Content-Type: text/csv. (Any other Content-Type, or none.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"429":{"description":"Too many requests. This token may send 30 requests a minute. (More than 30 requests in a minute on one token, counted across every address of the feed. The answer carries Retry-After: 60.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"500":{"description":"The batch was valid but could not be written. Nothing was stored. Send the same batch again; if it keeps failing, the reason is on the connection card in Luceryn. (The batch was read but the database write failed. The whole batch is written in one piece, so nothing was stored. The answer also carries kind and batch_id.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}}}}},"/api/finance/v1/purchase-orders":{"post":{"operationId":"financeFeed_purchase_order","tags":["Finance feed"],"summary":"Send purchase orders","description":"Purchase orders, listed on the project. A purchase order does not add to committed by itself: its unspent amount counts through its encumbrance. A record is placed on one project, so a purchase order charged to several projects is sent as one record for each project's share, each with its own id. A later record with the same id replaces the earlier one (a new total, a new status, new lines). An unchanged record does nothing. Switched on by Financial system sync (Banner, ERP) together with Banner budgets, purchase orders and commitments.","security":[{"financeToken":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"description":"1 or true: the batch is checked and the answer says what would happen, and nothing is written.","schema":{"type":"string"}},{"name":"source","in":"query","required":false,"description":"CSV only: the same as source in a JSON body.","schema":{"type":"string"}},{"name":"batch_id","in":"query","required":false,"description":"CSV only: the same as batch_id in a JSON body.","schema":{"type":"string"}},{"name":"period","in":"query","required":false,"description":"CSV only: the same as period in a JSON body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancePurchaseOrderBatch"},"example":{"source":"banner","batch_id":"2026-11-18-purchase-orders","records":[{"id":"P0012345","po_number":"P0012345","vendor_name":"Northfield Mechanical Ltd","vendor_id":"V00123456","order_date":"2026-10-02","total":125000,"currency":"CAD","status":"open","fund":"110000","organization":"2200","description":"Air handling unit replacement","lines":[{"item":"1","description":"Supply and install air handling unit","account":"7200","amount":125000}]},{"id":"P0012398","po_number":"P0012398","vendor_name":"Prairie Survey Group","order_date":"2026-10-20","total":18500,"status":"closed","fund":"110000","organization":"2200"}]}},"text/csv":{"schema":{"type":"string","description":"A header row, then one row per line. Columns: id, po_number, vendor_name, vendor_id, order_date, total, currency, status, fund, organization, account, program, activity, location, project_code, grant, description, removed."}}}},"responses":{"200":{"description":"The batch was read. Counts, the first row errors and the first unmatched rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceRecordsResult"}}}},"400":{"description":"The body is not valid UTF-8 text. (The body cannot be decoded as UTF-8.) | The body is not valid JSON. (Content-Type application/json and the body does not parse.) | source must be \"banner\" (Any other source.) | batch_id must be text (batch_id is an object, an array or a boolean.) | batch_id is longer than 120 characters (batch_id is too long.) | period must be written YYYY-MM (for example 2026-11) (Any other period form.) | CSV line <n>: <what is wrong>. (The CSV cannot be split into values: a quote in the middle of a value, text after a closing quote, or a quoted value that is never closed.) | The CSV is empty. The first line must be the header row. (A CSV body with no lines.) | The CSV header row has an empty column name. (A header cell is empty.) | Unknown CSV column \"<name>\". Columns allowed: <the list>. (A header names a column the kind does not have.) | The CSV column \"<name>\" appears twice. (A header is repeated.) | The CSV header row has no \"<name>\" column. Required columns: <the required columns>. (A required column of the kind is missing from the header.) | CSV row <n> has <n> values but the header has <n> columns. A value that contains a comma must be in quotes. (A line has more values than the header.) | The body must be a JSON object with a records array. (The JSON is an array, a string, a number or null.) | This address takes <the kind> in a records array. Transactions (actuals) go to /api/finance/v1/actuals. (The body carries a transactions property.) | Unknown property \"<name>\". The body holds: <the names allowed>. (A property at the top level of the JSON other than source, batch_id, period, kind and records.) | kind is \"<sent>\" but this address takes <the kind> (kind \"<kind>\"). Each kind has its own address under /api/finance/v1. (The body names a kind that is not the address's.) | records must be an array. (records is missing or is not an array.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"401":{"description":"Unauthorized. Send the token as: Authorization: Bearer <token>. (No Authorization header, a token of the wrong shape, an unknown token or a revoked token. The answer is the same for all four, whatever the address, and carries WWW-Authenticate: Bearer.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"403":{"description":"Financial system sync is switched off for this workspace. (The token is valid and the workspace's Financial system sync switch is off.) | Banner budgets, purchase orders and commitments is switched off for this workspace. Only actuals are accepted. (Financial system sync is on and the second switch, Banner budgets, purchase orders and commitments, is off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"404":{"description":"Unknown record kind \"<name>\". This feed takes: <the addresses> (for example /api/finance/v1/purchase-orders). (The last part of the address is not one of the feed's kinds. Checked after the token, so an address is never confirmed to a caller without one.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"413":{"description":"The body is larger than 2 MB. Split the batch. (The body is larger than 2 MB.) | Too many rows: <n>. Send at most 5000 records in one batch. (More than 5,000 records.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"415":{"description":"Send Content-Type: application/json or Content-Type: text/csv. (Any other Content-Type, or none.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"429":{"description":"Too many requests. This token may send 30 requests a minute. (More than 30 requests in a minute on one token, counted across every address of the feed. The answer carries Retry-After: 60.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"500":{"description":"The batch was valid but could not be written. Nothing was stored. Send the same batch again; if it keeps failing, the reason is on the connection card in Luceryn. (The batch was read but the database write failed. The whole batch is written in one piece, so nothing was stored. The answer also carries kind and batch_id.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}}}}},"/api/finance/v1/encumbrances":{"post":{"operationId":"financeFeed_encumbrance","tags":["Finance feed"],"summary":"Send encumbrances","description":"The open balance Banner holds against a document: what was committed, what has been liquidated and what remains. Committed on a project is the remaining amount of its open encumbrances and commitments. A later record with the same id replaces the earlier balances. An unchanged record does nothing. Switched on by Financial system sync (Banner, ERP) together with Banner budgets, purchase orders and commitments.","security":[{"financeToken":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"description":"1 or true: the batch is checked and the answer says what would happen, and nothing is written.","schema":{"type":"string"}},{"name":"source","in":"query","required":false,"description":"CSV only: the same as source in a JSON body.","schema":{"type":"string"}},{"name":"batch_id","in":"query","required":false,"description":"CSV only: the same as batch_id in a JSON body.","schema":{"type":"string"}},{"name":"period","in":"query","required":false,"description":"CSV only: the same as period in a JSON body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceEncumbranceBatch"},"example":{"source":"banner","batch_id":"2026-11-18-encumbrances","records":[{"id":"P0012345-1-1","document_number":"P0012345","type":"purchase_order","purchase_order":"P0012345","vendor_name":"Northfield Mechanical Ltd","date":"2026-10-02","original":125000,"liquidated":40000,"remaining":85000,"status":"open","fund":"110000","organization":"2200","account":"7200"},{"id":"E0004410-1-1","document_number":"E0004410","type":"general","original":20000,"liquidated":20000,"remaining":0,"status":"closed","fund":"110000","organization":"2200","account":"7010","description":"Design contingency, released"}]}},"text/csv":{"schema":{"type":"string","description":"A header row, then one row per line. Columns: id, document_number, type, purchase_order, vendor_name, date, original, liquidated, remaining, status, fund, organization, account, program, activity, location, project_code, grant, description, removed."}}}},"responses":{"200":{"description":"The batch was read. Counts, the first row errors and the first unmatched rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceRecordsResult"}}}},"400":{"description":"The body is not valid UTF-8 text. (The body cannot be decoded as UTF-8.) | The body is not valid JSON. (Content-Type application/json and the body does not parse.) | source must be \"banner\" (Any other source.) | batch_id must be text (batch_id is an object, an array or a boolean.) | batch_id is longer than 120 characters (batch_id is too long.) | period must be written YYYY-MM (for example 2026-11) (Any other period form.) | CSV line <n>: <what is wrong>. (The CSV cannot be split into values: a quote in the middle of a value, text after a closing quote, or a quoted value that is never closed.) | The CSV is empty. The first line must be the header row. (A CSV body with no lines.) | The CSV header row has an empty column name. (A header cell is empty.) | Unknown CSV column \"<name>\". Columns allowed: <the list>. (A header names a column the kind does not have.) | The CSV column \"<name>\" appears twice. (A header is repeated.) | The CSV header row has no \"<name>\" column. Required columns: <the required columns>. (A required column of the kind is missing from the header.) | CSV row <n> has <n> values but the header has <n> columns. A value that contains a comma must be in quotes. (A line has more values than the header.) | The body must be a JSON object with a records array. (The JSON is an array, a string, a number or null.) | This address takes <the kind> in a records array. Transactions (actuals) go to /api/finance/v1/actuals. (The body carries a transactions property.) | Unknown property \"<name>\". The body holds: <the names allowed>. (A property at the top level of the JSON other than source, batch_id, period, kind and records.) | kind is \"<sent>\" but this address takes <the kind> (kind \"<kind>\"). Each kind has its own address under /api/finance/v1. (The body names a kind that is not the address's.) | records must be an array. (records is missing or is not an array.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"401":{"description":"Unauthorized. Send the token as: Authorization: Bearer <token>. (No Authorization header, a token of the wrong shape, an unknown token or a revoked token. The answer is the same for all four, whatever the address, and carries WWW-Authenticate: Bearer.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"403":{"description":"Financial system sync is switched off for this workspace. (The token is valid and the workspace's Financial system sync switch is off.) | Banner budgets, purchase orders and commitments is switched off for this workspace. Only actuals are accepted. (Financial system sync is on and the second switch, Banner budgets, purchase orders and commitments, is off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"404":{"description":"Unknown record kind \"<name>\". This feed takes: <the addresses> (for example /api/finance/v1/purchase-orders). (The last part of the address is not one of the feed's kinds. Checked after the token, so an address is never confirmed to a caller without one.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"413":{"description":"The body is larger than 2 MB. Split the batch. (The body is larger than 2 MB.) | Too many rows: <n>. Send at most 5000 records in one batch. (More than 5,000 records.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"415":{"description":"Send Content-Type: application/json or Content-Type: text/csv. (Any other Content-Type, or none.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"429":{"description":"Too many requests. This token may send 30 requests a minute. (More than 30 requests in a minute on one token, counted across every address of the feed. The answer carries Retry-After: 60.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"500":{"description":"The batch was valid but could not be written. Nothing was stored. Send the same batch again; if it keeps failing, the reason is on the connection card in Luceryn. (The batch was read but the database write failed. The whole batch is written in one piece, so nothing was stored. The answer also carries kind and batch_id.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}}}}},"/api/finance/v1/commitments":{"post":{"operationId":"financeFeed_commitment","tags":["Finance feed"],"summary":"Send other commitments","description":"Reservations and contract commitments that are not purchase orders. Banner holds every commitment as an encumbrance with a type, so this is the same record as an encumbrance, stored in the same place and counted the same way; the address exists so a job can send them separately. An id sent here and to the encumbrances address is one record. A later record with the same id replaces the earlier balances. An unchanged record does nothing. Switched on by Financial system sync (Banner, ERP) together with Banner budgets, purchase orders and commitments.","security":[{"financeToken":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"description":"1 or true: the batch is checked and the answer says what would happen, and nothing is written.","schema":{"type":"string"}},{"name":"source","in":"query","required":false,"description":"CSV only: the same as source in a JSON body.","schema":{"type":"string"}},{"name":"batch_id","in":"query","required":false,"description":"CSV only: the same as batch_id in a JSON body.","schema":{"type":"string"}},{"name":"period","in":"query","required":false,"description":"CSV only: the same as period in a JSON body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceCommitmentBatch"},"example":{"source":"banner","batch_id":"2026-11-18-commitments","records":[{"id":"R0007781-1-1","document_number":"R0007781","type":"requisition","original":32000,"liquidated":0,"remaining":32000,"status":"open","fund":"110000","organization":"2200","account":"7200","description":"Requisition for lab casework"},{"id":"C2026-014-1","document_number":"C2026-014","type":"contract","vendor_name":"Red River Builders Inc","original":900000,"liquidated":250000,"remaining":650000,"fund":"110000","organization":"2200","account":"7200"}]}},"text/csv":{"schema":{"type":"string","description":"A header row, then one row per line. Columns: id, document_number, type, purchase_order, vendor_name, date, original, liquidated, remaining, status, fund, organization, account, program, activity, location, project_code, grant, description, removed."}}}},"responses":{"200":{"description":"The batch was read. Counts, the first row errors and the first unmatched rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceRecordsResult"}}}},"400":{"description":"The body is not valid UTF-8 text. (The body cannot be decoded as UTF-8.) | The body is not valid JSON. (Content-Type application/json and the body does not parse.) | source must be \"banner\" (Any other source.) | batch_id must be text (batch_id is an object, an array or a boolean.) | batch_id is longer than 120 characters (batch_id is too long.) | period must be written YYYY-MM (for example 2026-11) (Any other period form.) | CSV line <n>: <what is wrong>. (The CSV cannot be split into values: a quote in the middle of a value, text after a closing quote, or a quoted value that is never closed.) | The CSV is empty. The first line must be the header row. (A CSV body with no lines.) | The CSV header row has an empty column name. (A header cell is empty.) | Unknown CSV column \"<name>\". Columns allowed: <the list>. (A header names a column the kind does not have.) | The CSV column \"<name>\" appears twice. (A header is repeated.) | The CSV header row has no \"<name>\" column. Required columns: <the required columns>. (A required column of the kind is missing from the header.) | CSV row <n> has <n> values but the header has <n> columns. A value that contains a comma must be in quotes. (A line has more values than the header.) | The body must be a JSON object with a records array. (The JSON is an array, a string, a number or null.) | This address takes <the kind> in a records array. Transactions (actuals) go to /api/finance/v1/actuals. (The body carries a transactions property.) | Unknown property \"<name>\". The body holds: <the names allowed>. (A property at the top level of the JSON other than source, batch_id, period, kind and records.) | kind is \"<sent>\" but this address takes <the kind> (kind \"<kind>\"). Each kind has its own address under /api/finance/v1. (The body names a kind that is not the address's.) | records must be an array. (records is missing or is not an array.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"401":{"description":"Unauthorized. Send the token as: Authorization: Bearer <token>. (No Authorization header, a token of the wrong shape, an unknown token or a revoked token. The answer is the same for all four, whatever the address, and carries WWW-Authenticate: Bearer.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"403":{"description":"Financial system sync is switched off for this workspace. (The token is valid and the workspace's Financial system sync switch is off.) | Banner budgets, purchase orders and commitments is switched off for this workspace. Only actuals are accepted. (Financial system sync is on and the second switch, Banner budgets, purchase orders and commitments, is off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"404":{"description":"Unknown record kind \"<name>\". This feed takes: <the addresses> (for example /api/finance/v1/purchase-orders). (The last part of the address is not one of the feed's kinds. Checked after the token, so an address is never confirmed to a caller without one.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"413":{"description":"The body is larger than 2 MB. Split the batch. (The body is larger than 2 MB.) | Too many rows: <n>. Send at most 5000 records in one batch. (More than 5,000 records.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"415":{"description":"Send Content-Type: application/json or Content-Type: text/csv. (Any other Content-Type, or none.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"429":{"description":"Too many requests. This token may send 30 requests a minute. (More than 30 requests in a minute on one token, counted across every address of the feed. The answer carries Retry-After: 60.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"500":{"description":"The batch was valid but could not be written. Nothing was stored. Send the same batch again; if it keeps failing, the reason is on the connection card in Luceryn. (The batch was read but the database write failed. The whole batch is written in one piece, so nothing was stored. The answer also carries kind and batch_id.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}}}}},"/api/finance/v1/vendor-payments":{"post":{"operationId":"financeFeed_vendor_payment","tags":["Finance feed"],"summary":"Send vendor payments","description":"Payments made to vendors. A payment is information about a cost entry and never adds to spent: what a project has spent is its actuals, and only its actuals. When transaction_id is sent, the payment is shown linked to the actual with that id. A later record with the same id replaces the earlier one. An unchanged record does nothing. A voided payment is sent again with status void. Switched on by Financial system sync (Banner, ERP) together with Banner budgets, purchase orders and commitments.","security":[{"financeToken":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"description":"1 or true: the batch is checked and the answer says what would happen, and nothing is written.","schema":{"type":"string"}},{"name":"source","in":"query","required":false,"description":"CSV only: the same as source in a JSON body.","schema":{"type":"string"}},{"name":"batch_id","in":"query","required":false,"description":"CSV only: the same as batch_id in a JSON body.","schema":{"type":"string"}},{"name":"period","in":"query","required":false,"description":"CSV only: the same as period in a JSON body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceVendorPaymentBatch"},"example":{"source":"banner","batch_id":"2026-11-18-vendor-payments","records":[{"id":"I0045871-1","invoice_number":"I0045871","vendor_name":"Northfield Mechanical Ltd","vendor_id":"V00123456","payment_date":"2026-11-18","amount":40000,"currency":"CAD","payment_reference":"EFT0098812","payment_method":"eft","purchase_order":"P0012345","transaction_id":"J0012345-1","fund":"110000","organization":"2200","account":"7200"},{"id":"I0045902-1","invoice_number":"I0045902","vendor_name":"Prairie Survey Group","payment_date":"2026-11-19","amount":18500,"payment_reference":"00451207","payment_method":"cheque","purchase_order":"P0012398","fund":"110000","organization":"2200"}]}},"text/csv":{"schema":{"type":"string","description":"A header row, then one row per line. Columns: id, invoice_number, vendor_name, vendor_id, payment_date, amount, currency, payment_reference, payment_method, purchase_order, transaction_id, status, fund, organization, account, program, activity, location, project_code, grant, description, removed."}}}},"responses":{"200":{"description":"The batch was read. Counts, the first row errors and the first unmatched rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceRecordsResult"}}}},"400":{"description":"The body is not valid UTF-8 text. (The body cannot be decoded as UTF-8.) | The body is not valid JSON. (Content-Type application/json and the body does not parse.) | source must be \"banner\" (Any other source.) | batch_id must be text (batch_id is an object, an array or a boolean.) | batch_id is longer than 120 characters (batch_id is too long.) | period must be written YYYY-MM (for example 2026-11) (Any other period form.) | CSV line <n>: <what is wrong>. (The CSV cannot be split into values: a quote in the middle of a value, text after a closing quote, or a quoted value that is never closed.) | The CSV is empty. The first line must be the header row. (A CSV body with no lines.) | The CSV header row has an empty column name. (A header cell is empty.) | Unknown CSV column \"<name>\". Columns allowed: <the list>. (A header names a column the kind does not have.) | The CSV column \"<name>\" appears twice. (A header is repeated.) | The CSV header row has no \"<name>\" column. Required columns: <the required columns>. (A required column of the kind is missing from the header.) | CSV row <n> has <n> values but the header has <n> columns. A value that contains a comma must be in quotes. (A line has more values than the header.) | The body must be a JSON object with a records array. (The JSON is an array, a string, a number or null.) | This address takes <the kind> in a records array. Transactions (actuals) go to /api/finance/v1/actuals. (The body carries a transactions property.) | Unknown property \"<name>\". The body holds: <the names allowed>. (A property at the top level of the JSON other than source, batch_id, period, kind and records.) | kind is \"<sent>\" but this address takes <the kind> (kind \"<kind>\"). Each kind has its own address under /api/finance/v1. (The body names a kind that is not the address's.) | records must be an array. (records is missing or is not an array.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"401":{"description":"Unauthorized. Send the token as: Authorization: Bearer <token>. (No Authorization header, a token of the wrong shape, an unknown token or a revoked token. The answer is the same for all four, whatever the address, and carries WWW-Authenticate: Bearer.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"403":{"description":"Financial system sync is switched off for this workspace. (The token is valid and the workspace's Financial system sync switch is off.) | Banner budgets, purchase orders and commitments is switched off for this workspace. Only actuals are accepted. (Financial system sync is on and the second switch, Banner budgets, purchase orders and commitments, is off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"404":{"description":"Unknown record kind \"<name>\". This feed takes: <the addresses> (for example /api/finance/v1/purchase-orders). (The last part of the address is not one of the feed's kinds. Checked after the token, so an address is never confirmed to a caller without one.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"413":{"description":"The body is larger than 2 MB. Split the batch. (The body is larger than 2 MB.) | Too many rows: <n>. Send at most 5000 records in one batch. (More than 5,000 records.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"415":{"description":"Send Content-Type: application/json or Content-Type: text/csv. (Any other Content-Type, or none.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"429":{"description":"Too many requests. This token may send 30 requests a minute. (More than 30 requests in a minute on one token, counted across every address of the feed. The answer carries Retry-After: 60.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}},"500":{"description":"The batch was valid but could not be written. Nothing was stored. Send the same batch again; if it keeps failing, the reason is on the connection card in Luceryn. (The batch was read but the database write failed. The whole batch is written in one piece, so nothing was stored. The answer also carries kind and batch_id.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceError"}}}}}}},"/api/crm/v1/contacts":{"get":{"operationId":"crmContactsList","tags":["CRM API"],"summary":"List contacts","description":"The workspace's CRM contacts, in name order.","security":[{"crmToken":[]}],"parameters":[{"name":"limit","in":"query","required":false,"description":"How many to return. Default 100, at most 500.","schema":{"type":"integer"}},{"name":"email","in":"query","required":false,"description":"Return only the contact with this email address. Capitals do not matter.","schema":{"type":"string"}}],"responses":{"200":{"description":"200: { \"contacts\": [ ... ] }, each contact","content":{"application/json":{"example":{"contacts":[{"id":"4c5d6e7f-8a9b-4c0d-9e1f-2a3b4c5d6e7f","full_name":"Sam Rivera","title":"Director, Capital Planning","email":"sam.rivera@example.edu","phone":"204-555-0100","client_id":null,"last_activity_at":null,"created_at":"2026-11-20T15:04:05.123+00:00"}]}}}},"401":{"description":"Unauthorized (No token, an unknown or revoked token, or the CRM is switched off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Query failed (The contacts could not be read.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}},"post":{"operationId":"crmContactsCreate","tags":["CRM API"],"summary":"Create a contact","description":"Adds a contact. When a contact with the same email address already exists, nothing is added and that contact is returned with merged: true.","security":[{"crmToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"full_name":{"type":"string","description":"The contact's name. Cut to 120 characters."},"title":{"type":"string","description":"Job title. Cut to 120 characters."},"email":{"type":"string","description":"Email address. Used to find an existing contact first."},"phone":{"type":"string","description":"Phone number. Cut to 40 characters."}},"required":["full_name"]}}}},"responses":{"201":{"description":"201: { \"contact\": { ... } }. 200 with \"merged\": true when the email already existed. The contact","content":{"application/json":{"example":{"contact":{"id":"4c5d6e7f-8a9b-4c0d-9e1f-2a3b4c5d6e7f","full_name":"Sam Rivera","title":null,"email":"sam.rivera@example.edu","phone":null,"client_id":null,"last_activity_at":null,"created_at":"2026-11-20T15:04:05.123+00:00"}}}}},"400":{"description":"Invalid JSON (The body does not parse.) | full_name is required (No full_name.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized (No token, an unknown or revoked token, or the CRM is switched off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Insert failed (The contact could not be saved.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}}},"/api/crm/v1/deals":{"get":{"operationId":"crmDealsList","tags":["CRM API"],"summary":"List deals","description":"The workspace's deals, newest first. Deleted deals are left out.","security":[{"crmToken":[]}],"parameters":[{"name":"status","in":"query","required":false,"description":"open, won or lost. Any other value is ignored.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"How many to return. Default 100, at most 200.","schema":{"type":"integer"}}],"responses":{"200":{"description":"200: { \"deals\": [ ... ] }, each deal","content":{"application/json":{"example":{"deals":[{"id":"5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9","name":"Campus signage refresh","value":48000,"currency":"CAD","status":"open","probability":20,"expected_close":"2027-03-31","forecast_category":null,"client_id":null,"owner_id":null,"source":"api","next_step":null,"lost_reason":null,"created_at":"2026-11-20T15:04:05.123+00:00","won_at":null,"last_activity_at":"2026-11-20T15:04:05.123+00:00"}]}}}},"401":{"description":"Unauthorized (No token, an unknown or revoked token, or the CRM is switched off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Query failed (The deals could not be read.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}},"post":{"operationId":"crmDealsCreate","tags":["CRM API"],"summary":"Create a deal","description":"Adds a deal in the first open stage of the workspace's pipeline. No webhook event is sent for a deal created this way.","security":[{"crmToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The deal's name. Cut to 140 characters."},"value":{"type":"number","description":"The deal's value."},"expected_close":{"type":"string","format":"date","description":"Expected close date. Any other form is ignored."},"source":{"type":"string","description":"Where the deal came from. Cut to 60 characters. Default api."},"description":{"type":"string","description":"Notes. Cut to 2,000 characters."}},"required":["name"]}}}},"responses":{"201":{"description":"201: { \"deal\": { ... } }. The deal","content":{"application/json":{"example":{"deal":{"id":"5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9","name":"Campus signage refresh","value":48000,"currency":null,"status":"open","probability":20,"expected_close":"2027-03-31","forecast_category":null,"client_id":null,"owner_id":null,"source":"api","next_step":null,"lost_reason":null,"created_at":"2026-11-20T15:04:05.123+00:00","won_at":null,"last_activity_at":"2026-11-20T15:04:05.123+00:00"}}}}},"400":{"description":"Invalid JSON (The body does not parse.) | name is required (No name.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized (No token, an unknown or revoked token, or the CRM is switched off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Insert failed (The deal could not be saved.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}}},"/api/crm/lead-capture":{"post":{"operationId":"leadCapture","tags":["Lead capture"],"summary":"Web form lead capture","description":"A form on your own website posts an enquiry here and it becomes a CRM lead with the source web_form. The endpoint answers browsers on any site (Access-Control-Allow-Origin: *).","security":[{"leadCaptureToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"full_name":{"type":"string","description":"The person's name (name is accepted too). Cut to 120 characters."},"company":{"type":"string","description":"Cut to 300 characters."},"title":{"type":"string","description":"Cut to 300 characters."},"email":{"type":"string","description":"Cut to 300 characters."},"phone":{"type":"string","description":"Cut to 300 characters."},"message":{"type":"string","description":"The enquiry (notes is accepted too). Cut to 300 characters."},"token":{"type":"string","description":"The web form token, when it is not in the query string."}},"required":["full_name"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"example":{"ok":true}}}},"400":{"description":"Invalid JSON. (The body does not parse.) | full_name is required. (Neither full_name nor name.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OkFalseError"}}}},"401":{"description":"Missing token. (No token in the query string or the body.) | Unknown or disabled capture token. (The token matches no workspace, or the workspace's CRM is off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OkFalseError"}}}},"403":{"description":"Lead capture is switched off for this workspace. (The Web lead capture switch is off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OkFalseError"}}}},"429":{"description":"Daily capture limit reached. (200 web form leads have arrived for the workspace in the last 24 hours.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OkFalseError"}}}},"500":{"description":"Couldn't record the lead. (The lead could not be saved.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OkFalseError"}}}}}}},"/api/integrations/salesforce/intake":{"post":{"operationId":"salesforceIntake","tags":["Salesforce intake"],"summary":"Salesforce closed-won intake","description":"A Salesforce Flow posts a won opportunity here and Luceryn creates the delivery project, linked to the client with the same account name (created when new) and managed by the person whose email matches the owner.","security":[{"salesforceSecret":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["opportunity"],"properties":{"opportunity":{"type":"object","properties":{"name":{"type":"string","description":"Becomes the project's name. Cut to 140 characters."},"amount":{"type":"number","description":"Becomes the project's total budget and is written into its description."},"account_name":{"type":"string","description":"The client. Matched by name without regard to capitals; created when there is none."},"owner_email":{"type":"string","description":"Becomes the project manager when a person with this email exists in the workspace."},"description":{"type":"string","description":"Written into the project's description. Cut to 1,500 characters."},"close_date":{"type":"string","format":"date","description":"Accepted and not used. The project's start date is the day the request arrives (Eastern time)."}},"required":["name"]}}}}}},"responses":{"201":{"description":"201, or 200 with deduped: true","content":{"application/json":{"example":{"ok":true,"project_id":"9a1c7f2e-3b4d-4e5f-8a6b-7c8d9e0f1a2b"}}}},"400":{"description":"Invalid JSON (The body does not parse.) | opportunity.name is required (No opportunity name.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized (No X-Luceryn-Secret header, one that does not start with sf_, or one that matches no active Salesforce connection.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"422":{"description":"<the plan's project limit message> (The workspace has reached the number of active projects its plan allows.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Couldn't create the project (The project could not be saved.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}}},"/api/assets/handoff/latest":{"get":{"operationId":"assetHandoffLatest","tags":["Asset hand-off"],"summary":"Latest asset hand-off package of a project","description":"When a project closes, Luceryn prepares a package of the assets it delivered (schema luceryn.asset_handoff.v1) for your asset management system. This endpoint returns the most recently prepared package of one project as JSON, for your own integration job. Read only: acknowledging a hand-off is done by a person in Luceryn. Luceryn does not connect to the asset management system itself.","security":[{"reportingToken":[]}],"parameters":[{"name":"project","in":"query","required":true,"description":"The project's id (a UUID), or its short code as Luceryn shows it (capitals do not matter). At most 80 characters. Projects in the bin are not found.","schema":{"type":"string"}},{"name":"token","in":"query","required":false,"description":"The reporting token, for a client that cannot send a header. Prefer the header: a token in the address is written to logs.","schema":{"type":"string"}}],"responses":{"200":{"description":"200: { \"handoff\": { ... }, \"package\": { ... } }. The log entry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetHandoffLatest"},"example":{"handoff":{"id":"2b3c4d5e-6f70-4a81-9b92-a3b4c5d6e7f8","status":"sent","trigger":"manual","prepared_at":"2026-11-20T15:04:05.123+00:00","prepared_by":"Sam Rivera","assets":1,"documents":1,"warnings":0,"sent_at":"2026-11-20T15:04:07.512+00:00","acknowledged_at":null,"files":[{"kind":"json","name":"CAP-014-asset-handoff-2026-11-20.json","bytes":4210,"sha256":"9f2c0d6b1e4f7a8c5d2e9b0a1f6c3d4e7b8a9c0d1e2f3a4b5c6d7e8f9a0b1c2d"}]},"package":{"schema":"luceryn.asset_handoff.v1","prepared_at":"2026-11-20T15:04:05.123Z","prepared_by":"Sam Rivera","project":{"id":"9a1c7f2e-3b4d-4e5f-8a6b-7c8d9e0f1a2b","name":"Science building roof replacement","code":"CAP-014","department":"Facilities","stage":"closing","status":"on track","start_date":"2026-09-01","end_date":"2027-06-30","currency":"CAD","buildings":[{"name":"Science Building","code":"SCI","campus":"Main","address":null}],"link":"https://luceryn.example.com/projects/9a1c7f2e-3b4d-4e5f-8a6b-7c8d9e0f1a2b"},"cost_summary":null,"funding":null,"layout":[{"key":"tag","header":"Asset tag","fixed":null},{"key":"name","header":"Asset name","fixed":null}],"assets":[{"luceryn_asset_id":"6d7e8f90-a1b2-4c3d-8e4f-5a6b7c8d9e0f","columns":{"Asset tag":"AHU-0042","Asset name":"Air handling unit, roof"},"record":{"tag":"AHU-0042","name":"Air handling unit, roof","classification":"Air handling unit","class_code":"HVAC-AHU","category":"equipment","location":"Roof","department":"Facilities","attributes":{"Capacity":"40 kW"},"manufacturer":"Northfield Mechanical","model":"NM-40","serial_number":"SN-48213","in_service_date":"2027-06-15","purchase_date":"2027-03-02","cost":125000,"currency":"CAD","vendor":"Northfield Mechanical Ltd","warranty_start":"2027-06-15","warranty_end":"2029-06-14","warranty_documents":[{"name":"AHU warranty.pdf","url":"https://luceryn.example.com/api/project-files/0f1e2d3c-4b5a-4698-8776-655443322110"}],"external_ref":null,"link":"https://luceryn.example.com/assets/6d7e8f90-a1b2-4c3d-8e4f-5a6b7c8d9e0f"},"warnings":[]}],"documents":[{"kind":"Warranty","title":"AHU warranty","system":"HVAC","vendor":"Northfield Mechanical Ltd","status":"Accepted","warranty_start":"2027-06-15","warranty_end":"2029-06-14","files":[{"name":"AHU warranty.pdf","url":"https://luceryn.example.com/api/project-files/0f1e2d3c-4b5a-4698-8776-655443322110"}],"url":"https://luceryn.example.com/projects/9a1c7f2e-3b4d-4e5f-8a6b-7c8d9e0f1a2b/construction?tab=closeout"}],"warnings":[],"counts":{"assets":1,"documents":1,"warnings":0},"handoff_id":"2b3c4d5e-6f70-4a81-9b92-a3b4c5d6e7f8","trigger":"manual"}}}}},"400":{"description":"Name the project: ?project=<project code or id>. (No project, or one longer than 80 characters.) | More than one project has that code. Use the project id instead. (Two projects of the workspace share the short code.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized. Supply a reporting token (Authorization: Bearer). (No token, an unknown token or a revoked token. The answer carries WWW-Authenticate: Bearer realm=\"Luceryn\".)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"403":{"description":"Closeout asset hand-off is switched off for this workspace. (The token is valid and the switch is off.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"No such project in this workspace. (No project with that id or code in the token's workspace.) | No asset hand-off has been prepared for this project yet. (The project exists and no package has been prepared for it.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}}},"/api/health":{"get":{"operationId":"health","tags":["Health"],"summary":"Health check","description":"For an uptime monitor: says whether the application and its database are answering. It returns no workspace data.","security":[],"responses":{"200":{"description":"200 when healthy, 503 when the database cannot be reached within 3 seconds","content":{"application/json":{"example":{"status":"ok","db":"ok","took_ms":41}}}},"503":{"description":"The database could not be reached within 3 seconds.","content":{"application/json":{"example":{"status":"degraded","db":"unreachable","took_ms":3001}}}}}}}},"webhooks":{"project.created":{"post":{"operationId":"webhook_project_created","tags":["Webhooks"],"summary":"A project is created.","description":"Sent to each active webhook that subscribes to project.created. Signed: X-Luceryn-Signature is sha256= followed by the HMAC-SHA256 of the raw body keyed with the webhook's signing secret. Not retried; your answer is awaited for 5 seconds.","parameters":[{"name":"X-Luceryn-Event","in":"header","required":true,"schema":{"type":"string","const":"project.created"}},{"name":"X-Luceryn-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^sha256=[0-9a-f]{64}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook_project_created"}}}},"responses":{"2XX":{"description":"Any 2xx answer counts as delivered."}}}},"status_report.submitted":{"post":{"operationId":"webhook_status_report_submitted","tags":["Webhooks"],"summary":"A status report is submitted for review.","description":"Sent to each active webhook that subscribes to status_report.submitted. Signed: X-Luceryn-Signature is sha256= followed by the HMAC-SHA256 of the raw body keyed with the webhook's signing secret. Not retried; your answer is awaited for 5 seconds.","parameters":[{"name":"X-Luceryn-Event","in":"header","required":true,"schema":{"type":"string","const":"status_report.submitted"}},{"name":"X-Luceryn-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^sha256=[0-9a-f]{64}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook_status_report_submitted"}}}},"responses":{"2XX":{"description":"Any 2xx answer counts as delivered."}}}},"status_report.approved":{"post":{"operationId":"webhook_status_report_approved","tags":["Webhooks"],"summary":"A status report is approved.","description":"Sent to each active webhook that subscribes to status_report.approved. Signed: X-Luceryn-Signature is sha256= followed by the HMAC-SHA256 of the raw body keyed with the webhook's signing secret. Not retried; your answer is awaited for 5 seconds.","parameters":[{"name":"X-Luceryn-Event","in":"header","required":true,"schema":{"type":"string","const":"status_report.approved"}},{"name":"X-Luceryn-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^sha256=[0-9a-f]{64}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook_status_report_approved"}}}},"responses":{"2XX":{"description":"Any 2xx answer counts as delivered."}}}},"status_report.published":{"post":{"operationId":"webhook_status_report_published","tags":["Webhooks"],"summary":"A status report is published.","description":"Sent to each active webhook that subscribes to status_report.published. Signed: X-Luceryn-Signature is sha256= followed by the HMAC-SHA256 of the raw body keyed with the webhook's signing secret. Not retried; your answer is awaited for 5 seconds.","parameters":[{"name":"X-Luceryn-Event","in":"header","required":true,"schema":{"type":"string","const":"status_report.published"}},{"name":"X-Luceryn-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^sha256=[0-9a-f]{64}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook_status_report_published"}}}},"responses":{"2XX":{"description":"Any 2xx answer counts as delivered."}}}},"raid.created":{"post":{"operationId":"webhook_raid_created","tags":["Webhooks"],"summary":"A risk, action, issue or decision is added to a project's log.","description":"Sent to each active webhook that subscribes to raid.created. Signed: X-Luceryn-Signature is sha256= followed by the HMAC-SHA256 of the raw body keyed with the webhook's signing secret. Not retried; your answer is awaited for 5 seconds.","parameters":[{"name":"X-Luceryn-Event","in":"header","required":true,"schema":{"type":"string","const":"raid.created"}},{"name":"X-Luceryn-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^sha256=[0-9a-f]{64}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook_raid_created"}}}},"responses":{"2XX":{"description":"Any 2xx answer counts as delivered."}}}},"document.approved":{"post":{"operationId":"webhook_document_approved","tags":["Webhooks"],"summary":"A project document reaches approved.","description":"Sent to each active webhook that subscribes to document.approved. Signed: X-Luceryn-Signature is sha256= followed by the HMAC-SHA256 of the raw body keyed with the webhook's signing secret. Not retried; your answer is awaited for 5 seconds.","parameters":[{"name":"X-Luceryn-Event","in":"header","required":true,"schema":{"type":"string","const":"document.approved"}},{"name":"X-Luceryn-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^sha256=[0-9a-f]{64}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook_document_approved"}}}},"responses":{"2XX":{"description":"Any 2xx answer counts as delivered."}}}},"deal.created":{"post":{"operationId":"webhook_deal_created","tags":["Webhooks"],"summary":"A CRM deal is created by hand.","description":"Sent to each active webhook that subscribes to deal.created. Signed: X-Luceryn-Signature is sha256= followed by the HMAC-SHA256 of the raw body keyed with the webhook's signing secret. Not retried; your answer is awaited for 5 seconds.","parameters":[{"name":"X-Luceryn-Event","in":"header","required":true,"schema":{"type":"string","const":"deal.created"}},{"name":"X-Luceryn-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^sha256=[0-9a-f]{64}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook_deal_created"}}}},"responses":{"2XX":{"description":"Any 2xx answer counts as delivered."}}}},"deal.stage_changed":{"post":{"operationId":"webhook_deal_stage_changed","tags":["Webhooks"],"summary":"A CRM deal moves to another stage.","description":"Sent to each active webhook that subscribes to deal.stage_changed. Signed: X-Luceryn-Signature is sha256= followed by the HMAC-SHA256 of the raw body keyed with the webhook's signing secret. Not retried; your answer is awaited for 5 seconds.","parameters":[{"name":"X-Luceryn-Event","in":"header","required":true,"schema":{"type":"string","const":"deal.stage_changed"}},{"name":"X-Luceryn-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^sha256=[0-9a-f]{64}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook_deal_stage_changed"}}}},"responses":{"2XX":{"description":"Any 2xx answer counts as delivered."}}}},"deal.won":{"post":{"operationId":"webhook_deal_won","tags":["Webhooks"],"summary":"A CRM deal is marked won.","description":"Sent to each active webhook that subscribes to deal.won. Signed: X-Luceryn-Signature is sha256= followed by the HMAC-SHA256 of the raw body keyed with the webhook's signing secret. Not retried; your answer is awaited for 5 seconds.","parameters":[{"name":"X-Luceryn-Event","in":"header","required":true,"schema":{"type":"string","const":"deal.won"}},{"name":"X-Luceryn-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^sha256=[0-9a-f]{64}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook_deal_won"}}}},"responses":{"2XX":{"description":"Any 2xx answer counts as delivered."}}}},"deal.lost":{"post":{"operationId":"webhook_deal_lost","tags":["Webhooks"],"summary":"A CRM deal is marked lost.","description":"Sent to each active webhook that subscribes to deal.lost. Signed: X-Luceryn-Signature is sha256= followed by the HMAC-SHA256 of the raw body keyed with the webhook's signing secret. Not retried; your answer is awaited for 5 seconds.","parameters":[{"name":"X-Luceryn-Event","in":"header","required":true,"schema":{"type":"string","const":"deal.lost"}},{"name":"X-Luceryn-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^sha256=[0-9a-f]{64}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook_deal_lost"}}}},"responses":{"2XX":{"description":"Any 2xx answer counts as delivered."}}}},"project.asset_handoff.prepared":{"post":{"operationId":"webhook_project_asset_handoff_prepared","tags":["Webhooks"],"summary":"An asset hand-off package is prepared for a project and announced: by a person pressing the button on the project's Asset hand-off page, or automatically when a project reaches its Closing stage and the workspace has Prepare automatically ticked. Send again on that page sends the same package again, with the same handoff_id. Unlike the other events it carries the whole package, asset and cost data included.","description":"Sent only to an active webhook that has project.asset_handoff.prepared ticked, while the Closeout asset hand-off switch is on. Signed: X-Luceryn-Signature is sha256= followed by the HMAC-SHA256 of the raw body keyed with the webhook's signing secret. Not retried; your answer is awaited for 5 seconds.","parameters":[{"name":"X-Luceryn-Event","in":"header","required":true,"schema":{"type":"string","const":"project.asset_handoff.prepared"}},{"name":"X-Luceryn-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^sha256=[0-9a-f]{64}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook_project_asset_handoff_prepared"}}}},"responses":{"2XX":{"description":"Any 2xx answer counts as delivered."}}}}},"components":{"securitySchemes":{"financeToken":{"type":"http","scheme":"bearer","description":"A finance feed token (fin_...), created on the Ellucian Banner (Ethos) card under Admin, Connections."},"crmToken":{"type":"http","scheme":"bearer","description":"A CRM API token (crm_...), created on the CRM settings page."},"leadCaptureToken":{"type":"apiKey","in":"query","name":"token","description":"The workspace's web form token."},"salesforceSecret":{"type":"apiKey","in":"header","name":"X-Luceryn-Secret","description":"The workspace's Salesforce shared secret (sf_...)."},"reportingToken":{"type":"http","scheme":"bearer","description":"A reporting token (rpt_...), created under Admin, Reporting feed. Also accepted as the password of Basic authentication or as ?token=."}},"schemas":{"FinanceBatchResult":{"type":"object","properties":{"ok":{"type":"boolean","description":"true when the batch was read. false with an error field on every other status."},"dry_run":{"type":"boolean","description":"true when dry_run was asked for and nothing was written."},"run_id":{"type":["string","null"],"format":"uuid","description":"The id of the run record. null for a dry run."},"batch_id":{"type":"string","description":"The batch_id you sent, or the name Luceryn gave the batch."},"rows":{"type":"integer","description":"Rows received, good and bad."},"posted":{"type":"integer","description":"New cost entries created."},"updated":{"type":"integer","description":"Existing entries corrected (a different amount, date, account or project)."},"unchanged":{"type":"integer","description":"Rows already posted exactly as sent, and reversals of something never posted."},"removed":{"type":"integer","description":"Entries removed by reversed: true."},"unmatched":{"type":"integer","description":"Rows that went to the waiting queue because no single live project fits."},"rejected":{"type":"integer","description":"Rows refused on their own. The other rows of the batch still went through."},"errors":{"type":"array","maxItems":100,"items":{"type":"object","required":["row","id","reason"],"properties":{"row":{"type":"integer"},"id":{"type":["string","null"]},"reason":{"type":"string"}}}},"unmatched_rows":{"type":"array","maxItems":100,"items":{"type":"object","required":["row","id","reason"],"properties":{"row":{"type":"integer"},"id":{"type":["string","null"]},"reason":{"type":"string"}}}}},"required":["ok","dry_run","run_id","batch_id","rows","posted","updated","unchanged","removed","unmatched","rejected","errors","unmatched_rows"]},"FinanceRecordsResult":{"type":"object","properties":{"ok":{"type":"boolean","description":"true when the batch was read. false with an error field on every other status."},"dry_run":{"type":"boolean","description":"true when dry_run was asked for and nothing was written."},"kind":{"type":"string","description":"The kind the address takes: budget, purchase_order, encumbrance, commitment or vendor_payment."},"run_id":{"type":["string","null"],"format":"uuid","description":"The id of the run record. null for a dry run."},"batch_id":{"type":"string","description":"The batch_id you sent, or the name Luceryn gave the batch."},"rows":{"type":"integer","description":"Rows received, good and bad."},"accepted":{"type":"integer","description":"Records stored for the first time."},"updated":{"type":"integer","description":"Records that replaced an earlier version with the same id."},"unchanged":{"type":"integer","description":"Records already stored exactly as sent, and removals of something never stored."},"removed":{"type":"integer","description":"Records taken out by removed: true."},"unmatched":{"type":"integer","description":"Records that went to the waiting queue because no single live project fits."},"rejected":{"type":"integer","description":"Records refused on their own. The other records of the batch still went through."},"errors":{"type":"array","maxItems":100,"items":{"type":"object","required":["row","id","reason"],"properties":{"row":{"type":"integer"},"id":{"type":["string","null"]},"reason":{"type":"string"}}}},"unmatched_rows":{"type":"array","maxItems":100,"items":{"type":"object","required":["row","id","reason"],"properties":{"row":{"type":"integer"},"id":{"type":["string","null"]},"reason":{"type":"string"}}}}},"required":["ok","dry_run","kind","run_id","batch_id","rows","accepted","updated","unchanged","removed","unmatched","rejected","errors","unmatched_rows"]},"AssetHandoffPackage":{"type":"object","properties":{"schema":{"type":"string","description":"The name and version of this layout."},"handoff_id":{"type":"string","format":"uuid","description":"The id of this package in Luceryn's hand-off log. Use it to recognise a package you have already loaded."},"trigger":{"type":"string","description":"manual when a person prepared it, automatic when the scheduled run did."},"prepared_at":{"type":"string","format":"date-time","description":"When the package was prepared."},"prepared_by":{"type":"string","description":"The person's name, or Luceryn (automatic)."},"project":{"type":"object","description":"id, name, code, department, stage, status, start_date, end_date, currency, buildings (each with name, code, campus, address) and link (the project in Luceryn, behind sign-in)."},"cost_summary":{"type":["object","null"],"description":"gross_floor_area_m2, gross_floor_area_sqft and rows; each row has key, label, budget, actual, budget_per_m2, actual_per_m2, budget_per_sqft and actual_per_sqft. The floor area and per-area figures are null unless the workspace's Floor area and cost per square metre switch is on."},"funding":{"type":["array","null"],"items":{"type":"object"},"description":"Funding lines, each with fund, fiscal_year and amount."},"layout":{"type":"array","items":{"type":"object"},"description":"The columns the workspace chose for the asset table, in order: key, header and fixed (a fixed value, when the column has one). Set under Admin, Asset hand-off layout."},"assets":{"type":"array","items":{"type":"object"},"description":"One entry for each asset, ordered by tag. luceryn_asset_id; columns (the row exactly as the files carry it, under the workspace's own headers); record (the same asset under Luceryn's fixed names: tag, name, classification, class_code, category, location, department, attributes, manufacturer, model, serial_number, in_service_date, purchase_date, cost, currency, vendor, warranty_start, warranty_end, warranty_documents, external_ref, link); and warnings (the checks this asset did not pass)."},"documents":{"type":"array","items":{"type":"object"},"description":"The closeout documents: kind, title, system, vendor, status, warranty_start, warranty_end, files (each with name and url) and url (the register entry in Luceryn, behind sign-in)."},"warnings":{"type":"array","items":{"type":"object"},"description":"The checks that did not pass, each with kind (no_classification, no_location, no_cost, no_warranty_document or class_not_mapped), asset_id, tag and message. A warning never stops a package."},"counts":{"type":"object","description":"assets, documents and warnings."}},"required":["schema","handoff_id","trigger","prepared_at","prepared_by","project","cost_summary","funding","layout","assets","documents","warnings","counts"]},"AssetHandoffLatest":{"type":"object","required":["handoff","package"],"properties":{"handoff":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The id of the package in the hand-off log; the same value as package.handoff_id."},"status":{"type":"string","description":"prepared, sent (a webhook delivery or the email notice went out) or acknowledged (a person in Luceryn recorded that the receiving system took it)."},"trigger":{"type":"string","description":"manual or automatic."},"prepared_at":{"type":"string","format":"date-time","description":"When the package was prepared."},"prepared_by":{"type":"string","description":"The person's name, or Luceryn (automatic)."},"assets":{"type":"integer","description":"How many assets the package holds."},"documents":{"type":"integer","description":"How many closeout documents it lists."},"warnings":{"type":"integer","description":"How many checks did not pass."},"sent_at":{"type":["string","null"],"format":"date-time","description":"When it was first announced."},"acknowledged_at":{"type":["string","null"],"format":"date-time","description":"When a person recorded the acknowledgement."},"files":{"type":"array","items":{"type":"object"},"description":"The files of the package and the SHA-256 fingerprint of each. kind is workbook (the Excel file), assets-csv, project-csv, documents-csv or json. The files are downloaded in Luceryn by a signed-in person; this endpoint returns the JSON only."}},"required":["id","status","trigger","prepared_at","prepared_by","assets","documents","warnings","sent_at","acknowledged_at","files"]},"package":{"$ref":"#/components/schemas/AssetHandoffPackage"}}},"FinanceError":{"type":"object","required":["ok","error"],"properties":{"ok":{"type":"boolean","const":false},"error":{"type":"string"},"kind":{"type":"string","description":"Present on the addresses of the other record kinds, once the body could be read."},"batch_id":{"type":"string","description":"Present on a 500 answer."}}},"ErrorMessage":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}},"OkFalseError":{"type":"object","required":["ok","error"],"properties":{"ok":{"type":"boolean","const":false},"error":{"type":"string"}}},"FinanceActualRow":{"type":"object","properties":{"id":{"type":["string","number"],"maxLength":200,"description":"The id of the transaction line. It must be the finance system's own and must never change: it is what stops a record sent twice from being stored twice."},"date":{"type":"string","format":"date","description":"The date the transaction posted."},"amount":{"type":["number","string"],"pattern":"^-?\\d{1,12}(\\.\\d{1,2})?$","description":"The amount in the project's currency. A credit is negative."},"fund":{"type":["string","number"],"maxLength":60,"description":"Fund code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"organization":{"type":["string","number"],"maxLength":60,"description":"Organization code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"account":{"type":["string","number"],"maxLength":60,"description":"Account code. When the project has a cost code with this code, the entry is recorded against it."},"program":{"type":["string","number"],"maxLength":60,"description":"Program code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"activity":{"type":["string","number"],"maxLength":60,"description":"Activity code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"location":{"type":["string","number"],"maxLength":60,"description":"Location code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"project_code":{"type":["string","number"],"maxLength":60,"description":"Project code code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"grant":{"type":["string","number"],"maxLength":60,"description":"Grant code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"description":{"type":"string","maxLength":500,"description":"The transaction's description."},"document":{"type":"string","maxLength":100,"description":"The Banner document number, added to the entry's description."},"reversed":{"type":"boolean","description":"true removes the cost entry (a transaction posted in error). An amount of 0 is not a reversal."}},"required":["id","date","amount"]},"FinanceActualBatch":{"type":"object","properties":{"source":{"type":"string","description":"The sending system. The only value accepted is \"banner\"; it is also the default when the field is left out."},"batch_id":{"type":"string","description":"Your own name for the batch, at most 120 characters. Shown in the run list in Luceryn. When left out, Luceryn names the batch auto- followed by the time it arrived."},"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$","description":"The accounting period the batch belongs to. Kept on the run for reference; it does not change how a row is handled."},"transactions":{"type":"array","maxItems":5000,"items":{"$ref":"#/components/schemas/FinanceActualRow"},"description":"The actuals."}},"required":["transactions"]},"FinanceBudgetRow":{"type":"object","additionalProperties":false,"properties":{"id":{"type":["string","number"],"maxLength":200,"description":"The id of this budget line, for example the fund, organization, account and fiscal year joined together. It must be the finance system's own and must never change: it is what stops a record sent twice from being stored twice."},"fiscal_year":{"type":"string","maxLength":10,"description":"The fiscal year the amount belongs to, as Banner writes it."},"period":{"type":"string","maxLength":10,"description":"The fiscal period, when the budget is held by period."},"adopted":{"type":["number","string"],"pattern":"^-?\\d{1,12}(\\.\\d{1,2})?$","description":"The adopted (original) budget."},"adjusted":{"type":["number","string"],"pattern":"^-?\\d{1,12}(\\.\\d{1,2})?$","description":"The current budget: adopted plus every adjustment to date. This is the figure shown as the Banner budget."},"fund":{"type":["string","number"],"maxLength":60,"description":"Fund code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"organization":{"type":["string","number"],"maxLength":60,"description":"Organization code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"account":{"type":["string","number"],"maxLength":60,"description":"Account code. When the project has a cost code with this code, the budget line is shown against it."},"program":{"type":["string","number"],"maxLength":60,"description":"Program code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"activity":{"type":["string","number"],"maxLength":60,"description":"Activity code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"location":{"type":["string","number"],"maxLength":60,"description":"Location code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"project_code":{"type":["string","number"],"maxLength":60,"description":"Project code code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"grant":{"type":["string","number"],"maxLength":60,"description":"Grant code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"description":{"type":"string","maxLength":500,"description":"Free text shown beside the record."},"removed":{"type":"boolean","description":"true takes the budget line out of Luceryn (for a record that was sent in error). Leave it out otherwise."}},"required":["id"]},"FinanceBudgetBatch":{"type":"object","properties":{"source":{"type":"string","description":"The sending system. The only value accepted is \"banner\"; it is also the default when the field is left out."},"batch_id":{"type":"string","description":"Your own name for the batch, at most 120 characters. Shown in the run list in Luceryn. When left out, Luceryn names the batch auto- followed by the time it arrived."},"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$","description":"The accounting period the batch belongs to. Kept on the run for reference; it does not change how a row is handled."},"kind":{"type":"string","description":"May be left out. When sent it must be budget, the kind this address takes; any other value is refused, so a batch sent to the wrong address is caught. Any other property at the top level is refused too."},"records":{"type":"array","maxItems":5000,"items":{"$ref":"#/components/schemas/FinanceBudgetRow"},"description":"The budgets."}},"required":["records"]},"FinancePurchaseOrderRow":{"type":"object","additionalProperties":false,"properties":{"id":{"type":["string","number"],"maxLength":200,"description":"The id of this purchase order (usually its number; add a suffix when one order is split across projects). It must be the finance system's own and must never change: it is what stops a record sent twice from being stored twice."},"po_number":{"type":"string","maxLength":60,"description":"The purchase order number people know it by."},"vendor_name":{"type":"string","maxLength":200,"description":"The vendor's name."},"vendor_id":{"type":"string","maxLength":60,"description":"The Banner vendor id."},"order_date":{"type":"string","format":"date","description":"The date of the order."},"total":{"type":["number","string"],"pattern":"^-?\\d{1,12}(\\.\\d{1,2})?$","description":"The order total (this project's share when the order is split)."},"currency":{"type":"string","minLength":3,"maxLength":3,"description":"The currency of the amounts, shown beside them. Nothing is converted."},"status":{"type":"string","enum":["open","closed","cancelled"],"description":"Where the order stands."},"lines":{"type":"array","maxItems":200,"items":{"type":"object","additionalProperties":false,"properties":{"item":{"type":"string","maxLength":60,"description":"The line or item number."},"description":{"type":"string","maxLength":300,"description":"What the line is for."},"account":{"type":["string","number"],"maxLength":60,"description":"The account the line is charged to."},"amount":{"type":["number","string"],"pattern":"^-?\\d{1,12}(\\.\\d{1,2})?$","description":"The line amount."}},"required":["amount"]},"description":"Up to 200 lines, each with an amount and optionally an item, a description and an account. JSON only."},"fund":{"type":["string","number"],"maxLength":60,"description":"Fund code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"organization":{"type":["string","number"],"maxLength":60,"description":"Organization code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"account":{"type":["string","number"],"maxLength":60,"description":"Account code. The account of the order as a whole, when it has one."},"program":{"type":["string","number"],"maxLength":60,"description":"Program code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"activity":{"type":["string","number"],"maxLength":60,"description":"Activity code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"location":{"type":["string","number"],"maxLength":60,"description":"Location code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"project_code":{"type":["string","number"],"maxLength":60,"description":"Project code code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"grant":{"type":["string","number"],"maxLength":60,"description":"Grant code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"description":{"type":"string","maxLength":500,"description":"Free text shown beside the record."},"removed":{"type":"boolean","description":"true takes the purchase order out of Luceryn (for a record that was sent in error). Leave it out otherwise."}},"required":["id","po_number","total"]},"FinancePurchaseOrderBatch":{"type":"object","properties":{"source":{"type":"string","description":"The sending system. The only value accepted is \"banner\"; it is also the default when the field is left out."},"batch_id":{"type":"string","description":"Your own name for the batch, at most 120 characters. Shown in the run list in Luceryn. When left out, Luceryn names the batch auto- followed by the time it arrived."},"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$","description":"The accounting period the batch belongs to. Kept on the run for reference; it does not change how a row is handled."},"kind":{"type":"string","description":"May be left out. When sent it must be purchase_order, the kind this address takes; any other value is refused, so a batch sent to the wrong address is caught. Any other property at the top level is refused too."},"records":{"type":"array","maxItems":5000,"items":{"$ref":"#/components/schemas/FinancePurchaseOrderRow"},"description":"The purchase orders."}},"required":["records"]},"FinanceEncumbranceRow":{"type":"object","additionalProperties":false,"properties":{"id":{"type":["string","number"],"maxLength":200,"description":"The id of this encumbrance or commitment line, for example the document number followed by its item and sequence. It must be the finance system's own and must never change: it is what stops a record sent twice from being stored twice."},"document_number":{"type":"string","maxLength":60,"description":"The Banner document the amount is held under (for a purchase order encumbrance, the purchase order number)."},"type":{"type":"string","enum":["purchase_order","requisition","general","labor","memo","travel","contract","other"],"description":"What kind of commitment this is. Left out, it is purchase_order when purchase_order is given and general otherwise."},"purchase_order":{"type":"string","maxLength":60,"description":"The purchase order number, when the commitment belongs to one."},"vendor_name":{"type":"string","maxLength":200,"description":"The vendor's name."},"date":{"type":"string","format":"date","description":"The date the commitment was made."},"original":{"type":["number","string"],"pattern":"^-?\\d{1,12}(\\.\\d{1,2})?$","description":"The amount first committed."},"liquidated":{"type":["number","string"],"pattern":"^-?\\d{1,12}(\\.\\d{1,2})?$","description":"The amount liquidated (paid or released) to date."},"remaining":{"type":["number","string"],"pattern":"^-?\\d{1,12}(\\.\\d{1,2})?$","description":"The open balance, as Banner holds it. This is the figure that counts as committed."},"status":{"type":"string","enum":["open","closed"],"description":"A closed commitment counts as nothing committed, whatever its remaining amount."},"fund":{"type":["string","number"],"maxLength":60,"description":"Fund code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"organization":{"type":["string","number"],"maxLength":60,"description":"Organization code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"account":{"type":["string","number"],"maxLength":60,"description":"Account code. When the project has a cost code with this code, the record is shown against it."},"program":{"type":["string","number"],"maxLength":60,"description":"Program code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"activity":{"type":["string","number"],"maxLength":60,"description":"Activity code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"location":{"type":["string","number"],"maxLength":60,"description":"Location code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"project_code":{"type":["string","number"],"maxLength":60,"description":"Project code code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"grant":{"type":["string","number"],"maxLength":60,"description":"Grant code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"description":{"type":"string","maxLength":500,"description":"Free text shown beside the record."},"removed":{"type":"boolean","description":"true takes the commitment out of Luceryn (for a record that was sent in error). Leave it out otherwise."}},"required":["id","document_number"]},"FinanceEncumbranceBatch":{"type":"object","properties":{"source":{"type":"string","description":"The sending system. The only value accepted is \"banner\"; it is also the default when the field is left out."},"batch_id":{"type":"string","description":"Your own name for the batch, at most 120 characters. Shown in the run list in Luceryn. When left out, Luceryn names the batch auto- followed by the time it arrived."},"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$","description":"The accounting period the batch belongs to. Kept on the run for reference; it does not change how a row is handled."},"kind":{"type":"string","description":"May be left out. When sent it must be encumbrance, the kind this address takes; any other value is refused, so a batch sent to the wrong address is caught. Any other property at the top level is refused too."},"records":{"type":"array","maxItems":5000,"items":{"$ref":"#/components/schemas/FinanceEncumbranceRow"},"description":"The encumbrances."}},"required":["records"]},"FinanceCommitmentRow":{"type":"object","additionalProperties":false,"properties":{"id":{"type":["string","number"],"maxLength":200,"description":"The id of this encumbrance or commitment line, for example the document number followed by its item and sequence. It must be the finance system's own and must never change: it is what stops a record sent twice from being stored twice."},"document_number":{"type":"string","maxLength":60,"description":"The Banner document the amount is held under (for a purchase order encumbrance, the purchase order number)."},"type":{"type":"string","enum":["purchase_order","requisition","general","labor","memo","travel","contract","other"],"description":"What kind of commitment this is. Left out, it is other."},"purchase_order":{"type":"string","maxLength":60,"description":"The purchase order number, when the commitment belongs to one."},"vendor_name":{"type":"string","maxLength":200,"description":"The vendor's name."},"date":{"type":"string","format":"date","description":"The date the commitment was made."},"original":{"type":["number","string"],"pattern":"^-?\\d{1,12}(\\.\\d{1,2})?$","description":"The amount first committed."},"liquidated":{"type":["number","string"],"pattern":"^-?\\d{1,12}(\\.\\d{1,2})?$","description":"The amount liquidated (paid or released) to date."},"remaining":{"type":["number","string"],"pattern":"^-?\\d{1,12}(\\.\\d{1,2})?$","description":"The open balance, as Banner holds it. This is the figure that counts as committed."},"status":{"type":"string","enum":["open","closed"],"description":"A closed commitment counts as nothing committed, whatever its remaining amount."},"fund":{"type":["string","number"],"maxLength":60,"description":"Fund code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"organization":{"type":["string","number"],"maxLength":60,"description":"Organization code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"account":{"type":["string","number"],"maxLength":60,"description":"Account code. When the project has a cost code with this code, the record is shown against it."},"program":{"type":["string","number"],"maxLength":60,"description":"Program code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"activity":{"type":["string","number"],"maxLength":60,"description":"Activity code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"location":{"type":["string","number"],"maxLength":60,"description":"Location code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"project_code":{"type":["string","number"],"maxLength":60,"description":"Project code code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"grant":{"type":["string","number"],"maxLength":60,"description":"Grant code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"description":{"type":"string","maxLength":500,"description":"Free text shown beside the record."},"removed":{"type":"boolean","description":"true takes the commitment out of Luceryn (for a record that was sent in error). Leave it out otherwise."}},"required":["id","document_number"]},"FinanceCommitmentBatch":{"type":"object","properties":{"source":{"type":"string","description":"The sending system. The only value accepted is \"banner\"; it is also the default when the field is left out."},"batch_id":{"type":"string","description":"Your own name for the batch, at most 120 characters. Shown in the run list in Luceryn. When left out, Luceryn names the batch auto- followed by the time it arrived."},"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$","description":"The accounting period the batch belongs to. Kept on the run for reference; it does not change how a row is handled."},"kind":{"type":"string","description":"May be left out. When sent it must be commitment, the kind this address takes; any other value is refused, so a batch sent to the wrong address is caught. Any other property at the top level is refused too."},"records":{"type":"array","maxItems":5000,"items":{"$ref":"#/components/schemas/FinanceCommitmentRow"},"description":"The other commitments."}},"required":["records"]},"FinanceVendorPaymentRow":{"type":"object","additionalProperties":false,"properties":{"id":{"type":["string","number"],"maxLength":200,"description":"The id of this payment line, for example the invoice document and its sequence. It must be the finance system's own and must never change: it is what stops a record sent twice from being stored twice."},"invoice_number":{"type":"string","maxLength":60,"description":"The invoice the payment settles."},"vendor_name":{"type":"string","maxLength":200,"description":"The vendor's name."},"vendor_id":{"type":"string","maxLength":60,"description":"The Banner vendor id."},"payment_date":{"type":"string","format":"date","description":"The date the payment was made."},"amount":{"type":["number","string"],"pattern":"^-?\\d{1,12}(\\.\\d{1,2})?$","description":"The amount paid."},"currency":{"type":"string","minLength":3,"maxLength":3,"description":"The currency of the amount, shown beside it. Nothing is converted."},"payment_reference":{"type":"string","maxLength":60,"description":"The cheque number or the EFT reference."},"payment_method":{"type":"string","enum":["cheque","eft","wire","card","other"],"description":"How it was paid."},"purchase_order":{"type":"string","maxLength":60,"description":"The purchase order the payment is against."},"transaction_id":{"type":"string","maxLength":200,"description":"The id of the transaction, as sent to the actuals address, that this payment was posted as. It links the two so the payment is seen as part of spent, not in addition to it."},"status":{"type":"string","enum":["paid","void"],"description":"A void payment stays listed and is left out of the paid total."},"fund":{"type":["string","number"],"maxLength":60,"description":"Fund code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"organization":{"type":["string","number"],"maxLength":60,"description":"Organization code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"account":{"type":["string","number"],"maxLength":60,"description":"Account code. The account the payment was charged to."},"program":{"type":["string","number"],"maxLength":60,"description":"Program code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"activity":{"type":["string","number"],"maxLength":60,"description":"Activity code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"location":{"type":["string","number"],"maxLength":60,"description":"Location code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"project_code":{"type":["string","number"],"maxLength":60,"description":"Project code code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"grant":{"type":["string","number"],"maxLength":60,"description":"Grant code. Send every element your projects are keyed by: a record is placed on the one project whose finance codes it agrees with."},"description":{"type":"string","maxLength":500,"description":"Free text shown beside the record."},"removed":{"type":"boolean","description":"true takes the payment out of Luceryn (for a record that was sent in error). Leave it out otherwise."}},"required":["id","payment_date","amount"]},"FinanceVendorPaymentBatch":{"type":"object","properties":{"source":{"type":"string","description":"The sending system. The only value accepted is \"banner\"; it is also the default when the field is left out."},"batch_id":{"type":"string","description":"Your own name for the batch, at most 120 characters. Shown in the run list in Luceryn. When left out, Luceryn names the batch auto- followed by the time it arrived."},"period":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$","description":"The accounting period the batch belongs to. Kept on the run for reference; it does not change how a row is handled."},"kind":{"type":"string","description":"May be left out. When sent it must be vendor_payment, the kind this address takes; any other value is refused, so a batch sent to the wrong address is caught. Any other property at the top level is refused too."},"records":{"type":"array","maxItems":5000,"items":{"$ref":"#/components/schemas/FinanceVendorPaymentRow"},"description":"The vendor payments."}},"required":["records"]},"Webhook_project_created":{"type":"object","properties":{"event":{"type":"string","const":"project.created"},"delivered_at":{"type":"string","format":"date-time","description":"When Luceryn sent the delivery."},"payload":{"type":"object","properties":{"project_id":{"type":"string","format":"uuid","description":"The new project's id."},"name":{"type":"string","description":"The project's name."},"short_code":{"type":["string","null"],"description":"The project's short code."},"department":{"type":["string","null"],"description":"The department named on the project."},"methodology":{"type":["string","null"],"description":"The delivery method chosen."},"priority":{"type":["string","null"],"description":"low, medium, high or critical."},"start_date":{"type":["string","null"],"format":"date","description":"Planned start."},"end_date":{"type":["string","null"],"format":"date","description":"Planned finish."},"overall_status":{"type":["string","null"],"description":"The project's overall status."},"created_by":{"type":"string","format":"uuid","description":"The id of the person who created it."}},"required":["project_id","name","short_code","department","methodology","priority","start_date","end_date","overall_status","created_by"]},"test":{"type":"boolean","description":"true only on a delivery sent by the Test button on the admin page. A test delivery is a project.created event with made-up values."}},"required":["event","delivered_at","payload"]},"Webhook_status_report_submitted":{"type":"object","properties":{"event":{"type":"string","const":"status_report.submitted"},"delivered_at":{"type":"string","format":"date-time","description":"When Luceryn sent the delivery."},"payload":{"type":"object","properties":{"report_id":{"type":"string","format":"uuid","description":"The status report's id."},"project_label":{"type":"string","description":"The project's short code, or its name when it has no code."},"reporting_period":{"type":["string","null"],"description":"The period the report covers, as written on the report."},"overall_status":{"type":["string","null"],"description":"The report's overall status, for example on_track, at_risk or off_track."},"url":{"type":"string","description":"Address of the report in Luceryn."}},"required":["report_id","project_label","reporting_period","overall_status","url"]},"test":{"type":"boolean","description":"true only on a delivery sent by the Test button on the admin page. A test delivery is a project.created event with made-up values."}},"required":["event","delivered_at","payload"]},"Webhook_status_report_approved":{"type":"object","properties":{"event":{"type":"string","const":"status_report.approved"},"delivered_at":{"type":"string","format":"date-time","description":"When Luceryn sent the delivery."},"payload":{"type":"object","properties":{"report_id":{"type":"string","format":"uuid","description":"The status report's id."},"project_label":{"type":"string","description":"The project's short code, or its name when it has no code."},"reporting_period":{"type":["string","null"],"description":"The period the report covers, as written on the report."},"overall_status":{"type":["string","null"],"description":"The report's overall status, for example on_track, at_risk or off_track."},"url":{"type":"string","description":"Address of the report in Luceryn."}},"required":["report_id","project_label","reporting_period","overall_status","url"]},"test":{"type":"boolean","description":"true only on a delivery sent by the Test button on the admin page. A test delivery is a project.created event with made-up values."}},"required":["event","delivered_at","payload"]},"Webhook_status_report_published":{"type":"object","properties":{"event":{"type":"string","const":"status_report.published"},"delivered_at":{"type":"string","format":"date-time","description":"When Luceryn sent the delivery."},"payload":{"type":"object","properties":{"report_id":{"type":"string","format":"uuid","description":"The status report's id."},"project_label":{"type":"string","description":"The project's short code, or its name when it has no code."},"reporting_period":{"type":["string","null"],"description":"The period the report covers, as written on the report."},"overall_status":{"type":["string","null"],"description":"The report's overall status, for example on_track, at_risk or off_track."},"url":{"type":"string","description":"Address of the report in Luceryn."}},"required":["report_id","project_label","reporting_period","overall_status","url"]},"test":{"type":"boolean","description":"true only on a delivery sent by the Test button on the admin page. A test delivery is a project.created event with made-up values."}},"required":["event","delivered_at","payload"]},"Webhook_raid_created":{"type":"object","properties":{"event":{"type":"string","const":"raid.created"},"delivered_at":{"type":"string","format":"date-time","description":"When Luceryn sent the delivery."},"payload":{"type":"object","properties":{"project_label":{"type":"string","description":"The project's short code, or its name when it has no code."},"raid_type":{"type":"string","description":"risk, action, issue or decision."},"ref_id":{"type":"string","description":"The item's reference in the log."},"description":{"type":"string","description":"The item's text."},"severity":{"type":["string","null"],"description":"The item's severity, when it has one."},"url":{"type":"string","description":"Address of the project's RAID log in Luceryn."}},"required":["project_label","raid_type","ref_id","description","severity","url"]},"test":{"type":"boolean","description":"true only on a delivery sent by the Test button on the admin page. A test delivery is a project.created event with made-up values."}},"required":["event","delivered_at","payload"]},"Webhook_document_approved":{"type":"object","properties":{"event":{"type":"string","const":"document.approved"},"delivered_at":{"type":"string","format":"date-time","description":"When Luceryn sent the delivery."},"payload":{"type":"object","properties":{"document_id":{"type":"string","format":"uuid","description":"The document's id."},"title":{"type":"string","description":"The document's title."},"project_label":{"type":"string","description":"The project's short code, or its name when it has no code."},"version_label":{"type":"string","description":"The version that was approved."},"url":{"type":"string","description":"Address of the document in Luceryn."}},"required":["document_id","title","project_label","version_label","url"]},"test":{"type":"boolean","description":"true only on a delivery sent by the Test button on the admin page. A test delivery is a project.created event with made-up values."}},"required":["event","delivered_at","payload"]},"Webhook_deal_created":{"type":"object","properties":{"event":{"type":"string","const":"deal.created"},"delivered_at":{"type":"string","format":"date-time","description":"When Luceryn sent the delivery."},"payload":{"type":"object","properties":{"deal_name":{"type":"string","description":"The deal's name."},"value_label":{"type":"string","description":"The deal's value with its currency, as text. Left out when the deal has no value."},"url":{"type":"string","description":"Address of the deal in Luceryn."}},"required":["deal_name","url"]},"test":{"type":"boolean","description":"true only on a delivery sent by the Test button on the admin page. A test delivery is a project.created event with made-up values."}},"required":["event","delivered_at","payload"]},"Webhook_deal_stage_changed":{"type":"object","properties":{"event":{"type":"string","const":"deal.stage_changed"},"delivered_at":{"type":"string","format":"date-time","description":"When Luceryn sent the delivery."},"payload":{"type":"object","properties":{"deal_name":{"type":"string","description":"The deal's name."},"to_stage":{"type":"string","description":"The name of the stage the deal moved to."},"value_label":{"type":"string","description":"The deal's value with its currency, as text. Left out when the deal has no value."},"url":{"type":"string","description":"Address of the deal in Luceryn."}},"required":["deal_name","to_stage","url"]},"test":{"type":"boolean","description":"true only on a delivery sent by the Test button on the admin page. A test delivery is a project.created event with made-up values."}},"required":["event","delivered_at","payload"]},"Webhook_deal_won":{"type":"object","properties":{"event":{"type":"string","const":"deal.won"},"delivered_at":{"type":"string","format":"date-time","description":"When Luceryn sent the delivery."},"payload":{"type":"object","properties":{"deal_name":{"type":"string","description":"The deal's name."},"account":{"type":"string","description":"The client's name, when the deal has a client."},"value_label":{"type":"string","description":"The deal's value with its currency, as text. Left out when the deal has no value."},"reason":{"type":"string","description":"Left out for a won deal."},"url":{"type":"string","description":"Address of the deal in Luceryn."}},"required":["deal_name","url"]},"test":{"type":"boolean","description":"true only on a delivery sent by the Test button on the admin page. A test delivery is a project.created event with made-up values."}},"required":["event","delivered_at","payload"]},"Webhook_deal_lost":{"type":"object","properties":{"event":{"type":"string","const":"deal.lost"},"delivered_at":{"type":"string","format":"date-time","description":"When Luceryn sent the delivery."},"payload":{"type":"object","properties":{"deal_name":{"type":"string","description":"The deal's name."},"account":{"type":"string","description":"The client's name, when the deal has a client."},"value_label":{"type":"string","description":"The deal's value with its currency, as text. Left out when the deal has no value."},"reason":{"type":"string","description":"The reason given for the loss."},"url":{"type":"string","description":"Address of the deal in Luceryn."}},"required":["deal_name","url"]},"test":{"type":"boolean","description":"true only on a delivery sent by the Test button on the admin page. A test delivery is a project.created event with made-up values."}},"required":["event","delivered_at","payload"]},"Webhook_project_asset_handoff_prepared":{"type":"object","properties":{"event":{"type":"string","const":"project.asset_handoff.prepared"},"delivered_at":{"type":"string","format":"date-time","description":"When Luceryn sent the delivery."},"payload":{"type":"object","properties":{"schema":{"type":"string","description":"The name and version of this layout."},"handoff_id":{"type":"string","format":"uuid","description":"The id of this package in Luceryn's hand-off log. Use it to recognise a package you have already loaded."},"trigger":{"type":"string","description":"manual when a person prepared it, automatic when the scheduled run did."},"prepared_at":{"type":"string","format":"date-time","description":"When the package was prepared."},"prepared_by":{"type":"string","description":"The person's name, or Luceryn (automatic)."},"project":{"type":"object","description":"id, name, code, department, stage, status, start_date, end_date, currency, buildings (each with name, code, campus, address) and link (the project in Luceryn, behind sign-in)."},"cost_summary":{"type":["object","null"],"description":"gross_floor_area_m2, gross_floor_area_sqft and rows; each row has key, label, budget, actual, budget_per_m2, actual_per_m2, budget_per_sqft and actual_per_sqft. The floor area and per-area figures are null unless the workspace's Floor area and cost per square metre switch is on."},"funding":{"type":["array","null"],"items":{"type":"object"},"description":"Funding lines, each with fund, fiscal_year and amount."},"layout":{"type":"array","items":{"type":"object"},"description":"The columns the workspace chose for the asset table, in order: key, header and fixed (a fixed value, when the column has one). Set under Admin, Asset hand-off layout."},"assets":{"type":"array","items":{"type":"object"},"description":"One entry for each asset, ordered by tag. luceryn_asset_id; columns (the row exactly as the files carry it, under the workspace's own headers); record (the same asset under Luceryn's fixed names: tag, name, classification, class_code, category, location, department, attributes, manufacturer, model, serial_number, in_service_date, purchase_date, cost, currency, vendor, warranty_start, warranty_end, warranty_documents, external_ref, link); and warnings (the checks this asset did not pass)."},"documents":{"type":"array","items":{"type":"object"},"description":"The closeout documents: kind, title, system, vendor, status, warranty_start, warranty_end, files (each with name and url) and url (the register entry in Luceryn, behind sign-in)."},"warnings":{"type":"array","items":{"type":"object"},"description":"The checks that did not pass, each with kind (no_classification, no_location, no_cost, no_warranty_document or class_not_mapped), asset_id, tag and message. A warning never stops a package."},"counts":{"type":"object","description":"assets, documents and warnings."},"project_label":{"type":"string","description":"The project's short code, or its name when it has no code. Empty text when it has neither."},"url":{"type":"string","description":"Address of the project's Asset hand-off page in Luceryn (behind sign-in)."},"files":{"type":"array","items":{"type":"object"},"description":"The files of the package as kept in Luceryn: kind is workbook (the Excel file), assets-csv, project-csv, documents-csv or json; sha256 is the fingerprint of each file. The files themselves are downloaded in Luceryn by a signed-in person."},"latest_api":{"type":"string","description":"The address that returns the latest package of this project to a reporting token (see Other interfaces)."}},"required":["schema","handoff_id","trigger","prepared_at","prepared_by","project","cost_summary","funding","layout","assets","documents","warnings","counts","project_label","url","files","latest_api"]},"test":{"type":"boolean","description":"true only on a delivery sent by the Test button on the admin page. A test delivery is a project.created event with made-up values."}},"required":["event","delivered_at","payload"]}}}}