Exceptions

class sp_api.base.MissingCredentials

Credentials are missing, see the error output to find possible causes

class sp_api.base.exceptions.SellingApiException(error, headers)

Bases: Exception

Generic Exception

Parameters:
  • message – str The error message

  • amzn_code – str Amazon Error Code

  • error – list Amazon Error list

code = 999
class sp_api.base.SellingApiBadRequestException(error, headers=None)

Bases: SellingApiException

400 Request has missing or invalid parameters and cannot be parsed.

code = 400
class sp_api.base.SellingApiForbiddenException(error, headers=None)

Bases: SellingApiException

403 Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.

code = 403
class sp_api.base.SellingApiNotFoundException(error, headers=None)

Bases: SellingApiException

404 The resource specified does not exist.

code = 404
class sp_api.base.SellingApiRequestThrottledException(error, headers=None)

Bases: SellingApiException

429 The frequency of requests was greater than allowed.

code = 429
class sp_api.base.SellingApiServerException(error, headers=None)

Bases: SellingApiException

500 An unexpected condition occurred that prevented the server from fulfilling the request.

code = 500
class sp_api.base.SellingApiTemporarilyUnavailableException(error, headers=None)

Bases: SellingApiException

503 Temporary overloading or maintenance of the server.

code = 503