Przejdź do głównej zawartości

Wygeneruj PDF z szablonu

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

Tworzy synchronicznie dokument PDF dla wskazanych obiektów (np. zamówień) na podstawie szablonu i zwraca plik. Odpowiednik wydruków z szablonów w BaseLinkerze.

Example

{
   "templateId": 1000000000,
   "objects": {
        "type": "Order",
        "ids": ["129575", "654321"]
    },
    "fileName": "nazwaPliku"
}
Typ treściapplication/json
object
templateId
wymagane
integer format: int64
Example
1000000000
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
fileName
wymagane
string
default: export.pdf >= 1 characters

Success