Can't make /customers/add-charge/ work
Good evening,
I can't get /customers/add-charge/ to work. Whatever I do, it
always returns a 412 with an aux code of code:isEmpty
even though several different types of codes are included.
Here's a sample curl command:
curl -X POST --data quantity=1 --data eachAmount=3.5
--data chargeCode=SPAM -u [redacted]
https://cheddargetter.com/xml/customers/add-charge/productCode/feedmagnet/code/LUKE/itemCode/MODERATION/
And the output:
<?xml version="1.0" encoding="UTF-8"?><error
id="46921" code="412" auxCode="code:isEmpty">A value is
required</error>
Note: I don't actually need this functionality. I'm just trying to make my wrapping code complete.
Regards,
Luke
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
Support Staff 1 Posted by Marc Guyer on 21 Jan, 2010 12:15 AM
This was actually working in an undocumented way.
chargeCode
is correct. We've deployed a patch.Marc Guyer closed this discussion on 21 Jan, 2010 12:15 AM.