Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
feat: update docs for subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jun 26, 2020
1 parent 6c851c4 commit 07847e1
Showing 1 changed file with 108 additions and 1 deletion.
109 changes: 108 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,114 @@ Under each section are methods that perform "actions" on the MWS API parses the

## Subscriptions

_in progress_
### Types used in this section

**Subscription**

| Name | Type | Example | Required |
|------------------ |------------- |------------------- |---------- |
| NotificationType | string | 'AnyOfferChanged' | Yes |
| Destination | Destination | | Yes |
| IsEnabled | boolean | true | Yes |

* [Possible values for NotificationType](http://docs.developer.amazonservices.com/en_CA/subscriptions/Subscriptions_NotificationType.html)

**Destination**

| Name | Type | Example | Required |
|----------------- |------------------- |--------- |---------- |
| DeliveryChannel | string | 'SQS' | Yes |
| AttributeList | AttributeKeyValue | | Yes |

* [Possible values for DeliveryChannel](http://docs.developer.amazonservices.com/en_CA/subscriptions/Subscriptions_Datatypes.html#Destination)

**AttributeKeyValue**

| Name | Type | Example | Required |
|------- |-------- |-------------------------------------------------------------------------------- |---------- |
| Key | string | 'sqsQueueUrl' | Yes |
| Value | string | 'https://sqs.us-east-1.amazonaws.com/51471EXAMPLE/mws_notifications' | Yes |

* [Possible values for Key](http://docs.developer.amazonservices.com/en_CA/subscriptions/Subscriptions_Datatypes.html#AttributeKeyValue)

### registerDestination
**Parameters**

| Name | Type | Example | Required |
|--------------- |------------- |------------------ |---------- |
| MarketplaceId | string | 'A2EUQ1WTGCTBG2' | Yes |
| Destination | Destination | | Yes |

### deregisterDestination
**Parameters**

| Name | Type | Example | Required |
|--------------- |------------- |------------------ |---------- |
| MarketplaceId | string | 'A2EUQ1WTGCTBG2' | Yes |
| Destination | Destination | | Yes |

### listRegisteredDestinations
**Parameters**
| Name | Type | Example | Required |
|--------------- |------------- |------------------ |---------- |
| MarketplaceId | string | 'A2EUQ1WTGCTBG2' | Yes |

### sendTestNotificationToDestination
**Parameters**

| Name | Type | Example | Required |
|--------------- |------------- |------------------ |---------- |
| MarketplaceId | string | 'A2EUQ1WTGCTBG2' | Yes |
| Destination | Destination | | Yes |

### createSubscription
**Parameters**
| Name | Type | Example | Required |
|--------------- |------------- |------------------ |---------- |
| MarketplaceId | string | 'A2EUQ1WTGCTBG2' | Yes |
| Subscription | Subscription | | Yes |

### getSubscription
**Parameters**

| Name | Type | Example | Required |
|--------------- |------------- |------------------ |---------- |
| MarketplaceId | string | 'A2EUQ1WTGCTBG2' | Yes |
| NotificationType | string | 'AnyOfferChanged' | Yes |
| Destination | Destination | | Yes |

* [Possible values for NotificationType](http://docs.developer.amazonservices.com/en_CA/subscriptions/Subscriptions_NotificationType.html)

### deleteSubscription
**Parameters**

| Name | Type | Example | Required |
|--------------- |------------- |------------------ |---------- |
| MarketplaceId | string | 'A2EUQ1WTGCTBG2' | Yes |
| NotificationType | string | 'AnyOfferChanged' | Yes |
| Destination | Destination | | Yes |

* [Possible values for NotificationType](http://docs.developer.amazonservices.com/en_CA/subscriptions/Subscriptions_NotificationType.html)

### listSubscriptions
**Parameters**
| Name | Type | Example | Required |
|--------------- |------------- |------------------ |---------- |
| MarketplaceId | string | 'A2EUQ1WTGCTBG2' | Yes |

### updateSubscription
**Parameters**
| Name | Type | Example | Required |
|--------------- |------------- |------------------ |---------- |
| MarketplaceId | string | 'A2EUQ1WTGCTBG2' | Yes |
| Subscription | Subscription | | Yes |


### getServiceStatus
**Parameters**

| None |
|------|

## FulfillmentInventory

Expand Down

0 comments on commit 07847e1

Please sign in to comment.