Xml response with embedded error simulation

michael's Avatar

michael

10 Dec, 2010 02:38 AM

I'd like to know how to generate errors that produce xml of the form:

<customers>
    <errors>
        ....
    </errors>
    <customer>
        .....
    </customer>
</customers>

This type of response is referenced on http://support.cheddargetter.com/faqs/api-8/error-handling , however, I can't figure out how to cause such response to be generated. I'd like to, for testing purposes, to make sure I can handle it.

Thanks!

  1. Support Staff 1 Posted by Marc Guyer on 10 Dec, 2010 03:37 PM

    Marc Guyer's Avatar

    You can test that on a plan change. This type of error only occurs if the customer is already a subscriber and an errant attempt is made to change the customer's subscription. For example:

    1. Create a customer on a paid plan successfully
    2. Change the customer's plan and credit card with an error simulation zip:
      • 95003, for example
  2. 2 Posted by michael on 10 Dec, 2010 07:49 PM

    michael's Avatar

    Thanks! Works perfectly.

  3. michael closed this discussion on 10 Dec, 2010 07:49 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