Skip to navigation
Yoco APIError codes

Unauthorized

This problem occurs when the authentication credentials are missing or incorrect.

Troubleshooting

  • Have you checked that you sent an authentication token with your request?
  • Are you sure the authentication token is correct?
  • Are you sure the authentication token is for the correct environment, either live or sandbox?

Example error

{
"type": "https://developer.yoco.com/docs/api/error-codes/unauthorized",
"title": "Unauthorized",
"detail": "The provided credentials are invalid.",
"status": 401,
"code": "unauthorized"
}