propertyware 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +15 -3
  3. data/DOCS.md +15 -5
  4. data/Gemfile.lock +1 -1
  5. data/bin/config.yml +1 -1
  6. data/bin/propertyware.json +16549 -1
  7. data/docs/AutoPayment.md +2 -0
  8. data/docs/Charge.md +4 -2
  9. data/docs/{CustomFieldDefinitionsApi.md → CustomFieldFieldsApi.md} +5 -5
  10. data/docs/Document.md +7 -7
  11. data/docs/DocumentsApi.md +86 -2
  12. data/docs/Lease.md +12 -6
  13. data/docs/LeaseStatus.md +28 -0
  14. data/docs/LeasesApi.md +79 -0
  15. data/docs/Note.md +9 -3
  16. data/docs/Prospect.md +4 -0
  17. data/docs/ProspectContact.md +30 -0
  18. data/docs/ProspectStatus.md +24 -0
  19. data/docs/ProspectsApi.md +79 -0
  20. data/docs/SaveContact.md +1 -1
  21. data/docs/SaveLease.md +16 -6
  22. data/docs/SaveVendor.md +31 -1
  23. data/docs/SaveWorkOrder.md +13 -1
  24. data/docs/UpdateDocument.md +24 -0
  25. data/docs/Vendor.md +18 -0
  26. data/docs/WorkOrder.md +8 -0
  27. data/docs/WorkOrdersApi.md +2 -2
  28. data/lib/propertyware/api/accounting_api.rb +1 -1
  29. data/lib/propertyware/api/bills_api.rb +1 -1
  30. data/lib/propertyware/api/buildings_api.rb +1 -1
  31. data/lib/propertyware/api/contacts_api.rb +1 -1
  32. data/lib/propertyware/api/{custom_field_definitions_api.rb → custom_field_fields_api.rb} +6 -6
  33. data/lib/propertyware/api/documents_api.rb +77 -3
  34. data/lib/propertyware/api/health_check_api.rb +1 -1
  35. data/lib/propertyware/api/inspections_api.rb +1 -1
  36. data/lib/propertyware/api/leases_api.rb +58 -1
  37. data/lib/propertyware/api/portfolios_api.rb +1 -1
  38. data/lib/propertyware/api/prospects_api.rb +58 -1
  39. data/lib/propertyware/api/units_api.rb +1 -1
  40. data/lib/propertyware/api/vendors_api.rb +1 -1
  41. data/lib/propertyware/api/work_orders_api.rb +1 -1
  42. data/lib/propertyware/api_client.rb +1 -1
  43. data/lib/propertyware/api_error.rb +1 -1
  44. data/lib/propertyware/configuration.rb +1 -1
  45. data/lib/propertyware/models/account.rb +1 -1
  46. data/lib/propertyware/models/address.rb +1 -1
  47. data/lib/propertyware/models/amenity.rb +1 -1
  48. data/lib/propertyware/models/auto_journal_entry.rb +35 -1
  49. data/lib/propertyware/models/auto_payment.rb +46 -2
  50. data/lib/propertyware/models/bank.rb +1 -1
  51. data/lib/propertyware/models/bank_deposit.rb +1 -1
  52. data/lib/propertyware/models/basic_vendor.rb +1 -1
  53. data/lib/propertyware/models/bill.rb +1 -1
  54. data/lib/propertyware/models/bill_paid.rb +1 -1
  55. data/lib/propertyware/models/bill_pay.rb +1 -1
  56. data/lib/propertyware/models/bill_payment.rb +1 -1
  57. data/lib/propertyware/models/bill_split.rb +1 -1
  58. data/lib/propertyware/models/building.rb +1 -1
  59. data/lib/propertyware/models/campaign.rb +1 -1
  60. data/lib/propertyware/models/campaign_source.rb +1 -1
  61. data/lib/propertyware/models/charge.rb +48 -4
  62. data/lib/propertyware/models/charge_tx.rb +1 -1
  63. data/lib/propertyware/models/check.rb +1 -1
  64. data/lib/propertyware/models/check_split.rb +1 -1
  65. data/lib/propertyware/models/comment.rb +1 -1
  66. data/lib/propertyware/models/contact.rb +1 -1
  67. data/lib/propertyware/models/conversation.rb +1 -1
  68. data/lib/propertyware/models/credit_card_account.rb +1 -1
  69. data/lib/propertyware/models/credit_memo.rb +1 -1
  70. data/lib/propertyware/models/current_asset.rb +1 -1
  71. data/lib/propertyware/models/current_liability.rb +1 -1
  72. data/lib/propertyware/models/custom_field.rb +1 -1
  73. data/lib/propertyware/models/custom_field_definition.rb +1 -1
  74. data/lib/propertyware/models/discount.rb +1 -1
  75. data/lib/propertyware/models/document.rb +35 -35
  76. data/lib/propertyware/models/entry.rb +1 -1
  77. data/lib/propertyware/models/equity.rb +1 -1
  78. data/lib/propertyware/models/error_response.rb +1 -1
  79. data/lib/propertyware/models/expense.rb +1 -1
  80. data/lib/propertyware/models/gl_item.rb +1 -1
  81. data/lib/propertyware/models/income.rb +1 -1
  82. data/lib/propertyware/models/inspection.rb +1 -1
  83. data/lib/propertyware/models/inspection_area.rb +1 -1
  84. data/lib/propertyware/models/inspection_item.rb +1 -1
  85. data/lib/propertyware/models/journal_entry.rb +1 -1
  86. data/lib/propertyware/models/journal_entry_split.rb +1 -1
  87. data/lib/propertyware/models/journal_entry_split_response.rb +1 -1
  88. data/lib/propertyware/models/late_fee_rule.rb +1 -1
  89. data/lib/propertyware/models/lease.rb +38 -8
  90. data/lib/propertyware/models/lease_clause.rb +1 -1
  91. data/lib/propertyware/models/lease_contact.rb +1 -1
  92. data/lib/propertyware/models/lease_status.rb +263 -0
  93. data/lib/propertyware/models/management_fee.rb +1 -1
  94. data/lib/propertyware/models/management_settings.rb +1 -1
  95. data/lib/propertyware/models/marketing.rb +1 -1
  96. data/lib/propertyware/models/non_current_asset.rb +1 -1
  97. data/lib/propertyware/models/non_current_liability.rb +1 -1
  98. data/lib/propertyware/models/non_operating_expense.rb +1 -1
  99. data/lib/propertyware/models/non_operating_inome.rb +1 -1
  100. data/lib/propertyware/models/note.rb +45 -15
  101. data/lib/propertyware/models/owner.rb +1 -1
  102. data/lib/propertyware/models/owner_contribution.rb +1 -1
  103. data/lib/propertyware/models/owner_draw.rb +1 -1
  104. data/lib/propertyware/models/payment.rb +1 -1
  105. data/lib/propertyware/models/payment_charge.rb +1 -1
  106. data/lib/propertyware/models/portfolio.rb +1 -1
  107. data/lib/propertyware/models/property_manager.rb +1 -1
  108. data/lib/propertyware/models/prospect.rb +24 -2
  109. data/lib/propertyware/models/prospect_contact.rb +279 -0
  110. data/lib/propertyware/models/prospect_status.rb +249 -0
  111. data/lib/propertyware/models/refund.rb +1 -1
  112. data/lib/propertyware/models/response_entity.rb +1 -1
  113. data/lib/propertyware/models/restapi_bulk_error_response.rb +1 -1
  114. data/lib/propertyware/models/restapi_bulk_success_response.rb +1 -1
  115. data/lib/propertyware/models/restapi_error.rb +1 -1
  116. data/lib/propertyware/models/save_account.rb +1 -1
  117. data/lib/propertyware/models/save_address.rb +1 -1
  118. data/lib/propertyware/models/save_adjustment.rb +1 -1
  119. data/lib/propertyware/models/save_auto_charge.rb +1 -1
  120. data/lib/propertyware/models/save_bank_deposit.rb +1 -1
  121. data/lib/propertyware/models/save_bill.rb +1 -1
  122. data/lib/propertyware/models/save_bill_payment.rb +1 -1
  123. data/lib/propertyware/models/save_bill_split.rb +1 -1
  124. data/lib/propertyware/models/save_building.rb +1 -1
  125. data/lib/propertyware/models/save_charge.rb +1 -1
  126. data/lib/propertyware/models/save_check.rb +1 -1
  127. data/lib/propertyware/models/save_check_split.rb +1 -1
  128. data/lib/propertyware/models/save_comment.rb +1 -1
  129. data/lib/propertyware/models/save_contact.rb +250 -2
  130. data/lib/propertyware/models/save_conversation.rb +1 -1
  131. data/lib/propertyware/models/save_credit.rb +1 -1
  132. data/lib/propertyware/models/save_discount.rb +1 -1
  133. data/lib/propertyware/models/save_journal_entry_split.rb +1 -1
  134. data/lib/propertyware/models/save_lease.rb +58 -8
  135. data/lib/propertyware/models/save_lease_journal_entry.rb +1 -1
  136. data/lib/propertyware/models/save_owner.rb +1 -1
  137. data/lib/propertyware/models/save_owner_contribution.rb +1 -1
  138. data/lib/propertyware/models/save_owner_draw.rb +1 -1
  139. data/lib/propertyware/models/save_payment.rb +1 -1
  140. data/lib/propertyware/models/save_portfolio.rb +1 -1
  141. data/lib/propertyware/models/save_prospect.rb +1 -1
  142. data/lib/propertyware/models/save_prospect_contact.rb +1 -1
  143. data/lib/propertyware/models/save_refund.rb +1 -1
  144. data/lib/propertyware/models/save_unit.rb +1 -1
  145. data/lib/propertyware/models/save_vendor.rb +187 -3
  146. data/lib/propertyware/models/save_work_order.rb +79 -2
  147. data/lib/propertyware/models/save_work_order_task.rb +1 -1
  148. data/lib/propertyware/models/split_paid.rb +1 -1
  149. data/lib/propertyware/models/split_pay.rb +1 -1
  150. data/lib/propertyware/models/task.rb +1 -1
  151. data/lib/propertyware/models/transaction.rb +1 -1
  152. data/lib/propertyware/models/unit.rb +1 -1
  153. data/lib/propertyware/models/update_document.rb +254 -0
  154. data/lib/propertyware/models/update_lease_journal_entry.rb +1 -1
  155. data/lib/propertyware/models/vendor.rb +92 -2
  156. data/lib/propertyware/models/work_order.rb +54 -2
  157. data/lib/propertyware/version.rb +2 -2
  158. data/lib/propertyware.rb +6 -2
  159. data/propertyware.gemspec +1 -1
  160. data/spec/api/accounting_api_spec.rb +1 -1
  161. data/spec/api/bills_api_spec.rb +1 -1
  162. data/spec/api/buildings_api_spec.rb +1 -1
  163. data/spec/api/contacts_api_spec.rb +1 -1
  164. data/spec/api/{custom_field_definitions_api_spec.rb → custom_field_fields_api_spec.rb} +7 -7
  165. data/spec/api/documents_api_spec.rb +15 -2
  166. data/spec/api/health_check_api_spec.rb +1 -1
  167. data/spec/api/inspections_api_spec.rb +1 -1
  168. data/spec/api/leases_api_spec.rb +12 -1
  169. data/spec/api/portfolios_api_spec.rb +1 -1
  170. data/spec/api/prospects_api_spec.rb +12 -1
  171. data/spec/api/units_api_spec.rb +1 -1
  172. data/spec/api/vendors_api_spec.rb +1 -1
  173. data/spec/api/work_orders_api_spec.rb +1 -1
  174. data/spec/api_client_spec.rb +1 -1
  175. data/spec/configuration_spec.rb +1 -1
  176. data/spec/models/account_spec.rb +1 -1
  177. data/spec/models/address_spec.rb +1 -1
  178. data/spec/models/amenity_spec.rb +1 -1
  179. data/spec/models/auto_journal_entry_spec.rb +5 -1
  180. data/spec/models/auto_payment_spec.rb +11 -1
  181. data/spec/models/bank_deposit_spec.rb +1 -1
  182. data/spec/models/bank_spec.rb +1 -1
  183. data/spec/models/basic_vendor_spec.rb +1 -1
  184. data/spec/models/bill_paid_spec.rb +1 -1
  185. data/spec/models/bill_pay_spec.rb +1 -1
  186. data/spec/models/bill_payment_spec.rb +1 -1
  187. data/spec/models/bill_spec.rb +1 -1
  188. data/spec/models/bill_split_spec.rb +1 -1
  189. data/spec/models/building_spec.rb +1 -1
  190. data/spec/models/campaign_source_spec.rb +1 -1
  191. data/spec/models/campaign_spec.rb +1 -1
  192. data/spec/models/charge_spec.rb +11 -1
  193. data/spec/models/charge_tx_spec.rb +1 -1
  194. data/spec/models/check_spec.rb +1 -1
  195. data/spec/models/check_split_spec.rb +1 -1
  196. data/spec/models/comment_spec.rb +1 -1
  197. data/spec/models/contact_spec.rb +1 -1
  198. data/spec/models/conversation_spec.rb +1 -1
  199. data/spec/models/credit_card_account_spec.rb +1 -1
  200. data/spec/models/credit_memo_spec.rb +1 -1
  201. data/spec/models/current_asset_spec.rb +1 -1
  202. data/spec/models/current_liability_spec.rb +1 -1
  203. data/spec/models/custom_field_definition_spec.rb +1 -1
  204. data/spec/models/custom_field_spec.rb +1 -1
  205. data/spec/models/discount_spec.rb +1 -1
  206. data/spec/models/document_spec.rb +7 -7
  207. data/spec/models/entry_spec.rb +1 -1
  208. data/spec/models/equity_spec.rb +1 -1
  209. data/spec/models/error_response_spec.rb +1 -1
  210. data/spec/models/expense_spec.rb +1 -1
  211. data/spec/models/gl_item_spec.rb +1 -1
  212. data/spec/models/income_spec.rb +1 -1
  213. data/spec/models/inspection_area_spec.rb +1 -1
  214. data/spec/models/inspection_item_spec.rb +1 -1
  215. data/spec/models/inspection_spec.rb +1 -1
  216. data/spec/models/journal_entry_spec.rb +1 -1
  217. data/spec/models/journal_entry_split_response_spec.rb +1 -1
  218. data/spec/models/journal_entry_split_spec.rb +1 -1
  219. data/spec/models/late_fee_rule_spec.rb +1 -1
  220. data/spec/models/lease_clause_spec.rb +1 -1
  221. data/spec/models/lease_contact_spec.rb +1 -1
  222. data/spec/models/lease_spec.rb +19 -1
  223. data/spec/models/lease_status_spec.rb +64 -0
  224. data/spec/models/management_fee_spec.rb +1 -1
  225. data/spec/models/management_settings_spec.rb +1 -1
  226. data/spec/models/marketing_spec.rb +1 -1
  227. data/spec/models/non_current_asset_spec.rb +1 -1
  228. data/spec/models/non_current_liability_spec.rb +1 -1
  229. data/spec/models/non_operating_expense_spec.rb +1 -1
  230. data/spec/models/non_operating_inome_spec.rb +1 -1
  231. data/spec/models/note_spec.rb +22 -4
  232. data/spec/models/owner_contribution_spec.rb +1 -1
  233. data/spec/models/owner_draw_spec.rb +1 -1
  234. data/spec/models/owner_spec.rb +1 -1
  235. data/spec/models/payment_charge_spec.rb +1 -1
  236. data/spec/models/payment_spec.rb +1 -1
  237. data/spec/models/portfolio_spec.rb +1 -1
  238. data/spec/models/property_manager_spec.rb +1 -1
  239. data/spec/models/prospect_contact_spec.rb +70 -0
  240. data/spec/models/prospect_spec.rb +13 -1
  241. data/spec/models/prospect_status_spec.rb +52 -0
  242. data/spec/models/refund_spec.rb +1 -1
  243. data/spec/models/response_entity_spec.rb +1 -1
  244. data/spec/models/restapi_bulk_error_response_spec.rb +1 -1
  245. data/spec/models/restapi_bulk_success_response_spec.rb +1 -1
  246. data/spec/models/restapi_error_spec.rb +1 -1
  247. data/spec/models/save_account_spec.rb +1 -1
  248. data/spec/models/save_address_spec.rb +1 -1
  249. data/spec/models/save_adjustment_spec.rb +1 -1
  250. data/spec/models/save_auto_charge_spec.rb +1 -1
  251. data/spec/models/save_bank_deposit_spec.rb +1 -1
  252. data/spec/models/save_bill_payment_spec.rb +1 -1
  253. data/spec/models/save_bill_spec.rb +1 -1
  254. data/spec/models/save_bill_split_spec.rb +1 -1
  255. data/spec/models/save_building_spec.rb +1 -1
  256. data/spec/models/save_charge_spec.rb +1 -1
  257. data/spec/models/save_check_spec.rb +1 -1
  258. data/spec/models/save_check_split_spec.rb +1 -1
  259. data/spec/models/save_comment_spec.rb +1 -1
  260. data/spec/models/save_contact_spec.rb +1 -1
  261. data/spec/models/save_conversation_spec.rb +1 -1
  262. data/spec/models/save_credit_spec.rb +1 -1
  263. data/spec/models/save_discount_spec.rb +1 -1
  264. data/spec/models/save_journal_entry_split_spec.rb +1 -1
  265. data/spec/models/save_lease_journal_entry_spec.rb +1 -1
  266. data/spec/models/save_lease_spec.rb +31 -1
  267. data/spec/models/save_owner_contribution_spec.rb +1 -1
  268. data/spec/models/save_owner_draw_spec.rb +1 -1
  269. data/spec/models/save_owner_spec.rb +1 -1
  270. data/spec/models/save_payment_spec.rb +1 -1
  271. data/spec/models/save_portfolio_spec.rb +1 -1
  272. data/spec/models/save_prospect_contact_spec.rb +1 -1
  273. data/spec/models/save_prospect_spec.rb +1 -1
  274. data/spec/models/save_refund_spec.rb +1 -1
  275. data/spec/models/save_unit_spec.rb +1 -1
  276. data/spec/models/save_vendor_spec.rb +95 -1
  277. data/spec/models/save_work_order_spec.rb +41 -1
  278. data/spec/models/save_work_order_task_spec.rb +1 -1
  279. data/spec/models/split_paid_spec.rb +1 -1
  280. data/spec/models/split_pay_spec.rb +1 -1
  281. data/spec/models/task_spec.rb +1 -1
  282. data/spec/models/transaction_spec.rb +1 -1
  283. data/spec/models/unit_spec.rb +1 -1
  284. data/spec/models/update_document_spec.rb +52 -0
  285. data/spec/models/update_lease_journal_entry_spec.rb +1 -1
  286. data/spec/models/vendor_spec.rb +55 -1
  287. data/spec/models/work_order_spec.rb +29 -1
  288. data/spec/spec_helper.rb +1 -1
  289. metadata +22 -6
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Open API, powered by Propertyware
3
3
 
