docusealco / docuseal

Open source DocuSign alternative. Create, fill, and sign digital documents ✍️
https://www.docuseal.co
GNU Affero General Public License v3.0
5.7k stars 378 forks source link

Server error on submission creation (API) #147

Closed creizyz closed 8 months ago

creizyz commented 8 months ago

When trying to create a new submission based on one of my templates, I am receiving a 500. I know what is wrong: by mistake, I have been sending the same submitter twice. But instead of returning a clear error, docuseal sends me this:

{
    "status": 500,
    "error": "Internal Server Error"
}

The payload I am sending is:

{
    "templateId": 11215,
    "submission": [
        {
            "submitters": [
                {
                    "application_key": "...",
                    "name": "...",
                    "role": "SELLER",
                    "email": "...@gmail.com"
                },
                {
                    "application_key": "...",
                    "name": "...",
                    "role": "SELLER",
                    "email": "...@gmail.com"
                }
            ]
        }
    ]
}

Just wanted this to be documented for your team.

omohokcoj commented 8 months ago

@creizyz

"templateId" - that's invalid param format we use "template_id" snake case format https://www.docuseal.co/docs/api

creizyz commented 8 months ago

Oups, my bad ! Thx :)