Attached Template is an API Builder functionality that enables passing different data types (HTTP and XML, SOAP and XML) in one template. You can create an attached template inside the basic one.
Sometimes Buyer specification contains request code examples requiring some specific fields to be mapped in a format, which differs from the whole request formatting. In these cases, Attached Template functionality allows passing XML tags inside HTTP request, XML inside SOAP request, etc.
To create an attached template inside the basic template, follow these instructions:
1. Click Add Template Tag below the Template Editor:
A new Template Editor appears with a Template 1 tag name:
2. In the Template Editor, add the Template 1 tag (HTTP example):
3. Click XML, HTTP or JSON to select the necessary formatting type for the attached template.
4. Map all the fields, which are necessary to be passed in this format according to Buyer Specification:
Now the list of the fields that have been mapped is expanded by {tempatedTag.template1} tag in the basic template.
Click Remove if you wish to delete the attached template.
You can test these configurations on Step 4 to see that XML tags are passed inside HTTP request in our example:
Create as many attached templates as you need in order to use multiple template formats in API configuration.
0 comments
Please sign in to leave a comment.