- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Cannot replace custom parameters from single send email API
SOLVEDec 2, 2020 5:00 PM
Hello,
I have created a custom property called category_total using the portal dashboard. I am trying to set this value in an email template and send the email using the single send email API as specified in documentation here:
https://developers.hubspot.com/docs/api/marketing/transactional-emails
i.e. POST to https://api.hubapi.com/marketing/v3/transactional/single-email/send using my API key
I have tried using the following JSON as specified by other posts I have seen in the forum:
{
"emailId":38143921416,
"message":{
"to":"dcornell@gmail.com"
},
"contactProperties":[
{
"name":"firstName",
"value":"Bubba"
}
],
"customProperties":[
{
"name":"category_total",
"value":"4071434"
}
]
}
When using this format, I get the following error returned from the API:
{"emailId":38143921416,
"message":{"to":"dcornell@gmail.com"},
"contactProperties":{"firstName":"Bubba"},
"customProperties":{"contact.category_total":"999999","category_total":"990990909"}
}
Please advise and thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
Dec 4, 2020 12:42 AM
"contactProperties":
{
"firstName":"Bubba",
"contact.category_total":"4071434"
//Try the different versions of the property names here
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content