Przejdź do głównej zawartości

Pobierz szablon dokumentu

GET
/api/v2/Templates/{templateId}
curl --request GET \
--url https://twoja-instancja-renderer-api.enterprise.sellrocket.pl/api/v2/Templates/1 \
--header 'Authorization: Bearer <token>'
templateId
wymagane
integer format: int32

Success

Typ treściapplication/json
object
id
integer format: int64
name
string
nullable
body
string
nullable
lang
string
nullable
tableTemplateType
string
nullable
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
scope
string
Dozwolone wartości: Orders PIM
settings
object
id
integer format: int64
pdfHeight
string
nullable
pdfWidth
string
nullable
pdfMarginTop
string
nullable
pdfMarginBottom
string
nullable
pdfMarginLeftRight
string
nullable
type
string
Dozwolone wartości: CSV TEXT PDF XML
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
sections
object
order
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
orderHistory
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
lineItems
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
lineItemsList
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
lineItemsSummary
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
shipment
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
invoice
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
invoiceItems
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
invoiceVat
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
receipt
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
receiptItems
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
return
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
returnItems
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
message
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
payment
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
pickpack
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
stats
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
orderStats
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
ownedTags
Array<object>
nullable
object
id
integer format: int64
name
string
nullable
value
string
nullable
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
modifiers
Array<object>
nullable
object
id
integer format: int64
parentId
integer format: int64
tag
string
nullable
operator
string
nullable
condition
string
nullable
newValue
string
nullable
position
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
shipmentLabelsSettings
object
labelType
string
Dozwolone wartości: All Outbound Return
marginTopMm
integer format: int64
marginLeftMm
integer format: int64
Example
{
"scope": "Orders",
"settings": {
"type": "CSV"
},
"shipmentLabelsSettings": {
"labelType": "All"
}
}

Bad Request

Typ treściapplication/json
object
error
string
nullable
Examplegenerated
{
"error": "example"
}

Server Error