JSON is a way to structure data to be passed to a system, such as Print.one. If you are not yet familiar with JSON, you can view it as a list of keys and values that indicate which information should go where. It is the way you send data to Print.one so that your cards can be automatically personalized.
Use JSON to include template ID, billing ID, and merge variables.
Replace 'tmpl_12345678900987654321' with the ID of the template you want to use. The Template ID can be found in the Print.one Portal. Go to ‘Design templates’ in the menu on the left and copy the Template ID next to the title of the correct design.
For 'billingId', you can enter a characteristic, for example, the name of the campaign. You will see this characteristic later in your overviews and on the invoice.
Merge variables are the data you want to fill in your template. Does your card contain personalizations, such as a first name or discount code? Then you must include these in the API.
For example: if you use {{firstname}} in your HTML, this variable will be replaced by the value you include in the JSON with the API call.
Note: do not use periods in the names of merge variables.
For more information and examples, see the API documentation.