Clear credits forward on plan change

Dan Kamins's Avatar

Dan Kamins

30 Sep, 2010 11:46 PM

What's the best/easiest way to clear out any credits on an account when changing plans?

Example use case:

We have a coupon that credits 3x months worth of credit when used. This allows a user to sign up with a CC but not get billed until their 4th month.

If the user changes to another plan (or even signs up again with the same coupon), we want to get them to a "clean slate" where they no longer have this credit in their account.

But CG carries the credit forward as "CREDIT_FORWARD", which normally is a good thing.

What are our options for preventing this from happening or eliminating this credit?

Thank you.

  1. Support Staff 1 Posted by Marc Guyer on 03 Oct, 2010 08:03 AM

    Marc Guyer's Avatar

    I think your best option is to remove the charges you want to remove
    before changing plans.

  2. 2 Posted by Dan Kamins on 05 Oct, 2010 01:16 AM

    Dan Kamins's Avatar

    Are you suggesting we apply a positive charge equal to the value of the credits?
    And that those charges should balance out to 0 and nothing will be carried forward?

  3. Support Staff 3 Posted by Marc Guyer on 06 Oct, 2010 05:24 PM

    Marc Guyer's Avatar

    You could go about it that way but you could also delete some existing charges that you wish to not carry forward.

  4. 4 Posted by Dan Kamins on 06 Oct, 2010 05:29 PM

    Dan Kamins's Avatar

    I'm asking HOW would we delete the existing charges. Is this something we can do via API, and if so how? Or are you suggesting an admin would do it manually in the admin interface?

    Thank you.

  5. Support Staff 5 Posted by Marc Guyer on 06 Oct, 2010 07:03 PM

    Marc Guyer's Avatar

    Ah, I see. This isn't documented. You can do this via the API:

    /customers/delete-charge/productCode/MY_PRODUCT_CODE/code/MY_CUSTOMER_CODE

    A single post param: chargeId. This is the CG id for the charge.

  6. 6 Posted by Dan Kamins on 06 Oct, 2010 07:07 PM

    Dan Kamins's Avatar

    Excellent, thank you. We will try this out.

  7. Marc Guyer closed this discussion on 07 Oct, 2010 09: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