Partner API Documentation Help

401 Unauthorized

Unauthorized Error

This error is returned when a request is made to an authenticated endpoint without the token header or with incorrect (expired) one.

The returned JSON object for this error is as follows:

{ "name": "UnAuthorizedError", "message": "Unauthorized", "code": 401, "type": "NO_RIGHTS", "data": null }

Fields in the returned object:

name: string

This is the name of the error. For this error, the name will always be "UnAuthorizedError"

message: string

A string containing a human-readable summary of why the error occurred. For this error, the message will always be " Unauthorized"

code: integer

This is the HTTP status code of the error. The status code "401" signifies that the requested resource requires authentication

type: string

This field indicates the type of the error. For unauthorized error, the type will be "NO_RIGHTS"

data: null

Additional details about the error, if any are available. For unauthorized errors, this field is typically null

Last modified: 09 February 2024