/merchants/{merchantCode}/templates (POST)
POST
/merchants/{merchantCode}/templates
Creates multiple templates
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”merchantCode
required
string
Request Body
Section titled “Request Body”Media typeapplication/json
object
templates
Array<object>
object
code
required
null | string
Example
TEMPLATE1name
required
string
Example
Our great templatetriggerType
required
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
Example
description of the entitymessages
required
object
key
additional properties
Array
object
title
required
string
Example
TheTitlebody
required
string
Example
BodyBodyBodyimage
string | null
Example
http://urlimageType
string
Example
customshared
number
Example
1status
string
Responses
Section titled “Responses”Successfully created
Media typeapplication/json
object
errors
Array<object>
object
code
string
entity
string
entityId
string
reason
string
subentityPath
Array<string | number>
Example
{ "errors": [ { "code": 400, "entity": "planet", "entityId": "pluto", "reason": "Planet pluto was not found (did you mean dwarf planet pluto?)" } ]}Validation error
Media typeapplication/json
object
message
string
code
string
error
object
paramName
The parameter-field, that failed to validate, like “userId”
string
paramValue
The value, that was sent, like “xxx”
code
Machine readable error code
string
message
required
Human readable error code
string
results
object
errors
Array<object>
object
code
Machine readable error code
string
message
Human readable error code
string
description
string
path
Array<string>
warnings
array
Example
{ "error": { "code": "SCHEMA_VALIDATION_FAILED", "results": { "errors": [ { "code": "ENUM_MISMATCH", "description": "human readable error code" } ] } }}Merchant not found
Media typeapplication/json
object
code
Machine readable error code
string
message
required
Human readable error code
string
Examplegenerated
{ "code": "example", "message": "example"}
