Przejdź do głównej zawartości

Pobierz wiele szablonów wiadomości po ID

POST
/api/v3/Templates/ByIds
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Templates/ByIds \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[ 1 ]'

Odczyt – lista ID w treści żądania.

Array<integer>
Examplegenerated
[
1
]

Success

Array<object>
object
id
integer format: int64
displayName
string
nullable
topic
string
nullable
content
string
nullable
isHtml
boolean
email
string
nullable
emailAccountId
integer format: int64
nullable
type
string
Dozwolone wartości: CSV TEXT PDF
attachments
Array<object>
nullable
object
id
integer format: int64
templateId
integer format: int64
name
string
nullable
blobKey
string
nullable
contentType
string
nullable
type
string
Dozwolone wartości: Invoice NewestShipmentLabel OrderAdditionalField LineItemProductComplexField LineItemAdditionalField CsvTemplate PdfTemplate AllInvoices
additionalFieldName
string
nullable
attachmentTemplateId
integer format: int64
nullable

Bad Request

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties

Server Error