Przejdź do głównej zawartości

Wygeneruj treść e-maila z szablonu

POST
/api/v2/Renderer/RenderEmail
curl --request POST \
--url https://twoja-instancja-renderer-api.enterprise.sellrocket.pl/api/v2/Renderer/RenderEmail \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "templateId": 1, "objects": { "type": "Order", "streamSubType": "Order", "ids": [ "example" ], "filter": "example" } }'

Renderuje wiadomość e-mail z szablonu dla wskazanego obiektu, np. do podglądu przed wysyłką.

Typ treściapplication/json
object
templateId
wymagane
integer format: int64
objects
object
type
string
Dozwolone wartości: Order Connection Status LineItem LineItems EmailTemplate User OrderStats PimProduct PimProductsPage PimCatalog UserEvents StatusHistory ImageGalleryGetMany PimPriceGroup OrderShipmentConnections PimManufacturer PimManufacturers PimBundle PimBundles PimCategory PimCategories PimProductImage Connections ConnectionDefinitions ConnectionsAllGrouped PimComplexFields PimAllLanguages OrderHistory PimPriceGroups PimWarehouses
streamSubType
string
Dozwolone wartości: Order Connection Status LineItem LineItems EmailTemplate User OrderStats PimProduct PimProductsPage PimCatalog UserEvents StatusHistory ImageGalleryGetMany PimPriceGroup OrderShipmentConnections PimManufacturer PimManufacturers PimBundle PimBundles PimCategory PimCategories PimProductImage Connections ConnectionDefinitions ConnectionsAllGrouped PimComplexFields PimAllLanguages OrderHistory PimPriceGroups PimWarehouses
ids
Array<string>
nullable
filter
string
nullable

Success