4
- #<script type=\"text/javascript\" src=\"https://buildium.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-raa8on/b/8/c95134bc67d3a521bb3f4331beb9b804/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=e43cd15d\"></script> # Introduction Welcome to Propertyware’s API—a powerful, RESTful programming interface that lets you leverage valuable Propertyware data. ## Account Configuration Before you can use Propertyware’s API, you’ll need to make some tweaks to your account settings. <br /> ### Enabling the API In order to start creating your keys and making requests, you’ll need to enable the API. > **Tip:** You’ll need an administrator user role with access to ***Administration Setup > API Keys*** to set things up properly. **Let's Begin!** 1. Sign in to your [Propertyware](https://app.propertyware.com/pw/login.jsp) account from your browser. 2. Open the ***Setup*** page 3. On the left navigation bar, expand ***Administration Setup*** and then click ***API Keys***. If you are having issues accessing the API keys page within your account you can submit a [Support](#section/API-Overview/Support) request for assistance. ## API Keys Account-level API keys authenticate every request and keep things secure. API keys have two components: a “client ID” and a “secret”. * **Client IDs** are similar to usernames. They’re used to identify your Propertyware API key and are safe to share. * **Secrets** are similar to passwords. They must be kept confidential. Whenever you make a request, you’ll need the API key’s client ID and secret. If you forget it, make a mistake, or try to use information that’s linked to a deleted key, the API will return a `401` response code. > **Tip:** We compiled a list of best practices that detail how securely store API keys. [Give it a read](#section/Getting-Started/Keeping-API-Keys-Safe)! ## Creating API Keys Now that the Open API is enabled, you’ll be able to create API keys. You’re almost there! **How to create an API key** 1. On the API Keys page, click ***Create API Key***. A modal will appear. <p> <img src=\"APIKey_Page.JPG\"/> </p> <p> <img src=\"APIKey_New.JPG\"/> </p> 2. Enter a clear, memorable name and description for your API key. It’ll make it easier to locate the right key when you make a request. 3. Now, choose which pieces of Propertyware data you want this API key to have access to by selecting the corresponding radio buttons. Once finished, click **GENERATE KEY**. 4. You have successfully created an API key! The client id and secret associated to this key will be presented. <p> <img src=\"APIKey_Generate.JPG\"/> </p> > **Important:** This is your only chance to record the secret. Make sure it’s stored somewhere secure! If it’s forgotten, you’ll need to delete this key and start from scratch. You have now successfully created an API key and have everything you need to send requests to the Propertyware API! Before moving on to [making your first request](#section/Getting-Started/How-to-Make-a-Request) please review [Keeping API Keys Safe](#section/Getting-Started/Keeping-API-Keys-Safe) for an overview on securely storing your API keys. <br /> If you are having issues creating API keys you can submit a [Support](#section/API-Overview/Support) request for assistance. ## Keeping API Keys Safe Based on their permissions, API keys could have full access to your account’s Propertyware data. It’s important that you only grant access to trusted applications, securely record secrets, and consider a password manager to stay organized. ### Recommended Practices - Avoid hard-coding client IDs and secrets inside source files. - Avoid storing client IDs and secrets in any files that may be committed to source control, particularly cloud-based source control platforms. - Apply restrictions to client IDs and secrets shared with your staff. You can restrict a key to particular Propertyware entities or to read-only access (GET resources only). - Avoid sharing client IDs and secrets across public, insecure platforms. - Establish a process to regularly recreate your client IDs and secrets from your Propertyware account. <br /> <br /> ## How to Make a Request You’ve done a great job setting up your account, Now, we’ll walk you through how to access your data. It’s very straightforward and should only take a few minutes! > **Tip:** Looking for the right HTTP client? If you’re just getting started, we recommend Postman. ### Let's Get Started! #### Step 1: Get Your API Key If you haven't yet done so, obtain your API key client ID and secret from your Propertyware account. Your API key is how the Propertyware API authenticates requests and ensures only you can access your data. #### Step 2: Install a HTTP client The Propertyware API supports any standard HTTP client. If you're looking for a user-friendly HTTP client application, we recommend [Postman](https://www.postman.com/product/api-client) – it allows you to access the Propertyware API without writing code. We’ll use Postman for our example below to demonstrate sending an API request. #### Step 3: Make a Sample Request Let's dive in and make a simple request to get all the [Buildings](#operation/getBuildingsUsingGET) in your account. This will confirm your connectivity to our platform and validate the keys you created on our website. Simply follow the instructions below. 1. Open the Postman application. 2. Open the *verb* menu and select **GET**. 3. Enter the request endpoint in the field next to GET. - Here’s the endpoint to get all buildings: https://api.propertyware.com/pw/api/rest/v1/buildings. 4. To authenticate the request, enter your `client ID`, your `secret` and your `organization iD` respectively in these request headers: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` _(organization id)_ The organization id uniquely identifies your Propertyware account and is an additional measure to enforce proper access to the correct data. ___Your client id and secret pair will only work with the organization it belongs to___. Your full request should look similar to the image below. <kbd><img src=\"request_example.png\" /></kbd> 5. Review the parameters of your request on last time. Once finished, click **Send**. 6. If successful, you should see a JSON response and a `200` HTTP status code. Congratulations! You've connected to the Propertyware API. You now have the knowledge required to make requests for any of our resources. If you've received an error response please review the JSON response message for a description of how to resolve the issue. You can also see more information about HTTP status codes in the [Response Codes](#section/API-Overview/Response-Codes) section. If you are still having trouble making a request after reviewing these sections please submit a [Support](#section/API-Overview/Support) request. # API Overview The Propertyware API is built upon standard REST conventions. It's designed to use consistent resource-oriented URLs, accept and return JSON-encoded messages, and use standard HTTP status codes and verbs. ## Base URL The base URL for production environment API requests is: `https://api.propertyware.com/pw/api/v1/rest` In order to ensure all requests and responses are secure between the API consumer and Propertyware servers, requests must be made using the `https` protocol. Any requests not made with the `https` protocol will be refused by the Propertyware API platform. > **Note:** URL paths are case-sensitive to stay consistent with common REST standards. If your request doesn’t align with the documented URL path, you’ll receive a `404` response code reminding you of this constraint. ## API Versioning The Propertyware API is version controlled. Versioning ensures backwards-incompatible changes to the API don’t impact any existing integrations. Propertyware uses only a major version nomenclature to manage changes. The current version of the Propertyware API is version 1. By specifying a version in the resource request URL, you'll get expected responses regardless of future changes to the API. Here's an example of calling version 1 of the retrieve all leases resource: `https://api.propertyware.com/pw/api/rest/v1/leases` Any request submitted without the version in the URL path will result in a `404` error response code. ### Releasing Changes to the API The Propertyware API will continue to evolve to ensure it meets the needs of our customers. Changes will be defined as either backwards-compatible or backwards-incompatible. We’ll provide advance notice for all API releases–regardless of the type of modifications being made. #### Backward-compatible Changes Backward-compatible changes are modifications to the API that shouldn't impact existing integrations. They'll apply to the current version of the API. Simply put: you won’t need to change the version to consume new changes like these. It's important as you develop against the Propertyware API that you ensure these types of changes don't impact your integration. Here's are examples of backward-compatible modifications. * Adding new API resources and/or endpoints. * Adding new optional request parameters to existing API methods. * Adding new properties to existing API responses and non-required properties for request messages. * Changing property order in existing API responses. All backward-compatible changes to the API will be documented in the [Changelog](#section/Changelog). #### Backwards-incompatible Changes When backwards-incompatible changes to the API occur, a new version of the API will be released. You’ll need to update the URL path to consume resources under the new API version. Backwards-incompatible changes include: * Removing a property from a request and/or response message. * Changing the name of a property in a message. * Adding a required parameter to a request message. * Changing existing enumeration values. New versions of the API will have full reference documentation and an upgrade guide. ## Authentication The Propertyware API uses API key’s client IDs and secrets to authenticate requests. An organization ID, an API key client ID and secret must be passed in every request header using the following parameters: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` Failing to provide both of them in the request header will cause the API to return a `401` HTTP status code. <!-- ## Rate Limiting (FUTURE) Rate limits help us ensure consistent and reliable performance for all users, even during peak loads. That’s why we limit clients to **10 concurrent requests per second**. If your request rate violates that limit, a response code of `429` is returned. Simply retry the request after a short interval (~200ms). --> ## Bulk Request Options All top-level API resources support bulk fetches. For instance, you can retrieve all [Portfolios](#operation/getPortfoliosUsingGET). These resources also allow for filtering criteria. Each resource has descriptions of the filter criteria available. In addition to filtering, our API gives you the ability to control the returned data’s pagination and the sort order. ### Pagination Endpoints that return result sets allow for pagination using `limit` and `offset` request parameters to reduce the amount of data returned. The `limit` request parameter will cap the number of results that come back in the response. If you don't specify a `limit` value, a **default of 100 results** are returned. The maximum `limit` value is 500. If a `limit` value is specified greater than 500, it will be overridden to the default to 500. The `offset` request parameter indicates the record position within the resultset to start at when returning the results. The `offset` is zero-based and is inclusive. If no `offset` value is submitted it will default to 0. The total resultset count is returned in the HTTP Header `X-Total-Count` #### Pagination Example As an example, let's say we make a request to retrieve all rental properties with no paging parameters. Our response indicates in the `X-Total-Count` header that there are 150 total rental properties. We want to get only the last 50 results so we would submit a request with the `offset` set to 100 and the `limit` set to 50. > **Note:** The `limit` and `offset` parameter names are case-sensitive. If they aren't formatted correctly, the API will return a `404` HTTP status code. ### Sorting Results You can specify the sort order of returned data by assigning properties from the returned object to the `orderby` parameter in the querystring. For example: ``` orderby=name ``` By default, the sort is performed in ascending order. To specify sort order, use \"asc\" for ascending or \"desc\" for descending. For example: ``` orderby=name desc ``` Additionally, you can sort by multiple properties by comma separating the properties. For example: ``` orderby=abbreviation asc,name desc ``` > **Note:** While the `orderby` parameter is case-sensitive, the properties specified in the `orderby` value aren't. ## Response Codes The Propertyware API supports standard HTTP status codes. |Response Code |Description | |--|--| |200 OK | Everything worked as expected. | |400 Bad Request | The request was unacceptable, often due to missing a required parameter.| |401 Unauthorized|The API client ID and secret weren’t provided or they’re no longer valid. Be sure that the client ID and secret combination are correct and they are still active.| |403 Forbidden|The API key doesn't have permission to perform the request. This could be due to authorization for the given endpoint or an inability to access given entities within the platform (e.g. properties). |404 Not Found|The requested resource doesn't exist.| |415 Unsupported Media Type |Ensure you have the appropriate content-type header value set on your request. Each resource is documented with media type(s) that are accepted.| |429 Too Many Requests |Too many requests against the API too quickly. We recommend an exponential backoff of your requests.| |500 and above - Server Errors|Something went wrong on Propertyware's end. Review the JSON response message for more details about the error.| ## API Date Format * For all request and response date fields allowing ISO date format: YYYY-MM-DD (e.g.2019-08-24). * For all request and response dateAndTime fields format is allowing: YYYY-MM-dd'T'HH:mm:ssXXX (e.g.2022-06-28T08:47:13Z). ## Support If you are unable to resolve your issue after reviewing the API documentation our support team can assist you. # Changelog ### 2023-07-11 * Delete a document ### 2023-07-11 * Retrieve all documents * Retrieve a document * Download a document ### 2023-06-10 * Lease contacts are included in Retrieve all leases API response * Lease contacts are included in Retrieve a lease API response ### 2023-04-24 * Bulk Insertion: Prospects * Bulk Insertion: Bill Payments ### 2023-04-11 * Bulk Insertion: Portfolios * Bulk Insertion: Buildings * Bulk Insertion: Units ### 2023-03-19 * Bulk insertion: contacts ### 2023-03-08 * Bulk insertion: bills ### 2023-01-24 * Custom fields in \"Get all\" endpoints * Prospect creation * Bill removals ### 2022-10-25 * API Read operations for non-financial data ### 2022-09-21 * API Read operations available
4
+ #<script type=\"text/javascript\" src=\"https://buildium.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-raa8on/b/8/c95134bc67d3a521bb3f4331beb9b804/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=e43cd15d\"></script> # Introduction Welcome to Propertyware’s API—a powerful, RESTful programming interface that lets you leverage valuable Propertyware data. ## Account Configuration Before you can use Propertyware’s API, you’ll need to make some tweaks to your account settings. <br /> ### Enabling the API In order to start creating your keys and making requests, you’ll need to enable the API. > **Tip:** You’ll need an administrator user role with access to ***Administration Setup > API Keys*** to set things up properly. **Let's Begin!** 1. Sign in to your [Propertyware](https://app.propertyware.com/pw/login.jsp) account from your browser. 2. Open the ***Setup*** page 3. On the left navigation bar, expand ***Administration Setup*** and then click ***API Keys***. If you are having issues accessing the API keys page within your account you can submit a [Support](#section/API-Overview/Support) request for assistance. ## API Keys Account-level API keys authenticate every request and keep things secure. API keys have two components: a “client ID” and a “secret”. * **Client IDs** are similar to usernames. They’re used to identify your Propertyware API key and are safe to share. * **Secrets** are similar to passwords. They must be kept confidential. Whenever you make a request, you’ll need the API key’s client ID and secret. If you forget it, make a mistake, or try to use information that’s linked to a deleted key, the API will return a `401` response code. > **Tip:** We compiled a list of best practices that detail how securely store API keys. [Give it a read](#section/Getting-Started/Keeping-API-Keys-Safe)! ## Creating API Keys Now that the Open API is enabled, you’ll be able to create API keys. You’re almost there! **How to create an API key** 1. On the API Keys page, click ***Create API Key***. A modal will appear. <p> <img src=\"APIKey_Page.JPG\"/> </p> <p> <img src=\"APIKey_New.JPG\"/> </p> 2. Enter a clear, memorable name and description for your API key. It’ll make it easier to locate the right key when you make a request. 3. Now, choose which pieces of Propertyware data you want this API key to have access to by selecting the corresponding radio buttons. Once finished, click **GENERATE KEY**. 4. You have successfully created an API key! The client id and secret associated to this key will be presented. <p> <img src=\"APIKey_Generate.JPG\"/> </p> > **Important:** This is your only chance to record the secret. Make sure it’s stored somewhere secure! If it’s forgotten, you’ll need to delete this key and start from scratch. You have now successfully created an API key and have everything you need to send requests to the Propertyware API! Before moving on to [making your first request](#section/Getting-Started/How-to-Make-a-Request) please review [Keeping API Keys Safe](#section/Getting-Started/Keeping-API-Keys-Safe) for an overview on securely storing your API keys. <br /> If you are having issues creating API keys you can submit a [Support](#section/API-Overview/Support) request for assistance. ## Keeping API Keys Safe Based on their permissions, API keys could have full access to your account’s Propertyware data. It’s important that you only grant access to trusted applications, securely record secrets, and consider a password manager to stay organized. ### Recommended Practices - Avoid hard-coding client IDs and secrets inside source files. - Avoid storing client IDs and secrets in any files that may be committed to source control, particularly cloud-based source control platforms. - Apply restrictions to client IDs and secrets shared with your staff. You can restrict a key to particular Propertyware entities or to read-only access (GET resources only). - Avoid sharing client IDs and secrets across public, insecure platforms. - Establish a process to regularly recreate your client IDs and secrets from your Propertyware account. <br /> <br /> ## How to Make a Request You’ve done a great job setting up your account, Now, we’ll walk you through how to access your data. It’s very straightforward and should only take a few minutes! > **Tip:** Looking for the right HTTP client? If you’re just getting started, we recommend Postman. ### Let's Get Started! #### Step 1: Get Your API Key If you haven't yet done so, obtain your API key client ID and secret from your Propertyware account. Your API key is how the Propertyware API authenticates requests and ensures only you can access your data. #### Step 2: Install a HTTP client The Propertyware API supports any standard HTTP client. If you're looking for a user-friendly HTTP client application, we recommend [Postman](https://www.postman.com/product/api-client) – it allows you to access the Propertyware API without writing code. We’ll use Postman for our example below to demonstrate sending an API request. #### Step 3: Make a Sample Request Let's dive in and make a simple request to get all the [Buildings](#operation/getBuildingsUsingGET) in your account. This will confirm your connectivity to our platform and validate the keys you created on our website. Simply follow the instructions below. 1. Open the Postman application. 2. Open the *verb* menu and select **GET**. 3. Enter the request endpoint in the field next to GET. - Here’s the endpoint to get all buildings: https://api.propertyware.com/pw/api/rest/v1/buildings. 4. To authenticate the request, enter your `client ID`, your `secret` and your `organization iD` respectively in these request headers: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` _(organization id)_ The organization id uniquely identifies your Propertyware account and is an additional measure to enforce proper access to the correct data. ___Your client id and secret pair will only work with the organization it belongs to___. Your full request should look similar to the image below. <kbd><img src=\"request_example.png\" /></kbd> 5. Review the parameters of your request on last time. Once finished, click **Send**. 6. If successful, you should see a JSON response and a `200` HTTP status code. Congratulations! You've connected to the Propertyware API. You now have the knowledge required to make requests for any of our resources. If you've received an error response please review the JSON response message for a description of how to resolve the issue. You can also see more information about HTTP status codes in the [Response Codes](#section/API-Overview/Response-Codes) section. If you are still having trouble making a request after reviewing these sections please submit a [Support](#section/API-Overview/Support) request. # API Overview The Propertyware API is built upon standard REST conventions. It's designed to use consistent resource-oriented URLs, accept and return JSON-encoded messages, and use standard HTTP status codes and verbs. ## Base URL The base URL for production environment API requests is: `https://api.propertyware.com/pw/api/v1/rest` In order to ensure all requests and responses are secure between the API consumer and Propertyware servers, requests must be made using the `https` protocol. Any requests not made with the `https` protocol will be refused by the Propertyware API platform. > **Note:** URL paths are case-sensitive to stay consistent with common REST standards. If your request doesn’t align with the documented URL path, you’ll receive a `404` response code reminding you of this constraint. ## API Versioning The Propertyware API is version controlled. Versioning ensures backwards-incompatible changes to the API don’t impact any existing integrations. Propertyware uses only a major version nomenclature to manage changes. The current version of the Propertyware API is version 1. By specifying a version in the resource request URL, you'll get expected responses regardless of future changes to the API. Here's an example of calling version 1 of the retrieve all leases resource: `https://api.propertyware.com/pw/api/rest/v1/leases` Any request submitted without the version in the URL path will result in a `404` error response code. ### Releasing Changes to the API The Propertyware API will continue to evolve to ensure it meets the needs of our customers. Changes will be defined as either backwards-compatible or backwards-incompatible. We’ll provide advance notice for all API releases–regardless of the type of modifications being made. #### Backward-compatible Changes Backward-compatible changes are modifications to the API that shouldn't impact existing integrations. They'll apply to the current version of the API. Simply put: you won’t need to change the version to consume new changes like these. It's important as you develop against the Propertyware API that you ensure these types of changes don't impact your integration. Here's are examples of backward-compatible modifications. * Adding new API resources and/or endpoints. * Adding new optional request parameters to existing API methods. * Adding new properties to existing API responses and non-required properties for request messages. * Changing property order in existing API responses. All backward-compatible changes to the API will be documented in the [Changelog](#section/Changelog). #### Backwards-incompatible Changes When backwards-incompatible changes to the API occur, a new version of the API will be released. You’ll need to update the URL path to consume resources under the new API version. Backwards-incompatible changes include: * Removing a property from a request and/or response message. * Changing the name of a property in a message. * Adding a required parameter to a request message. * Changing existing enumeration values. New versions of the API will have full reference documentation and an upgrade guide. ## Authentication The Propertyware API uses API key’s client IDs and secrets to authenticate requests. An organization ID, an API key client ID and secret must be passed in every request header using the following parameters: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` Failing to provide both of them in the request header will cause the API to return a `401` HTTP status code. <!-- ## Rate Limiting (FUTURE) Rate limits help us ensure consistent and reliable performance for all users, even during peak loads. That’s why we limit clients to **10 concurrent requests per second**. If your request rate violates that limit, a response code of `429` is returned. Simply retry the request after a short interval (~200ms). --> ## Bulk Request Options All top-level API resources support bulk fetches. For instance, you can retrieve all [Portfolios](#operation/getPortfoliosUsingGET). These resources also allow for filtering criteria. Each resource has descriptions of the filter criteria available. In addition to filtering, our API gives you the ability to control the returned data’s pagination and the sort order. ### Pagination Endpoints that return result sets allow for pagination using `limit` and `offset` request parameters to reduce the amount of data returned. The `limit` request parameter will cap the number of results that come back in the response. If you don't specify a `limit` value, a **default of 100 results** are returned. The maximum `limit` value is 500. If a `limit` value is specified greater than 500, it will be overridden to the default to 500. The `offset` request parameter indicates the record position within the resultset to start at when returning the results. The `offset` is zero-based and is inclusive. If no `offset` value is submitted it will default to 0. The total resultset count is returned in the HTTP Header `X-Total-Count` #### Pagination Example As an example, let's say we make a request to retrieve all rental properties with no paging parameters. Our response indicates in the `X-Total-Count` header that there are 150 total rental properties. We want to get only the last 50 results so we would submit a request with the `offset` set to 100 and the `limit` set to 50. > **Note:** The `limit` and `offset` parameter names are case-sensitive. If they aren't formatted correctly, the API will return a `404` HTTP status code. ### Sorting Results You can specify the sort order of returned data by assigning properties from the returned object to the `orderby` parameter in the querystring. For example: ``` orderby=name ``` By default, the sort is performed in ascending order. To specify sort order, use \"asc\" for ascending or \"desc\" for descending. For example: ``` orderby=name desc ``` Additionally, you can sort by multiple properties by comma separating the properties. For example: ``` orderby=abbreviation asc,name desc ``` > **Note:** While the `orderby` parameter is case-sensitive, the properties specified in the `orderby` value aren't. ## Response Codes The Propertyware API supports standard HTTP status codes. |Response Code |Description | |--|--| |200 OK | Everything worked as expected. | |400 Bad Request | The request was unacceptable, often due to missing a required parameter.| |401 Unauthorized|The API client ID and secret weren’t provided or they’re no longer valid. Be sure that the client ID and secret combination are correct and they are still active.| |403 Forbidden|The API key doesn't have permission to perform the request. This could be due to authorization for the given endpoint or an inability to access given entities within the platform (e.g. properties). |404 Not Found|The requested resource doesn't exist.| |415 Unsupported Media Type |Ensure you have the appropriate content-type header value set on your request. Each resource is documented with media type(s) that are accepted.| |429 Too Many Requests |Too many requests against the API too quickly. We recommend an exponential backoff of your requests.| |500 and above - Server Errors|Something went wrong on Propertyware's end. Review the JSON response message for more details about the error.| ## API Date Format * For all request and response date fields allowing ISO date format: YYYY-MM-DD (e.g.2019-08-24). * For all request and response dateAndTime fields format is allowing: YYYY-MM-dd'T'HH:mm:ssXXX (e.g.2022-06-28T08:47:13Z). ## Support If you are unable to resolve your issue after reviewing the API documentation our support team can assist you. # Changelog ### 2023-08-28 * Update a document ### 2023-07-11 * Delete a document ### 2023-07-11 * Retrieve all documents * Retrieve a document * Download a document ### 2023-06-10 * Lease contacts are included in Retrieve all leases API response * Lease contacts are included in Retrieve a lease API response ### 2023-04-24 * Bulk Insertion: Prospects * Bulk Insertion: Bill Payments ### 2023-04-11 * Bulk Insertion: Portfolios * Bulk Insertion: Buildings * Bulk Insertion: Units ### 2023-03-19 * Bulk insertion: contacts ### 2023-03-08 * Bulk insertion: bills ### 2023-01-24 * Custom fields in \"Get all\" endpoints * Prospect creation * Bill removals ### 2022-10-25 * API Read operations for non-financial data ### 2022-09-21 * API Read operations available
5
5
 
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@propertyware.com
@@ -28,6 +28,9 @@ module Propertyware
28
28
  # Address line 2.
