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

Aysia Wright's Avatar

Aysia Wright

11 Dec, 2017 03:51 AM

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. Support Staff 1 Posted by Meghan Turner on 13 Dec, 2017 06:20 PM

    Meghan Turner's Avatar

    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. 2 Posted by Aysia Wright on 13 Dec, 2017 06:26 PM

    Aysia Wright's Avatar

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

    Cheers,

    Aysia

  3. Support Staff 3 Posted by Meghan Turner on 21 Dec, 2017 05:53 PM

    Meghan Turner's Avatar

    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

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM