Hello!
I try to get an existing invoice (the invoice is not published, it’s a draft) by copy/pasting the same code from the Api Explorer. The explorer returns me the info but my webpage not. Instead of this, I got this amazing error
[22-Feb-2023 17:05:55 UTC] Array
(
[0] => Square\Models\Error Object
(
[category:Square\Models\Error:private] => V1_ERROR
[code:Square\Models\Error:private] => Unknown
[detail:Square\Models\Error:private] =>
[field:Square\Models\Error:private] =>
)
)
I thought as first that my credentials was incorrect, so I tested another call with the GetCustomerApi, which works perfectly.
I really don’t know what I’m doing wrong to get this error since the exact infos in the API explorer works and calls to other API from the exact webpage works as well.
Thanks for your help