29
29
  attr_accessor :address2
30
30
 
31
+ # Alert Email
32
+ attr_accessor :alert_email
33
+
31
34
  # City.
32
35
  attr_accessor :city
33
36
 
@@ -52,6 +55,15 @@ module Propertyware
52
55
  # Custom fields.
53
56
  attr_accessor :custom_fields
54
57
 
58
+ # Default bill split id
59
+ attr_accessor :default_bill_split_account_id
60
+
61
+ # Default markup discount
62
+ attr_accessor :default_markup_discount_percentage
63
+
64
+ # Description.
65
+ attr_accessor :description
66
+
55
67
  # Indicates if the vendor is eligible for a 1099 form.
56
68
  attr_accessor :eligible1099
57
69
 
@@ -64,12 +76,18 @@ module Propertyware
64
76
  # Unique identifier.
65
77
  attr_accessor :id
66
78
 
79
+ # Include company name on 1099
80
+ attr_accessor :include_company_name_on1099
81
+
67
82
  # User who last modified the record.
68
83
  attr_accessor :last_modified_by
69
84
 
70
85
  # Date and time the record was last modified. (Timezone: UTC)
71
86
  attr_accessor :last_modified_date_time
72
87
 
88
+ # Markup account id
89
+ attr_accessor :markup_account_id
90
+
73
91
  # Name.
