Quickstart - Invalid credentials or missing rights
Permission Denied
This example shows the response for a request with invalid credentials (incorrect username or password, missing rights for executing this method).
The following response will be returned with HTTP status code 401 Unauthorized
.
Example POST /merchants
response with PermissionDenied
{
"code": "PermissionDenied",
"message": "Invalid credentials.",
"moreInfo": ""
}
Entity Not Found or Permission Denied
This example shows the response for a request where the credentials were correct but the method could not be executed successfully because the Onboarding service could not find the related entity. Reasons for this error:
- missing rights (e.g. the merchant does not belong to the partner)
- entity does not exist.
The following response will be returned with HTTP status code 404 Not Found
.
Example POST /merchants
response with EntityNotFoundOrPermissionDenied
{
"code": "EntityNotFoundOrPermissionDenied",
"message": "Entity not found or no permission to access or modify this entity.",
"moreInfo": ""
}
Updated almost 6 years ago