Wygeneruj tekst z szablonu
POST
/api/v3/Renderer/RenderText
const url = 'https://twoja-instancja-renderer-api.enterprise.sellrocket.pl/api/v3/Renderer/RenderText';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"templateId":1000000000,"objects":{"type":"Order","streamSubType":"Order","ids":["example"],"filter":"example"}}'};
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/RenderText \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "templateId": 1000000000, "objects": { "type": "Order", "streamSubType": "Order", "ids": [ "example" ], "filter": "example" } }'Renderuje szablon tekstowy dla wskazanych obiektów.
Example
{
"templateId": 1000000000,
"objects": {
"type": "Order",
"ids": ["129575", "654321"]
}
}
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Typ treściapplication/json
object
templateId
wymagane
integer format: int64
Example
1000000000objects
object
type
string
streamSubType
string
ids
Array<string>
filter
string
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success