74
92
  attr_accessor :name
75
93
 
@@ -88,6 +106,9 @@ module Propertyware
88
106
  # Phone number.
89
107
  attr_accessor :phone
90
108
 
109
+ # Search Tag
110
+ attr_accessor :search_tag
111
+
91
112
  # State.
92
113
  attr_accessor :state
93
114
 
@@ -97,6 +118,12 @@ module Propertyware
97
118
  # Tax identification number.
98
119
  attr_accessor :tax_id
99
120
 
121
+ # Tax Payer Name
122
+ attr_accessor :tax_payer_name
123
+
124
+ # Time Tracking, is enabled or disabled
125
+ attr_accessor :time_tracking
126
+
100
127
  # The type of vendor.
101
128
  attr_accessor :type
102
129
 
@@ -113,6 +140,7 @@ module Propertyware
113
140
  :'active' => :'active',
114
141
  :'address' => :'address',
115
142
  :'address2' => :'address2',
143
+ :'alert_email' => :'alertEmail',
116
144
  :'city' => :'city',
117
145
  :'comments' => :'comments',
118
146
  :'company_name' => :'companyName',
@@ -121,21 +149,29 @@ module Propertyware
121
149
  :'created_date_time' => :'createdDateTime',
122
150
  :'credit_limit' => :'creditLimit',
