@sp-api-sdk/schemasJSON schemas and TypeScript types for the Amazon Selling Partner API (SP-API)
Learn more about the Selling Partner API by visiting the official documentation.
Also, see the generated documentation.
npm install @sp-api-sdk/schemas
This package exposes JSON schemas and their corresponding TypeScript types for Selling Partner API Feeds, Notifications, and Reports. These schemas are auto-generated from the official Amazon models.
Each schema is exported as a const object (usable at runtime for validation) along with a TypeScript type (inferred via json-schema-to-ts).
import {Reports} from '@sp-api-sdk/schemas'
// Use the JSON schema for validation
console.log(Reports.vendorInventoryReport)
import {Reports} from '@sp-api-sdk/schemas'
const report = (await getVendorInventoryReportData()) as Reports.VendorInventoryReport
listingsFeedMessageSchemaV2 / ListingsFeedMessageSchemaV2listingsFeedProcessingReportSchemaV2 / ListingsFeedProcessingReportSchemaV2listingsFeedSchemaV2 / ListingsFeedSchemaV2anyOfferChangedNotification / AnyOfferChangedNotificationb2bAnyOfferChangedNotification / B2bAnyOfferChangedNotificationbrandedItemContentChangeNotification / BrandedItemContentChangeNotificationdataKioskQueryProcessingFinishedNotification / DataKioskQueryProcessingFinishedNotificationdetailPageTrafficEventNotification / DetailPageTrafficEventNotificationfbaInventoryAvailabilityChangeNotification / FBAInventoryAvailabilityChangeNotificationfbaOutboundShipmentStatusNotification / FBAOutboundShipmentStatusNotificationfeedProcessingFinishedNotification / FeedProcessingFinishedNotificationfeePromotionNotification / FeePromotionNotificationfulfillmentOrderStatusNotification / FulfillmentOrderStatusNotificationitemInventoryEventChangeNotification / ItemInventoryEventChangeNotificationitemProductTypeChangeNotification / ItemProductTypeChangeNotificationitemSalesEventChangeNotification / ItemSalesEventChangeNotificationlistingsItemIssuesChangeNotification / ListingsItemIssuesChangeNotificationlistingsItemIssuesChangeNotification20231213 / ListingsItemIssuesChangeNotification20231213listingsItemMfnQuantityChange / ListingsItemMfnQuantityChangelistingsItemStatusChangeNotification / ListingsItemStatusChangeNotificationorderChangeNotification / OrderChangeNotificationpricingHealthNotification / PricingHealthNotificationproductTypeDefinitionsChangeNotification / ProductTypeDefinitionsChangeNotificationreportProcessingFinishedNotification / ReportProcessingFinishedNotificationtransactionUpdateNotification / TransactionUpdateNotificationaccountHealthReport20201118 / AccountHealthReport20201118b2bProductOpportunitiesNotYetOnAmazonReport20201119 / B2bProductOpportunitiesNotYetOnAmazonReport20201119b2bProductOpportunitiesRecommendedForYouReport20201119 / B2bProductOpportunitiesRecommendedForYouReport20201119endUserDataReport / EndUserDataReportmarketplaceAsinPageViewMetrics / MarketplaceAsinPageViewMetricspromotionReport / PromotionReportsellerCouponReport / SellerCouponReportsellerSalesAndTrafficReport / SellerSalesAndTrafficReportsellingPartnerMarketBasketAnalysisReport / SellingPartnerMarketBasketAnalysisReportsellingPartnerRepeatPurchaseReport / SellingPartnerRepeatPurchaseReportsellingPartnerSearchCatalogPerformanceReport / SellingPartnerSearchCatalogPerformanceReportsellingPartnerSearchQueryPerformanceReport / SellingPartnerSearchQueryPerformanceReportsellingPartnerSearchTermsReport / SellingPartnerSearchTermsReportvendorCouponReport / VendorCouponReportvendorForecastingReport / VendorForecastingReportvendorInventoryReport / VendorInventoryReportvendorNetPureProductMarginReport / VendorNetPureProductMarginReportvendorRealTimeInventoryReport / VendorRealTimeInventoryReportvendorRealTimeSalesReport / VendorRealTimeSalesReportvendorRealTimeTrafficReport / VendorRealTimeTrafficReportvendorSalesReport / VendorSalesReportvendorTrafficReport / VendorTrafficReportMIT
╚⊙ ⊙╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