Fail to create multiple contacts with transactioncontacts | XM Community
Skip to main content

Hello,

 

I am trying to create several accounts in a mailing list using the /transactioncontacts endpoint.

The call is failing with the following error message: 

\"errorMessage\":\"Cannot omit the contacts key in the request body\",\"errorCode\":\"TAP_0.9\"}

 

I am pushing the request from internal Qualtrics API task. Please find the Payload : 

{
"transactionMeta": {
"batchId": "BT_2CTiAeTkNxD5Ra7",
"fields": d
""
]
},
"contacts": t
{
"email": "96485f9866900383daa1d67225215f237c42458d@test.com",
"embeddedData": {
"Channel": "email",
"ProfileID": "96485f9866900383daa1d67225215f237c42458d",
"SurveyType": "Relationship",
"Tenant": "TestTenant",
"UniqueID": "658ca7cf2fb6992df5685e9a2e900a057dde1d8e7a508d794a55d484a784fef0999426c6f5fc9f7293b289b1da679413422f7d184abacd7b6124f3f662a92ab3"
},
"extRef": "96485f9866900383daa1d67225215f237c42458d",
"firstName": "firstname",
"language": "DE",
"lastName": "lastname",
"phone": "",
"privateEmbeddedData": {},
"transactionData": {
"": ""
},
"unsubscribed": false
},
{
"email": "a5319b2720e20b61da3be44b05f4812361f787d0@test.com",
"embeddedData": {
"Channel": "email",
"ProfileID": "a5319b2720e20b61da3be44b05f4812361f787d0",
"SurveyType": "Relationship",
"Tenant": "TestTenant",
"UniqueID": "3a280adb309b899a34cba3277239c4a3942c21af4b05713b2467d327666a7e32f4da2aa70ac0348edee3ab392c9b22995659d69e72e696264a693ff7e87852ef"
},
"extRef": "a5319b2720e20b61da3be44b05f4812361f787d0",
"firstName": "firstname",
"language": "DE",
"lastName": "lastname",
"phone": "",
"privateEmbeddedData": {},
"transactionData": {
"": ""
},
"unsubscribed": false
}
]
}

 

@m.delimitev Check the transactionData, api.qualtrics.com/bab13356ac724-create-transaction-contacts-import#transactiondata

If there’s nothing to provide, you should leave it empty in a proper way for the field to be “omitted” properly


Hi @Nam Nguyen ,

 

Would you please throw me a rope? How should I leave it empty in the proper way?


Hi @Nam Nguyen ,

Would you please throw me a rope? How should I leave it empty in the proper way?

@m.delimitev Follow the document, "transactionData": {},


Thanks @Nam Nguyen ,

It was exactly like this before, but I changed it because I was facing a different error.

Invalid Contact for 'Create Transaction Contacts Import' API | XM Community (qualtrics.com)


Thanks @Nam Nguyen ,

It was exactly like this before, but I changed it because I was facing a different error.

Invalid Contact for 'Create Transaction Contacts Import' API | XM Community (qualtrics.com)

@m.delimitev Glad you got it 👍


Leave a Reply