Get a list of job stocks
Retrieve a paged collection of job stocks (required scope jobs:read)
Path Parameters
Possible values: >= 1
The unique identifer of the job
Query Parameters
Only return job stocks where JobStockId
matches the value(s) provided
Only return job stocks where 'StockDetailsId' matches the value(s) provided
Only return job stocks where 'StockItemId' matches the value(s) provided
Possible values: [noMovement
, broughtAndLeft
, broughtAndTakenBack
, broughtToSwap
, onSiteAndTakenBack
, onSiteAndLeft
, usedInStock
]
Only return job stocks where 'Action' matches the value provided
Only return job stocks where 'IsActual' matches the value provided
Possible values: >= 1
and <= 2147483
The page number being requested (minimum: 1, maximum: 2147483)
Possible values: >= 1
and <= 1000
The page size being requested (minimum: 1, maximum: 1000)
Header Parameters
The customer identifier
- 200
- 400
- 403
- 404
- 500
Success
Schema
- Array [
- new: A job that is newly created in BigChange All Jobs start with a New status, regardless of schedule detail
- scheduled: Job has been scheduled. Scheduled status is when the Vehicle, Driver, and Planned Date Time are all allocated
- unscheduled: Job has been unscheduled. Unscheduled status happens when any combination of the Vehicle, Driver, and Planned Date Time are all removed from a Scheduled job
- sent: The scheduled job has been delivered to the driver's mobile device (tablet/phone). The driver must be logged into BigChange for jobs to be sent
- read: Job Detail has been read by the Driver on their mobile terminal
- accepted: Driver accepted the job
- refused: Driver refused the job
- onTheWay: Driver indicated they are on route to the Job Address
- started: Driver has indicated they have started the work detailed in the Job
- suspended: Driver paused work – ie taking a break
- completedOk: Job Completed with no issues
- completedWithIssues: Job Completed with issues
- cancelled: Job was Cancelled
- lateStart: Internal Status used by BigChange Alert Management - should not be visible from the the API
- lateFinish: Internal Status used by BigChange Alert Management - should not be visible from the the API
- rescheduled: Internal Status used by BigChange Alert Management - should not be visible from the the API
- Array [
- boolean: Indicates a boolean field (Example: "false")
- integer: Indicates an integer numeric field (Example: "1001")
- decimal: Indicates a floating point numeric field (Example: "1.42")
- text: Indicates an editable text field (Example: "Purple")
- list: Indicates a field with a single value from a predefined list of options (Example: "Purple")
- statement: Indicates a text field that cannot be edited. The value is always equal to the default value (Example: "By signing this you agree to the following...")
- date: Indicates a date field, which will be represented as an RFC3339 formatted date string. The default value is not supported for this type and will always be null (Example: "2024-01-31")
- note: Indicates a multiline, editable text field. Lines are seperated with a line feed character (Example: "This is a note.")
- time: Indicates a time field, formatted as HH:mm. The default value is not supported for this type and will always be null (Example: "10:30")
- systemList: Indicates the ID of a related resource, vehicle or web user (Example: "228007")
- resource
- vehicle
- webUser
- ]
- ]
items object[]
The items returned for the requested page
The unique identifier of the job
The unique identifier of the type assigned to this job
The name of the type assigned to this job
The unique identifier of the contact (customer) for whom this job is to be performed
The name of the customer (business or individual) for whom this job is to be performed
The complete address of the contact (customer) for whom this job is to be performed
contactLocation object
Represents a geographical location
Latitude of the center of the location
Longitude of the center of the location
Possible values: [new
, scheduled
, unscheduled
, sent
, read
, accepted
, refused
, onTheWay
, started
, suspended
, completedOk
, completedWithIssues
, cancelled
, lateStart
, lateFinish
, rescheduled
]
Describes each possible status of a Job
Possible values:
The UTC timestamp for when the job status was last updated
The planned duration of the job, specified in minutes
The UTC date and time the job is required to be completed by
The internal reference of the job - should usually be unique
The textual details about the job
The UTC timestamp of when this job was created
The order number associated to the job
The unique uuid identifier of the person who will serve as primary point of contact for the job
The full name of the person who will serve as primary point of contact for the job
A flag indicating whether the job has been confirmed by the contact
The unique identifier of the category that the job is assigned to
The name of the category that the job is assigned
The unique identifier of the resource assigned to this job
The full name of the resource assigned to this job
The unique identifier of the vehicle assigned to this job
The registration number of the vehicle assigned to this job
The UTC timestamp for when the job is planned to begin
The UTC timestamp for when the job is planned to finish
The UTC timestamp for when the job actually started (as indicated by resource's device)
The UTC timestamp for when the job actually finished (as indicated by resource's device)
The actual duration of the job, specified in seconds (as indicated by resource's device)
Notes about the job outcome, added by the back office
Notes about the job outcome, added by the resource
Notes about the job outcome, added by the customer
The result of a job that has been completed or completed with issues. This will be null if the job has any other status
customFields object[]
Custom fields applied to this job
The unique identifier of the associated custom field definition
The current value set for the custom field
definition object
Represents the definition of a custom field
The caption of a custom field
Possible values: [boolean
, integer
, decimal
, text
, list
, statement
, date
, note
, time
, systemList
]
The type of the custom field. New field types may be added in the future, so integrations should be resilient to this
Possible values:
Shows the possible values for a list type custom field. Value will be null if type is not list
Indicates if the field is required in the UI. This is NOT enforced in the API
Indicates if the field is editable
The default value of a custom field. Formatted in accordance with the rules of the field type
systemListValueMetadata object
Represents details of custom field value of type system list
A descriptive label for the specific resource, vehicle or web user that this system list value relates to
Possible values: [resource
, vehicle
, webUser
]
The type of entity used for custom field value of type system list
Possible values:
The page number of the response where 1 is the first page
The number of items requested for the current page
The number of items returned in the current page
{
"items": [
{
"id": 5514123,
"typeId": 5514123,
"typeName": "Boiler Service",
"contactId": 5514123,
"contactName": "Global Solutions Ltd",
"contactAddress": "15 High Street, Lichfield, Staffordshire, WS15 3TT",
"contactLocation": {
"latitude": 51.31349,
"longitude": -0.7464233
},
"status": "new",
"statusModifiedAt": "2022-11-29T13:39:00.0000000+00:00",
"plannedDuration": 90,
"dueAt": "2022-11-29T06:00:00.0000000+00:00",
"reference": "ABC/5514123",
"description": "New boiler install - please remove and retain the old boiler",
"createdAt": "2022-11-29T16:50:16.0000000+00:00",
"orderNumber": "PAO/1312KU",
"personId": "3729c414-ed21-4849-816f-25d332265dc8",
"personName": "Peter Brown",
"isConfirmed": true,
"categoryId": 5514123,
"categoryName": "Global Solutions Ltd",
"resourceId": 243556,
"resourceName": "John Smith",
"vehicleId": 665433,
"vehicleRegistration": "BC21 BCL",
"plannedStartAt": "2022-11-29T12:00:00.0000000+00:00",
"plannedEndAt": "2022-11-29T13:30:00.0000000+00:00",
"actualStartAt": "2022-11-29T12:03:00.0000000+00:00",
"actualEndAt": "2022-11-29T13:39:00.0000000+00:00",
"actualDuration": 6000,
"internalComment": "Old boiler has been moved to storage",
"resourcesComment": "Boiler removed and stored in van",
"contactComment": "No issues with new boiler",
"result": "Ok",
"customFields": [
{
"definitionId": 5514123,
"value": "Purple",
"definition": {
"caption": "Favourite colour",
"type": "boolean",
"listOptions": [
"Red",
"Blue",
"Green",
"Purple"
],
"isRequired": true,
"isEditable": true,
"default": "10"
},
"systemListValueMetadata": {
"label": "John Doe",
"entityType": "resource"
}
}
]
}
],
"pageNumber": 2,
"pageSize": 100,
"pageItemCount": 55
}
Bad Request
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}
Forbidden
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}
Not Found
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}
Server Error
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}