Pobierz CSV produktów z szablonu
POST
/api/v3/Renderer/StreamCsv
const url = 'https://twoja-instancja-renderer-api.enterprise.sellrocket.pl/api/v3/Renderer/StreamCsv';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"templateId":1,"objects":{"type":"Order","streamSubType":"Order","ids":["example"],"filter":"example"},"staticObjects":[{"type":"Order","uri":"example","data":"example"}],"fileName":"example","options":{"includeImages":true,"includeDescriptions":true}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-renderer-api.enterprise.sellrocket.pl/api/v3/Renderer/StreamCsv \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "templateId": 1, "objects": { "type": "Order", "streamSubType": "Order", "ids": [ "example" ], "filter": "example" }, "staticObjects": [ { "type": "Order", "uri": "example", "data": "example" } ], "fileName": "example", "options": { "includeImages": true, "includeDescriptions": true } }'Generuje i strumieniuje plik CSV z produktami katalogu PIM na podstawie szablonu produktowego, np. do eksportu produktów do zewnętrznych systemów.
Example
{
"templateId": 0,
"objects": {
"type": "PimCatalog",
"streamSubType": "PimProductsPage",
"ids": ["999999999"]
},
"staticObjects": [],
"fileName": "export.csv"
}
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Typ treściapplication/json
object
templateId
wymagane
integer format: int64
objects
object
type
string
streamSubType
string
ids
Array<string>
filter
string
staticObjects
Array<object>
object
type
string
uri
string
data
fileName
wymagane
string
options
object
includeImages
boolean
includeDescriptions
boolean
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success

