novinzodevelopers
API referencePlugin contractFunctions

Render Order Email

POST/functions/render-order-email

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

orderId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
storeName*string
customerEmail*string|null
itemCount*integer
Range-9007199254740991 <= value <= 9007199254740991
currency*string
total*string|null
orderUrl*string|null
lines*array<>

Response Body

application/json

curl -X POST "https://example.com/functions/render-order-email" \  -H "Content-Type: application/json" \  -d '{    "orderId": "string",    "storeName": "string",    "customerEmail": "string",    "itemCount": -9007199254740991,    "currency": "string",    "total": "string",    "orderUrl": "string",    "lines": [      {        "productId": "string",        "productVariantId": "string",        "productName": "string",        "variantName": "string",        "quantity": 1,        "delivery": {          "_tag": "None"        }      }    ]  }'
{  "subject": "string",  "htmlBody": "string",  "textBody": "string"}