delete or cancel accounts using the API

Philip Crawford's Avatar

Philip Crawford

05 Oct, 2009 09:24 PM

Hey,

Can we delete or cancel an account using the api?

Also, it appears that once the "code" is set, it is set for good. No chance to edit it.

thanks!

  1. Support Staff 1 Posted by Marc Guyer on 05 Oct, 2009 09:38 PM

    Marc Guyer's Avatar

    Not sure how these didn't make it into the api docs... Both methods are implemented in the PHP client here

    Delete a customer

    /customers/delete/productCode/MY_PRODUCT_CODE/code/MY_CUSTOMER_CODE
    

    Cancel a customer's subscription

    /customers/cancel/productCode/MY_PRODUCT_CODE/code/MY_CUSTOMER_CODE
    

    Which code do you mean? You should be able to edit it via the GUI. In the API, it's a little more difficult because, assuming you want to change a customer's code, you have to reference the customer with CG's id for the customer. You can't reference a record by code and change the code at the same time.

  2. Marc Guyer closed this discussion on 05 Oct, 2009 09:38 PM.

  3. philip crawford re-opened this discussion on 05 Oct, 2009 10:03 PM

  4. 2 Posted by philip crawford on 05 Oct, 2009 10:03 PM

    philip crawford's Avatar

    Thank you!

    Customer code, yes.

  5. 3 Posted by philip crawford on 05 Oct, 2009 11:18 PM

    philip crawford's Avatar

    Hey Marc,

    We're calling the cancel method, but it doesn't appear to respond to
    the call. Also, the subscription isn't canceled.

    The URI below for cancel appears to be missing "productCode".

    - Phil

  6. Support Staff 4 Posted by Marc Guyer on 06 Oct, 2009 01:54 PM

    Marc Guyer's Avatar

    Oops. I've fixed the post above to include the productCode in the URI.

    I can't seem to replicate the issue you describe though. I've tested it with:

    $ curl -u username:password https://cheddargetter.com/xml/customers/cancel/productCode/TEST_PRODUCT/code/[email blocked]
    

    The customer is canceled and the xml is returned.

  7. Marcela Poffald closed this discussion on 11 Apr, 2018 06:03 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