123
151
  :'custom_fields' => :'customFields',
152
+ :'default_bill_split_account_id' => :'defaultBillSplitAccountId',
153
+ :'default_markup_discount_percentage' => :'defaultMarkupDiscountPercentage',
154
+ :'description' => :'description',
124
155
  :'eligible1099' => :'eligible1099',
125
156
  :'email' => :'email',
126
157
  :'fax' => :'fax',
127
158
  :'id' => :'id',
159
+ :'include_company_name_on1099' => :'includeCompanyNameOn1099',
128
160
  :'last_modified_by' => :'lastModifiedBy',
129
161
  :'last_modified_date_time' => :'lastModifiedDateTime',
162
+ :'markup_account_id' => :'markupAccountId',
130
163
  :'name' => :'name',
131
164
  :'name_on_check' => :'nameOnCheck',
132
165
  :'other_phone' => :'otherPhone',
133
166
  :'payment_term_days_to_pay' => :'paymentTermDaysToPay',
134
167
  :'payment_terms' => :'paymentTerms',
135
168
  :'phone' => :'phone',
169
+ :'search_tag' => :'searchTag',
136
170
  :'state' => :'state',
137
171
  :'sync_to_vmm' => :'syncToVMM',
138
172
  :'tax_id' => :'taxId',
173
+ :'tax_payer_name' => :'taxPayerName',
174
+ :'time_tracking' => :'timeTracking',
139
175
  :'type' => :'type',
140
176
  :'website' => :'website',
141
177
  :'zip' => :'zip'
@@ -154,6 +190,7 @@ module Propertyware
154
190
  :'active' => :'Boolean',
155
191
  :'address' => :'String',
156
192
  :'address2' => :'String',
193
+ :'alert_email' => :'String',
157
194
  :'city' => :'String',
158
195
  :'comments' => :'String',
159
196
  :'company_name' => :'String',
@@ -162,21 +199,29 @@ module Propertyware
162
199
  :'created_date_time' => :'Time',
163
200
  :'credit_limit' => :'Float',
164
201
  :'custom_fields' => :'Array<CustomField>',
202
+ :'default_bill_split_account_id' => :'Integer',
203
+ :'default_markup_discount_percentage' => :'Float',
204
+ :'description' => :'String',
165
205
  :'eligible1099' => :'Boolean',
166
206
  :'email' => :'String',
167
207
  :'fax' => :'String',
168
208
  :'id' => :'Integer',
209
+ :'include_company_name_on1099' => :'Boolean',
169
210
  :'last_modified_by' => :'String',
170
211
  :'last_modified_date_time' => :'Time',
212
+ :'markup_account_id' => :'Integer',
171
213
  :'name' => :'String',
172
214
  :'name_on_check' => :'String',
173
215
  :'other_phone' => :'String',
174
216
  :'payment_term_days_to_pay' => :'Integer',
175
217
  :'payment_terms' => :'String',
176
218
  :'phone' => :'String',
219
+ :'search_tag' => :'String',
177
220
  :'state' => :'String',
178
221
  :'sync_to_vmm' => :'Boolean',
179
222
  :'tax_id' => :'String',
223
+ :'tax_payer_name' => :'String',
224
+ :'time_tracking' => :'String',
180
225
  :'type' => :'String',
181
226
  :'website' => :'String',
182
227
  :'zip' => :'String'
@@ -220,6 +265,10 @@ module Propertyware
220
265
  self.address2 = attributes[:'address2']
221
266
  end
222
267
 
268
+ if attributes.key?(:'alert_email')
269
+ self.alert_email = attributes[:'alert_email']
270
+ end
271
+
223
272
  if attributes.key?(:'city')
224
273
  self.city = attributes[:'city']
225
274
  end
@@ -254,6 +303,18 @@ module Propertyware
254
303
  end
255
304
  end
256
305
 
306
+ if attributes.key?(:'default_bill_split_account_id')
307
+ self.default_bill_split_account_id = attributes[:'default_bill_split_account_id']
308
+ end
309
+
310
+ if attributes.key?(:'default_markup_discount_percentage')
311
+ self.default_markup_discount_percentage = attributes[:'default_markup_discount_percentage']
312
+ end
313
+
314
+ if attributes.key?(:'description')
315
+ self.description = attributes[:'description']
316
+ end
317
+
257
318
  if attributes.key?(:'eligible1099')
258
319
  self.eligible1099 = attributes[:'eligible1099']
259
320
  end
@@ -270,6 +331,10 @@ module Propertyware
270
331
  self.id = attributes[:'id']
271
332
  end
272
333
 
334
+ if attributes.key?(:'include_company_name_on1099')
335
+ self.include_company_name_on1099 = attributes[:'include_company_name_on1099']
336
+ end
337
+
273
338
  if attributes.key?(:'last_modified_by')
274
339
  self.last_modified_by = attributes[:'last_modified_by']
275
340
  end
@@ -278,6 +343,10 @@ module Propertyware
278
343
  self.last_modified_date_time = attributes[:'last_modified_date_time']
279
344
  end
280
345
 
346
+ if attributes.key?(:'markup_account_id')
347
+ self.markup_account_id = attributes[:'markup_account_id']
348
+ end
349
+
281
350
  if attributes.key?(:'name')
282
351
  self.name = attributes[:'name']
283
352
  end
@@ -302,6 +371,10 @@ module Propertyware
302
371
  self.phone = attributes[:'phone']
303
372
  end
304
373
 
374
+ if attributes.key?(:'search_tag')
375
+ self.search_tag = attributes[:'search_tag']
376
+ end
377
+
305
378
  if attributes.key?(:'state')
306
379
  self.state = attributes[:'state']
307
380
  end
@@ -314,6 +387,14 @@ module Propertyware
314
387
  self.tax_id = attributes[:'tax_id']
315
388
  end
316
389
 
390
+ if attributes.key?(:'tax_payer_name')
391
+ self.tax_payer_name = attributes[:'tax_payer_name']
392
+ end
393
+
394
+ if attributes.key?(:'time_tracking')
395
+ self.time_tracking = attributes[:'time_tracking']
396
+ end
397
+
317
398
  if attributes.key?(:'type')
318
399
  self.type = attributes[:'type']
319
400
  end
@@ -349,6 +430,7 @@ module Propertyware
349
430
  active == o.active &&
350
431
  address == o.address &&
351
432
  address2 == o.address2 &&
433
+ alert_email == o.alert_email &&
352
434
  city == o.city &&
353
435
  comments == o.comments &&
354
436
  company_name == o.company_name &&
@@ -357,21 +439,29 @@ module Propertyware
357
439
  created_date_time == o.created_date_time &&
358
440
  credit_limit == o.credit_limit &&
359
441
  custom_fields == o.custom_fields &&
442
+ default_bill_split_account_id == o.default_bill_split_account_id &&
443
+ default_markup_discount_percentage == o.default_markup_discount_percentage &&
444
+ description == o.description &&
360
445
  eligible1099 == o.eligible1099 &&
361
446
  email == o.email &&
362
447
  fax == o.fax &&
363
448
  id == o.id &&
449
+ include_company_name_on1099 == o.include_company_name_on1099 &&
364
450
  last_modified_by == o.last_modified_by &&
365
451
  last_modified_date_time == o.last_modified_date_time &&
452
+ markup_account_id == o.markup_account_id &&
366
453
  name == o.name &&
367
454
  name_on_check == o.name_on_check &&
368
455
  other_phone == o.other_phone &&
369
456
  payment_term_days_to_pay == o.payment_term_days_to_pay &&
370
457
  payment_terms == o.payment_terms &&
371
458
  phone == o.phone &&
459
+ search_tag == o.search_tag &&
372
460
  state == o.state &&
373
461
  sync_to_vmm == o.sync_to_vmm &&
374
462
  tax_id == o.tax_id &&
463
+ tax_payer_name == o.tax_payer_name &&
464
+ time_tracking == o.time_tracking &&
375
465
  type == o.type &&
376
466
  website == o.website &&
377
467
  zip == o.zip
@@ -386,7 +476,7 @@ module Propertyware
386
476
  # Calculates hash code according to all attributes.
387
477
  # @return [Integer] Hash code
388
478
  def hash
389
- [account_number, active, address, address2, city, comments, company_name, country, created_by, created_date_time, credit_limit, custom_fields, eligible1099, email, fax, id, last_modified_by, last_modified_date_time, name, name_on_check, other_phone, payment_term_days_to_pay, payment_terms, phone, state, sync_to_vmm, tax_id, type, website, zip].hash
479
+ [account_number, active, address, address2, alert_email, city, comments, company_name, country, created_by, created_date_time, credit_limit, custom_fields, default_bill_split_account_id, default_markup_discount_percentage, description, eligible1099, email, fax, id, include_company_name_on1099, last_modified_by, last_modified_date_time, markup_account_id, name, name_on_check, other_phone, payment_term_days_to_pay, payment_terms, phone, search_tag, state, sync_to_vmm, tax_id, tax_payer_name, time_tracking, type, website, zip].hash
390
480
  end
