# Publications

Generate publications from template setup in PIM.

GET /publications/{templateExternalRef}/{id}/{languageId} Get Product single page publication

Use this method to get single page publications. Fetch the publication by product, template and language.

Request parameters

Property name Parameter type Data type Description
id path integer

Product Id

languageId path integer

Language Id

templateExternalRef path string

Template external reference

Response status OK (200)

file

GET /publications/buildresult/{taskGuid} Get built publication

Use this method to get a prebuilt publication.

Request parameters

Property name Parameter type Data type Description
taskGuid path string

Task Id

Response status OK (200)

file

GET /publications/buildstatus/{taskGuid} Get publication task status

Use this method to get the task status of a publication.

Request parameters

Property name Parameter type Data type Description
taskGuid path string

Task Id

Response status OK (200)

object

POST /publications/dataonly Get Product data only publication

Use this method to get data only publications. Fetch the publication by products, template, segments and language.

Request parameters

Property name Parameter type Data type Description
model body object : DataOnlyRequestModel

Model containing itemids, template, segments and language

DataOnlyRequestModel
Property name Data type Description
TemplateExternalRef string
LanguageId integer
Ids array
ItemType string
Segments array : Segment
CatalogueUid string
CustomValues object
Segment
Property name Data type Description
DimensionUid string
SegmentUid string

Response status OK (200)

file

GET /publications/enqueue/{templateExternalRef}/{id}/{languageId} Enqueue Product single page publication

Use this method to enqueue single page publications. Enqueue the publication by product, template and language.

Request parameters

Property name Parameter type Data type Description
id path integer

Product Id

languageId path integer

Language Id

templateExternalRef path string

Template external reference

Response status OK (200)

string

POST /publications/enqueue/dataonly Enqueue Product data only publication

Use this method to enqueue data only publications. Enqueue the publication by products, template, segments and language.

Request parameters

Property name Parameter type Data type Description
model body object : DataOnlyRequestModel

Model containing itemids, template, segments and language

DataOnlyRequestModel
Property name Data type Description
TemplateExternalRef string
LanguageId integer
Ids array
ItemType string
Segments array : Segment
CatalogueUid string
CustomValues object
Segment
Property name Data type Description
DimensionUid string
SegmentUid string

Response status OK (200)

string

POST /publications/enqueue/multipage Enqueue Product multi page publication

Use this method to enqueue multi page publications. Enqueue the publication by products, template and language.

Request parameters

Property name Parameter type Data type Description
model body object : MultiPageRequestModel

Model containing itemids, template and language

MultiPageRequestModel
Property name Data type Description
TemplateExternalRef string

External reference of the template to use for generating the PDF

LanguageId integer

The id of the language to use for the PDF generation

Ids array

Ids of the products to include in the PDF

ItemType string

Set type of Ids (Product or Variant). If variant, only specified variants will be included per product.

InsertsFront array

Ids of PDF files in the mediabank to use as inserts on the front of the PDF

InsertsBack array

Ids of PDF files in the mediabank to use as inserts on the back of the PDF

PageSize string

Resize to custom page size

Segments array : Segment

The segments to use

CatalogueUid string

Category data from catalogue

CustomValues object

Custom values to use when generating the PDF

Segment
Property name Data type Description
DimensionUid string
SegmentUid string

Response status OK (200)

string

POST /publications/enqueue/pdf Enqueue Product PDF publication

Use this method to enqueue pdf publications. Enqueue the publication by products, template, segments and language.

Request parameters

Property name Parameter type Data type Description
model body object : MultiPageRequestModel

Model containing itemids, template, segments and language

MultiPageRequestModel
Property name Data type Description
TemplateExternalRef string

External reference of the template to use for generating the PDF

LanguageId integer

The id of the language to use for the PDF generation

Ids array

Ids of the products to include in the PDF

ItemType string

Set type of Ids (Product or Variant). If variant, only specified variants will be included per product.

InsertsFront array

Ids of PDF files in the mediabank to use as inserts on the front of the PDF

InsertsBack array

Ids of PDF files in the mediabank to use as inserts on the back of the PDF

PageSize string

Resize to custom page size

Segments array : Segment

The segments to use

CatalogueUid string

Category data from catalogue

CustomValues object

Custom values to use when generating the PDF

Segment
Property name Data type Description
DimensionUid string
SegmentUid string

Response status OK (200)

string

GET /publications/enqueue/prints/{uid}/produce Enqueue produced XML data feed from a configured print publication in the publication module

#Available from v.3.15.0

Request parameters

