The order created successfully and the payment call is correct, but I’m getting a sort of generic error. What is “NOT_FOUND” referring to in this context?
(HTTP 404). Please consult their documentation to ensure your call is setup properly. Raw error: {“errors”: [{“code”: “NOT_FOUND”,“detail”: “not found”,“category”: “INVALID_REQUEST_ERROR”}]}
Can you clarify what is returning this error? What endpoint are you using, and what data are you passing to get this response? Also feel free to share your Square app id and I can take a look in our logs.
The last error occurred on May 9th @ 6:07:34 PM (CST). I don’t have the raw JSON request but here’s a screen cap of the parameters passed in - hope this helps. Thanks for taking a look!
It looks like there’s an issue with how you’re setting the CustomerID. On our logs, I see it being passed as a literal string: customer_id: "null", so the error is saying it cannot find a customer with that id, since you’re using a ccof (which is card on file), a customer_id is required.
Thanks @sjosey. So the customer ID was blank because they were testing with an admin user, which we don’t assign a customer ID on creation. This may be moot - as they’re not supposed to be testing checkout flows with admins, but if the user didn’t have a customer ID, how were they able to save cards? Shouldn’t that action fail as well?
Yes, a customer_id is required to save a card on file (CreateCustomerCard) so I suspect they did have a customer_id at some point. I can confirm that the above card id does belong to a customer (NA06E4MJ30RJ1B93QKH237MBHW).