GET document/templates/{quoteId}
Get document templates for a given quote (old url format, works the same as it used to where it would show all templates).
Request Information
URI
https://scoregroup-uat-api.xaitcpq.net/document/templates/{quoteId}
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| quoteId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of DocumentTemplate| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| UseDocXMerge | boolean |
None. |
|
| Type | string |
None. |
|
| Products | Collection of LookupValue |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": "a7daa3e8-5ec2-4048-b722-56ad561a8ae3",
"Name": "sample string 2",
"UseDocXMerge": true,
"Type": "sample string 4",
"Products": [
{
"Id": {},
"HumanReadableValue": "sample string 2"
},
{
"Id": {},
"HumanReadableValue": "sample string 2"
}
]
},
{
"Id": "a7daa3e8-5ec2-4048-b722-56ad561a8ae3",
"Name": "sample string 2",
"UseDocXMerge": true,
"Type": "sample string 4",
"Products": [
{
"Id": {},
"HumanReadableValue": "sample string 2"
},
{
"Id": {},
"HumanReadableValue": "sample string 2"
}
]
}
]
text/html
Sample:
[{"Id":"a7daa3e8-5ec2-4048-b722-56ad561a8ae3","Name":"sample string 2","UseDocXMerge":true,"Type":"sample string 4","Products":[{"Id":{},"HumanReadableValue":"sample string 2"},{"Id":{},"HumanReadableValue":"sample string 2"}]},{"Id":"a7daa3e8-5ec2-4048-b722-56ad561a8ae3","Name":"sample string 2","UseDocXMerge":true,"Type":"sample string 4","Products":[{"Id":{},"HumanReadableValue":"sample string 2"},{"Id":{},"HumanReadableValue":"sample string 2"}]}]
application/xml, text/xml
Sample:
<ArrayOfDocumentTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shared.Models.DataModels">
<DocumentTemplate>
<Id>a7daa3e8-5ec2-4048-b722-56ad561a8ae3</Id>
<Name>sample string 2</Name>
<Products>
<LookupValue>
<HumanReadableValue>sample string 2</HumanReadableValue>
<Id />
</LookupValue>
<LookupValue>
<HumanReadableValue>sample string 2</HumanReadableValue>
<Id />
</LookupValue>
</Products>
<Type>sample string 4</Type>
<UseDocXMerge>true</UseDocXMerge>
</DocumentTemplate>
<DocumentTemplate>
<Id>a7daa3e8-5ec2-4048-b722-56ad561a8ae3</Id>
<Name>sample string 2</Name>
<Products>
<LookupValue>
<HumanReadableValue>sample string 2</HumanReadableValue>
<Id />
</LookupValue>
<LookupValue>
<HumanReadableValue>sample string 2</HumanReadableValue>
<Id />
</LookupValue>
</Products>
<Type>sample string 4</Type>
<UseDocXMerge>true</UseDocXMerge>
</DocumentTemplate>
</ArrayOfDocumentTemplate>