Webhooks

Located at DrEdition: "Settings" -> "Webhooks".

You can register webhooks, and you may decide under what circumstances it will be called, as listed below.

Webhook can be added as default for all products, or it can be added to single/many products. Go to edit product page to enable it for an individual product.

You should respond with a 2xx status on the webhook's POST request, or you will see repeated requests from DrEdition.

Publish

Used for product types 'frontpage' and 'magazine'.

Payload:

{
"data": {
"product": {
"id": "{productId}",
"name": "{productName}",
"productType": "{productType}"
},
"edition": {
"id": "{editionId}",
"name": "{editionName}"
"renderedLayout": {
"css": "https://smooth-storage.aptoma.no/users/user/files/edition-layouts/edition-id/2017/05/15/HJ735WvxZ/styles.css",
"html": "https://smooth-storage.aptoma.no/users/user/files/edition-layouts/edition-id/2017/05/15/HJ735WvxZ/layout.html"
}
}
}
}

Print Page Send to Print

When you press "Approve & Send to print" on a page in product type 'print', this event will be triggered. The specifications of this payload is currently in BETA, and you will need to get in touch with support@aptoma.com to get more information.

Print Edition Archive

When "Archive edition" is pressed, this event will be triggered. The specifications of this payload is currently in BETA, and you will need to get in touch with support@aptoma.com to get more information.