Publications
Generate publications from template setup in PIM.
Use this method to get single page publications. Fetch the publication by product, template and language.
Product Id
Language Id
Template external reference
GET /v1/publications/{templateExternalRef}/{id}/{languageId} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
1
Use this method to get single page publications. Fetch the publication by product, template, segments, language and custom values.
The external reference of the template to use for generating the PDF
The id of the language to use for the PDF generation
Ids of the products to build single page PDF's for
Category data from catalogue
Custom values to use when generating the PDF
Set to disable cache. Cache is default enabled on all single page publications.
POST /v1/publications/singlepage HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 297
{
"TemplateExternalRef": "text",
"LanguageId": 1,
"Ids": [
1
],
"ItemType": 20,
"PageSize": 1,
"Segments": [
{
"DimensionUid": "123e4567-e89b-12d3-a456-426614174000",
"SegmentUid": "123e4567-e89b-12d3-a456-426614174000"
}
],
"CatalogueUid": "123e4567-e89b-12d3-a456-426614174000",
"CustomValues": null,
"DisableCache": true
}
OK
1
Use this method to get multi page publications. Fetch the publication by products, template and language.
External reference of the template to use for generating the PDF
The id of the language to use for the PDF generation
Ids of the products to include in the PDF
Ids of PDF files in the mediabank to use as inserts on the front of the PDF
Ids of PDF files in the mediabank to use as inserts on the back of the PDF
Category data from catalogue
Custom values to use when generating the PDF
POST /v1/publications/multipage HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 314
{
"TemplateExternalRef": "text",
"LanguageId": 1,
"Ids": [
1
],
"ItemType": 20,
"InsertsFront": [
1
],
"InsertsBack": [
1
],
"PageSize": 1,
"Segments": [
{
"DimensionUid": "123e4567-e89b-12d3-a456-426614174000",
"SegmentUid": "123e4567-e89b-12d3-a456-426614174000"
}
],
"CatalogueUid": "123e4567-e89b-12d3-a456-426614174000",
"CustomValues": null
}
OK
1
Use this method to get pdf publications. Fetch the publication by products, template, segments and language.
External reference of the template to use for generating the PDF
The id of the language to use for the PDF generation
Ids of the products to include in the PDF
Ids of PDF files in the mediabank to use as inserts on the front of the PDF
Ids of PDF files in the mediabank to use as inserts on the back of the PDF
Category data from catalogue
Custom values to use when generating the PDF
POST /v1/publications/pdf HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 314
{
"TemplateExternalRef": "text",
"LanguageId": 1,
"Ids": [
1
],
"ItemType": 20,
"InsertsFront": [
1
],
"InsertsBack": [
1
],
"PageSize": 1,
"Segments": [
{
"DimensionUid": "123e4567-e89b-12d3-a456-426614174000",
"SegmentUid": "123e4567-e89b-12d3-a456-426614174000"
}
],
"CatalogueUid": "123e4567-e89b-12d3-a456-426614174000",
"CustomValues": null
}
OK
1
Use this method to get data only publications. Fetch the publication by products, template, segments and language.
POST /v1/publications/dataonly HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 264
{
"TemplateExternalRef": "text",
"LanguageId": 1,
"Ids": [
1
],
"ItemType": 20,
"Segments": [
{
"DimensionUid": "123e4567-e89b-12d3-a456-426614174000",
"SegmentUid": "123e4567-e89b-12d3-a456-426614174000"
}
],
"CatalogueUid": "123e4567-e89b-12d3-a456-426614174000",
"CustomValues": null
}
OK
1
#Available from v.3.15.0 Use this endpoint to get a list of all configured print publications
GET /v1/publications/prints HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
[
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Name": "text",
"CategoryId": 1,
"Active": true
}
]
#Available from v.3.15.0
GET /v1/publications/prints/{uid}/produce HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
1
Use this method to enqueue single page publications. Enqueue the publication by product, template and language.
Product Id
Language Id
Template external reference
GET /v1/publications/enqueue/{templateExternalRef}/{id}/{languageId} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
1
Use this method to enqueue single page publications. Enqueue the publication by product, template, segments, language and custom values.
The external reference of the template to use for generating the PDF
The id of the language to use for the PDF generation
Ids of the products to build single page PDF's for
Category data from catalogue
Custom values to use when generating the PDF
Set to disable cache. Cache is default enabled on all single page publications.
POST /v1/publications/enqueue/singlepage HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 297
{
"TemplateExternalRef": "text",
"LanguageId": 1,
"Ids": [
1
],
"ItemType": 20,
"PageSize": 1,
"Segments": [
{
"DimensionUid": "123e4567-e89b-12d3-a456-426614174000",
"SegmentUid": "123e4567-e89b-12d3-a456-426614174000"
}
],
"CatalogueUid": "123e4567-e89b-12d3-a456-426614174000",
"CustomValues": null,
"DisableCache": true
}
OK
123e4567-e89b-12d3-a456-426614174000
Use this method to enqueue multi page publications. Enqueue the publication by products, template and language.
External reference of the template to use for generating the PDF
The id of the language to use for the PDF generation
Ids of the products to include in the PDF
Ids of PDF files in the mediabank to use as inserts on the front of the PDF
Ids of PDF files in the mediabank to use as inserts on the back of the PDF
Category data from catalogue
Custom values to use when generating the PDF
POST /v1/publications/enqueue/multipage HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 314
{
"TemplateExternalRef": "text",
"LanguageId": 1,
"Ids": [
1
],
"ItemType": 20,
"InsertsFront": [
1
],
"InsertsBack": [
1
],
"PageSize": 1,
"Segments": [
{
"DimensionUid": "123e4567-e89b-12d3-a456-426614174000",
"SegmentUid": "123e4567-e89b-12d3-a456-426614174000"
}
],
"CatalogueUid": "123e4567-e89b-12d3-a456-426614174000",
"CustomValues": null
}
OK
123e4567-e89b-12d3-a456-426614174000
Use this method to enqueue pdf publications. Enqueue the publication by products, template, segments and language.
External reference of the template to use for generating the PDF
The id of the language to use for the PDF generation
Ids of the products to include in the PDF
Ids of PDF files in the mediabank to use as inserts on the front of the PDF
Ids of PDF files in the mediabank to use as inserts on the back of the PDF
Category data from catalogue
Custom values to use when generating the PDF
POST /v1/publications/enqueue/pdf HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 314
{
"TemplateExternalRef": "text",
"LanguageId": 1,
"Ids": [
1
],
"ItemType": 20,
"InsertsFront": [
1
],
"InsertsBack": [
1
],
"PageSize": 1,
"Segments": [
{
"DimensionUid": "123e4567-e89b-12d3-a456-426614174000",
"SegmentUid": "123e4567-e89b-12d3-a456-426614174000"
}
],
"CatalogueUid": "123e4567-e89b-12d3-a456-426614174000",
"CustomValues": null
}
OK
123e4567-e89b-12d3-a456-426614174000
Use this method to enqueue data only publications. Enqueue the publication by products, template, segments and language.
POST /v1/publications/enqueue/dataonly HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 264
{
"TemplateExternalRef": "text",
"LanguageId": 1,
"Ids": [
1
],
"ItemType": 20,
"Segments": [
{
"DimensionUid": "123e4567-e89b-12d3-a456-426614174000",
"SegmentUid": "123e4567-e89b-12d3-a456-426614174000"
}
],
"CatalogueUid": "123e4567-e89b-12d3-a456-426614174000",
"CustomValues": null
}
OK
123e4567-e89b-12d3-a456-426614174000
#Available from v.3.15.0
GET /v1/publications/enqueue/prints/{uid}/produce HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
123e4567-e89b-12d3-a456-426614174000
Use this method to get a prebuilt publication.
Task Id
GET /v1/publications/buildresult/{taskGuid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
{
"Version": "text",
"Content": {
"Headers": [
{
"Key": "text",
"Value": [
"text"
]
}
]
},
"StatusCode": 100,
"ReasonPhrase": "text",
"Headers": [
{
"Key": "text",
"Value": [
"text"
]
}
],
"TrailingHeaders": [
{
"Key": "text",
"Value": [
"text"
]
}
],
"RequestMessage": {
"Version": "text",
"VersionPolicy": 0,
"Content": {
"Headers": [
{
"Key": "text",
"Value": [
"text"
]
}
]
},
"Method": {
"Method": "text"
},
"RequestUri": "https://example.com",
"Headers": [
{
"Key": "text",
"Value": [
"text"
]
}
],
"Options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
},
"IsSuccessStatusCode": true
}