Example JSON

    Note: Where 'tmpl_12345678900987654321' appears, the template ID should be entered.

    Where it says 'billingId' you can (optionally) enter an attribute, for example the name of the campaign. You will also see this reference in your overviews and on the invoice.

    You determine the merge variables yourself. If you use {{firstname}} somewhere in the HTML, the variable 'firstname' will be filled in there, which you provide in the JSON in the API call.

    Do not use dots in the names of the merge variables.

    Also refer to the documentation.

    Example JSON:
    1{
    2 "sender": {
    3 "name": "Sender & Co. Ltd",
    4 "address": "Street 123",
    5 "postalCode": "1234AB",
    6 "city": "Amsterdam",
    7 "country": "Netherlands"
    8 },
    9 "recipient": {
    10 "name": "Jane Doe",
    11 "address": "Lane 321",
    12 "postalCode": "4321CD",
    13 "city": "The Hague",
    14 "country": "Netherlands"
    15 },
    16 "mergeVariables": {
    17 "firstname": "Jane",
    18 "discount": "10%",
    19 "coupon code": "DISCOUNT10"
    20 },
    21 "templateId": "tmpl_12345678900987654321",
    22 "finish": "GLOSSY",
    23 "billingId": "Attribute e.g. campaign name for cost allocation"
    24}