391
481
 
392
482
  # Builds the object from hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Open API, powered by Propertyware
3
3
 
4
- #<script type=\"text/javascript\" src=\"https://buildium.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-raa8on/b/8/c95134bc67d3a521bb3f4331beb9b804/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=e43cd15d\"></script> # Introduction Welcome to Propertyware’s API—a powerful, RESTful programming interface that lets you leverage valuable Propertyware data. ## Account Configuration Before you can use Propertyware’s API, you’ll need to make some tweaks to your account settings. <br /> ### Enabling the API In order to start creating your keys and making requests, you’ll need to enable the API. > **Tip:** You’ll need an administrator user role with access to ***Administration Setup > API Keys*** to set things up properly. **Let's Begin!** 1. Sign in to your [Propertyware](https://app.propertyware.com/pw/login.jsp) account from your browser. 2. Open the ***Setup*** page 3. On the left navigation bar, expand ***Administration Setup*** and then click ***API Keys***. If you are having issues accessing the API keys page within your account you can submit a [Support](#section/API-Overview/Support) request for assistance. ## API Keys Account-level API keys authenticate every request and keep things secure. API keys have two components: a “client ID” and a “secret”. * **Client IDs** are similar to usernames. They’re used to identify your Propertyware API key and are safe to share. * **Secrets** are similar to passwords. They must be kept confidential. Whenever you make a request, you’ll need the API key’s client ID and secret. If you forget it, make a mistake, or try to use information that’s linked to a deleted key, the API will return a `401` response code. > **Tip:** We compiled a list of best practices that detail how securely store API keys. [Give it a read](#section/Getting-Started/Keeping-API-Keys-Safe)! ## Creating API Keys Now that the Open API is enabled, you’ll be able to create API keys. You’re almost there! **How to create an API key** 1. On the API Keys page, click ***Create API Key***. A modal will appear. <p> <img src=\"APIKey_Page.JPG\"/> </p> <p> <img src=\"APIKey_New.JPG\"/> </p> 2. Enter a clear, memorable name and description for your API key. It’ll make it easier to locate the right key when you make a request. 3. Now, choose which pieces of Propertyware data you want this API key to have access to by selecting the corresponding radio buttons. Once finished, click **GENERATE KEY**. 4. You have successfully created an API key! The client id and secret associated to this key will be presented. <p> <img src=\"APIKey_Generate.JPG\"/> </p> > **Important:** This is your only chance to record the secret. Make sure it’s stored somewhere secure! If it’s forgotten, you’ll need to delete this key and start from scratch. You have now successfully created an API key and have everything you need to send requests to the Propertyware API! Before moving on to [making your first request](#section/Getting-Started/How-to-Make-a-Request) please review [Keeping API Keys Safe](#section/Getting-Started/Keeping-API-Keys-Safe) for an overview on securely storing your API keys. <br /> If you are having issues creating API keys you can submit a [Support](#section/API-Overview/Support) request for assistance. ## Keeping API Keys Safe Based on their permissions, API keys could have full access to your account’s Propertyware data. It’s important that you only grant access to trusted applications, securely record secrets, and consider a password manager to stay organized. ### Recommended Practices - Avoid hard-coding client IDs and secrets inside source files. - Avoid storing client IDs and secrets in any files that may be committed to source control, particularly cloud-based source control platforms. - Apply restrictions to client IDs and secrets shared with your staff. You can restrict a key to particular Propertyware entities or to read-only access (GET resources only). - Avoid sharing client IDs and secrets across public, insecure platforms. - Establish a process to regularly recreate your client IDs and secrets from your Propertyware account. <br /> <br /> ## How to Make a Request You’ve done a great job setting up your account, Now, we’ll walk you through how to access your data. It’s very straightforward and should only take a few minutes! > **Tip:** Looking for the right HTTP client? If you’re just getting started, we recommend Postman. ### Let's Get Started! #### Step 1: Get Your API Key If you haven't yet done so, obtain your API key client ID and secret from your Propertyware account. Your API key is how the Propertyware API authenticates requests and ensures only you can access your data. #### Step 2: Install a HTTP client The Propertyware API supports any standard HTTP client. If you're looking for a user-friendly HTTP client application, we recommend [Postman](https://www.postman.com/product/api-client) – it allows you to access the Propertyware API without writing code. We’ll use Postman for our example below to demonstrate sending an API request. #### Step 3: Make a Sample Request Let's dive in and make a simple request to get all the [Buildings](#operation/getBuildingsUsingGET) in your account. This will confirm your connectivity to our platform and validate the keys you created on our website. Simply follow the instructions below. 1. Open the Postman application. 2. Open the *verb* menu and select **GET**. 3. Enter the request endpoint in the field next to GET. - Here’s the endpoint to get all buildings: https://api.propertyware.com/pw/api/rest/v1/buildings. 4. To authenticate the request, enter your `client ID`, your `secret` and your `organization iD` respectively in these request headers: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` _(organization id)_ The organization id uniquely identifies your Propertyware account and is an additional measure to enforce proper access to the correct data. ___Your client id and secret pair will only work with the organization it belongs to___. Your full request should look similar to the image below. <kbd><img src=\"request_example.png\" /></kbd> 5. Review the parameters of your request on last time. Once finished, click **Send**. 6. If successful, you should see a JSON response and a `200` HTTP status code. Congratulations! You've connected to the Propertyware API. You now have the knowledge required to make requests for any of our resources. If you've received an error response please review the JSON response message for a description of how to resolve the issue. You can also see more information about HTTP status codes in the [Response Codes](#section/API-Overview/Response-Codes) section. If you are still having trouble making a request after reviewing these sections please submit a [Support](#section/API-Overview/Support) request. # API Overview The Propertyware API is built upon standard REST conventions. It's designed to use consistent resource-oriented URLs, accept and return JSON-encoded messages, and use standard HTTP status codes and verbs. ## Base URL The base URL for production environment API requests is: `https://api.propertyware.com/pw/api/v1/rest` In order to ensure all requests and responses are secure between the API consumer and Propertyware servers, requests must be made using the `https` protocol. Any requests not made with the `https` protocol will be refused by the Propertyware API platform. > **Note:** URL paths are case-sensitive to stay consistent with common REST standards. If your request doesn’t align with the documented URL path, you’ll receive a `404` response code reminding you of this constraint. ## API Versioning The Propertyware API is version controlled. Versioning ensures backwards-incompatible changes to the API don’t impact any existing integrations. Propertyware uses only a major version nomenclature to manage changes. The current version of the Propertyware API is version 1. By specifying a version in the resource request URL, you'll get expected responses regardless of future changes to the API. Here's an example of calling version 1 of the retrieve all leases resource: `https://api.propertyware.com/pw/api/rest/v1/leases` Any request submitted without the version in the URL path will result in a `404` error response code. ### Releasing Changes to the API The Propertyware API will continue to evolve to ensure it meets the needs of our customers. Changes will be defined as either backwards-compatible or backwards-incompatible. We’ll provide advance notice for all API releases–regardless of the type of modifications being made. #### Backward-compatible Changes Backward-compatible changes are modifications to the API that shouldn't impact existing integrations. They'll apply to the current version of the API. Simply put: you won’t need to change the version to consume new changes like these. It's important as you develop against the Propertyware API that you ensure these types of changes don't impact your integration. Here's are examples of backward-compatible modifications. * Adding new API resources and/or endpoints. * Adding new optional request parameters to existing API methods. * Adding new properties to existing API responses and non-required properties for request messages. * Changing property order in existing API responses. All backward-compatible changes to the API will be documented in the [Changelog](#section/Changelog). #### Backwards-incompatible Changes When backwards-incompatible changes to the API occur, a new version of the API will be released. You’ll need to update the URL path to consume resources under the new API version. Backwards-incompatible changes include: * Removing a property from a request and/or response message. * Changing the name of a property in a message. * Adding a required parameter to a request message. * Changing existing enumeration values. New versions of the API will have full reference documentation and an upgrade guide. ## Authentication The Propertyware API uses API key’s client IDs and secrets to authenticate requests. An organization ID, an API key client ID and secret must be passed in every request header using the following parameters: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` Failing to provide both of them in the request header will cause the API to return a `401` HTTP status code. <!-- ## Rate Limiting (FUTURE) Rate limits help us ensure consistent and reliable performance for all users, even during peak loads. That’s why we limit clients to **10 concurrent requests per second**. If your request rate violates that limit, a response code of `429` is returned. Simply retry the request after a short interval (~200ms). --> ## Bulk Request Options All top-level API resources support bulk fetches. For instance, you can retrieve all [Portfolios](#operation/getPortfoliosUsingGET). These resources also allow for filtering criteria. Each resource has descriptions of the filter criteria available. In addition to filtering, our API gives you the ability to control the returned data’s pagination and the sort order. ### Pagination Endpoints that return result sets allow for pagination using `limit` and `offset` request parameters to reduce the amount of data returned. The `limit` request parameter will cap the number of results that come back in the response. If you don't specify a `limit` value, a **default of 100 results** are returned. The maximum `limit` value is 500. If a `limit` value is specified greater than 500, it will be overridden to the default to 500. The `offset` request parameter indicates the record position within the resultset to start at when returning the results. The `offset` is zero-based and is inclusive. If no `offset` value is submitted it will default to 0. The total resultset count is returned in the HTTP Header `X-Total-Count` #### Pagination Example As an example, let's say we make a request to retrieve all rental properties with no paging parameters. Our response indicates in the `X-Total-Count` header that there are 150 total rental properties. We want to get only the last 50 results so we would submit a request with the `offset` set to 100 and the `limit` set to 50. > **Note:** The `limit` and `offset` parameter names are case-sensitive. If they aren't formatted correctly, the API will return a `404` HTTP status code. ### Sorting Results You can specify the sort order of returned data by assigning properties from the returned object to the `orderby` parameter in the querystring. For example: ``` orderby=name ``` By default, the sort is performed in ascending order. To specify sort order, use \"asc\" for ascending or \"desc\" for descending. For example: ``` orderby=name desc ``` Additionally, you can sort by multiple properties by comma separating the properties. For example: ``` orderby=abbreviation asc,name desc ``` > **Note:** While the `orderby` parameter is case-sensitive, the properties specified in the `orderby` value aren't. ## Response Codes The Propertyware API supports standard HTTP status codes. |Response Code |Description | |--|--| |200 OK | Everything worked as expected. | |400 Bad Request | The request was unacceptable, often due to missing a required parameter.| |401 Unauthorized|The API client ID and secret weren’t provided or they’re no longer valid. Be sure that the client ID and secret combination are correct and they are still active.| |403 Forbidden|The API key doesn't have permission to perform the request. This could be due to authorization for the given endpoint or an inability to access given entities within the platform (e.g. properties). |404 Not Found|The requested resource doesn't exist.| |415 Unsupported Media Type |Ensure you have the appropriate content-type header value set on your request. Each resource is documented with media type(s) that are accepted.| |429 Too Many Requests |Too many requests against the API too quickly. We recommend an exponential backoff of your requests.| |500 and above - Server Errors|Something went wrong on Propertyware's end. Review the JSON response message for more details about the error.| ## API Date Format * For all request and response date fields allowing ISO date format: YYYY-MM-DD (e.g.2019-08-24). * For all request and response dateAndTime fields format is allowing: YYYY-MM-dd'T'HH:mm:ssXXX (e.g.2022-06-28T08:47:13Z). ## Support If you are unable to resolve your issue after reviewing the API documentation our support team can assist you. # Changelog ### 2023-07-11 * Delete a document ### 2023-07-11 * Retrieve all documents * Retrieve a document * Download a document ### 2023-06-10 * Lease contacts are included in Retrieve all leases API response * Lease contacts are included in Retrieve a lease API response ### 2023-04-24 * Bulk Insertion: Prospects * Bulk Insertion: Bill Payments ### 2023-04-11 * Bulk Insertion: Portfolios * Bulk Insertion: Buildings * Bulk Insertion: Units ### 2023-03-19 * Bulk insertion: contacts ### 2023-03-08 * Bulk insertion: bills ### 2023-01-24 * Custom fields in \"Get all\" endpoints * Prospect creation * Bill removals ### 2022-10-25 * API Read operations for non-financial data ### 2022-09-21 * API Read operations available
4
+ #<script type=\"text/javascript\" src=\"https://buildium.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-raa8on/b/8/c95134bc67d3a521bb3f4331beb9b804/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=e43cd15d\"></script> # Introduction Welcome to Propertyware’s API—a powerful, RESTful programming interface that lets you leverage valuable Propertyware data. ## Account Configuration Before you can use Propertyware’s API, you’ll need to make some tweaks to your account settings. <br /> ### Enabling the API In order to start creating your keys and making requests, you’ll need to enable the API. > **Tip:** You’ll need an administrator user role with access to ***Administration Setup > API Keys*** to set things up properly. **Let's Begin!** 1. Sign in to your [Propertyware](https://app.propertyware.com/pw/login.jsp) account from your browser. 2. Open the ***Setup*** page 3. On the left navigation bar, expand ***Administration Setup*** and then click ***API Keys***. If you are having issues accessing the API keys page within your account you can submit a [Support](#section/API-Overview/Support) request for assistance. ## API Keys Account-level API keys authenticate every request and keep things secure. API keys have two components: a “client ID” and a “secret”. * **Client IDs** are similar to usernames. They’re used to identify your Propertyware API key and are safe to share. * **Secrets** are similar to passwords. They must be kept confidential. Whenever you make a request, you’ll need the API key’s client ID and secret. If you forget it, make a mistake, or try to use information that’s linked to a deleted key, the API will return a `401` response code. > **Tip:** We compiled a list of best practices that detail how securely store API keys. [Give it a read](#section/Getting-Started/Keeping-API-Keys-Safe)! ## Creating API Keys Now that the Open API is enabled, you’ll be able to create API keys. You’re almost there! **How to create an API key** 1. On the API Keys page, click ***Create API Key***. A modal will appear. <p> <img src=\"APIKey_Page.JPG\"/> </p> <p> <img src=\"APIKey_New.JPG\"/> </p> 2. Enter a clear, memorable name and description for your API key. It’ll make it easier to locate the right key when you make a request. 3. Now, choose which pieces of Propertyware data you want this API key to have access to by selecting the corresponding radio buttons. Once finished, click **GENERATE KEY**. 4. You have successfully created an API key! The client id and secret associated to this key will be presented. <p> <img src=\"APIKey_Generate.JPG\"/> </p> > **Important:** This is your only chance to record the secret. Make sure it’s stored somewhere secure! If it’s forgotten, you’ll need to delete this key and start from scratch. You have now successfully created an API key and have everything you need to send requests to the Propertyware API! Before moving on to [making your first request](#section/Getting-Started/How-to-Make-a-Request) please review [Keeping API Keys Safe](#section/Getting-Started/Keeping-API-Keys-Safe) for an overview on securely storing your API keys. <br /> If you are having issues creating API keys you can submit a [Support](#section/API-Overview/Support) request for assistance. ## Keeping API Keys Safe Based on their permissions, API keys could have full access to your account’s Propertyware data. It’s important that you only grant access to trusted applications, securely record secrets, and consider a password manager to stay organized. ### Recommended Practices - Avoid hard-coding client IDs and secrets inside source files. - Avoid storing client IDs and secrets in any files that may be committed to source control, particularly cloud-based source control platforms. - Apply restrictions to client IDs and secrets shared with your staff. You can restrict a key to particular Propertyware entities or to read-only access (GET resources only). - Avoid sharing client IDs and secrets across public, insecure platforms. - Establish a process to regularly recreate your client IDs and secrets from your Propertyware account. <br /> <br /> ## How to Make a Request You’ve done a great job setting up your account, Now, we’ll walk you through how to access your data. It’s very straightforward and should only take a few minutes! > **Tip:** Looking for the right HTTP client? If you’re just getting started, we recommend Postman. ### Let's Get Started! #### Step 1: Get Your API Key If you haven't yet done so, obtain your API key client ID and secret from your Propertyware account. Your API key is how the Propertyware API authenticates requests and ensures only you can access your data. #### Step 2: Install a HTTP client The Propertyware API supports any standard HTTP client. If you're looking for a user-friendly HTTP client application, we recommend [Postman](https://www.postman.com/product/api-client) – it allows you to access the Propertyware API without writing code. We’ll use Postman for our example below to demonstrate sending an API request. #### Step 3: Make a Sample Request Let's dive in and make a simple request to get all the [Buildings](#operation/getBuildingsUsingGET) in your account. This will confirm your connectivity to our platform and validate the keys you created on our website. Simply follow the instructions below. 1. Open the Postman application. 2. Open the *verb* menu and select **GET**. 3. Enter the request endpoint in the field next to GET. - Here’s the endpoint to get all buildings: https://api.propertyware.com/pw/api/rest/v1/buildings. 4. To authenticate the request, enter your `client ID`, your `secret` and your `organization iD` respectively in these request headers: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` _(organization id)_ The organization id uniquely identifies your Propertyware account and is an additional measure to enforce proper access to the correct data. ___Your client id and secret pair will only work with the organization it belongs to___. Your full request should look similar to the image below. <kbd><img src=\"request_example.png\" /></kbd> 5. Review the parameters of your request on last time. Once finished, click **Send**. 6. If successful, you should see a JSON response and a `200` HTTP status code. Congratulations! You've connected to the Propertyware API. You now have the knowledge required to make requests for any of our resources. If you've received an error response please review the JSON response message for a description of how to resolve the issue. You can also see more information about HTTP status codes in the [Response Codes](#section/API-Overview/Response-Codes) section. If you are still having trouble making a request after reviewing these sections please submit a [Support](#section/API-Overview/Support) request. # API Overview The Propertyware API is built upon standard REST conventions. It's designed to use consistent resource-oriented URLs, accept and return JSON-encoded messages, and use standard HTTP status codes and verbs. ## Base URL The base URL for production environment API requests is: `https://api.propertyware.com/pw/api/v1/rest` In order to ensure all requests and responses are secure between the API consumer and Propertyware servers, requests must be made using the `https` protocol. Any requests not made with the `https` protocol will be refused by the Propertyware API platform. > **Note:** URL paths are case-sensitive to stay consistent with common REST standards. If your request doesn’t align with the documented URL path, you’ll receive a `404` response code reminding you of this constraint. ## API Versioning The Propertyware API is version controlled. Versioning ensures backwards-incompatible changes to the API don’t impact any existing integrations. Propertyware uses only a major version nomenclature to manage changes. The current version of the Propertyware API is version 1. By specifying a version in the resource request URL, you'll get expected responses regardless of future changes to the API. Here's an example of calling version 1 of the retrieve all leases resource: `https://api.propertyware.com/pw/api/rest/v1/leases` Any request submitted without the version in the URL path will result in a `404` error response code. ### Releasing Changes to the API The Propertyware API will continue to evolve to ensure it meets the needs of our customers. Changes will be defined as either backwards-compatible or backwards-incompatible. We’ll provide advance notice for all API releases–regardless of the type of modifications being made. #### Backward-compatible Changes Backward-compatible changes are modifications to the API that shouldn't impact existing integrations. They'll apply to the current version of the API. Simply put: you won’t need to change the version to consume new changes like these. It's important as you develop against the Propertyware API that you ensure these types of changes don't impact your integration. Here's are examples of backward-compatible modifications. * Adding new API resources and/or endpoints. * Adding new optional request parameters to existing API methods. * Adding new properties to existing API responses and non-required properties for request messages. * Changing property order in existing API responses. All backward-compatible changes to the API will be documented in the [Changelog](#section/Changelog). #### Backwards-incompatible Changes When backwards-incompatible changes to the API occur, a new version of the API will be released. You’ll need to update the URL path to consume resources under the new API version. Backwards-incompatible changes include: * Removing a property from a request and/or response message. * Changing the name of a property in a message. * Adding a required parameter to a request message. * Changing existing enumeration values. New versions of the API will have full reference documentation and an upgrade guide. ## Authentication The Propertyware API uses API key’s client IDs and secrets to authenticate requests. An organization ID, an API key client ID and secret must be passed in every request header using the following parameters: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` Failing to provide both of them in the request header will cause the API to return a `401` HTTP status code. <!-- ## Rate Limiting (FUTURE) Rate limits help us ensure consistent and reliable performance for all users, even during peak loads. That’s why we limit clients to **10 concurrent requests per second**. If your request rate violates that limit, a response code of `429` is returned. Simply retry the request after a short interval (~200ms). --> ## Bulk Request Options All top-level API resources support bulk fetches. For instance, you can retrieve all [Portfolios](#operation/getPortfoliosUsingGET). These resources also allow for filtering criteria. Each resource has descriptions of the filter criteria available. In addition to filtering, our API gives you the ability to control the returned data’s pagination and the sort order. ### Pagination Endpoints that return result sets allow for pagination using `limit` and `offset` request parameters to reduce the amount of data returned. The `limit` request parameter will cap the number of results that come back in the response. If you don't specify a `limit` value, a **default of 100 results** are returned. The maximum `limit` value is 500. If a `limit` value is specified greater than 500, it will be overridden to the default to 500. The `offset` request parameter indicates the record position within the resultset to start at when returning the results. The `offset` is zero-based and is inclusive. If no `offset` value is submitted it will default to 0. The total resultset count is returned in the HTTP Header `X-Total-Count` #### Pagination Example As an example, let's say we make a request to retrieve all rental properties with no paging parameters. Our response indicates in the `X-Total-Count` header that there are 150 total rental properties. We want to get only the last 50 results so we would submit a request with the `offset` set to 100 and the `limit` set to 50. > **Note:** The `limit` and `offset` parameter names are case-sensitive. If they aren't formatted correctly, the API will return a `404` HTTP status code. ### Sorting Results You can specify the sort order of returned data by assigning properties from the returned object to the `orderby` parameter in the querystring. For example: ``` orderby=name ``` By default, the sort is performed in ascending order. To specify sort order, use \"asc\" for ascending or \"desc\" for descending. For example: ``` orderby=name desc ``` Additionally, you can sort by multiple properties by comma separating the properties. For example: ``` orderby=abbreviation asc,name desc ``` > **Note:** While the `orderby` parameter is case-sensitive, the properties specified in the `orderby` value aren't. ## Response Codes The Propertyware API supports standard HTTP status codes. |Response Code |Description | |--|--| |200 OK | Everything worked as expected. | |400 Bad Request | The request was unacceptable, often due to missing a required parameter.| |401 Unauthorized|The API client ID and secret weren’t provided or they’re no longer valid. Be sure that the client ID and secret combination are correct and they are still active.| |403 Forbidden|The API key doesn't have permission to perform the request. This could be due to authorization for the given endpoint or an inability to access given entities within the platform (e.g. properties). |404 Not Found|The requested resource doesn't exist.| |415 Unsupported Media Type |Ensure you have the appropriate content-type header value set on your request. Each resource is documented with media type(s) that are accepted.| |429 Too Many Requests |Too many requests against the API too quickly. We recommend an exponential backoff of your requests.| |500 and above - Server Errors|Something went wrong on Propertyware's end. Review the JSON response message for more details about the error.| ## API Date Format * For all request and response date fields allowing ISO date format: YYYY-MM-DD (e.g.2019-08-24). * For all request and response dateAndTime fields format is allowing: YYYY-MM-dd'T'HH:mm:ssXXX (e.g.2022-06-28T08:47:13Z). ## Support If you are unable to resolve your issue after reviewing the API documentation our support team can assist you. # Changelog ### 2023-08-28 * Update a document ### 2023-07-11 * Delete a document ### 2023-07-11 * Retrieve all documents * Retrieve a document * Download a document ### 2023-06-10 * Lease contacts are included in Retrieve all leases API response * Lease contacts are included in Retrieve a lease API response ### 2023-04-24 * Bulk Insertion: Prospects * Bulk Insertion: Bill Payments ### 2023-04-11 * Bulk Insertion: Portfolios * Bulk Insertion: Buildings * Bulk Insertion: Units ### 2023-03-19 * Bulk insertion: contacts ### 2023-03-08 * Bulk insertion: bills ### 2023-01-24 * Custom fields in \"Get all\" endpoints * Prospect creation * Bill removals ### 2022-10-25 * API Read operations for non-financial data ### 2022-09-21 * API Read operations available
5
5
 
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@propertyware.com
@@ -19,6 +19,12 @@ module Propertyware
19
19
  # Number of days that have passed since the work order was created.
