Getting a “General error” and status code 500 when trying to add a credit card via the REST api.
Reading through other 500 errors experienced by users trying to call different endpoints, I’m guessing this has to do something with a parameter that is missing or isn’t formatted correctly. However, your API docs for this make it appear as though each param is optional and should be passed as a string. There are no formatting examples (like should year be “yy” or “yyyy”). Not helpful.
Also, a response of “General error” is completely useless. Please please please use better error messages.
Here is an example of my request:
POST https://api.infusionsoft.com/crm/rest/v1/contacts/{contact_id}/creditCards
Content-Type: application/json
"
{
“card_number”:“1234432112344321”,
“expiration_month”:“08”,
“expiration_year”:“2021”,
“name_on_card”:“John Doe”,
“verification_code”:“123”
}
Can you see what is causing this error?
Thanks