Invalid Contact for 'Create Transaction Contacts Import' API | XM Community
Skip to main content

Invalid Contact for 'Create Transaction Contacts Import' API

  • July 23, 2020
  • 2 replies
  • 231 views

Hi,
I am using the 'Create Transaction Contacts Import' API to import a contact and getting an error "must provide at least 1 valid contact". I have the batch ID and the parameters in the JSON. Thanks.

{
  "transactionMeta": {
  "batchId": "-------",
  "fields": [
   "string"
  ]
  },
 "contacts": [
  {
   "firstName": "Larry",
   "lastName": "Wang",
   "email": "larry@gmail.com",
   "phone": null,
   "extRef": "13093190",
   "language": null,
   "unsubscribed": true,
   "transactionData" : {}
  }
 ]
}

2 replies

  • August 18, 2020

I had a similar issue and resolved it by
...
 "fields": [
   ""
  ]
...
"transactionData" : {"":""}
...


Forum|alt.badge.img+1