20
20
  attr_accessor :age
21
21
 
22
+ # Indicates if work order is approved.
23
+ attr_accessor :approved
24
+
25
+ # Work order approved Date.
26
+ attr_accessor :approved_date
27
+
22
28
  # List of vendors attached to the work order.
23
29
  attr_accessor :assigned_vendors
24
30
 
@@ -49,6 +55,9 @@ module Propertyware
49
55
  # Custom fields.
50
56
  attr_accessor :custom_fields
51
57
 
58
+ # Authorized date to enter unit.
59
+ attr_accessor :date_to_enter
60
+
52
61
  # This is a detailed description of the problem.
53
62
  attr_accessor :description
54
63
 
@@ -94,6 +103,9 @@ module Propertyware
94
103
  # Date on which the work is scheduled to be completed.
95
104
  attr_accessor :scheduled_end_date
96
105
 
106
+ # Search tag name.
107
+ attr_accessor :search_tag
108
+
97
109
  # This identifies how the problem was reported, such as telephone, in person, email, etc.
98
110
  attr_accessor :source
99
111
 
@@ -135,6 +147,8 @@ module Propertyware
135
147
  def self.attribute_map
136
148
  {
137
149
  :'age' => :'age',
150
+ :'approved' => :'approved',
151
+ :'approved_date' => :'approvedDate',
138
152
  :'assigned_vendors' => :'assignedVendors',
139
153
  :'authorize_enter' => :'authorizeEnter',
140
154
  :'building_id' => :'buildingID',
@@ -145,6 +159,7 @@ module Propertyware
145
159
  :'created_by' => :'createdBy',
146
160
  :'created_date_time' => :'createdDateTime',
147
161
  :'custom_fields' => :'customFields',
162
+ :'date_to_enter' => :'dateToEnter',
148
163
  :'description' => :'description',
149
164
  :'hour_estimate' => :'hourEstimate',
150
165
  :'id' => :'id',
@@ -160,6 +175,7 @@ module Propertyware
160
175
  :'requested_by' => :'requestedBy',
161
176
  :'required_materials' => :'requiredMaterials',
162
177
  :'scheduled_end_date' => :'scheduledEndDate',
178
+ :'search_tag' => :'searchTag',
163
179
  :'source' => :'source',
164
180
  :'specific_location' => :'specificLocation',
165
181
  :'start_date' => :'startDate',
@@ -177,6 +193,8 @@ module Propertyware
177
193
  def self.openapi_types
178
194
  {
179
195
  :'age' => :'Integer',
196
+ :'approved' => :'Boolean',
197
+ :'approved_date' => :'Date',
180
198
  :'assigned_vendors' => :'Array<BasicVendor>',
181
199
  :'authorize_enter' => :'String',
182
200
  :'building_id' => :'Integer',
@@ -187,6 +205,7 @@ module Propertyware
187
205
  :'created_by' => :'String',
188
206
  :'created_date_time' => :'Time',
189
207
  :'custom_fields' => :'Array<CustomField>',
208
+ :'date_to_enter' => :'Time',
190
209
  :'description' => :'String',
191
210
  :'hour_estimate' => :'Float',
192
211
  :'id' => :'Integer',
@@ -202,6 +221,7 @@ module Propertyware
202
221
  :'requested_by' => :'String',
203
222
  :'required_materials' => :'String',
204
223
  :'scheduled_end_date' => :'Date',
224
+ :'search_tag' => :'String',
205
225
  :'source' => :'String',
206
226
  :'specific_location' => :'String',
207
227
  :'start_date' => :'Date',
@@ -235,6 +255,14 @@ module Propertyware
235
255
  self.age = attributes[:'age']
236
256
  end
237
257
 
258
+ if attributes.key?(:'approved')
259
+ self.approved = attributes[:'approved']
260
+ end
261
+
262
+ if attributes.key?(:'approved_date')
263
+ self.approved_date = attributes[:'approved_date']
264
+ end
265
+
238
266
  if attributes.key?(:'assigned_vendors')
239
267
  if (value = attributes[:'assigned_vendors']).is_a?(Array)
240
268
  self.assigned_vendors = value
@@ -279,6 +307,10 @@ module Propertyware
279
307
  end
280
308
  end
281
309
 
310
+ if attributes.key?(:'date_to_enter')
311
+ self.date_to_enter = attributes[:'date_to_enter']
312
+ end
313
+
282
314
  if attributes.key?(:'description')
283
315
  self.description = attributes[:'description']
284
316
  end
@@ -339,6 +371,10 @@ module Propertyware
339
371
  self.scheduled_end_date = attributes[:'scheduled_end_date']
340
372
  end
341
373
 
374
+ if attributes.key?(:'search_tag')
375
+ self.search_tag = attributes[:'search_tag']
376
+ end
377
+
342
378
  if attributes.key?(:'source')
343
379
  self.source = attributes[:'source']
344
380
  end
@@ -370,11 +406,23 @@ module Propertyware
370
406
  # Check to see if the all the properties in the model are valid
371
407
  # @return true if the model is valid
372
408
  def valid?
409
+ authorize_enter_validator = EnumAttributeValidator.new('String', ["NO", "ANYTIME", "SPECIFIEDTIME"])
410
+ return false unless authorize_enter_validator.valid?(@authorize_enter)
373
411
  priority_validator = EnumAttributeValidator.new('String', ["HIGH", "MEDIUM", "LOW"])
374
412
  return false unless priority_validator.valid?(@priority)
375
413
  true
376
414
  end
377
415
 
416
+ # Custom attribute writer method checking allowed values (enum).
417
+ # @param [Object] authorize_enter Object to be assigned
418
+ def authorize_enter=(authorize_enter)
419
+ validator = EnumAttributeValidator.new('String', ["NO", "ANYTIME", "SPECIFIEDTIME"])
420
+ unless validator.valid?(authorize_enter)
421
+ fail ArgumentError, "invalid value #{ authorize_enter.inspect } for \"authorize_enter\", must be one of #{validator.allowable_values}."
422
+ end
423
+ @authorize_enter = authorize_enter
424
+ end
425
+
378
426
  # Custom attribute writer method checking allowed values (enum).
379
427
  # @param [Object] priority Object to be assigned
380
428
  def priority=(priority)
@@ -391,6 +439,8 @@ module Propertyware
391
439
  return true if self.equal?(o)
392
440
  self.class == o.class &&
393
441
  age == o.age &&
442
+ approved == o.approved &&
443
+ approved_date == o.approved_date &&
394
444
  assigned_vendors == o.assigned_vendors &&
395
445
  authorize_enter == o.authorize_enter &&
396
446
  building_id == o.building_id &&
@@ -401,6 +451,7 @@ module Propertyware
401
451
  created_by == o.created_by &&
402
452
  created_date_time == o.created_date_time &&
403
453
  custom_fields == o.custom_fields &&
454
+ date_to_enter == o.date_to_enter &&
404
455
  description == o.description &&
405
456
  hour_estimate == o.hour_estimate &&
406
457
  id == o.id &&
@@ -416,6 +467,7 @@ module Propertyware
416
467
  requested_by == o.requested_by &&
417
468
  required_materials == o.required_materials &&
418
469
  scheduled_end_date == o.scheduled_end_date &&
470
+ search_tag == o.search_tag &&
419
471
  source == o.source &&
420
472
  specific_location == o.specific_location &&
421
473
  start_date == o.start_date &&
@@ -432,7 +484,7 @@ module Propertyware
432
484
  # Calculates hash code according to all attributes.
433
485
  # @return [Integer] Hash code
434
486
  def hash
435
- [age, assigned_vendors, authorize_enter, building_id, category, completed_date, contract_number, cost_estimate, created_by, created_date_time, custom_fields, description, hour_estimate, id, last_modified_by, last_modified_date_time, lease, location, maintenance_notice, managed_by, number, portfolio_id, priority, requested_by, required_materials, scheduled_end_date, source, specific_location, start_date, status, type].hash
487
+ [age, approved, approved_date, assigned_vendors, authorize_enter, building_id, category, completed_date, contract_number, cost_estimate, created_by, created_date_time, custom_fields, date_to_enter, description, hour_estimate, id, last_modified_by, last_modified_date_time, lease, location, maintenance_notice, managed_by, number, portfolio_id, priority, requested_by, required_materials, scheduled_end_date, search_tag, source, specific_location, start_date, status, type].hash
436
488
  end
437
489
 
438
490
  # Builds the object from hash