openapi: 3.2.0 info: version: 0.48.24 termsOfService: https://www.decisiv.com/terms-of-use contact: name: Decisiv Support email: support@decisiv.com url: https://www.decisiv.com title: Service Management Sublet Requests API description: The **Decisiv SRM Gateway** `Service Management` module provides the API functionality for managing an asset's case lifecycle from a Service Providers perspective. license: name: Proprietary identifier: proprietary url: https://www.decisiv.com/terms-of-use/ servers: - url: https://srm-api.staging.decisivapps.com - url: https://srm-api.decisivapps.com security: - OAuth2AuthorizationCode: [] AccessToken: [] - OAuth2Password: [] AccessToken: [] tags: - name: Sublet Requests paths: /service_management/{srm_account_id}/v1/sublet_requests: get: summary: Retrieves a list of sublet requests tags: - Sublet Requests parameters: - name: srm_account_id in: path description: The account ID for SRM required: true schema: type: string - name: include in: query required: false schema: type: array items: type: string enum: - service_provider - parent_case - sublet_case description: The relationships to be included. - name: filter[status] in: query required: false schema: type: string description: Filters the sublet_requests for the given status, using exact matching search - name: filter[service_provider.id] in: query required: false schema: type: string description: Filters the sublet_requests for the given service_provider.id, using exact matching search - name: filter[parent_case.id] in: query required: false schema: type: string description: Filters the sublet_requests for the given parent_case.id, using exact matching search - name: filter[event_timestamps.requested_at:gt] in: query required: false schema: type: string description: Filters the sublet_requests for the given event_timestamps.requested_at:gt, using exact matching search - name: filter[event_timestamps.requested_at:lt] in: query required: false schema: type: string description: Filters the sublet_requests for the given event_timestamps.requested_at:lt, using exact matching search - name: filter[event_timestamps.requested_at:gte] in: query required: false schema: type: string description: Filters the sublet_requests for the given event_timestamps.requested_at:gte, using exact matching search - name: filter[event_timestamps.requested_at:lte] in: query required: false schema: type: string description: Filters the sublet_requests for the given event_timestamps.requested_at:lte, using exact matching search - name: page[number] in: query required: false schema: type: integer default: 1 minimum: 1 description: Sets the desired `page` when encountering larger result sets - name: page[size] in: query required: false schema: type: integer default: 25 minimum: 1 description: Sets the desired maximum number of results per page responses: '200': description: The request has succeeded. It may or may not return a single resource of collection of resources. content: application/vnd.api+json: example: data: - id: 55dc388f-89ed-411d-9a79-825162e59137 type: sublet_requests attributes: complaint: Check Engine Light continually on status: pending po_number: THX1138 auth_number: FLT2112 note: Sample note reference_number: 18328893 primary_contact: {} driver: {} breakdown: location: John Smith, 5480 7th Ave city: San Francisco state: CA event_timestamps: requested_at: '2025-04-10T13:28:31Z' requested_appointment_time: '2025-04-10T13:28:31Z' requested_completion_time: '2025-04-10T13:28:31Z' asset_downtime: '2025-04-09T13:28:31Z' created_at: '2025-04-10T13:28:31Z' updated_at: '2025-04-10T13:28:31Z' links: self: https://srm-api.decisivapps.com/api/service_management/{srm_account_id}/v1/sublet_requests/55dc388f-89ed-411d-9a79-825162e59137 relationships: parent_case: data: type: cases id: 487136d2-c4d6-424c-b018-f1ed8a740c6a service_provider: data: type: service_providers id: 65b8d7f1-77aa-4b62-9a62-7207da98bb94 sublet_case: data: type: sublet_cases id: dc8b7b66-288c-4072-9e31-3df871d5e561 schema: $ref: '#/components/schemas/sublet_requests' '400': description: This response may occur when an invalid request has been provided to the server. The request may be corrected by the consumer and resubmitted. content: application/vnd.api+json: example: errors: - title: Filter not allowed detail: '''{{filter_name}}'' is not allowed. Valid filters: {{filters_list}}' code: decisiv:filters:001 status: '400' source: parameter: filter[filter_name] schema: $ref: '#/components/schemas/errors_response' '401': description: This response may occur when the access token provided within the Authorization token has expired. content: application/vnd.api+json: example: errors: - title: Access unauthorized detail: Access unauthorized code: decisiv::access_token:001 status: '401' schema: $ref: '#/components/schemas/errors_response' '403': description: This response may occur when the authenticated user embedded within the Authorization header does not have access to the requested resource. content: application/vnd.api+json: example: errors: - title: Forbidden detail: User does not have permission to perform this action on the requested resource(s) code: decisiv:access:001 status: '403' schema: $ref: '#/components/schemas/errors_response' '428': description: This response represents requests to a module or endpoint which can not immediately be accessed due to the Account permissions and subscriptions in the Decisiv Platform. content: application/vnd.api+json: example: errors: - title: Precondition Required detail: Precondition Required code: '428' status: '428' schema: $ref: '#/components/schemas/errors_response' '504': description: This response may occur when there is an unexpected system timeout. content: application/vnd.api+json: example: errors: - code: '504' detail: Gateway timeout error status: '504' title: Gateway timeout error schema: $ref: '#/components/schemas/errors_response' post: summary: Create a new sublet request tags: - Sublet Requests parameters: - name: srm_account_id in: path description: The account ID for SRM required: true schema: type: string - name: include in: query required: false schema: type: array items: type: string enum: - service_provider - parent_case - sublet_case description: The relationships to be included. - name: X-DECISIV-SILENCE-EVENTS in: header required: false schema: type: array items: type: string enum: - sublet_request:submitted - decisiv:service_management:sublet_request:submitted description: Corresponding webhook events which can be muted for the given transaction responses: '201': description: The request has been fulfilled and a new resource is available. content: application/vnd.api+json: example: data: id: 55dc388f-89ed-411d-9a79-825162e59137 type: sublet_requests attributes: complaint: Check Engine Light continually on status: pending po_number: THX1138 auth_number: FLT2112 note: Sample note reference_number: 18328893 primary_contact: {} driver: {} breakdown: location: John Smith, 5480 7th Ave city: San Francisco state: CA event_timestamps: requested_at: '2025-04-10T13:28:31Z' requested_appointment_time: '2025-04-10T13:28:31Z' requested_completion_time: '2025-04-10T13:28:31Z' asset_downtime: '2025-04-09T13:28:31Z' created_at: '2025-04-10T13:28:31Z' updated_at: '2025-04-10T13:28:31Z' links: self: https://srm-api.decisivapps.com/api/service_management/{srm_account_id}/v1/sublet_requests/55dc388f-89ed-411d-9a79-825162e59137 relationships: parent_case: data: type: cases id: 487136d2-c4d6-424c-b018-f1ed8a740c6a service_provider: data: type: service_providers id: 65b8d7f1-77aa-4b62-9a62-7207da98bb94 sublet_case: data: type: sublet_cases id: dc8b7b66-288c-4072-9e31-3df871d5e561 schema: $ref: '#/components/schemas/sublet_request' '400': description: This response may occur when an invalid request has been provided to the server. The request may be corrected by the consumer and resubmitted. content: application/vnd.api+json: example: errors: - title: Filter not allowed detail: '''{{filter_name}}'' is not allowed. Valid filters: {{filters_list}}' code: decisiv:filters:001 status: '400' source: parameter: filter[filter_name] - title: Bad Request detail: Invalid value for X-DECISIV-SILENCE-EVENTS header code: decisiv:silence_webhook_events:001 status: '400' schema: $ref: '#/components/schemas/errors_response' '401': description: This response may occur when the access token provided within the Authorization token has expired. content: application/vnd.api+json: example: errors: - title: Access unauthorized detail: Access unauthorized code: decisiv::access_token:001 status: '401' schema: $ref: '#/components/schemas/errors_response' '403': description: This response may occur when the authenticated user embedded within the Authorization header does not have access to the requested resource. content: application/vnd.api+json: example: errors: - title: Forbidden detail: User does not have permission to perform this action on the requested resource(s) code: decisiv:access:001 status: '403' schema: $ref: '#/components/schemas/errors_response' '422': description: Invalid relationship uuid format error / Parent case not found error content: application/vnd.api+json: schema: $ref: '#/components/schemas/errors_response' examples: Invalid relationship uuid format error: value: errors: - status: '422' code: decisiv:relationships:001 title: Invalid ID format requested detail: Provided ID in relationships must be a valid UUID format source: pointer: /data/relationships/parent_case|service_provider/data/id Parent case not found error: value: errors: - status: '422' code: decisiv:sublet_request:001 detail: Parent Case not found for the requested Account source: pointer: /data/relationships/parent_case/data/id '424': description: This response may occur when there is an unresolved data dependency or configuration required inside of the Decisiv Platform preventing access to the requested action. content: application/vnd.api+json: example: errors: - title: Failed Dependency detail: Failed Dependency code: '424' status: '424' schema: $ref: '#/components/schemas/errors_response' '428': description: This response represents requests to a module or endpoint which can not immediately be accessed due to the Account permissions and subscriptions in the Decisiv Platform. content: application/vnd.api+json: example: errors: - title: Precondition Required detail: Precondition Required code: '428' status: '428' schema: $ref: '#/components/schemas/errors_response' '429': description: This response will often be associated as a result of an over abundance of calls by a specific Application, Account, or IP Address resulting in a required cool off period. content: application/vnd.api+json: example: errors: - code: '429' detail: The maximum number of requests for this application has been far exceeded with the given credentials. status: '429' title: Too Many Requests schema: $ref: '#/components/schemas/errors_response' '504': description: This response may occur when there is an unexpected system timeout. content: application/vnd.api+json: example: errors: - code: '504' detail: Gateway timeout error status: '504' title: Gateway timeout error schema: $ref: '#/components/schemas/errors_response' requestBody: content: application/vnd.api+json: schema: $ref: '#/components/schemas/create_sublet_request' examples: Sublet: value: data: type: sublet_requests attributes: complaint: Check Engine Light continually on po_number: THX1138 auth_number: FLT2112 note: Sample note primary_contact: {} driver: {} breakdown: location: John Smith, 5480 7th Ave city: San Francisco state: CA event_timestamps: requested_at: '2025-04-10T13:28:31Z' requested_appointment_time: '2025-04-10T13:28:31Z' requested_completion_time: '2025-04-10T13:28:31Z' asset_downtime: '2025-04-09T13:28:31Z' relationships: parent_case: data: type: cases id: 487136d2-c4d6-424c-b018-f1ed8a740c6a service_provider: data: type: service_providers id: 65b8d7f1-77aa-4b62-9a62-7207da98bb94 /service_management/{srm_account_id}/v1/sublet_requests/{id}: get: summary: Retrieves a sublet request tags: - Sublet Requests parameters: - name: srm_account_id in: path description: The account ID for SRM required: true schema: type: string - name: id in: path schema: type: string format: uuid description: The resource UUID required: true responses: '200': description: The request has succeeded. It may or may not return a single resource of collection of resources. content: application/vnd.api+json: example: data: id: 55dc388f-89ed-411d-9a79-825162e59137 type: sublet_requests attributes: complaint: Check Engine Light continually on status: pending po_number: THX1138 auth_number: FLT2112 note: Sample note reference_number: 18328893 primary_contact: {} driver: {} breakdown: location: John Smith, 5480 7th Ave city: San Francisco state: CA event_timestamps: requested_at: '2025-04-10T13:28:31Z' requested_appointment_time: '2025-04-10T13:28:31Z' requested_completion_time: '2025-04-10T13:28:31Z' asset_downtime: '2025-04-09T13:28:31Z' created_at: '2025-04-10T13:28:31Z' updated_at: '2025-04-10T13:28:31Z' links: self: https://srm-api.decisivapps.com/api/service_management/{srm_account_id}/v1/sublet_requests/55dc388f-89ed-411d-9a79-825162e59137 relationships: parent_case: data: type: cases id: 487136d2-c4d6-424c-b018-f1ed8a740c6a service_provider: data: type: service_providers id: 65b8d7f1-77aa-4b62-9a62-7207da98bb94 sublet_case: data: type: sublet_cases id: dc8b7b66-288c-4072-9e31-3df871d5e561 schema: $ref: '#/components/schemas/sublet_request' '400': description: This response may occur when an invalid request has been provided to the server. The request may be corrected by the consumer and resubmitted. content: application/vnd.api+json: example: errors: - title: Invalid UUID Format detail: The `ID` value does not contain a valid UUID format code: '107' status: '400' schema: $ref: '#/components/schemas/errors_response' '401': description: This response may occur when the access token provided within the Authorization token has expired. content: application/vnd.api+json: example: errors: - title: Access unauthorized detail: Access unauthorized code: decisiv::access_token:001 status: '401' schema: $ref: '#/components/schemas/errors_response' '403': description: This response may occur when the authenticated user embedded within the Authorization header does not have access to the requested resource. content: application/vnd.api+json: example: errors: - title: Forbidden detail: User does not have permission to perform this action on the requested resource(s) code: decisiv:access:001 status: '403' schema: $ref: '#/components/schemas/errors_response' '404': description: This response may occur when the requested resource is not found. content: application/vnd.api+json: example: errors: - title: Record not found detail: The requested record or one of its relationships could not be found code: '404' status: '404' schema: $ref: '#/components/schemas/errors_response' '424': description: This response may occur when there is an unresolved data dependency or configuration required inside of the Decisiv Platform preventing access to the requested action. content: application/vnd.api+json: example: errors: - title: Failed Dependency detail: Failed Dependency code: '424' status: '424' schema: $ref: '#/components/schemas/errors_response' '428': description: This response represents requests to a module or endpoint which can not immediately be accessed due to the Account permissions and subscriptions in the Decisiv Platform. content: application/vnd.api+json: example: errors: - title: Precondition Required detail: Precondition Required code: '428' status: '428' schema: $ref: '#/components/schemas/errors_response' '504': description: This response may occur when there is an unexpected system timeout. content: application/vnd.api+json: example: errors: - code: '504' detail: Gateway timeout error status: '504' title: Gateway timeout error schema: $ref: '#/components/schemas/errors_response' put: summary: Updates a sublet request tags: - Sublet Requests parameters: - name: srm_account_id in: path description: The account ID for SRM required: true schema: type: string - name: id in: path schema: type: string format: uuid description: The resource UUID required: true responses: '200': description: The request has succeeded. It may or may not return a single resource of collection of resources. content: application/vnd.api+json: example: data: id: 55dc388f-89ed-411d-9a79-825162e59137 type: sublet_requests attributes: complaint: Check Engine Light continually on status: pending po_number: THX1138 auth_number: FLT2112 note: Sample note reference_number: 18328893 primary_contact: {} driver: {} breakdown: location: John Smith, 5480 7th Ave city: San Francisco state: CA event_timestamps: requested_at: '2025-04-10T13:28:31Z' requested_appointment_time: '2025-04-10T13:28:31Z' requested_completion_time: '2025-04-10T13:28:31Z' asset_downtime: '2025-04-09T13:28:31Z' created_at: '2025-04-10T13:28:31Z' updated_at: '2025-04-10T13:28:31Z' links: self: https://srm-api.decisivapps.com/api/service_management/{srm_account_id}/v1/sublet_requests/55dc388f-89ed-411d-9a79-825162e59137 relationships: parent_case: data: type: cases id: 487136d2-c4d6-424c-b018-f1ed8a740c6a service_provider: data: type: service_providers id: 65b8d7f1-77aa-4b62-9a62-7207da98bb94 sublet_case: data: type: sublet_cases id: dc8b7b66-288c-4072-9e31-3df871d5e561 schema: $ref: '#/components/schemas/sublet_request' '401': description: This response may occur when the access token provided within the Authorization token has expired. content: application/vnd.api+json: example: errors: - title: Access unauthorized detail: Access unauthorized code: decisiv::access_token:001 status: '401' schema: $ref: '#/components/schemas/errors_response' '403': description: This response may occur when the authenticated user embedded within the Authorization header does not have access to the requested resource. content: application/vnd.api+json: example: errors: - title: Forbidden detail: User does not have permission to perform this action on the requested resource(s) code: decisiv:access:001 status: '403' schema: $ref: '#/components/schemas/errors_response' '422': description: invalid previous status content: application/vnd.api+json: example: errors: - code: decisiv:sublet_requests:004 status: '422' title: Unprocessable record detail: Only Sublet Requests with a status of 'Pending' may be canceled by the requesting account schema: $ref: '#/components/schemas/errors_response' '424': description: This response may occur when there is an unresolved data dependency or configuration required inside of the Decisiv Platform preventing access to the requested action. content: application/vnd.api+json: example: errors: - title: Failed Dependency detail: Failed Dependency code: '424' status: '424' schema: $ref: '#/components/schemas/errors_response' '428': description: This response represents requests to a module or endpoint which can not immediately be accessed due to the Account permissions and subscriptions in the Decisiv Platform. content: application/vnd.api+json: example: errors: - title: Precondition Required detail: Precondition Required code: '428' status: '428' schema: $ref: '#/components/schemas/errors_response' '429': description: This response will often be associated as a result of an over abundance of calls by a specific Application, Account, or IP Address resulting in a required cool off period. content: application/vnd.api+json: example: errors: - code: '429' detail: The maximum number of requests for this application has been far exceeded with the given credentials. status: '429' title: Too Many Requests schema: $ref: '#/components/schemas/errors_response' '504': description: This response may occur when there is an unexpected system timeout. content: application/vnd.api+json: example: errors: - code: '504' detail: Gateway timeout error status: '504' title: Gateway timeout error schema: $ref: '#/components/schemas/errors_response' requestBody: content: application/vnd.api+json: schema: $ref: '#/components/schemas/update_sublet_request' /service_management/{srm_account_id}/v1/sublet_requests/{id}/cancel: post: summary: Cancel sublet request tags: - Sublet Requests parameters: - name: srm_account_id in: path description: The account ID for SRM required: true schema: type: string - name: id in: path schema: type: string format: uuid description: The resource UUID required: true responses: '200': description: The request has succeeded. It may or may not return a single resource of collection of resources. content: application/vnd.api+json: example: data: id: 55dc388f-89ed-411d-9a79-825162e59137 type: sublet_requests attributes: complaint: Check Engine Light continually on po_number: THX1138 auth_number: FLT2112 note: Sample note reference_number: 18328893 primary_contact: {} driver: {} breakdown: location: John Smith, 5480 7th Ave city: San Francisco state: CA event_timestamps: requested_at: '2025-04-10T13:28:31Z' requested_appointment_time: '2025-04-10T13:28:31Z' requested_completion_time: '2025-04-10T13:28:31Z' asset_downtime: '2025-04-09T13:28:31Z' status: Canceled relationships: parent_case: data: type: cases id: 487136d2-c4d6-424c-b018-f1ed8a740c6a service_provider: data: type: service_providers id: 65b8d7f1-77aa-4b62-9a62-7207da98bb94 sublet_case: data: type: sublet_cases id: dc8b7b66-288c-4072-9e31-3df871d5e561 schema: $ref: '#/components/schemas/sublet_request' '401': description: This response may occur when the access token provided within the Authorization token has expired. content: application/vnd.api+json: example: errors: - title: Access unauthorized detail: Access unauthorized code: decisiv::access_token:001 status: '401' schema: $ref: '#/components/schemas/errors_response' '403': description: This response may occur when the authenticated user embedded within the Authorization header does not have access to the requested resource. content: application/vnd.api+json: example: errors: - title: Forbidden detail: User does not have permission to perform this action on the requested resource(s) code: decisiv:access:001 status: '403' schema: $ref: '#/components/schemas/errors_response' '422': description: invalid previous status content: application/vnd.api+json: example: errors: - code: decisiv:sublet_requests:004 status: '422' title: Unprocessable record detail: Only Sublet Requests with a status of 'Pending' may be canceled by the requesting account schema: $ref: '#/components/schemas/errors_response' '424': description: This response may occur when there is an unresolved data dependency or configuration required inside of the Decisiv Platform preventing access to the requested action. content: application/vnd.api+json: example: errors: - title: Failed Dependency detail: Failed Dependency code: '424' status: '424' schema: $ref: '#/components/schemas/errors_response' '428': description: This response represents requests to a module or endpoint which can not immediately be accessed due to the Account permissions and subscriptions in the Decisiv Platform. content: application/vnd.api+json: example: errors: - title: Precondition Required detail: Precondition Required code: '428' status: '428' schema: $ref: '#/components/schemas/errors_response' '429': description: This response will often be associated as a result of an over abundance of calls by a specific Application, Account, or IP Address resulting in a required cool off period. content: application/vnd.api+json: example: errors: - code: '429' detail: The maximum number of requests for this application has been far exceeded with the given credentials. status: '429' title: Too Many Requests schema: $ref: '#/components/schemas/errors_response' '504': description: This response may occur when there is an unexpected system timeout. content: application/vnd.api+json: example: errors: - code: '504' detail: Gateway timeout error status: '504' title: Gateway timeout error schema: $ref: '#/components/schemas/errors_response' components: schemas: sublet_requests: type: object required: - data properties: data: type: array items: $ref: '#/components/schemas/sublet_request_properties-data' meta: type: object included: type: array items: anyOf: - $ref: '#/components/schemas/service_provider' - $ref: '#/components/schemas/parent_case' - $ref: '#/components/schemas/sublet_case' sublet_request: type: object required: - data properties: data: type: object properties: id: type: string format: uuid type: type: string enum: - sublet_requests attributes: type: object properties: complaint: type: string description: Initially reported information from driver or other customer entity maxLength: 6000 status: type: string enum: - pending - canceled - declined - accepted description: Status of the sublet request maxLength: 255 po_number: type: string description: Purchase Order number maxLength: 40 auth_number: type: string description: Authorization number maxLength: 40 note: type: string description: The notes for the sublet request reference_number: type: integer description: Integer representation of the sublet request ID inside of the User Interface breakdown: type: object description: Information about the breakdown location properties: city: type: string description: City of breakdown maxLength: 255 examples: - North Haven location: type: string description: Exact map location of the breakdown maxLength: 255 examples: - 41.395022,-72.856326 state: type: string description: Second part of the `ISO 3166-2` code indicating the breakdown State minLength: 1 maxLength: 3 examples: - NJ event_timestamps: type: object description: All the timestamps related to the sublet request properties: requested_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the sublet was requested' requested_appointment_time: type: string format: date-time description: '`ISO 8601` timestamp indicating the appointment time' requested_completion_time: type: string format: date-time description: '`ISO 8601` timestamp indicating the completion time of the case' asset_downtime: type: string format: date-time description: '`ISO 8601` timestamp indicating when the Asset was considered no longer operational' created_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the sublet request was created' updated_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the sublet request was last updated' primary_contact: type: object description: The primary contact on the sublet request. properties: first_name: type: string last_name: type: string email: type: string relation: type: string description: Relationship of the contact to the service request (e.g. Driver, Fleet Manager). phone: type: object properties: mobile: type: string work: type: string driver: type: object description: The driver contact on the sublet request. properties: first_name: type: string last_name: type: string email: type: string phone: type: object properties: mobile: type: string work: type: string required: - complaint relationships: type: object properties: service_provider: $ref: '#/components/schemas/relationship_object' parent_case: $ref: '#/components/schemas/relationship_object' sublet_case: $ref: '#/components/schemas/relationship_object' required: - service_provider - parent_case required: - attributes - relationships - type - id sublet_case: type: object required: - data properties: data: type: object properties: id: type: string format: uuid type: type: string enum: - sublet_cases attributes: type: object properties: complaint: type: string description: Initially reported information from driver or other customer entity maxLength: 6000 po_number: type: string description: Purchase Order number maxLength: 40 auth_number: type: string description: Authorization number maxLength: 40 ro_number: type: string description: The Repair Order number maxLength: 40 cause: type: string description: Documentation of the technical failure assessed by the Service Location reference_number: type: integer description: Integer representation of the sublet request ID inside of the User Interface correction: type: string description: Summary of the actual work accomplished to address the reported issue repair_status: type: string description: Status of the repair example: Hold (auth) pricing: type: object description: Total price properties: parts_total: type: string format: decimal description: Total price for operation parts labor_total: type: string format: decimal description: Total price for operation labor taxes_total: type: string format: decimal description: Total price for operation taxes total: type: string format: decimal description: Total price invoice: type: object description: Invoice details properties: total: type: number description: Total amount for the invoice example: 432.5 number: type: string description: Number of the invoice example: TR3847 invoice_date: type: string format: date description: Date of the invoice in `ISO 8601` format example: '2025-04-10T13:30:41Z' event_timestamps: type: object description: All the timestamps related to the sublet request properties: actual_time_to_repair: type: string format: date-time description: '`ISO 8601` timestamp indicating the time spent to repair the asset' example: '2025-04-10T13:10:41Z' closed_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the SubletCase was marked as completed and closed' example: '2025-04-10T13:30:41Z' estimated_time_to_repair: type: string format: date-time description: '`ISO 8601` timestamp indicating the time estimated to repair the asset' example: '2025-04-10T13:15:41Z' started_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the SubletCase started' example: '2025-04-10T12:00:41Z' created_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the attachment was created' example: 2025-04-10 12:30:41 UTC updated_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the attachment was updated' example: 2025-04-10 13:21:41 UTC relationships: type: object properties: parent_case: $ref: '#/components/schemas/relationship_object' service_provider: $ref: '#/components/schemas/relationship_object' required: - attributes - type - id error_response: type: object properties: status: type: string title: type: string detail: type: - string - 'null' code: type: - string - 'null' source: type: object properties: parameter: type: - string - 'null' pointer: type: - string - 'null' links: type: object description: Links related to this error (e.g. documentation reference). additionalProperties: type: string format: uri required: - status - title service_provider: type: object required: - data properties: data: type: object properties: id: type: string format: uuid type: type: string enum: - service_providers attributes: type: object properties: name: type: string address1: type: string address2: type: string city: type: string state: type: string postal_code: type: string country: type: string email: type: string format: email phone: type: string fax: type: string location: type: object properties: latitude: type: number longitude: type: number distance_from_geolocation: type: number description: Present only when filtering by `geolocation.point`. relationships: type: object properties: service_networks: $ref: '#/components/schemas/relationship_objects' required: - attributes - type - id update_sublet_request: type: object required: - data properties: data: type: object properties: id: type: string format: uuid type: type: string enum: - sublet_requests attributes: type: object required: - attributes - type - id parent_case: type: object required: - data properties: data: type: object properties: id: type: string format: uuid type: type: string enum: - cases attributes: type: object properties: complaint: type: string description: Initially reported information from driver or other customer entity example: Broken truck po_number: type: string description: The Purchase Order number example: '1234' auth_number: type: string description: The Authorization number example: '1234' ro_number: type: string description: The Repair Order number example: '1234' reference_number: type: number description: Integer representation of the Case ID inside of the User Interface closed: type: boolean description: Indicates whether the case has been closed. repair_status: type: string description: Status of the repair example: Hold (auth) status: type: string description: Status of the case example: Pick-up invoice: type: object description: The invoice information for the case properties: total: type: number description: The total amount of the invoice number: type: number description: The invoice number invoice_date: type: string description: The date of the invoice example: '2022-04-14T05:23:45Z' event_timestamps: type: object description: All the timestamps related to the case properties: started_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the Case was first opened' example: '2022-04-14T05:23:45Z' requested_completion_time: type: string format: date-time description: '`ISO 8601` timestamp indicating the completion time of the case' example: '2022-04-14T05:23:45Z' requested_appointment_time: type: string format: date-time description: '`ISO 8601` timestamp indicating the appointment time' example: '2022-04-14T05:23:45Z' actual_time_to_repair: type: string format: date-time description: '`ISO 8601` timestamp indicating the time spent to repair the asset' example: '2022-04-14T05:23:45Z' estimated_time_to_repair: type: string format: date-time description: '`ISO 8601` timestamp indicating the time estimated to repair the asset' example: '2022-04-14T05:23:45Z' followup_time: type: string format: date-time description: '`ISO 8601` timestamp indicating the next check-in point between Customer / Provider' example: '2022-04-14T05:23:45Z' asset_arrived: type: string format: date-time description: '`ISO 8601` timestamp indicating when the Asset arrived' example: '2022-04-14T05:23:45Z' asset_checked_in: type: string format: date-time description: '`ISO 8601` timestamp indicating when the check-in was performed' example: '2022-04-14T05:23:45Z' closed_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the Case was marked as completed and closed' example: '2022-04-14T05:23:45Z' asset_uptime: type: string format: date-time description: '`ISO 8601` timestamp indicating when the Asset became operational, once again' example: '2022-04-14T05:23:45Z' asset_downtime: type: string format: date-time description: '`ISO 8601` timestamp indicating when the Asset was considered no longer operational' example: '2022-04-14T05:23:45Z' asset_information: type: object description: The asset information when the case was created properties: odometer_value: type: number description: Integer representation about the asset odometer odometer_unit: type: string description: Abbreviation for the asset odometer unit (e.g., `mi` for miles or `km` for kilometers). example: mi unit_number: type: string description: The unit number cargo: type: object properties: unit: type: string description: The unit number loaded: type: boolean description: Indicates whether the cargo is loaded. load: type: number description: The load amount breakdown: type: object description: Information about the breakdown location properties: city: type: string description: City of breakdown example: North Haven location: type: string description: Exact map location of the breakdown example: 41.395022,-72.856326 state: type: string description: State of the breakdown example: CT required: - attributes - type - id create_sublet_request: type: object required: - data properties: data: type: object properties: type: type: string enum: - sublet_requests attributes: type: object properties: complaint: type: string description: Initially reported information from driver or other customer entity maxLength: 6000 status: type: string enum: - pending - canceled - declined - accepted description: Status of the sublet request maxLength: 255 po_number: type: string description: Purchase Order number maxLength: 40 auth_number: type: string description: Authorization number maxLength: 40 note: type: string description: The notes for the sublet request reference_number: type: integer description: Integer representation of the sublet request ID inside of the User Interface breakdown: type: object description: Information about the breakdown location properties: city: type: string description: City of breakdown maxLength: 255 examples: - North Haven location: type: string description: Exact map location of the breakdown maxLength: 255 examples: - 41.395022,-72.856326 state: type: string description: Second part of the `ISO 3166-2` code indicating the breakdown State minLength: 1 maxLength: 3 examples: - NJ event_timestamps: type: object description: All the timestamps related to the sublet request properties: requested_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the sublet was requested' requested_appointment_time: type: string format: date-time description: '`ISO 8601` timestamp indicating the appointment time' requested_completion_time: type: string format: date-time description: '`ISO 8601` timestamp indicating the completion time of the case' asset_downtime: type: string format: date-time description: '`ISO 8601` timestamp indicating when the Asset was considered no longer operational' primary_contact: type: object properties: first_name: type: string last_name: type: string email: type: string relation: type: string phone: type: object driver: type: object properties: first_name: type: string last_name: type: string email: type: string phone: type: object required: - complaint relationships: properties: parent_case: $ref: '#/components/schemas/relationship_object' service_provider: $ref: '#/components/schemas/relationship_object' required: - parent_case - service_provider required: - type - attributes - relationships sublet_request_properties-data: type: object properties: id: type: string format: uuid type: type: string enum: - sublet_requests attributes: type: object properties: complaint: type: string description: Initially reported information from driver or other customer entity maxLength: 6000 status: type: string enum: - pending - canceled - declined - accepted description: Status of the sublet request maxLength: 255 po_number: type: string description: Purchase Order number maxLength: 40 auth_number: type: string description: Authorization number maxLength: 40 note: type: string description: The notes for the sublet request reference_number: type: integer description: Integer representation of the sublet request ID inside of the User Interface breakdown: type: object description: Information about the breakdown location properties: city: type: string description: City of breakdown maxLength: 255 examples: - North Haven location: type: string description: Exact map location of the breakdown maxLength: 255 examples: - 41.395022,-72.856326 state: type: string description: Second part of the `ISO 3166-2` code indicating the breakdown State minLength: 1 maxLength: 3 examples: - NJ event_timestamps: type: object description: All the timestamps related to the sublet request properties: requested_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the sublet was requested' requested_appointment_time: type: string format: date-time description: '`ISO 8601` timestamp indicating the appointment time' requested_completion_time: type: string format: date-time description: '`ISO 8601` timestamp indicating the completion time of the case' asset_downtime: type: string format: date-time description: '`ISO 8601` timestamp indicating when the Asset was considered no longer operational' created_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the sublet request was created' updated_at: type: string format: date-time description: '`ISO 8601` timestamp indicating when the sublet request was last updated' primary_contact: type: object description: The primary contact on the sublet request. properties: first_name: type: string last_name: type: string email: type: string relation: type: string description: Relationship of the contact to the service request (e.g. Driver, Fleet Manager). phone: type: object properties: mobile: type: string work: type: string driver: type: object description: The driver contact on the sublet request. properties: first_name: type: string last_name: type: string email: type: string phone: type: object properties: mobile: type: string work: type: string required: - complaint relationships: type: object properties: service_provider: $ref: '#/components/schemas/relationship_object' parent_case: $ref: '#/components/schemas/relationship_object' sublet_case: $ref: '#/components/schemas/relationship_object' required: - service_provider - parent_case required: - attributes - relationships - type - id relationship_objects: type: object properties: data: type: array items: type: - object - 'null' properties: id: type: string type: type: string required: - id - type required: - data relationship_object: type: object properties: data: type: - object - 'null' properties: id: type: string type: type: string required: - id - type required: - data errors_response: type: object properties: errors: type: array items: $ref: '#/components/schemas/error_response' required: - errors securitySchemes: AccessToken: type: http scheme: bearer bearerFormat: JWT OAuth2AuthorizationCode: type: oauth2 description: OAuth 2.0 Authorization Code flow. This is the required flow for new integrations. See https://api-docs.decisiv.net/docs/api/oauth/ flows: authorizationCode: authorizationUrl: https://login.decisiv.net/auth/api_gateway tokenUrl: https://login.decisiv.net/oauth/token refreshUrl: https://login.decisiv.net/oauth/token scopes: {} OAuth2Password: type: oauth2 description: '**Deprecated.** OAuth 2.0 Password flow. New integrations must use the Authorization Code flow (`OAuth2AuthorizationCode`); this flow remains available only during the migration window and will be removed in a future release. See https://api-docs.decisiv.net/docs/api/oauth/' flows: password: tokenUrl: https://login.decisiv.net/oauth/token scopes: {}