not_found
No route matches this method and path, or the resource does not exist for this key's account.
HTTP 404
When you see this
Two different situations return this code:
- No matching route. The method and path do not match any API route. A typo in the path or the wrong HTTP verb lands here. Canopy checks this before it checks your key.
- The resource does not exist for you.
GET /api/v1/intents/{id}andGET /api/v1/intents/{id}/originsreturn "No such intent." when the id was never created. They return the same response when the id belongs to a different merchant. The response never confirms that another merchant's intent exists.
What the response looks like
{
"error": {
"code": "not_found",
"message": "No such intent.",
"request_id": "req_1a2b3c4d5e6f7a8b9c0d1e2f",
"docs": "https://canopypay.io/errors/not_found"
}
}What to do
For a missing route, check the method and path against the reference. A trailing slash, a wrong verb, or a path missing /api/v1 all land here.
For a missing intent, check that the id came from a POST /api/v1/intents call made with the same secret key's account. An id created under a different account is never visible to you. Do not retry. A resource that does not exist will not appear on a retry.