/merchants/{merchantCode}/templates/{templateCode} (GET)
GET
/merchants/{merchantCode}/templates/{templateCode}
Gets a merchants template
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”merchantCode
required
string
templateCode
required
string
Query Parameters
Section titled “Query Parameters”fields
string format: csv
Fields which should be included in the response. This field is optional. If the field is not set the default fields will be shown
sort
string
Sorting of the entity
limit
integer
The limit of entries of one page
offset
integer
The offset where to start the page
Responses
Section titled “Responses”Returns object containing property template
Media typeapplication/json
object
template
object
code
null | string
name
string
triggerType
string
eventType
Only needed if type is event. With the option “custom” you can listen to custom events from external systems. If custom is set the property “customEventType” must be set
string
description
string
messages
object
key
additional properties
Array
object
title
required
string
body
required
string
image
string | null
imageType
string
shared
number
campaignsUsing
number
status
string
createDate
string format: date-time
createBy
string
Example
{ "template": { "code": "TEMPLATE1", "name": "Our great template", "triggerType": "event", "eventType": "fulfillmentOrderUpdated", "description": "description of the entity", "messages": { "additionalProperty": [ { "title": "TheTitle", "body": "BodyBodyBody", "image": "http://url", "imageType": "custom", "shared": 1 } ] }, "campaignsUsing": 2, "status": "active", "createDate": "2016-07-27T07:45:00Z", "createBy": "john@doe.com" }}
