{"openapi":"3.1.0","info":{"title":"MiniSuite","description":"Mock NetSuite REST API for the Ridgeline Foods freight-accrual demo (Finance Engineer Cup). The base path and payload shapes mirror real NetSuite REST so a client can swap host + token to repoint at a real account.","version":"1.0.0"},"paths":{"/services/rest/auth/token":{"post":{"tags":["auth"],"summary":"Issue Token","description":"Stub OAuth2 client-credentials token endpoint. Returns the configured dev token.","operationId":"issue_token_services_rest_auth_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Issue Token Services Rest Auth Token Post"}}}}}}},"/services/rest/record/v1/journalEntry":{"get":{"tags":["journalEntry"],"summary":"List Journal Entries","operationId":"list_journal_entries_services_rest_record_v1_journalEntry_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["journalEntry"],"summary":"Create Journal Entry","operationId":"create_journal_entry_services_rest_record_v1_journalEntry_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/services/rest/record/v1/journalEntry/{rec_id}":{"get":{"tags":["journalEntry"],"summary":"Get Journal Entry","operationId":"get_journal_entry_services_rest_record_v1_journalEntry__rec_id__get","parameters":[{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}},{"name":"expandSubResources","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Expandsubresources"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["journalEntry"],"summary":"Patch Journal Entry","operationId":"patch_journal_entry_services_rest_record_v1_journalEntry__rec_id__patch","parameters":[{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["journalEntry"],"summary":"Delete Journal Entry","operationId":"delete_journal_entry_services_rest_record_v1_journalEntry__rec_id__delete","parameters":[{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/services/rest/record/v1/vendorBill":{"get":{"tags":["vendorBill"],"summary":"List Vendor Bills","operationId":"list_vendor_bills_services_rest_record_v1_vendorBill_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["vendorBill"],"summary":"Create Vendor Bill","operationId":"create_vendor_bill_services_rest_record_v1_vendorBill_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/services/rest/record/v1/vendorBill/{rec_id}":{"get":{"tags":["vendorBill"],"summary":"Get Vendor Bill","operationId":"get_vendor_bill_services_rest_record_v1_vendorBill__rec_id__get","parameters":[{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["vendorBill"],"summary":"Patch Vendor Bill","operationId":"patch_vendor_bill_services_rest_record_v1_vendorBill__rec_id__patch","parameters":[{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["vendorBill"],"summary":"Delete Vendor Bill","operationId":"delete_vendor_bill_services_rest_record_v1_vendorBill__rec_id__delete","parameters":[{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/services/rest/record/v1/{record_type}":{"get":{"tags":["records"],"summary":"List Records","operationId":"list_records_services_rest_record_v1__record_type__get","parameters":[{"name":"record_type","in":"path","required":true,"schema":{"type":"string","title":"Record Type"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["records"],"summary":"Create Record","operationId":"create_record_services_rest_record_v1__record_type__post","parameters":[{"name":"record_type","in":"path","required":true,"schema":{"type":"string","title":"Record Type"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/services/rest/record/v1/{record_type}/{rec_id}":{"get":{"tags":["records"],"summary":"Get Record","operationId":"get_record_services_rest_record_v1__record_type___rec_id__get","parameters":[{"name":"record_type","in":"path","required":true,"schema":{"type":"string","title":"Record Type"}},{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["records"],"summary":"Patch Record","operationId":"patch_record_services_rest_record_v1__record_type___rec_id__patch","parameters":[{"name":"record_type","in":"path","required":true,"schema":{"type":"string","title":"Record Type"}},{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["records"],"summary":"Delete Record","operationId":"delete_record_services_rest_record_v1__record_type___rec_id__delete","parameters":[{"name":"record_type","in":"path","required":true,"schema":{"type":"string","title":"Record Type"}},{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/services/rest/query/v1/suiteql":{"post":{"tags":["suiteql"],"summary":"Suiteql","operationId":"suiteql_services_rest_query_v1_suiteql_post","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"Prefer","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefer"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"tags":["ui"],"summary":"Home","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/ui/journalEntries":{"get":{"tags":["ui"],"summary":"Ui Je List","operationId":"ui_je_list_ui_journalEntries_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/ui/journalEntries/new":{"get":{"tags":["ui"],"summary":"Ui Je New","operationId":"ui_je_new_ui_journalEntries_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/ui/journalEntries/{rec_id}":{"get":{"tags":["ui"],"summary":"Ui Je Detail","operationId":"ui_je_detail_ui_journalEntries__rec_id__get","parameters":[{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/accounts":{"get":{"tags":["ui"],"summary":"Ui Accounts","operationId":"ui_accounts_ui_accounts_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/ui/accounts/new":{"get":{"tags":["ui"],"summary":"Ui Accounts New","operationId":"ui_accounts_new_ui_accounts_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/ui/accounts/{rec_id}":{"get":{"tags":["ui"],"summary":"Ui Account Detail","operationId":"ui_account_detail_ui_accounts__rec_id__get","parameters":[{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/vendors":{"get":{"tags":["ui"],"summary":"Ui Vendors","operationId":"ui_vendors_ui_vendors_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/ui/vendors/new":{"get":{"tags":["ui"],"summary":"Ui Vendors New","operationId":"ui_vendors_new_ui_vendors_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/ui/vendors/{rec_id}":{"get":{"tags":["ui"],"summary":"Ui Vendor Detail","operationId":"ui_vendor_detail_ui_vendors__rec_id__get","parameters":[{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/vendorBills":{"get":{"tags":["ui"],"summary":"Ui Vendor Bills","operationId":"ui_vendor_bills_ui_vendorBills_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/ui/vendorBills/{rec_id}":{"get":{"tags":["ui"],"summary":"Ui Vendor Bill Detail","operationId":"ui_vendor_bill_detail_ui_vendorBills__rec_id__get","parameters":[{"name":"rec_id","in":"path","required":true,"schema":{"type":"integer","title":"Rec Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/accountingPeriods":{"get":{"tags":["ui"],"summary":"Ui Periods","operationId":"ui_periods_ui_accountingPeriods_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}