Home Reference Source

References

summary
public

Thrown when receiving an "Invalid" identifier message, which is also the same as "identifier does not exist" -- when calling something like getMatchingProductForId, MWS will return "Invalid Identifier" for any situation in which an identifier is not found.

public

Thrown when completely Invalid Parameters are given and we have no way of making sense of them

public

Thrown when a request is cancelled by MWS -- we have no way of knowing automatically if we should retry or not

public

Thrown when an Error response comes from the Service (not a mws-simple.ServerError though)

public

Thrown when parameters fail validation locally, before being sent to MWS

public
public

V MARKET_CURRENCY: {"US": string, "CA": string}

A list of the default currency codes for markets, indexed by country code.

public

V MWS_ENDPOINTS: {"NA": string, "BR": string, "EU": string, "IN": string, "CN": string, "AU": string, "JP": string}

A list of hosts you can use with the mws-advanced "host" option, hashed by MWS Region Name.

public

V MWS_MARKETPLACES: {"CA": string, "MX": string, "US": string, "BR": string, "DE": string, "ES": string, "FR": string, "IT": string, "UK": string, "IN": string, "CN": string, "AU": string, "JP": string, "TR": string}

A list of Marketplace IDs hashed by their country code.

endpoints

summary
public

C Queue

public

F getQueue(category: *, action: *, seller: *): *

public

F registerQueue(q: *, category: *, action: *, seller: *)

public

status indicators for report processing status updates

public

List of all valid request report types.

helpers

summary
public
public
public
public

F getMyFeesEstimate(api: *)

public

F getOrder(api: *)

public
public
public
public
public

F listOrders(api: *)

public

F getReport(api: *)

public

F getReportList(api: *)

public

F getReportListAll(api: *): *

public
public
public
public
public
public
public

T MarketDetail(marketplaceId: string, defaultCountryCode: string, domainName: string, defaultCurrencyCode: string, defaultLanguageCode: string, sellerId: string, hasSellerSuspendedListings: boolean): *

public

T Estimate(totalFees: Money, time: string, detail: FeeDetail[], identifier: FeeIdentifier, status: string, error: Error): *

public

T EstimateRequest(marketplaceId: string, idType: string, idValue: string, isAmazonFulfilled: boolean, listingPrice: Money, shipping: Money, points: object, identifier: string): *

public

T FeeDetail(feeType: string, feeAmount: Money, feePromotion: Money, finalFee: Money): *

public

T FeeIdentifier(marketplaceId: string, idType: string, sellerId: string, isAmazonFulfilled: boolean, sellerInputIdentifier: string, idValue: string, priceToEstimateFees: object): *

public

T productCategory(ProductCategoryId: string, ProductCategoryName: string, Parent: productCategory): *

public

T productCategoryByAsin(asin: string, error: object, Self: productCategory): *

public
public

T OrderItemList(orderId: string, nextToken: string, orderItems: Array): *

public

T GetReportRequestListResult(ReportType: string, ReportProcessingStatus: string, EndDate: string, Scheduled: boolean, ReportRequestId: string, StartedProcessingDate: string, StartDate: string, CompletedDate: string, GeneratedReportId: string): *

public

T ReportRequestInfo(ReportType: string, ReportProcessingStatus: string, EndDate: string, Scheduled: boolean, ReportRequestId: string, SubmittedDate: string, StartDate: string): *

parsers

summary
public

F parseFeesEstimate(fees: *): *

public

F parseMarketplaceData(marketplaceData: any): *

Turn a mess of XML from ListMarketplaceParticipations into a @see MarketDetail

public

F parseMatchingProduct(productData: any): Product[]

Parse MWS product info into Product[] (TODO: document Product[], it's quite a large potential result)

public

T BuyBoxPrice(condition: string, landedPrice: Money, listingPrice: Money, shipping: Money): *

public

T DetailedShippingTime(unknown: string): *

public

T LowestPrice(condition: string, fulfillmentChannel: string, landedPrice: Money, listingPrice: Money, shipping: string): *

public

T LowestPricedOffers(asin: string, marketplace: string, itemCondition: string, summary: OfferSummary, offers: Offers[]): *

public

T Money(unknown: string): *

public

T Offer(subCondition: string, sellerFeedbackRating: SellerFeedbackRating, shippingTime: DetailedShippingTime, listingPrice: Money, points: Points, shipping: Money, shipsFrom: ShipsFrom, isFulfilledByAmazon: boolean, isBuyBoxWinner: boolean, isFeaturedMerchant: boolean): *

public

T OfferCount(count: number, condition: string, fulfillmentChannel: string): *

public

T OfferSummary(totalOfferCount: number, numberOfOffers: number, listPrice: Money, lowestPrices: LowestPrice[], buyBoxPrices: Array): *

public

T SellerFeedbackRating(unknown: string): *

public

T ShipsFrom(unknown: string): *

public

T ProductIdentifier(type: string, id: string): *

public

T OrderItem: *

public
public

T orderItemsList(-: orderItems, -: nextToken, -: orderId): *

Directories