What does this mean? Param 'code' is specified but is empty

2017-12-10 19:14:37 57627166 400 Param 'code' is specified but is empty
2017-12-10 19:08:28 57627130 400 Param 'code' is specified but is empty
2017-12-10 19:08:22 57627128 400 Param 'code' is specified but is empty
2017-12-10 19:02:48 57627086 400 Param 'code' is specified but is empty
2017-12-10 19:01:59 57627078 400 Param 'code' is specified but is empty

  1. Hi Aysia,

    This error message indicates that you're not passing a customer code through to Cheddar when you're creating or updating a customer. Take a look at our API documentation here for all the required params.

    I'm assuming that you're making an API call to create or update a customer when you get these errors, but let me know if that's not the case.

    Meghan

  2. Thank you Meghan. I will discuss this with our programmer.

    Cheers,

    Aysia

  3. Hey Aysia,

    I saw that you're still getting the "Param 'code' is specified but is empty" error, so I chatted with our engineering team and they let me know that you're getting these errors because you're making a call to the /customers/get API endpoint with the code param specified, but an empty value. If a code param is specified, Cheddar assumes that you're only trying to get a single customer record. Since hitting that endpoint with an empty value for the code param would return all customer records, this generates an error.

    If you're trying to get a record for a single customer, you'll just need to specify the customer code for the code param.

    Meghan

  4. Marcela Poffald closed this discussion on 11 Apr, 2018 04:09 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions