Describes how to retrieve, update, and delete Summary Statements through the Settings API.
Get a specific summary statement template
To get a specific template for a summary statement, see the following request and a sample 200 response.
HTTP request:
GET
https://rest.zuora.com/settings/summary-statement-templates/{templateKey}
The request parameter for this request is as follows:
Response body:
02 | "name" : "summaryStatementTemplate2" , |
03 | "defaultTemplate" : false , |
04 | "base64EncodedTemplateFileContent" : "eyJodG1sQ29udGVudCI6ICI8cD5BY2NvdW50TnVtYmVyOnt7U3VtbWFyeVN0YXRlbWVudC5BY2NvdW50LkFjY291bnROdW1iZXJ9fTwvcD48cD5TdGF0ZW1lbnROdW1iZXI6e3tTdW1tYXJ5U3RhdGVtZW50LlN0YXRlbWVudE51bWJlcn19PC9wPiJ9" , |
05 | "templateFormat" : "HTML" , |
06 | "associatedToBillingAccount" : false , |
07 | "templateNumber" : "SSTEMP-00000002" , |
08 | "id" : "40288186916939740191697fc3b206c6" , |
09 | "updatedOn" : "2024-08-19T00:22:41.000-07:00" |
Get all templates for summary statement
To get all templates for a summary statement, see the following request and a sample 200 response.
HTTP request:
GET
https://rest.zuora.com/settings/summary-statement-templates
The request parameter for this request is as follows:
Response body:
03 | "name" : "summaryStatementTemplate2" , |
04 | "defaultTemplate" : false , |
05 | "templateFormat" : "HTML" , |
06 | "associatedToBillingAccount" : false , |
07 | "templateNumber" : "SSTEMP-00000002" , |
08 | "id" : "40288186916939740191697fc3b206c6" , |
09 | "updatedOn" : "2024-08-19T00:22:41.000-07:00" |
12 | "name" : "summaryStatementTemplate3" , |
13 | "defaultTemplate" : true , |
14 | "templateFormat" : "HTML" , |
15 | "associatedToBillingAccount" : false , |
16 | "templateNumber" : "SSTEMP-00000003" , |
17 | "id" : "40288186916939740191698442b206d8" , |
18 | "updatedOn" : "2024-08-19T00:22:41.000-07:00" |
Create a new summary statement template
To create a template for a summary statement, see the following request and a sample 200 response.
HTTP request:
POST
https://rest.zuora.com/settings/summary-statement-templates
Request parameters:
- name - The name of the summary statement template.
- templateFormat - The format of the template. Currently, only 'HTML' is supported.
- defaultTemplate - Indicates whether this template is the default template.
- base64EncodedTemplateFileContent - The content of the template encoded using the Base64 algorithm. This allows for safe transmission of binary data in a text format.
Request body:
2 | "name" : "summaryStatementTemplate3" , |
3 | "templateFormat" : "HTML" , |
4 | "defaultTemplate" : true , |
5 | "base64EncodedTemplateFileContent" : "eyJodG1sQ29udGVudCI6ICI8cD5BY2NvdW50TnVtYmVyOnt7U3VtbWFyeVN0YXRlbWVudC5BY2NvdW50LkFjY291bnROdW1iZXJ9fTwvcD48cD5TdGF0ZW1lbnROdW1iZXI6e3tTdW1tYXJ5U3RhdGVtZW50LlN0YXRlbWVudE51bWJlcn19PC9wPiJ9" |
Response body:
02 | "name" : "summaryStatementTemplate4" , |
03 | "defaultTemplate" : true , |
04 | "base64EncodedTemplateFileContent" : "eyJodG1sQ29udGVudCI6ICI8cD5BY2NvdW50TnVtYmVyOnt7U3VtbWFyeVN0YXRlbWVudC5BY2NvdW50LkFjY291bnROdW1iZXJ9fTwvcD48cD5TdGF0ZW1lbnROdW1iZXI6e3tTdW1tYXJ5U3RhdGVtZW50LlN0YXRlbWVudE51bWJlcn19PC9wPiJ9" , |
05 | "templateFormat" : "HTML" , |
06 | "associatedToBillingAccount" : false , |
07 | "templateNumber" : "SSTEMP-00000004" , |
08 | "id" : "402881869169397401916dc2848b1aa2" , |
09 | "updatedOn" : "2024-08-19T20:09:10.158-07:00" |
Update a specific summary statement template
To update a template for a summary statement, see the following request and a sample 200 response.
HTTP request:
PUT
https://rest.zuora.com/settings/summary-statement-templates/{templateKey}
Request parameters:
- name - The name of the summary statement template.
- templateFormat - The format of the template. Currently, only 'HTML' is supported.
- defaultTemplate - Indicates whether this template is the default template.
- base64EncodedTemplateFileContent - The content of the template encoded using the Base64 algorithm. This allows for safe transmission of binary data in a text format.
Request body:
2 | "name" : "summaryStatementTemplate2" , |
3 | "templateFormat" : "HTML" , |
4 | "defaultTemplate" : true , |
5 | "base64EncodedTemplateFileContent" : "eyJodG1sQ29udGVudCI6ICI8cD5BY2NvdW50TnVtYmVyOnt7U3VtbWFyeVN0YXRlbWVudC5BY2NvdW50LkFjY291bnROdW1iZXJ9fTwvcD48cD5TdGF0ZW1lbnROdW1iZXI6e3tTdW1tYXJ5U3RhdGVtZW50LlN0YXRlbWVudE51bWJlcn19PC9wPiJ9" |
Response body:
02 | "name" : "summaryStatementTemplate2" , |
03 | "defaultTemplate" : false , |
04 | "base64EncodedTemplateFileContent" : "eyJodG1sQ29udGVudCI6ICI8cD5BY2NvdW50TnVtYmVyOnt7U3VtbWFyeVN0YXRlbWVudC5BY2NvdW50LkFjY291bnROdW1iZXJ9fTwvcD48cD5TdGF0ZW1lbnROdW1iZXI6e3tTdW1tYXJ5U3RhdGVtZW50LlN0YXRlbWVudE51bWJlcn19PC9wPiJ9" , |
05 | "templateFormat" : "HTML" , |
06 | "associatedToBillingAccount" : false , |
07 | "templateNumber" : "SSTEMP-00000002" , |
08 | "id" : "40288186916939740191697fc3b206c6" , |
09 | "updatedOn" : "2024-08-19T20:14:33.852-07:00" |