Przejdź do głównej zawartości

Zleć generowanie HTML z szablonu

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

Asynchronicznie generuje dokument HTML z szablonu; wynik pobierzesz przez /api/Jobs/get/{id}.

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

Typ treściapplication/json
object
id
integer format: int64
status
string
Dozwolone wartości: New Pending InProgress Error Completed Cancelled
payload
nullable
result
nullable
command
string
nullable
createdAt
string format: date-time
startedAt
string format: date-time
nullable
finishedAt
string format: date-time
nullable
progress
number format: double
isCancellationRequested
boolean
Example
{
"status": "New"
}