API Create Constituent - POST to CRM/Constituents/Snapshot

Not sure if this is the right place to post, but...

I've done various things with Tessitura's API, including GETS and POST etc... POSTS I've done to Custom/Execute for hitting my stored procedures. The REST client testing site is great for the Custom/Execute, because is gives me a JSON sample of how to structure the POST. I'm not finding the same kind of help for how to structure the JSON for POST to CRM/Constituents/Snapshot.

I simply want to create a constituent from an electronicAddress... so maybe this is better: CRM/Constituents/Detail

Regardless, I only want to send in an email. Can anybody give me some sample JSON that should work? I'm getting an error such as:

stdClass Object ( [success] => [status] => Bad Request [error] => [ { "Code": "FIELD_CANNOT_BE_NULL", "Description": "Field 'constituentSnapshot' cannot be null or empty."

Is it something like this:

{
  "constituentSnapshot": {
    "electronicAddress": "billy.jack@gmail.com"
    }
}

Thanks!

Jason

Parents
  • I might be making progress... now the error is: stdClass Object ( [success] => [status] => Bad Request [error] => [ { "Code": "FIELD_CANNOT_BE_NULL", "Description": "Field 'constituentSnapshot.ConstituentType' cannot be null or empty.

    So now I need to structure a ConstituentType, but for a brand new constituent....

    The REST tool help says this, but I don't know any of this... it's a new constituent?

    "ConstituentType": { "Description": "sample string 1", "Id": 1, "Inactive": true, "ConstituentGroup": { "Description": "sample string 1", "Id": 1, "Inactive": true } },

     

    But it also says none of this is "Required", so not sure what to think.

  • Yep, it created the const right away when i temporarily turned the requirement for postal address off.

    The only thing I'm wondering about now, is that the Tess API also required me to add a LastName along with the email I POSTED. I couldn't pass a NULL for LastName either. Is there a way to turn off the LastName requirement like there is Primary Address? I was hoping to just send an email and create a constituent.

     "Code": "PARAMETER_SHOULD_NOT_BE_NULL_OR_EMPTY", "Description": "The parameter should not be null or empty.", "Details": null, "ErrorPath": "LastName" }

Reply
  • Yep, it created the const right away when i temporarily turned the requirement for postal address off.

    The only thing I'm wondering about now, is that the Tess API also required me to add a LastName along with the email I POSTED. I couldn't pass a NULL for LastName either. Is there a way to turn off the LastName requirement like there is Primary Address? I was hoping to just send an email and create a constituent.

     "Code": "PARAMETER_SHOULD_NOT_BE_NULL_OR_EMPTY", "Description": "The parameter should not be null or empty.", "Details": null, "ErrorPath": "LastName" }

Children