openapi: 3.2.0 info: title: Automile Resource Owner Work Order API version: v1 tags: - name: ResourceOwnerWorkOrder paths: /v1/resourceowner/workorders: get: tags: - ResourceOwnerWorkOrder summary: Retrieve a list of work orders and their containing attachments, items and notes description: If no time is set on the "to" parameter, then it's assumed all entries on the date should be included, and the time part will be set to 11:59:59 PM operationId: ResourceOwnerWorkOrder_GetWorkOrderList parameters: - in: query name: from description: Filter on JobDate to be on or after the specified date and time (default is from now) schema: type: string format: date-time - in: query name: to description: Filter on JobDate to be before the specified date and time (default is no limitation) schema: type: string format: date-time - in: query name: jobStatus description: Status on job (New = 0, Started = 1, Paused = 2, Completed = 3, Cancelled = 4, Invoiced = 5, Paid = 6) (default is all) schema: type: integer format: int32 enum: - 0 - 1 - 2 - 3 - 4 - 5 - 6 - in: query name: includeUnassigned description: Include unassigned jobs (default is true) schema: type: boolean default: true - in: query name: includeDeleted description: Include deleted jobs (default is false) schema: type: boolean default: false responses: '200': description: Successful request content: text/plain: schema: type: array items: $ref: '#/components/schemas/WorkOrderModelGET' application/json: schema: type: array items: $ref: '#/components/schemas/WorkOrderModelGET' text/json: schema: type: array items: $ref: '#/components/schemas/WorkOrderModelGET' '500': description: Internal server error security: - oauth2: [] post: tags: - ResourceOwnerWorkOrder summary: Create a work order and containing attachments, items and notes operationId: ResourceOwnerWorkOrder_CreateWorkOrder responses: '200': description: Success '201': description: Successfully created '500': description: Internal server error security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/WorkOrderModelPOST' text/json: schema: $ref: '#/components/schemas/WorkOrderModelPOST' application/*+json: schema: $ref: '#/components/schemas/WorkOrderModelPOST' description: Work order model put: tags: - ResourceOwnerWorkOrder summary: Update or create one or many work orders description: 'For work orders, items, attachments and notes with an id is updated. When id is not provided new objects is created. If an item, attachment or note is missing on an existing work order that item, attachment or note is removed.' operationId: ResourceOwnerWorkOrder_SaveWorkOrderList responses: '200': description: Successful update content: text/plain: schema: type: array items: $ref: '#/components/schemas/WorkOrderModelGET' application/json: schema: type: array items: $ref: '#/components/schemas/WorkOrderModelGET' text/json: schema: type: array items: $ref: '#/components/schemas/WorkOrderModelGET' '500': description: Internal server error. security: - oauth2: [] requestBody: content: application/json: schema: type: array items: $ref: '#/components/schemas/WorkOrderModelSyncPUT' text/json: schema: type: array items: $ref: '#/components/schemas/WorkOrderModelSyncPUT' application/*+json: schema: type: array items: $ref: '#/components/schemas/WorkOrderModelSyncPUT' description: List of Work Orders /v1/resourceowner/workorders/{workOrderId}: get: tags: - ResourceOwnerWorkOrder summary: Retrieve a work order operationId: ResourceOwnerWorkOrder_GetWorkOrder parameters: - in: path name: workOrderId description: Work order id required: true schema: type: integer format: int32 responses: '200': description: Successful request content: text/plain: schema: $ref: '#/components/schemas/WorkOrderModelGET' application/json: schema: $ref: '#/components/schemas/WorkOrderModelGET' text/json: schema: $ref: '#/components/schemas/WorkOrderModelGET' '500': description: Internal server error security: - oauth2: [] put: tags: - ResourceOwnerWorkOrder summary: Update a work order operationId: ResourceOwnerWorkOrder_UpdateWorkOrder parameters: - in: path name: workOrderId description: Work order id required: true schema: type: integer format: int32 responses: '200': description: Successful update '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/WorkOrderModelPUT' text/json: schema: $ref: '#/components/schemas/WorkOrderModelPUT' application/*+json: schema: $ref: '#/components/schemas/WorkOrderModelPUT' description: Work order delete: tags: - ResourceOwnerWorkOrder summary: Delete work order operationId: ResourceOwnerWorkOrder_DeleteWorkOrder parameters: - in: path name: workOrderId description: Work order id required: true schema: type: integer format: int32 responses: '200': description: Successful delete '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] /v1/resourceowner/workorders/getwithquoteid/{quoteId}: get: tags: - ResourceOwnerWorkOrder summary: Retrieve a work order by quote id operationId: ResourceOwnerWorkOrder_GetWorkOrderByQuoteId parameters: - in: path name: quoteId description: Quote id required: true schema: type: integer format: int32 responses: '200': description: Successful request content: text/plain: schema: $ref: '#/components/schemas/WorkOrderModelGET' application/json: schema: $ref: '#/components/schemas/WorkOrderModelGET' text/json: schema: $ref: '#/components/schemas/WorkOrderModelGET' '500': description: Internal server error security: - oauth2: [] /v1/resourceowner/workorders/{workOrderId}/attachments: post: tags: - ResourceOwnerWorkOrder summary: Creates an attachment and adds it to an existing work order operationId: ResourceOwnerWorkOrder_CreateAttachment parameters: - in: path name: workOrderId description: The work order which the attachment will be associated with required: true schema: type: integer format: int32 responses: '200': description: Success '201': description: Successfully created '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/WorkOrderAttachmentModelPOST' text/json: schema: $ref: '#/components/schemas/WorkOrderAttachmentModelPOST' application/*+json: schema: $ref: '#/components/schemas/WorkOrderAttachmentModelPOST' description: Attachment information /v1/resourceowner/workorders/{workOrderId}/status: put: tags: - ResourceOwnerWorkOrder summary: Update status of a work order operationId: ResourceOwnerWorkOrder_UpdateWorkOrderStatus parameters: - in: path name: workOrderId description: The work order which the satus should be updated on required: true schema: type: integer format: int32 responses: '200': description: Successful update '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/WorkOrderStatusModelPUT' text/json: schema: $ref: '#/components/schemas/WorkOrderStatusModelPUT' application/*+json: schema: $ref: '#/components/schemas/WorkOrderStatusModelPUT' description: Job status /v1/resourceowner/workorders/articles: get: tags: - ResourceOwnerWorkOrder summary: Get all articles operationId: ResourceOwnerWorkOrder_GetArticleList responses: '200': description: Successful request content: text/plain: schema: type: array items: $ref: '#/components/schemas/WorkOrderArticleModelGET' application/json: schema: type: array items: $ref: '#/components/schemas/WorkOrderArticleModelGET' text/json: schema: type: array items: $ref: '#/components/schemas/WorkOrderArticleModelGET' '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] post: tags: - ResourceOwnerWorkOrder summary: Create a article operationId: ResourceOwnerWorkOrder_CreateArticle responses: '200': description: Success '201': description: Successfully created '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/WorkOrderArticleModelPOST' text/json: schema: $ref: '#/components/schemas/WorkOrderArticleModelPOST' application/*+json: schema: $ref: '#/components/schemas/WorkOrderArticleModelPOST' description: Article information /v1/resourceowner/workorders/articles/{workOrderArticleId}: get: tags: - ResourceOwnerWorkOrder summary: Get a specific article operationId: ResourceOwnerWorkOrder_GetArticle parameters: - in: path name: workOrderArticleId description: Work order article id required: true schema: type: integer format: int32 responses: '200': description: Successful request content: text/plain: schema: $ref: '#/components/schemas/WorkOrderArticleModelGET' application/json: schema: $ref: '#/components/schemas/WorkOrderArticleModelGET' text/json: schema: $ref: '#/components/schemas/WorkOrderArticleModelGET' '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] put: tags: - ResourceOwnerWorkOrder summary: Update a article operationId: ResourceOwnerWorkOrder_UpdateArticle parameters: - in: path name: workOrderArticleId description: Work order article id required: true schema: type: integer format: int32 responses: '200': description: Successfully updated '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/WorkOrderArticleModelPUT' text/json: schema: $ref: '#/components/schemas/WorkOrderArticleModelPUT' application/*+json: schema: $ref: '#/components/schemas/WorkOrderArticleModelPUT' description: Article information delete: tags: - ResourceOwnerWorkOrder summary: Delete a article operationId: ResourceOwnerWorkOrder_DeleteArticle parameters: - in: path name: workOrderArticleId description: Work order article id required: true schema: type: integer format: int32 responses: '200': description: Successfully deleted '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] /v1/resourceowner/workorders/categories: get: tags: - ResourceOwnerWorkOrder summary: Get all categories operationId: ResourceOwnerWorkOrder_GetCategoryList responses: '200': description: Successful request content: text/plain: schema: type: array items: $ref: '#/components/schemas/WorkOrderCategoryModelGET' application/json: schema: type: array items: $ref: '#/components/schemas/WorkOrderCategoryModelGET' text/json: schema: type: array items: $ref: '#/components/schemas/WorkOrderCategoryModelGET' '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] post: tags: - ResourceOwnerWorkOrder summary: Create a category operationId: ResourceOwnerWorkOrder_CreateCategory responses: '200': description: Success '201': description: Successfully created '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/WorkOrderCategoryModelPOST' text/json: schema: $ref: '#/components/schemas/WorkOrderCategoryModelPOST' application/*+json: schema: $ref: '#/components/schemas/WorkOrderCategoryModelPOST' description: Category information /v1/resourceowner/workorders/categories/{workOrderCategoryId}: get: tags: - ResourceOwnerWorkOrder summary: Get a specific category operationId: ResourceOwnerWorkOrder_GetCategory parameters: - in: path name: workOrderCategoryId description: Work order category id required: true schema: type: integer format: int32 responses: '200': description: Successful request content: text/plain: schema: $ref: '#/components/schemas/WorkOrderCategoryModelGET' application/json: schema: $ref: '#/components/schemas/WorkOrderCategoryModelGET' text/json: schema: $ref: '#/components/schemas/WorkOrderCategoryModelGET' '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] delete: tags: - ResourceOwnerWorkOrder summary: Delete a category operationId: ResourceOwnerWorkOrder_DeleteCategory parameters: - in: path name: workOrderCategoryId description: Work order category id required: true schema: type: integer format: int32 responses: '200': description: Successfully deleted '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] /v1/resourceowner/workorders/customers: get: tags: - ResourceOwnerWorkOrder summary: Get all customers operationId: ResourceOwnerWorkOrder_GetCustomerList responses: '200': description: Successful request content: text/plain: schema: type: array items: $ref: '#/components/schemas/WorkOrderCustomerModelGET' application/json: schema: type: array items: $ref: '#/components/schemas/WorkOrderCustomerModelGET' text/json: schema: type: array items: $ref: '#/components/schemas/WorkOrderCustomerModelGET' '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] post: tags: - ResourceOwnerWorkOrder summary: Create a customer operationId: ResourceOwnerWorkOrder_CreateCustomer responses: '200': description: Success '201': description: Successfully created '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/WorkOrderCustomerModelPOST' text/json: schema: $ref: '#/components/schemas/WorkOrderCustomerModelPOST' application/*+json: schema: $ref: '#/components/schemas/WorkOrderCustomerModelPOST' description: Customer information /v1/resourceowner/workorders/customers/{workOrderCustomerId}: get: tags: - ResourceOwnerWorkOrder summary: Get a specific customer operationId: ResourceOwnerWorkOrder_GetCustomer parameters: - in: path name: workOrderCustomerId description: Work order customer id required: true schema: type: integer format: int32 responses: '200': description: Successful request content: text/plain: schema: $ref: '#/components/schemas/WorkOrderCustomerModelGET' application/json: schema: $ref: '#/components/schemas/WorkOrderCustomerModelGET' text/json: schema: $ref: '#/components/schemas/WorkOrderCustomerModelGET' '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] put: tags: - ResourceOwnerWorkOrder summary: Update a customer operationId: ResourceOwnerWorkOrder_UpdateCustomer parameters: - in: path name: workOrderCustomerId description: Work order customer id required: true schema: type: integer format: int32 responses: '200': description: Successfully updated content: text/plain: schema: $ref: '#/components/schemas/WorkOrderCustomerModelGET' application/json: schema: $ref: '#/components/schemas/WorkOrderCustomerModelGET' text/json: schema: $ref: '#/components/schemas/WorkOrderCustomerModelGET' '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/WorkOrderCustomerModelPUT' text/json: schema: $ref: '#/components/schemas/WorkOrderCustomerModelPUT' application/*+json: schema: $ref: '#/components/schemas/WorkOrderCustomerModelPUT' description: Customer information delete: tags: - ResourceOwnerWorkOrder summary: Delete a customer operationId: ResourceOwnerWorkOrder_DeleteCustomer parameters: - in: path name: workOrderCustomerId description: Work order customer id required: true schema: type: integer format: int32 responses: '200': description: Successfully deleted '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] /v1/resourceowner/workorders/referenceId: get: tags: - ResourceOwnerWorkOrder summary: Get a new reference id for a work order (not unique) operationId: ResourceOwnerWorkOrder_GetNextWorkOrderId responses: '200': description: Successful request content: text/plain: schema: type: string application/json: schema: type: string text/json: schema: type: string '403': description: Forbidden access to resource '500': description: Internal server error security: - oauth2: [] components: schemas: PositionPointModel: type: object properties: Longitude: format: double type: number Latitude: format: double type: number additionalProperties: false WorkOrderModelSyncPUT: type: object properties: JobDate: format: date-time type: string JobTime: $ref: '#/components/schemas/TimeSpan' EstimatedTimeInMinutes: format: int32 type: integer JobDescription: type: string ExternalId: type: string CustomerContactName: type: string CustomerEmail: type: string CustomerName: type: string CustomerCommunicationLanguageISO639_2: type: string CustomerPhoneNumber: type: string CustomerJobAddress: $ref: '#/components/schemas/CustomerJobAddressModel' CustomerBillingAddress: $ref: '#/components/schemas/CustomerBillingAddressModel' NotificationType: format: int32 enum: - 0 - 1 - 2 - 3 type: integer WorkOrderCategoryId: format: int32 type: integer CategoryName: type: string AssignedToContactId: format: int32 type: integer QuoteId: format: int32 type: integer WorkOrderCustomerId: format: int32 type: integer Status: format: int32 enum: - 0 - 1 - 2 - 3 - 4 - 5 - 6 type: integer Notes: type: array items: $ref: '#/components/schemas/WorkOrderNoteModelPUT' Items: type: array items: $ref: '#/components/schemas/WorkOrderItemModelPUT' Attachments: type: array items: $ref: '#/components/schemas/WorkOrderAttachmentModelPUT' WorkOrderId: format: int32 type: integer additionalProperties: false CustomerJobAddressModel: type: object properties: Street: type: string Apartment: type: string CareOf: type: string ZipCode: type: string City: type: string StateOrProvince: type: string ISO3166CountryCode: type: string Position: $ref: '#/components/schemas/PositionPointModel' additionalProperties: false WorkOrderItemModelPOST: required: - Quantity - WorkOrderArticleId type: object properties: Quantity: format: double type: number PricePerQuantityExclVAT: format: double type: number DiscountInPercentage: format: double type: number DiscountAmount: format: double type: number TaxRate: format: double type: number WorkOrderArticleId: format: int32 type: integer ArticleName: type: string UnitType: format: int32 enum: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 type: integer additionalProperties: false WorkOrderStatusModelPUT: required: - Status type: object properties: Status: format: int32 enum: - 0 - 1 - 2 - 3 - 4 - 5 - 6 type: integer additionalProperties: false WorkOrderModelGET: type: object properties: JobDate: format: date-time type: string JobTime: $ref: '#/components/schemas/TimeSpan' EstimatedTimeInMinutes: format: int32 type: integer JobDescription: type: string ExternalId: type: string CustomerContactName: type: string CustomerEmail: type: string CustomerName: type: string CustomerCommunicationLanguageISO639_2: type: string CustomerPhoneNumber: type: string CustomerJobAddress: $ref: '#/components/schemas/CustomerJobAddressModel' CustomerBillingAddress: $ref: '#/components/schemas/CustomerBillingAddressModel' NotificationType: format: int32 enum: - 0 - 1 - 2 - 3 type: integer WorkOrderCategoryId: format: int32 type: integer CategoryName: type: string AssignedToContactId: format: int32 type: integer QuoteId: format: int32 type: integer WorkOrderCustomerId: format: int32 type: integer Status: format: int32 enum: - 0 - 1 - 2 - 3 - 4 - 5 - 6 type: integer WorkOrderId: format: int32 type: integer Created: format: date-time type: string IsDeleted: type: boolean Rating: format: double type: number RequestedByContactId: format: int32 type: integer StatusHistory: type: array items: $ref: '#/components/schemas/WorkOrderStatusHistoryModelGET' Notes: type: array items: $ref: '#/components/schemas/WorkOrderNoteModelGET' Items: type: array items: $ref: '#/components/schemas/WorkOrderItemModelGET' Attachments: type: array items: $ref: '#/components/schemas/WorkOrderAttachmentModelGET' additionalProperties: false WorkOrderItemModelPUT: required: - Quantity - WorkOrderArticleId type: object properties: Quantity: format: double type: number PricePerQuantityExclVAT: format: double type: number DiscountInPercentage: format: double type: number DiscountAmount: format: double type: number TaxRate: format: double type: number WorkOrderArticleId: format: int32 type: integer ArticleName: type: string UnitType: format: int32 enum: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 type: integer WorkOrderItemId: format: int32 type: integer additionalProperties: false WorkOrderArticleModelPUT: required: - ArticleName - PricePerQuantityExclVAT - TaxRate type: object properties: UnitType: format: int32 enum: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 type: integer ArticleName: minLength: 1 type: string PricePerQuantityExclVAT: format: double type: number TaxRate: format: double type: number additionalProperties: false WorkOrderAttachmentModelPOST: required: - AttachmentType - URL type: object properties: URL: minLength: 1 type: string Description: type: string AttachmentType: format: int32 enum: - 0 - 1 - 2 type: integer additionalProperties: false CustomerBillingAddressModel: type: object properties: Street: type: string Apartment: type: string CareOf: type: string ZipCode: type: string City: type: string StateOrProvince: type: string ISO3166CountryCode: type: string Position: $ref: '#/components/schemas/PositionPointModel' additionalProperties: false WorkOrderCategoryModelGET: required: - CategoryName type: object properties: CategoryName: minLength: 1 type: string Created: format: date-time type: string WorkOrderCategoryId: format: int32 type: integer additionalProperties: false WorkOrderNoteModelPUT: required: - Note type: object properties: Note: minLength: 1 type: string WorkOrderNoteId: format: int32 type: integer additionalProperties: false WorkOrderStatusHistoryModelGET: type: object properties: OccuredAt: format: date-time type: string ContactId: format: int32 type: integer Status: format: int32 enum: - 0 - 1 - 2 - 3 - 4 - 5 - 6 type: integer additionalProperties: false WorkOrderCustomerModelPUT: type: object properties: Name: type: string ContactName: type: string CommunicationLanguageISO639_2: type: string Email: type: string PhoneNumber: type: string BillingAddress: $ref: '#/components/schemas/CustomerBillingAddressModel' JobAddress: $ref: '#/components/schemas/CustomerJobAddressModel' additionalProperties: false WorkOrderAttachmentModelPUT: required: - AttachmentType - URL type: object properties: URL: minLength: 1 type: string Description: type: string AttachmentType: format: int32 enum: - 0 - 1 - 2 type: integer WorkOrderAttachmentId: format: int32 type: integer additionalProperties: false WorkOrderCustomerModelPOST: type: object properties: Name: type: string ContactName: type: string CommunicationLanguageISO639_2: type: string Email: type: string PhoneNumber: type: string BillingAddress: $ref: '#/components/schemas/CustomerBillingAddressModel' JobAddress: $ref: '#/components/schemas/CustomerJobAddressModel' additionalProperties: false WorkOrderCategoryModelPOST: required: - CategoryName type: object properties: CategoryName: minLength: 1 type: string additionalProperties: false WorkOrderNoteModelPOST: required: - Note type: object properties: Note: minLength: 1 type: string additionalProperties: false WorkOrderAttachmentModelGET: required: - AttachmentType - URL type: object properties: URL: minLength: 1 type: string Description: type: string AttachmentType: format: int32 enum: - 0 - 1 - 2 type: integer WorkOrderAttachmentId: format: int32 type: integer CreatedByContactId: format: int32 type: integer Created: format: date-time type: string additionalProperties: false TimeSpan: type: object properties: Ticks: format: int64 type: integer Days: format: int32 type: integer readOnly: true Hours: format: int32 type: integer readOnly: true Milliseconds: format: int32 type: integer readOnly: true Microseconds: format: int32 type: integer readOnly: true Nanoseconds: format: int32 type: integer readOnly: true Minutes: format: int32 type: integer readOnly: true Seconds: format: int32 type: integer readOnly: true TotalDays: format: double type: number readOnly: true TotalHours: format: double type: number readOnly: true TotalMilliseconds: format: double type: number readOnly: true TotalMicroseconds: format: double type: number readOnly: true TotalNanoseconds: format: double type: number readOnly: true TotalMinutes: format: double type: number readOnly: true TotalSeconds: format: double type: number readOnly: true additionalProperties: false WorkOrderArticleModelGET: required: - ArticleName - PricePerQuantityExclVAT - TaxRate type: object properties: UnitType: format: int32 enum: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 type: integer ArticleName: minLength: 1 type: string PricePerQuantityExclVAT: format: double type: number TaxRate: format: double type: number ISO4217CurrencyCode: type: string WorkOrderArticleId: format: int32 type: integer Created: format: date-time type: string additionalProperties: false WorkOrderModelPUT: type: object properties: JobDate: format: date-time type: string JobTime: $ref: '#/components/schemas/TimeSpan' EstimatedTimeInMinutes: format: int32 type: integer JobDescription: type: string ExternalId: type: string CustomerContactName: type: string CustomerEmail: type: string CustomerName: type: string CustomerCommunicationLanguageISO639_2: type: string CustomerPhoneNumber: type: string CustomerJobAddress: $ref: '#/components/schemas/CustomerJobAddressModel' CustomerBillingAddress: $ref: '#/components/schemas/CustomerBillingAddressModel' NotificationType: format: int32 enum: - 0 - 1 - 2 - 3 type: integer WorkOrderCategoryId: format: int32 type: integer CategoryName: type: string AssignedToContactId: format: int32 type: integer QuoteId: format: int32 type: integer WorkOrderCustomerId: format: int32 type: integer Status: format: int32 enum: - 0 - 1 - 2 - 3 - 4 - 5 - 6 type: integer Notes: type: array items: $ref: '#/components/schemas/WorkOrderNoteModelPUT' Items: type: array items: $ref: '#/components/schemas/WorkOrderItemModelPUT' Attachments: type: array items: $ref: '#/components/schemas/WorkOrderAttachmentModelPUT' additionalProperties: false WorkOrderNoteModelGET: required: - Note type: object properties: Note: minLength: 1 type: string WorkOrderNoteId: format: int32 type: integer CreatedByContactId: format: int32 type: integer Created: format: date-time type: string additionalProperties: false WorkOrderCustomerModelGET: type: object properties: Name: type: string ContactName: type: string CommunicationLanguageISO639_2: type: string Email: type: string PhoneNumber: type: string BillingAddress: $ref: '#/components/schemas/CustomerBillingAddressModel' JobAddress: $ref: '#/components/schemas/CustomerJobAddressModel' WorkOrderCustomerId: format: int32 type: integer CreatedDate: format: date-time type: string additionalProperties: false WorkOrderItemModelGET: required: - Quantity - WorkOrderArticleId type: object properties: Quantity: format: double type: number PricePerQuantityExclVAT: format: double type: number DiscountInPercentage: format: double type: number DiscountAmount: format: double type: number TaxRate: format: double type: number WorkOrderArticleId: format: int32 type: integer ArticleName: type: string UnitType: format: int32 enum: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 type: integer ISO4217CurrencyCode: type: string WorkOrderItemId: format: int32 type: integer Created: format: date-time type: string additionalProperties: false WorkOrderArticleModelPOST: required: - ArticleName - PricePerQuantityExclVAT - TaxRate type: object properties: UnitType: format: int32 enum: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 type: integer ArticleName: minLength: 1 type: string PricePerQuantityExclVAT: format: double type: number TaxRate: format: double type: number additionalProperties: false WorkOrderModelPOST: type: object properties: JobDate: format: date-time type: string JobTime: $ref: '#/components/schemas/TimeSpan' EstimatedTimeInMinutes: format: int32 type: integer JobDescription: type: string ExternalId: type: string CustomerContactName: type: string CustomerEmail: type: string CustomerName: type: string CustomerCommunicationLanguageISO639_2: type: string CustomerPhoneNumber: type: string CustomerJobAddress: $ref: '#/components/schemas/CustomerJobAddressModel' CustomerBillingAddress: $ref: '#/components/schemas/CustomerBillingAddressModel' NotificationType: format: int32 enum: - 0 - 1 - 2 - 3 type: integer WorkOrderCategoryId: format: int32 type: integer CategoryName: type: string AssignedToContactId: format: int32 type: integer QuoteId: format: int32 type: integer WorkOrderCustomerId: format: int32 type: integer Status: format: int32 enum: - 0 - 1 - 2 - 3 - 4 - 5 - 6 type: integer Notes: type: array items: $ref: '#/components/schemas/WorkOrderNoteModelPOST' Items: type: array items: $ref: '#/components/schemas/WorkOrderItemModelPOST' Attachments: type: array items: $ref: '#/components/schemas/WorkOrderAttachmentModelPOST' additionalProperties: false securitySchemes: oauth2: type: oauth2 flows: implicit: scopes: read: Read access to protected resources write: Write access to protected resources authorizationUrl: https://api.automile.com/login/ description: OAuth2 Implicit Grant x-provenance: method: harvested publisher: Automileab source: https://api.automile.com/swagger/v1/swagger.json note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json); stamped by stamp-openapi-provenance.py (roadmap#793)