Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bizon/mws-sdk

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bizon/mws-sdk

SDK for Amazon Marketplace Web Services

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-53.33%
Maintainers
1
Weekly downloads
 
Created
Source

mws-sdk CircleCI

SDK for Amazon Marketplace Web Services

npm version codecov dependencies Status XO code style

Getting started

npm install --save @bizon/mws-sdk

Usage

const MWSClient = require('@bizon/mws-sdk')

const client = new MWSClient({
  accessKeyId: '', // defaults to process.env.MWS_ACCESS_KEY_ID
  secretAccessKey: '', // defaults to process.env.MWS_SECRET_ACCESS_KEY
  sellerId: '',
  mwsToken: '',
  mwsRegion: ''
})

Region and Marketplaces

The MWS documentation defines a list of regions and marketplaces available in each region.

The 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:

Generic MWS regions:

RegionAPI EndpointName
namws.amazonservices.comNorth America
eumws-eu.amazonservices.comEurope
femws-fe.amazonservices.comFar East

Country specific MWS regions:

RegionAPI EndpointName
camws.amazonservices.caCanada
mxmws.amazonservices.com.mxMexico
aemws.amazonservices.aeUnited Arab Emirates
inmws.amazonservices.inIndia
jpmws.amazonservices.jpJapan
aumws.amazonservices.com.auAustralia

This library also allows to specify a list of marketplaces (either 2 letter country codes or Marketplaces IDs) so you can restrict API calls to your marketplace participations:

const client = new MWSClient({
  accessKeyId: '',
  secretAccessKey: '',
  sellerId: '',
  mwsToken: '',
  marketplaces: [
    'A1F83G8C2ARO7P', // UK
    'fr'
  ]
})

Keep in mind that the specified marketplaces will have to share their MWS API endpoint.

API

Finances

Version: 2015-05-01

listFinancialEvents(options)

Options:

NameTypeDefault
maxResultsPerPageNumber100
amazonOrderIdString
financialEventGroupIdString
postedAfterDate
postedBeforeDate
nextTokenString
listFinancialEventGroups(options)

Options:

NameTypeDefault
maxResultsPerPageNumber100
financialEventGroupStartedAfterDate
financialEventGroupStartedBeforeDate
nextTokenString

FulfillmentInboundShipment

Version: 2010-10-01

listInboundShipments(options)

Options:

NameTypeDefault
shipmentStatusListArray<String>
shipmentIdListArray<String>
lastUpdatedAfterDate
lastUpdatedBeforeDate
nextTokenString
listInboundShipmentItems(options)

Options:

NameTypeDefault
shipmentIdArray<String>
lastUpdatedAfterDate
lastUpdatedBeforeDate
nextTokenString

FulfillmentInventory

Version: 2010-10-01

listInventorySupply(options)

Options:

NameTypeDefault
sellerSkusArray<String>
queryStartDateTimeDate
responseGroupString
marketplaceIdString
nextTokenString

Orders

Version: 2013-09-01

getOrders(options)

Options:

NameTypeDefault
amazonOrderIdsArray<String>
listOrders(options)

Options:

NameTypeDefault
createdAfterDate
createdBeforeDate
lastUpdatedAfterDate
lastUpdatedBeforeDate
orderStatusString
marketplaceIdArray<String>Selected region’s marketplaces
fulfillmentChannelString
paymentMethodString
buyerEmailString
sellerOrderIdString
maxResultsPerPageNumber100
tfmShipmentStatusString
nextTokenString
listOrderItems(options)

Options:

NameTypeDefault
amazonOrderIdString
nextTokenString

Products

Version: 2011-10-01

getMatchingProduct(options)

Options:

NameTypeDefault
marketplaceIdString
asinListArray<String>
getMatchingProductForId(options)

Options:

NameTypeDefault
marketplaceIdString
idTypeString
idListArray<String>
getMyPriceForAsin(options)

Options:

NameTypeDefault
marketplaceIdString
asinListArray<String>
itemConditionString
getMyPriceForSku(options)

Options:

NameTypeDefault
marketplaceIdString
sellerSkuListArray<String>
itemConditionString
getLowestPricedOffersForAsin(options)

Options:

NameTypeDefault
marketplaceIdString
asinString
itemConditionString

Sellers

Version: 2011-07-01

listMarketplaceParticipations(options)

Options:

NameTypeDefault
nextTokenString

Reports

Version: 2009-01-01

requestReport(options)

Options:

NameTypeDefault
reportTypeString
startDateDate
endDateDate
marketplacesArray<String>
reportOptionsString
getReportRequestList(options)

Options:

NameTypeDefault
reportRequestIdListArray<String>
reportTypeListArray<String>
reportProcessingStatusListArray<String>
maxCountNumber100
requestedFromDateDate
requestedToDateDate
nextTokenString
getReportList(options)

Options:

NameTypeDefault
maxCountNumber100
reportTypeListArray<String>
acknowledgedBoolean
reportRequestIdListArray<String>
availableFromDateDate
availableToDateDate
nextTokenString
getReport(options)

Options:

NameTypeDefault
reportIdString
formatEnum[raw, base64]

Subscriptions

Version: 2013-07-01

registerDestination(options)

Options:

NameTypeDefault
marketplaceIdString
sqsQueueUrlString
deregisterDestination(options)

Options:

NameTypeDefault
marketplaceIdString
sqsQueueUrlString
createSubscription(options)

Options:

NameTypeDefault
marketplaceIdString
sqsQueueUrlString
isEnabledBooleantrue
notificationTypeString
deleteSubscription(options)

Options:

NameTypeDefault
marketplaceIdString
sqsQueueUrlString
notificationTypeString
sendTestNotificationToDestination(options)

Options:

NameTypeDefault
marketplaceIdString
sqsQueueUrlString
parseNotification(xml)

Parse an XML notification. The following notifications are supported:

  • Test
  • AnyOfferChanged
  • FeedProcessingFinished
  • ReportProcessingFinished

Common

All entities except Reports support a getServiceStatus method to retrieve the API status.

License

MIT

Miscellaneous

    ╚⊙ ⊙╝
  ╚═(███)═╝
 ╚═(███)═╝
╚═(███)═╝
 ╚═(███)═╝
  ╚═(███)═╝
   ╚═(███)═╝

Keywords

FAQs

Package last updated on 19 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc