Amazon Notifications Technical Scope
The purpose of this page is to describe the changes in hub_alpha. We will create a new table in hub_alpha that will be named amazon_notification_client. With this table we will have all our subscriptions for all our clients in one place and when we receive a notification we will know for which client and account is this notification.
When we create a subscription for notification in Amazon successfully, we will receive from Amazon subscription id.
Successful response :
{
"payload": {
"destinationId": "f63ad7da-7b62-4f08-bf5d-e9c9dead8771",
"payloadVersion": "1.0",
"subscriptionId": "ab89efb7-0e02-42fe-90ca-3b3937cab5d9"
}
}
The new table will have this fields:
Field Name | Description |
---|---|
clientName | The name of the client. |
account_id | The account id. |
subscription_id | payload>subscriptionId |
notification_type | Hardcoded: LISTINGS_ITEM_STATUS_CHANGE or LISTINGS_ITEM_ISSUES_CHANGE |
After we create the new records we will have to return to the account and change the flag for ‘Create Subscription’ to ‘no’ and save the current date.