A pending ticket is a ticket that is ready to be serviced by an operator.
id | string <uuid> Ticket identifier. |
created_at | string <date-time> Date and time of creation. |
customer_id | string <uuid> Identifier of the customer for whom the ticket was created. |
ticket_number | integer <int64> Human-readable ticket identifier. |
vehicle_model_id | integer <int64> Identifier of the vehicle model on the ticket. |
vin | string = 17 characters Vehicle Identification Number (VIN) of the vehicle on the ticket. |
connection_id | string or null <uuid> Identifier of the connection. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "ticket_number": 7440303,
- "vehicle_model_id": 0,
- "vin": "JH4KA7630PC007649",
- "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9"
}
Retrieve a list of pending tickets.
Successful response.
An error occurred - see status code and problem response for more information.
{- "query": {
- "limit": 25,
- "offset": 0
}, - "result": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "ticket_number": 7440303,
- "vehicle_model_id": 0,
- "vin": "JH4KA7630PC007649",
- "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9"
}
], - "total": 3255
}
Retrieve a single pending ticket by its identifier.
Successful response.
id | string <uuid> Ticket identifier. |
created_at | string <date-time> Date and time of creation. |
customer_id | string <uuid> Identifier of the customer for whom the ticket was created. |
ticket_number | integer <int64> Human-readable ticket identifier. |
vehicle_model_id | integer <int64> Identifier of the vehicle model on the ticket. |
vin | string = 17 characters Vehicle Identification Number (VIN) of the vehicle on the ticket. |
connection_id | string or null <uuid> Identifier of the connection. |
An error occurred - see status code and problem response for more information.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "ticket_number": 7440303,
- "vehicle_model_id": 0,
- "vin": "JH4KA7630PC007649",
- "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9"
}
Transition a single pending ticket by its identifier.
The changes you wish to make.
required | Start service (object) Transition this ticket to a different state. |
One of: The given operator will be assigned to this ticket and it will be marked as being 'In Progress' in the ticket workspace. |
{- "transition": {
- "type": "start-service",
- "operator_id": "fa9de6bb-1df8-4ba6-9e6d-1172fbf7e166"
}
}
Returned when the request cannot be handled due to something that is perceived to be a client error.
{- "detail": "The request violates one or more constraints. Please resolve all of them and try again.",
- "status": 400,
- "title": "Bad request",
- "type": "/problems/violations",
- "violations": [
- {
- "property_path": "gross_price.amount",
- "in": "body",
- "detail": "Value must be greater than 0"
}, - {
- "property_path": "provider_id",
- "in": "query",
- "detail": "Provider with ID 3445 does not exist."
}
]
}