Objects

Job

An object that holds all information about a Job.

FieldTypeDescription
referenceStringThe reference for the Job
productStringThe unique identifier (UUID) of the selected print product
quantityNumberThe number of copies or units
optionsJobOption[]An array that can hold additional options or features related to the entire print job, such as binding for multipage products
componentsJobComponent[]An array representing the different components or parts of the print job

JobComponent

An object that holds all information about a Job's component.

FieldTypeDescription
labelStringOne of general|cover|pages depending on single or multipage
sizeStringThe size of the Job
materialStringThe stock to be used for the Job
optionsJobComponentOption[]An array of finishing items, such as lamination, perforation
range_startNumberThe page count for Job
range_endNumberThe page count for Job
artworkArtworkThe artwork for the Job

JobOption

An object that contains a finishing item attached to the main Job.

Please note this is different to JobComponentOption.

FieldTypeDescription
finishing_itemStringThe finishing alias or UUID
configurationObject (optional)An optional configuration object specific to the finishing item

JobComponentOption

An object that contains a finishing item attached to a Job Component.

Please note this is different to JobOption.

FieldTypeDescription
finishing_itemStringThe finishing alias or UUID
configurationObject (optional)An optional configuration object specific to the finishing item

Artwork

An object that contains an array of files relating to a Job.

FieldTypeDescription
filesArtworkFile[]An array of artwork files

ArtworkFile

An object that contains Artwork information that is bound to a finishing item.

FieldTypeDescription
labelStringA label or identifier for the artwork component, usually "ink"
finishing_itemStringThe finishing for which the artwork belongs
fileFileThe remote file

File

An object that contains information on a remote file.

FieldTypeDescription
mime_typeStringThe mime type of the artwork
sourceStringThe remote URL where the file is accessible

Job status

FieldTypeDescription
idStringThe unique identifier of the job status
canonicalStringThe canonical identifier for the job status
valueStringThe value representing the job status
reasonStringThe reason or description for the job status
translationTranslationThe translation object
userUserThe user object
created_atDateTimeThe DateTime object

Example:

{
  "id": "6e93674d-7384-4141-bacd-94358381e2fc",
  "canonical": "job.status.production_dispatched",
  "value": "production_dispatched",
  "reason": "Palm: fulfilment dispatched",
  "translation": Translation,
  "user": User,
  "created_at": DateTime
}

Miscellaneous

Translation

FieldTypeDescription
localeStringThe locale of the translation
nameStringThe translated name of the object
summaryStringA summary or description of the object

Example:

{
  "locale": "en",
  "name": "Production Dispatched",
  "summary": "The job has been dispatched."
}

User

FieldTypeDescription
idStringThe unique identifier of the user
emailStringThe email address of the user
nameStringThe name of the user
job_titleStringThe job title of the user

Example:

{
  "id": "5933e6bb-9f93-36b9-a428-4b89010a2e82",
  "name": "System",
  "email": "system@printeddirect.com",
  "job_title": "Automated Workflow"
}

DateTime

FieldTypeDescription
isoStringThe date and time in ISO 8601 format

Example:

{
  "iso": "2024-02-28T16:31:29+00:00"
}

Errors

Error

FieldTypeDescription
messageStringA descriptive message explaining the error
canonicalStringA canonical error code for reference purposes

Violations

The violations object contains a list of fields that have errors and corresponding error messages.

Field nameTypeDescription
field_nameStringThe name of the field that has a validation violation
string[]StringA descriptive message explaining the validation violation

Example:

{
  "error": {
    "canonical": "api.request.error.payload",
    "message": "Your payload has violations that need to be looked at."
  },
  "violations": {
    "delivery_address.phone": [
      "Please provide a valid phone number. The phone number must be valid for the provided country or country code."
    ]
  }
}