List all templates
GET/v1/documents/templates
Retrieve all templates.
Responses
- 200
- 404
- 500
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
results
object[]
required
A unique identifier
Possible values: <= 255 characters
The template name
Possible values: <= 255 characters
The template slug
The template content
Default value: true
disable template flag.
Possible values: <= 255 characters
The template description
metadata
object
The template metadata
The template metadata
options
object
The template rendering options
The template rendering options
Possible values: [shipment
, order
, other
]
Default value: other
The template related object
Default value: document-template
Specifies the object type
{
"count": 0,
"next": "string",
"previous": "string",
"results": [
{
"id": "string",
"name": "string",
"slug": "string",
"template": "string",
"active": true,
"description": "string",
"metadata": {},
"options": {},
"related_object": "other",
"object_type": "document-template"
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
The list of API errors
The error or warning message
The message code
details
object
any additional details
any additional details
{
"errors": [
{
"message": "string",
"code": "string",
"details": {}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
The list of API errors
The error or warning message
The message code
details
object
any additional details
any additional details
{
"errors": [
{
"message": "string",
"code": "string",
"details": {}
}
]
}