Property name Parameter type Data type Description
uid path string

Response status OK (200)

string

POST /publications/enqueue/singlepage Enqueue Product single page publication

Use this method to enqueue single page publications. Enqueue the publication by product, template, segments, language and custom values.

Request parameters

Property name Parameter type Data type Description
model body object : SinglePageRequestModel

Model containing itemid, template, segments, language and custom values

SinglePageRequestModel
Property name Data type Description
TemplateExternalRef string

The external reference of the template to use for generating the PDF

LanguageId integer

The id of the language to use for the PDF generation

Ids array

Ids of the products to build single page PDF's for

ItemType string

Set type of Ids (Product or Variant). If variant, only specified variants will be included per product.

PageSize string

Resize to custom page size

Segments array : Segment

The segments to use

CatalogueUid string

Category data from catalogue

CustomValues object

Custom values to use when generating the PDF

Segment
Property name Data type Description
DimensionUid string
SegmentUid string

Response status OK (200)

string

POST /publications/multipage Get Product multi page publication

Use this method to get multi page publications. Fetch the publication by products, template and language.

Request parameters

Property name Parameter type Data type Description
model body object : MultiPageRequestModel

Model containing itemids, template and language

MultiPageRequestModel
Property name Data type Description
TemplateExternalRef string

External reference of the template to use for generating the PDF

LanguageId integer

The id of the language to use for the PDF generation

Ids array

Ids of the products to include in the PDF

ItemType string

Set type of Ids (Product or Variant). If variant, only specified variants will be included per product.

InsertsFront array

Ids of PDF files in the mediabank to use as inserts on the front of the PDF

InsertsBack array

Ids of PDF files in the mediabank to use as inserts on the back of the PDF

PageSize string

Resize to custom page size

Segments array : Segment

The segments to use

CatalogueUid string

Category data from catalogue

CustomValues object

Custom values to use when generating the PDF

Segment
Property name Data type Description
DimensionUid string
SegmentUid string

Response status OK (200)

file

POST /publications/pdf Get Product PDF publication

Use this method to get pdf publications. Fetch the publication by products, template, segments and language.

Request parameters

Property name Parameter type Data type Description
model body object : MultiPageRequestModel

Model containing itemids, template, segments and language

MultiPageRequestModel
Property name Data type Description
TemplateExternalRef string

External reference of the template to use for generating the PDF

LanguageId integer

The id of the language to use for the PDF generation

Ids array

Ids of the products to include in the PDF

ItemType string

Set type of Ids (Product or Variant). If variant, only specified variants will be included per product.

InsertsFront array

Ids of PDF files in the mediabank to use as inserts on the front of the PDF

InsertsBack array

Ids of PDF files in the mediabank to use as inserts on the back of the PDF

PageSize string

Resize to custom page size

Segments array : Segment

The segments to use

CatalogueUid string

Category data from catalogue

CustomValues object

Custom values to use when generating the PDF

Segment
Property name Data type Description
DimensionUid string
SegmentUid string

Response status OK (200)

file

GET /publications/prints Get configured print publications in the publication module

#Available from v.3.15.0 Use this endpoint to get a list of all configured print publications

Response status OK (200)

array : PrintPublicationReference
PrintPublicationReference
Property name Data type Description
Uid string

Gets or sets the unique identifier of the print publication.

Name string

Gets or sets the name of the print publication.

CategoryId integer

Gets or sets the category of the print publication.

Active boolean

Gets or sets a value indicating whether the print publication is active.


GET /publications/prints/{uid}/produce Get produced XML data feed from a configured print publication in the publication module

#Available from v.3.15.0

Request parameters

Property name Parameter type Data type Description
uid path string

Response status OK (200)

file

POST /publications/singlepage Get Product single page publication

Use this method to get single page publications. Fetch the publication by product, template, segments, language and custom values.

Request parameters

Property name Parameter type Data type Description
model body object : SinglePageRequestModel

Model containing itemid, template, segments, language and custom values

SinglePageRequestModel
Property name Data type Description
TemplateExternalRef string

The external reference of the template to use for generating the PDF

LanguageId integer

The id of the language to use for the PDF generation

Ids array

Ids of the products to build single page PDF's for

ItemType string

Set type of Ids (Product or Variant). If variant, only specified variants will be included per product.

PageSize string

Resize to custom page size

Segments array : Segment

The segments to use

CatalogueUid string

Category data from catalogue

CustomValues object

Custom values to use when generating the PDF

Segment
Property name Data type Description
DimensionUid string
SegmentUid string

Response status OK (200)

file