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 (live/sandbox)?

Example error

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