404 Customer Not Found

Lyle Holmes's Avatar

Lyle Holmes

26 Aug, 2015 07:51 PM

In simulator mode; getting 422 (6000) and 404 (customer not found) errors.
I understand the 422 -- invalid card number not being processed (I assume). However, we're struggling with the 404. The code shouldn't be looking for a customer but adding a customer -- new order.
Thoughts on resolving the error?

  1. Support Staff 1 Posted by Marc Guyer on 26 Aug, 2015 08:01 PM

    Marc Guyer's Avatar

    Hmm... we don't log 404 request param details so it might be difficult for me to help. The data I have shows that you've run a few POST requests recently that have returned the 404 response. Do you know what that response body says? It could be that you're trying with an invalid planCode or planId value in the POST params.

  2. 2 Posted by Lyle Holmes on 26 Aug, 2015 08:56 PM

    Lyle Holmes's Avatar

    Okay; I think we see the problem on our end.

    We just submitted a transaction and it's showing up in Auth.net but not in
    our CG account. Can you see if you see a transaction for Lars Larson
    at 26-Aug-2015
    13:40:31?

    ​The 404 code, "customer not found" -- is that a Auth.net CIM error or a CG
    error?

    Also, if everything is working correctly, the new customer is created in
    both CG and Auth.net/CIM. Correct?​

    *Lyle Holmes*
    *President*

    *iSpeakVideo <http://www.ispeakvideo.com>*

    ​206.792.5855 direct​
    855.547.7325 x45 toll free
    866.241.3824 fax

    iSpeakVideo
    6100 219th Street SW, Suite 480
    Mountlake Terrace, WA 98043

    Mailing Address:
    Post Office Box 25864
    Seattle, WA 98165

  3. Support Staff 3 Posted by Marc Guyer on 26 Aug, 2015 09:02 PM

    Marc Guyer's Avatar

    Yes, I see a declined signup for that person. When a signup has an underlying transaction and that transaction is declined, the customer is not created in CG. This is so the customer can try signing up again in the same way with a new card and be successful. Now that your auth.net account is live, you'll want to use a real card to try a real signup. Once you've completed that live test, you can void the transaction and delete the customer to keep things cleaned up.

  4. 4 Posted by Lyle Holmes on 26 Aug, 2015 09:04 PM

    Lyle Holmes's Avatar

    Great. Very helpful. We will test again. I'd like to leave this thread
    open. Thanks.

    *Lyle Holmes*
    *President*

    *iSpeakVideo <http://www.ispeakvideo.com>*

    ​206.792.5855 direct​
    855.547.7325 x45 toll free
    866.241.3824 fax

    iSpeakVideo
    6100 219th Street SW, Suite 480
    Mountlake Terrace, WA 98043

    Mailing Address:
    Post Office Box 25864
    Seattle, WA 98165

  5. 5 Posted by Lyle Holmes on 26 Aug, 2015 09:36 PM

    Lyle Holmes's Avatar

    Marc,

    Good progress here. We are in live mode and it's working. Customer added to
    CG and CIM; transaction approved. Whew!

    The problem/question now:

    1) We are using code shown below for the chargeCode, quantity and
    eachAmount. This specifies the $1/$2 for subscription and setup. But the
    actual charge was $6 -- double the actual amount. (These are just test $).
    Do we need to specify the charge codes, qty, eachAmount for the pricing
    plan? Or is subscribing to the planCode sufficient and CG automatically
    adds the amount to the invoice based upon the pricing plan?

    'charges' => array(
    0 => array(
    'chargeCode' => 'HOSTING_INTERACT_DIS_RECURRING',
    'quantity' => '1',
    'eachAmount' => '1'
    ),
    1 => array(
    'chargeCode' => 'SETUP_INTERACT_FIRST_DIS',
    'quantity' => '1',
    'eachAmount' => '2'

    2) Does deleting the customer from CG also delete the customer from
    CIM/Auth.net?

    Thanks.

    *Lyle Holmes*
    *President*

    *iSpeakVideo <http://www.ispeakvideo.com>*

    ​206.792.5855 direct​
    855.547.7325 x45 toll free
    866.241.3824 fax

    iSpeakVideo
    6100 219th Street SW, Suite 480
    Mountlake Terrace, WA 98043

    Mailing Address:
    Post Office Box 25864
    Seattle, WA 98165

  6. 6 Posted by Lyle Holmes on 26 Aug, 2015 09:42 PM

    Lyle Holmes's Avatar

    thought the attached screenshot might help

    *Lyle Holmes*
    *President*

    *iSpeakVideo <http://www.ispeakvideo.com>*

    ​206.792.5855 direct​
    855.547.7325 x45 toll free
    866.241.3824 fax

    iSpeakVideo
    6100 219th Street SW, Suite 480
    Mountlake Terrace, WA 98043

    Mailing Address:
    Post Office Box 25864
    Seattle, WA 98165

  7. Support Staff 7 Posted by Marc Guyer on 27 Aug, 2015 01:11 PM

    Marc Guyer's Avatar

    Hi Lyle --

    Do we need to specify the charge codes, qty, eachAmount for the pricing plan? Or is subscribing to the planCode sufficient and CG automatically adds the amount to the invoice based upon the pricing plan?

    The plan is like a pricing template -- the charges are added automatically. That's just one of the conveniences of pricing plans.

    Does deleting the customer from CG also delete the customer from CIM/Auth.net?

    Yes.

  8. 8 Posted by Lyle Holmes on 27 Aug, 2015 01:19 PM

    Lyle Holmes's Avatar

    Great. Thanks Marc,

    So we don't have to specify the charge codes for the specific plan...that's
    why we are getting double charges on the invoice we are calling both the
    planCode and the individual charge codes.

    However, we also use items in the same plan. For items (obviously?) we need
    to specify the item code, qty, and price. Correct?

    Thanks.

  9. Support Staff 9 Posted by Marc Guyer on 27 Aug, 2015 01:29 PM

    Marc Guyer's Avatar

    So we don't have to specify the charge codes for the specific plan...that's why we are getting double charges on the invoice we are calling both the planCode and the individual charge codes.

    That's correct.

    However, we also use items in the same plan. For items (obviously?) we need to specify the item code, qty, and price. Correct?

    Also correct, this is how you can add the quantity of the item(s) on signup. You can also change an item quantity on-demand throughout the life of the subscription using the add-item-quantity, remove-item-quantity, and set-item-quantity API endpoints.

  10. 10 Posted by Lyle Holmes on 27 Aug, 2015 01:41 PM

    Lyle Holmes's Avatar

    Terrific...I think we are on track. Thanks.

  11. Marc Guyer closed this discussion on 27 Aug, 2015 01:42 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