CatalogNotifications
Create template
Creates a template with channel, locale, subject and body, and returns its ID.
Header Parameters
x-Store-Id?string
Store the request acts on. Not needed when the token is bound to a store.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.ecomiq.pe/api/v1/notifications/templates" \ -H "x-Store-Id: <store-id>" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "group": "Confirmación de pedido", "key": "color", "name": "Confirmación de pedido", "notification": "email", "locale": "es", "subjectTpl": "Confirmación de pedido", "bodyTpl": "Confirmación de pedido", "engine": "Confirmación de pedido" }'{ "id": "7204558912004326810"}