Workist Property Bills API
The Property Bills API from Workist — 5 operation(s) for property bills.
The Property Bills API from Workist — 5 operation(s) for property bills.
openapi: 3.0.3
info:
title: Workist Integrations & Developer Delivery Notes Property Bills API
version: v1
description: With this API you can access different resources of the Workist platform (e.g. processed documents, masterdata imports)
termsOfService: https://www.workist.com/terms-of-use
contact:
email: info@workist.com
servers:
- url: /v1/
- url: /api/v1/
tags:
- name: Property Bills
paths:
/property-bills:
get:
operationId: property_bills_list
description: 'To extract data from a file a `Processing Record` is created. Each `Processing Record` is part of a `Channel`. A `Channel` defines which fields should be extracted, confidence thresholds and more. '
summary: Get all processing records for this document type
parameters:
- in: query
name: channel
schema:
type: string
description: Id of a processing channel
- in: query
name: assistance_needed
schema:
type: boolean
description: Filter by assistance needed records
- in: query
name: finished
schema:
type: boolean
description: Filter by finished records
- in: query
name: imported
schema:
type: boolean
description: Filter records marked as [SUCCEEDED]
- in: query
name: import_failed
schema:
type: boolean
description: Filter records marked as [FAILED]
- in: query
name: created_by
schema:
type: string
description: Email address or id of a user.
- in: query
name: assisted_by
schema:
type: string
description: Email address or id of a user.
- in: query
name: date_from
schema:
type: string
format: date-time
description: 'Beginning of a date range (based on created_at) in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`'
- in: query
name: date_to
schema:
type: string
format: date-time
description: 'End of a date range (based on created_at) in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`'
- name: page
required: false
in: query
description: A page number within the paginated result set.
schema:
type: integer
- name: page_size
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
- in: query
name: show_unfinished_data
schema:
type: boolean
description: 'By default, only completed data is displayed to avoid inaccuracies. However, you can use this parameter to access data still under processing.
Default: `False`'
tags:
- Property Bills
security:
- BearerAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedPropertyBillProcessingRecordList'
description: ''
'400':
description: The request was unacceptable, often due to missing a required parameter or an invalid value.
'401':
description: Unauthorized, no valid token provided.
'404':
description: The requested resource doesn't exist.
'500':
description: Something went wrong on Workist's end.
post:
operationId: property_bills_create
description: 'To extract data from a file a `Processing Record` is created. Each `Processing Record` is part of a `Channel`. A `Channel` defines which fields should be extracted, confidence thresholds and more. '
summary: Add a new processing record for this document type
parameters:
- in: query
name: show_unfinished_data
schema:
type: boolean
description: 'By default, only completed data is displayed to avoid inaccuracies. However, you can use this parameter to access data still under processing.
Default: `False`'
tags:
- Property Bills
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateDocumentRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CreateDocumentRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/CreateDocumentRequest'
required: true
security:
- BearerAuthentication: []
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/PropertyBillProcessingRecord'
description: ''
'400':
description: The request was unacceptable, often due to missing a required parameter or an invalid value.
'401':
description: Unauthorized, no valid token provided.
'404':
description: The requested resource doesn't exist.
'500':
description: Something went wrong on Workist's end.
/property-bills/{id}:
get:
operationId: property_bills_retrieve
description: 'To extract data from a file a `Processing Record` is created. Each `Processing Record` is part of a `Channel`. A `Channel` defines which fields should be extracted, confidence thresholds and more. '
summary: Get a specific processing record for this document type
parameters:
- in: path
name: id
schema:
type: string
format: uuid
description: A UUID string identifying this property bill processing record.
required: true
- in: query
name: show_unfinished_data
schema:
type: boolean
description: 'By default, only completed data is displayed to avoid inaccuracies. However, you can use this parameter to access data still under processing.
Default: `False`'
tags:
- Property Bills
security:
- BearerAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PropertyBillProcessingRecord'
description: ''
'400':
description: The request was unacceptable, often due to missing a required parameter or an invalid value.
'401':
description: Unauthorized, no valid token provided.
'404':
description: The requested resource doesn't exist.
'500':
description: Something went wrong on Workist's end.
delete:
operationId: property_bills_destroy
description: 'To extract data from a file a `Processing Record` is created. Each `Processing Record` is part of a `Channel`. A `Channel` defines which fields should be extracted, confidence thresholds and more. '
summary: Delete a processing record of this document type
parameters:
- in: path
name: id
schema:
type: string
format: uuid
description: A UUID string identifying this property bill processing record.
required: true
tags:
- Property Bills
security:
- BearerAuthentication: []
responses:
'204':
description: No response body
'400':
description: The request was unacceptable, often due to missing a required parameter or an invalid value.
'401':
description: Unauthorized, no valid token provided.
'404':
description: The requested resource doesn't exist.
'500':
description: Something went wrong on Workist's end.
/property-bills/{id}/assign_user:
put:
operationId: property_bills_assign_user_update
description: The user will be stored in the field `assigned_to`.
summary: Assign a user to a specific processing record of this document type
parameters:
- in: path
name: id
schema:
type: string
format: uuid
description: A UUID string identifying this property bill processing record.
required: true
- in: query
name: show_unfinished_data
schema:
type: boolean
description: 'By default, only completed data is displayed to avoid inaccuracies. However, you can use this parameter to access data still under processing.
Default: `False`'
tags:
- Property Bills
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AssignUserRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/AssignUserRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/AssignUserRequest'
required: true
security:
- BearerAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PropertyBillProcessingRecord'
description: ''
'400':
description: The request was unacceptable, often due to missing a required parameter or an invalid value.
'401':
description: Unauthorized, no valid token provided.
'404':
description: The requested resource doesn't exist.
'500':
description: Something went wrong on Workist's end.
/property-bills/{id}/mark_imported:
put:
operationId: property_bills_mark_imported_update
description: 'To extract data from a file a `Processing Record` is created. Each `Processing Record` is part of a `Channel`. A `Channel` defines which fields should be extracted, confidence thresholds and more. '
summary: Mark a processing record as imported
parameters:
- in: path
name: id
schema:
type: string
format: uuid
description: A UUID string identifying this property bill processing record.
required: true
tags:
- Property Bills
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ChangeableMarkImportedRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/ChangeableMarkImportedRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/ChangeableMarkImportedRequest'
security:
- BearerAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PropertyBillProcessingRecord'
description: ''
'400':
description: The request was unacceptable, often due to missing a required parameter or an invalid value.
'401':
description: Unauthorized, no valid token provided.
'404':
description: The requested resource doesn't exist.
'500':
description: Something went wrong on Workist's end.
/property-bills/{id}/meta:
patch:
operationId: property_bills_meta_partial_update
summary: Update the meta information of a processing record of this document type
parameters:
- in: path
name: id
schema:
type: string
format: uuid
description: A UUID string identifying this property bill processing record.
required: true
- in: query
name: show_unfinished_data
schema:
type: boolean
description: 'By default, only completed data is displayed to avoid inaccuracies. However, you can use this parameter to access data still under processing.
Default: `False`'
tags:
- Property Bills
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedMetaRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/PatchedMetaRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/PatchedMetaRequest'
security:
- BearerAuthentication: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PropertyBillProcessingRecord'
description: ''
'400':
description: The request was unacceptable, often due to missing a required parameter or an invalid value.
'401':
description: Unauthorized, no valid token provided.
'404':
description: The requested resource doesn't exist.
'500':
description: Something went wrong on Workist's end.
components:
schemas:
PaginatedPropertyBillProcessingRecordList:
type: object
required:
- count
- results
properties:
next:
type: string
nullable: true
format: uri
example: http://api.example.org/accounts/?page=4
previous:
type: string
nullable: true
format: uri
example: http://api.example.org/accounts/?page=2
items:
type: array
items:
$ref: '#/components/schemas/PropertyBillProcessingRecord'
total_count:
type: integer
example: 123
PropertyBillProcessingRecord:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
channel:
type: string
nullable: true
readOnly: true
status:
type: string
sender:
type: string
nullable: true
subject:
type: string
nullable: true
created_at:
type: string
format: date-time
readOnly: true
updated_at:
type: string
format: date-time
readOnly: true
created_by:
allOf:
- $ref: '#/components/schemas/User'
readOnly: true
assigned_to:
allOf:
- $ref: '#/components/schemas/User'
readOnly: true
assisted_by:
allOf:
- $ref: '#/components/schemas/User'
readOnly: true
assisted_at:
type: string
format: date-time
nullable: true
delivered_at:
type: string
format: date-time
readOnly: true
finished_at:
type: string
format: date-time
nullable: true
imported_at:
type: string
format: date-time
readOnly: true
email_file_url:
type: string
nullable: true
readOnly: true
input_file_url:
type: string
nullable: true
readOnly: true
classified_files:
type: array
items:
type: object
additionalProperties:
type: string
readOnly: true
additional_file_urls:
type: array
items:
type: string
nullable: true
description: Rarely used in customisations
readOnly: true
workbench_url:
type: string
format: uri
readOnly: true
external_reference:
type: string
nullable: true
readOnly: true
external_status:
type: string
nullable: true
readOnly: true
external_message:
type: string
nullable: true
readOnly: true
data:
type: object
additionalProperties: {}
readOnly: true
required:
- additional_file_urls
- assigned_to
- assisted_by
- channel
- classified_files
- created_at
- created_by
- data
- delivered_at
- email_file_url
- external_message
- external_reference
- external_status
- id
- imported_at
- input_file_url
- status
- updated_at
- workbench_url
PatchedMetaRequest:
type: object
properties:
sender:
type: string
minLength: 1
default: ''
description: Sender of the document (e.g. sender of the original email)
subject:
type: string
minLength: 1
default: ''
description: Subject of the document (e.g. subject of the original email)
CreateDocumentRequest:
type: object
properties:
channel:
type: string
format: uuid
description: Id of a processing channel
file:
type: string
format: binary
description: File to be processed
user:
type: string
minLength: 1
description: Email address or id of a user.
required:
- channel
- file
ChangeableMarkImportedRequest:
type: object
properties:
status:
enum:
- PENDING
- SUCCEEDED
- FAILED
type: string
default: SUCCEEDED
description: 'Default is `SUCCEEDED`.
* `PENDING` - Pending
* `SUCCEEDED` - Succeeded
* `FAILED` - Failed'
external_reference:
type: string
minLength: 1
default: ''
description: Id that represents this record in the target system
external_status:
type: string
minLength: 1
default: ''
description: Status of the record in the target system
external_message:
type: string
minLength: 1
default: ''
description: E.g. error message
AssignUserRequest:
type: object
properties:
user:
type: string
minLength: 1
description: Email address or id of a user.
required:
- user
User:
type: object
properties:
first_name:
type: string
maxLength: 150
last_name:
type: string
maxLength: 150
email:
type: string
format: email
title: Email address
maxLength: 254
required:
- email
securitySchemes:
BearerAuthentication:
type: http
scheme: bearer
externalDocs:
url: https://workist.notion.site/How-to-Use-the-Master-Data-API-4fb9f1279ae8421088495e20b846b179
description: Master data implementation guide (includes code examples)