Amazon Services
Amazon Marketplace Web Service (Amazon MWS) Documentation
Amazon MWS Documentation

DeleteSubscription

Deletes the subscription for the specified notification type and destination.

Description

The DeleteSubscription operation deletes a subscription that you previously created by using the CreateSubscription operation. If you no longer want to receive a particular notification type at a Destination, call either the DeleteSubscription operation or the UpdateSubscription operation with the IsEnabled request parameter set to false.

If you attempt to call this operation with a Subscription that you did not previously create, the service returns an error. If you attempt to delete a Subscription that you previously deleted, the service returns an error.

Availability

This operation is available in all marketplaces except China and Mexico.

Throttling

Maximum request quota Restore rate Hourly request quota
25 requests Two requests every second 7200 requests per hour
For definitions of throttling terminology and for a complete explanation of throttling, see Throttling: Limits to how often you can submit requests in the Amazon MWS Developer Guide.

Request parameters

For more information about the request parameters that are required for all Amazon MWS operations, see Required request parameters in the Amazon MWS Developer Guide.

Name Description Required Valid values
MarketplaceId The unique identifier for the marketplace. Yes Any valid MarketplaceId that you are registered in. For a list of MarketplaceId values, see Amazon MWS endpoints and MarketplaceId values in the Amazon MWS Developer Guide.

Type: xs:string

NotificationType The notification type of the subscription to delete. Yes For NotificationType values, see NotificationType enumeration.

Type: xs:string

Destination The Destination of the subscription to delete. Yes Any valid Destination that you previously registered by calling the RegisterDestination operation.

Type: Destination

Response elements

The DeleteSubscription operation only returns the common response elements.

Examples

Example query request

For information about standard request requirements, see Required request parameters.

Show example code Hide example code

POST /Subscriptions/2013-07-01 HTTP/1.1
Content-Type: x-www-form-urlencoded
Host: mws.amazonservices.com
User-Agent: <Your User Agent Header>

AWSAccessKeyId=AKIAEEXAMPLENGQCJLSA
&Action=DeleteSubscription
&Destination.AttributeList.member.1.Key=sqsQueueUrl
&Destination.AttributeList.member.1.Value=
  https%3A%2F%2Fsqs.us-east-1.amazonaws.com%2F51471EXAMPLE%2Fmws_notifications
&Destination.DeliveryChannel=SQS
&MWSAuthToken=amzn.mws.4ea38b7b-f563-7709-4bae-87aeaEXAMPLE
&MarketplaceId=ATVPDKIKX0DER
&NotificationType=AnyOfferChanged
&SellerId=A135KEXAMPLE56
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Timestamp=2013-07-25T16%3A41%3A16Z
&Version=2013-07-01
&Signature=vRBxMEXAMPLES2y0FGPufG4u7WY2HqhcsYUW6IVI9%2BQ%3D

↑ Top

Example response

For information about standard response formatting, see Response format.

Show example code Hide example code

<DeleteSubscriptionResponse
    xmlns="http://mws.amazonservices.com/schema/Subscriptions/2013-07-01">
    <DeleteSubscriptionResult/>
    <ResponseMetadata>
        <RequestId>2d7db8a1-8974-4541-9c9b-f882dEXAMPLE</RequestId>
    </ResponseMetadata>
</DeleteSubscriptionResponse>

↑ Top