@sp-api-sdk/schemas
v1.12.1
Published
Selling Parner API additional schema types
Maintainers
Readme
@sp-api-sdk/schemas
Amazon Selling Partner API schemas
Documentation
Learn more about the Selling Partner API by visiting the official documentation.
Also, see the generated documentation.
Installing
npm install @sp-api-sdk/schemasOverview
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).
Usage
JSON schema (runtime)
import { Reports } from "@sp-api-sdk/schemas";
// Use the JSON schema for validation
console.log(Reports.vendorInventoryReport);TypeScript type
import { Reports } from "@sp-api-sdk/schemas";
const report = (await getVendorInventoryReportData()) as Reports.VendorInventoryReport;Available Schemas
Feeds (3 schemas)
listingsFeedSchemaV2/ListingsFeedSchemaV2listingsFeedMessageSchemaV2/ListingsFeedMessageSchemaV2listingsFeedProcessingReportSchemaV2/ListingsFeedProcessingReportSchemaV2
Notifications (22 schemas)
anyOfferChangedNotification/AnyOfferChangedNotificationb2bAnyOfferChangedNotification/B2bAnyOfferChangedNotificationbrandedItemContentChangeNotification/BrandedItemContentChangeNotificationdataKioskQueryProcessingFinishedNotification/DataKioskQueryProcessingFinishedNotificationdetailPageTrafficEventNotification/DetailPageTrafficEventNotificationfbaInventoryAvailabilityChangeNotification/FBAInventoryAvailabilityChangeNotificationfbaOutboundShipmentStatusNotification/FBAOutboundShipmentStatusNotificationfeePromotionNotification/FeePromotionNotificationfeedProcessingFinishedNotification/FeedProcessingFinishedNotificationfulfillmentOrderStatusNotification/FulfillmentOrderStatusNotificationitemInventoryEventChangeNotification/ItemInventoryEventChangeNotificationitemProductTypeChangeNotification/ItemProductTypeChangeNotificationitemSalesEventChangeNotification/ItemSalesEventChangeNotificationlistingsItemIssuesChangeNotification/ListingsItemIssuesChangeNotificationlistingsItemIssuesChangeNotification20231213/ListingsItemIssuesChangeNotification20231213listingsItemMfnQuantityChange/ListingsItemMfnQuantityChangelistingsItemStatusChangeNotification/ListingsItemStatusChangeNotificationorderChangeNotification/OrderChangeNotificationpricingHealthNotification/PricingHealthNotificationproductTypeDefinitionsChangeNotification/ProductTypeDefinitionsChangeNotificationreportProcessingFinishedNotification/ReportProcessingFinishedNotificationtransactionUpdateNotification/TransactionUpdateNotification
Reports (22 schemas)
accountHealthReport20201118/AccountHealthReport20201118b2bProductOpportunitiesNotYetOnAmazonReport20201119/B2bProductOpportunitiesNotYetOnAmazonReport20201119b2bProductOpportunitiesRecommendedForYouReport20201119/B2bProductOpportunitiesRecommendedForYouReport20201119endUserDataReport/EndUserDataReportmarketplaceAsinPageViewMetrics/MarketplaceAsinPageViewMetricspromotionReport/PromotionReportsellerCouponReport/SellerCouponReportsellerSalesAndTrafficReport/SellerSalesAndTrafficReportsellingPartnerMarketBasketAnalysisReport/SellingPartnerMarketBasketAnalysisReportsellingPartnerRepeatPurchaseReport/SellingPartnerRepeatPurchaseReportsellingPartnerSearchCatalogPerformanceReport/SellingPartnerSearchCatalogPerformanceReportsellingPartnerSearchQueryPerformanceReport/SellingPartnerSearchQueryPerformanceReportsellingPartnerSearchTermsReport/SellingPartnerSearchTermsReportvendorCouponReport/VendorCouponReportvendorForecastingReport/VendorForecastingReportvendorInventoryReport/VendorInventoryReportvendorNetPureProductMarginReport/VendorNetPureProductMarginReportvendorRealTimeInventoryReport/VendorRealTimeInventoryReportvendorRealTimeSalesReport/VendorRealTimeSalesReportvendorRealTimeTrafficReport/VendorRealTimeTrafficReportvendorSalesReport/VendorSalesReportvendorTrafficReport/VendorTrafficReport
License
MIT
Miscellaneous
╚⊙ ⊙╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