{"id":13437004,"url":"https://github.com/bizon/mws-sdk","last_synced_at":"2025-03-19T06:30:30.568Z","repository":{"id":34881507,"uuid":"143346490","full_name":"bizon/mws-sdk","owner":"bizon","description":"JavaScript SDK for Amazon Marketplace Web Services (MWS)","archived":true,"fork":false,"pushed_at":"2024-11-29T09:29:36.000Z","size":3172,"stargazers_count":22,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T09:46:34.602Z","etag":null,"topics":["amazon","amazon-marketplace","javascript","mws","nodejs","sellercentral"],"latest_commit_sha":null,"homepage":"https://www.bizon.solutions","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bizon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-08-02T21:26:05.000Z","updated_at":"2024-11-29T09:29:37.000Z","dependencies_parsed_at":"2023-02-18T03:15:55.513Z","dependency_job_id":null,"html_url":"https://github.com/bizon/mws-sdk","commit_stats":{"total_commits":638,"total_committers":7,"mean_commits":91.14285714285714,"dds":0.5501567398119123,"last_synced_commit":"726f601c2424e6a739fb0555852e8c927d832458"},"previous_names":[],"tags_count":60,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bizon%2Fmws-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bizon%2Fmws-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bizon%2Fmws-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bizon%2Fmws-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bizon","download_url":"https://codeload.github.com/bizon/mws-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244370720,"owners_count":20442297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amazon","amazon-marketplace","javascript","mws","nodejs","sellercentral"],"created_at":"2024-07-31T03:00:53.659Z","updated_at":"2025-03-19T06:30:30.194Z","avatar_url":"https://github.com/bizon.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# mws-sdk\n\n\u003e SDK for Amazon Marketplace Web Services\n\n[![npm version](https://badgen.net/npm/v/@bizon/mws-sdk)](https://www.npmjs.com/package/@bizon/mws-sdk)\n[![codecov](https://badgen.net/codecov/c/github/bizon/mws-sdk)](https://codecov.io/gh/bizon/mws-sdk)\n[![XO code style](https://badgen.net/badge/code%20style/XO/cyan)](https://github.com/xojs/xo)\n\n🚀 Switching to the Selling Partner API? See our [modularized SDK library for Amazon Selling Partner API](https://github.com/bizon/selling-partner-api-sdk) (fully typed in TypeScript).\n\n[\u003cimg src=\"https://files.bizon.solutions/images/logo/bizon-horizontal.png\" alt=\"Bizon\" width=\"250\"/\u003e](https://www.bizon.solutions?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=mws-sdk)\n\n## CI\n\n[![Tests](https://github.com/bizon/mws-sdk/actions/workflows/tests.yml/badge.svg)](https://github.com/bizon/mws-sdk/actions/workflows/tests.yml)\n[![Release](https://github.com/bizon/mws-sdk/actions/workflows/release.yml/badge.svg)](https://github.com/bizon/mws-sdk/actions/workflows/release.yml)\n\n## Getting started\n\n```bash\nnpm install --save @bizon/mws-sdk\n```\n\n## Usage\n\n```js\nconst MWSClient = require('@bizon/mws-sdk')\n\nconst client = new MWSClient({\n  accessKeyId: '', // defaults to process.env.MWS_ACCESS_KEY_ID\n  secretAccessKey: '', // defaults to process.env.MWS_SECRET_ACCESS_KEY\n  sellerId: '',\n  mwsToken: '',\n  mwsRegion: ''\n})\n```\n\n### Region and Marketplaces\n\n[The MWS documentation](https://github.com/bizon/mws-api-doc/blob/master/doc/en_FR/dev_guide/DG_Endpoints.md) defines a list of regions and marketplaces available in each region.\n\nThe marketplaces in a region do not all share a common API endpoint, so this library defines a new concept of *MWS region*, based on the API endpoint. Here’s the list of the available MWS regions:\n\n**Generic MWS regions:**\n\nRegion | API Endpoint | Name\n-------|--------------|-----\nna | mws.amazonservices.com | North America\neu | mws-eu.amazonservices.com | Europe\nfe | mws-fe.amazonservices.com | Far East\n\n**Country specific MWS regions:**\n\nRegion | API Endpoint | Name\n-------|--------------|-----\nca | mws.amazonservices.ca | Canada\nmx | mws.amazonservices.com.mx | Mexico\nae | mws.amazonservices.ae | United Arab Emirates\nin | mws.amazonservices.in | India\njp | mws.amazonservices.jp | Japan\nau | mws.amazonservices.com.au | Australia\n\nThis library also allows to specify a list of marketplaces (either 2 letter country codes, marketplace IDs or domains) so you can restrict API calls to your marketplace participations:\n\n```js\nconst client = new MWSClient({\n  accessKeyId: '',\n  secretAccessKey: '',\n  sellerId: '',\n  mwsToken: '',\n  marketplaces: [\n    'A1F83G8C2ARO7P', // UK\n    'fr',\n    'Amazon.it'\n  ]\n})\n```\n\nKeep in mind that the specified marketplaces will have to be in the same MWS region, otherwise an error will be thrown.\n\n## Pagination\n\nThe MWS API defines multiple API calls for pagination. They have been abstracted in this SDK. Whenever there are more retrievable results, a `nextToken` property will be available in the operation’s result. The `nextToken` can then be used as an option of that same operation to fetch an additional page.\n\n```js\nlet nextToken\n\ndo {\n  const result = await client.orders.listOrders({\n    nextToken, // If nextToken is truthy, all the other options are ignored.\n    lastUpdatedAfter: new Date(2020, 0, 1)\n  })\n\n  nextToken = result.nextToken\n} while (nextToken)\n```\n\n## Error handling\n\nWhenever the MWS API returns a non-OK HTTP status, a `MWSError` will be thrown. Use `error.body` to inspect the contents of the error, and `error.response` to access the raw HTTP response.\n\n```js\nconst {MWSError} = require('@bizon/mws-sdk')\n\ntry {\n  const result = await client.products.getLowestPricedOffersForSku({\n    marketplaceId: 'A1F83G8C2ARO7P',\n    sellerSku: 'some-sku',\n    itemCondition: 'new'\n  })\n} catch (error) {\n  if (error instanceof MWSError) {\n    console.log(error.sellerId)\n    console.log(error.marketplaces)\n    console.log(error.body) // This will contain the parsed XML body\n    console.log(error.response.statusCode)\n  }\n}\n```\n\n## API\n\n### Finances ![](https://badgen.net/badge/status/complete?label\u0026color=green)\n\n\u003cdetails\u003e\n  \u003csummary\u003elistFinancialEventGroups\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.finances.listFinancialEventGroups({\n    financialEventGroupStartedAfter: new Date(2015, 2, 1),\n    financialEventGroupStartedBefore: new Date(2015, 4, 1)\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  maxResultsPerPage | `Number` | `100`\n  financialEventGroupStartedAfter | `Date` |\n  financialEventGroupStartedBefore | `Date` |\n  nextToken | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003elistFinancialEvents\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.finances.listFinancialEvents({\n    amazonOrderId: '333-7777777-7777777'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  maxResultsPerPage | `Number` | `100`\n  amazonOrderId | `String` |\n  financialEventGroupId | `String` |\n  postedAfter | `Date` |\n  postedBefore | `Date` |\n  nextToken | `String` |\n\u003c/details\u003e\n\n### FulfillmentInboundShipment\n\n\u003cdetails\u003e\n  \u003csummary\u003egetBillOfLading\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.fulfillmentInboundShipment.getBillOfLading({\n    shipmentId: 'FBAQFGQZ'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  shipmentId | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003elistInboundShipments\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.fulfillmentInboundShipment.listInboundShipments({\n    lastUpdatedAfter: '2015-10-02T12:00:54Z',\n    lastUpdatedBefore: '2015-11-02T12:00:54Z',\n    shipmentStatusList: [\n      'WORKING',\n      'CLOSED'\n    ],\n    shipmentIdList: [\n      'FBA44JV8R',\n      'FBA4X8YLS',\n      'FBA4X9FML'\n    ]\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  shipmentStatusList | `Array\u003cString\u003e` |\n  shipmentIdList | `Array\u003cString\u003e` |\n  lastUpdatedAfter | `Date` |\n  lastUpdatedBefore | `Date` |\n  nextToken | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003elistInboundShipmentItems\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.fulfillmentInboundShipment.listInboundShipmentItems({\n    shipmentId: 'SSF85DGIZZ3OF1'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  shipmentId | `Array\u003cString\u003e` |\n  lastUpdatedAfter | `Date` |\n  lastUpdatedBefore | `Date` |\n  nextToken | `String` |\n\u003c/details\u003e\n\n\n### FulfillmentInventory ![](https://badgen.net/badge/status/complete?label\u0026color=green)\n\n\u003cdetails\u003e\n  \u003csummary\u003elistInventorySupply\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.fulfillmentInventory.listInventorySupply({\n    sellerSkus: [\n      'SampleSKU1',\n      'SampleSKU2'\n    ],\n    responseGroup: 'Basic',\n    marketplaceId: 'ATVPDKIKX0DER'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  sellerSkus | `Array\u003cString\u003e` |\n  queryStartDateTime | `Date` |\n  responseGroup | `String` |\n  marketplaceId | `String` |\n  nextToken | `String` |\n\u003c/details\u003e\n\n\n### Orders ![](https://badgen.net/badge/status/complete?label\u0026color=green)\n\n\u003cdetails\u003e\n  \u003csummary\u003elistOrders\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.orders.listOrders({\n    lastUpdatedAfter: '2017-02-01T18:12:21',\n    marketplaceId: [\n      'ATVPDKIKX0DER',\n      'A2Q3Y263D00KWC',\n      'A1VC38T7YXB528'\n    ],\n    fulfillmentChannel: [\n      'MFN'\n    ],\n    paymentMethod: [\n      'COD',\n      'Other'\n    ],\n    orderStatus: [\n      'Unshipped',\n      'PendingAvailability'\n    ]\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  createdAfter | `Date` |\n  createdBefore | `Date` |\n  lastUpdatedAfter | `Date` |\n  lastUpdatedBefore | `Date` |\n  orderStatus | `String` |\n  marketplaceId | `Array\u003cString\u003e` | Selected region’s marketplaces\n  fulfillmentChannel | `Array\u003cString\u003e` |\n  paymentMethod | `Array\u003cString\u003e` |\n  buyerEmail | `String` |\n  sellerOrderId | `String` |\n  maxResultsPerPage | `Number` | `100`\n  easyShipShipmentStatus | `Array\u003cString\u003e` |\n  nextToken | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003egetOrder\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.orders.getOrder({\n    amazonOrderId: [\n      '902-3159896-1390916'\n    ]\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  amazonOrderId | `Array\u003cString\u003e` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003elistOrderItems\u003c/summary\u003e\n\n  ```js\n  const result = await client.orders.listOrderItems({\n    amazonOrderId: '058-1233752-8214740'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  amazonOrderId | `String` |\n  nextToken | `String` |\n\u003c/details\u003e\n\n### Products\n\n\u003cdetails\u003e\n  \u003csummary\u003elistMatchingProducts\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.products.listMatchingProducts({\n    marketplaceId: 'ATVPDKIKX0DER',\n    query: '0439708184'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  query | `String` |\n  queryContextId | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003egetMatchingProduct\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.products.getMatchingProduct({\n    marketplaceId: 'ATVPDKIKX0DER',\n    asinList: [\n      'B002KT3XRQ'\n    ]\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  asinList | `Array\u003cString\u003e` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003egetMatchingProductForId\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.products.getMatchingProductForId({\n    marketplaceId: 'ATVPDKIKX0DER',\n    idType: 'ISBN',\n    idList: [\n      '9781933988665',\n      '0439708184'\n    ]\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  idType | `String` |\n  idList | `Array\u003cString\u003e` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003egetLowestPricedOffersForSku\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.products.getLowestPricedOffersForSku({\n    marketplaceId: 'ATVPDKIKX0DER',\n    sellerSku: '24478624',\n    itemCondition: 'New'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  sellerSku | `String` |\n  itemCondition | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003egetLowestPricedOffersForAsin\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.products.getLowestPricedOffersForAsin({\n    marketplaceId: 'ATVPDKIKX0DER',\n    asin: 'B00COK3FD8',\n    itemCondition: 'New'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  asin | `String` |\n  itemCondition | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003egetMyPriceForSku\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.products.getMyPriceForSku({\n    marketplaceId: 'ATVPDKIKX0DER',\n    sellerSkuList: [\n      'SKU2468'\n    ]\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  sellerSkuList | `Array\u003cString\u003e` |\n  itemCondition | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003egetMyPriceForAsin\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.products.getMyPriceForAsin({\n    marketplaceId: 'ATVPDKIKX0DER',\n    asinList: [\n      '1933890517'\n    ]\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  asinList | `Array\u003cString\u003e` |\n  itemCondition | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003egetProductCategoriesForSku\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.products.getProductCategoriesForSku({\n    marketplaceId: 'ATVPDKIKX0DER',\n    sellerSku: 'SKU2468'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  sellerSku | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003egetProductCategoriesForAsin\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.products.getProductCategoriesForAsin({\n    marketplaceId: 'ATVPDKIKX0DER',\n    asin: 'B002KT3XQM'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  asin | `String` |\n\u003c/details\u003e\n\n### Reports\n\n\u003cdetails\u003e\n  \u003csummary\u003erequestReport\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.reports.requestReport({\n    reportType: '_GET_FLAT_FILE_OPEN_LISTINGS_DATA_',\n    startDate: '2009-01-03T18:12:21',\n    endDate: '2008-06-26T18:12:21',\n    marketplaceIdList: [\n      'ATVPDKIKX0DER'\n    ],\n    reportOptions: {\n      custom: true\n    }\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  reportType | `String` |\n  startDate | `Date` |\n  endDate | `Date` |\n  marketplaceIdList | `Array\u003cString\u003e` |\n  reportOptions | `String` or `Object` |\n\n  **Caveats:**\n\n  When defining `reportOptions` as an object, keep in mind that the options’ casing must match the [MWS documentation](https://github.com/bizon/mws-api-doc/blob/master/doc/en_FR/reports/Reports_ReportType.md).\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003egetReportRequestList\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.reports.getReportRequestList({\n    reportRequestIdList: [\n      '2291326454'\n    ],\n    reportTypeList: [\n      '_GET_ORDERS_DATA_',\n      '_GET_MERCHANT_LISTINGS_DATA_'\n    ],\n    reportProcessingStatusList: [\n      '_DONE_'\n    ]\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  reportRequestIdList | `Array\u003cString\u003e` |\n  reportTypeList | `Array\u003cString\u003e` |\n  reportProcessingStatusList | `Array\u003cString\u003e` |\n  maxCount | `Number` | `100`\n  requestedFromDate | `Date` |\n  requestedToDate | `Date` |\n  nextToken | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003egetReportList\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.reports.getReportList({\n    reportTypeList: [\n      '_GET_ORDERS_DATA_'\n    ],\n    acknowledged: false,\n    reportRequestIdList: [\n      '2291326454',\n      '2294446454'\n    ]\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  maxCount | `Number` | `100`\n  reportTypeList | `Array\u003cString\u003e` |\n  acknowledged | `Boolean`\n  reportRequestIdList | `Array\u003cString\u003e` |\n  availableFromDate | `Date` |\n  availableToDate | `Date` |\n  nextToken | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003egetReport\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.reports.getReport({\n    reportId: '624169093',\n    format: 'raw'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  reportId | `String` |\n  format | `Enum[raw, base64]`\n\u003c/details\u003e\n\n### Sellers ![](https://badgen.net/badge/status/complete?label\u0026color=green)\n\n\u003cdetails\u003e\n  \u003csummary\u003elistMarketplaceParticipations\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.sellers.listMarketplaceParticipations()\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  nextToken | `String` |\n\u003c/details\u003e\n\n### Subscriptions\n\n\u003cdetails\u003e\n  \u003csummary\u003eregisterDestination\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.subscriptions.registerDestination({\n    marketplaceId: 'AKIAEEXAMPLESA',\n    sqsQueueUrl: 'https://sqs.us-east-1.amazonaws.com/51471EXAMPLE/mws_notifications'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  sqsQueueUrl | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003ederegisterDestination\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.subscriptions.deregisterDestination({\n    marketplaceId: 'AKIAEEXAMPLESA',\n    sqsQueueUrl: 'https://sqs.us-east-1.amazonaws.com/51471EXAMPLE/mws_notifications'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  sqsQueueUrl | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003esendTestNotificationToDestination\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.subscriptions.sendTestNotificationToDestination({\n    marketplaceId: 'AKIAEEXAMPLESA',\n    sqsQueueUrl: 'https://sqs.us-east-1.amazonaws.com/51471EXAMPLE/mws_notifications'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  sqsQueueUrl | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003ecreateSubscription\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.subscriptions.createSubscription({\n    marketplaceId: 'AKIAEEXAMPLESA',\n    sqsQueueUrl: 'https://sqs.us-east-1.amazonaws.com/51471EXAMPLE/mws_notifications',\n    isEnabled: true,\n    notificationType: 'AnyOfferChanged'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  sqsQueueUrl | `String` |\n  isEnabled | `Boolean` | `true`\n  notificationType | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003edeleteSubscription\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.subscriptions.deleteSubscription({\n    marketplaceId: 'AKIAEEXAMPLESA',\n    sqsQueueUrl: 'https://sqs.us-east-1.amazonaws.com/51471EXAMPLE/mws_notifications',\n    notificationType: 'AnyOfferChanged'\n  })\n  ```\n\n  **Options:**\n\n  Name | Type | Default\n  -----|------|--------\n  marketplaceId | `String` |\n  sqsQueueUrl | `String` |\n  notificationType | `String` |\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eparseNotification\u003c/summary\u003e\n\n  **Example:**\n\n  ```js\n  const result = await client.subscriptions.parseNotification(\n    `\u003cNotification\u003e\n      \u003cNotificationMetaData\u003e\n        \u003cNotificationType\u003eTest\u003c/NotificationType\u003e\n        \u003cPayloadVersion\u003e1.0\u003c/PayloadVersion\u003e\n        \u003cUniqueId\u003e0123456789-ca3b-4127-abe7-82cfbe19a032\u003c/UniqueId\u003e\n        \u003cPublishTime\u003e2019-07-01T10:46:29Z\u003c/PublishTime\u003e\n        \u003cSellerId\u003eXXXXXXXXXXTest\u003c/SellerId\u003e\n      \u003c/NotificationMetaData\u003e\n      \u003cNotificationPayload\u003e\n        \u003cTestNotification /\u003e\n      \u003c/NotificationPayload\u003e\n    \u003c/Notification\u003e`\n  )\n  ```\n\n  **Options:** Takes an XML string.\n\n  The following notifications are supported:\n\n  - `Test`\n  - `AnyOfferChanged`\n  - `FeedProcessingFinished`\n  - `ReportProcessingFinished`\n\u003c/details\u003e\n\n\n### Common\n\nAll entities except `reports` support a `getServiceStatus` method to retrieve the API status.\n\n## License\n\nMIT\n\n## Miscellaneous\n\n```\n    ╚⊙ ⊙╝\n  ╚═(███)═╝\n ╚═(███)═╝\n╚═(███)═╝\n ╚═(███)═╝\n  ╚═(███)═╝\n   ╚═(███)═╝\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbizon%2Fmws-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbizon%2Fmws-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbizon%2Fmws-sdk/lists"}