catalogItems20220401

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package catalogItems20220401 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetCatalogItemRequest

func NewGetCatalogItemRequest(server string, asin string, params *GetCatalogItemParams) (*http.Request, error)

NewGetCatalogItemRequest generates requests for GetCatalogItem

func NewSearchCatalogItemsRequest

func NewSearchCatalogItemsRequest(server string, params *SearchCatalogItemsParams) (*http.Request, error)

NewSearchCatalogItemsRequest generates requests for SearchCatalogItems

Types

type BrandRefinement

type BrandRefinement struct {
	// BrandName The brand name that you can use to refine your search.
	BrandName string `json:"brandName"`

	// NumberOfResults The estimated number of results that would be returned if you refine your search by the specified `brandName`.
	NumberOfResults int `json:"numberOfResults"`
}

BrandRefinement A brand that you can use to refine your search.

type ClassificationRefinement

type ClassificationRefinement struct {
	// ClassificationId The identifier of the classification that you can use to refine your search.
	ClassificationId string `json:"classificationId"`

	// DisplayName Display name for the classification.
	DisplayName string `json:"displayName"`

	// NumberOfResults The estimated number of results that would be returned if you refine your search by the specified `classificationId`.
	NumberOfResults int `json:"numberOfResults"`
}

ClassificationRefinement A classification that you can use to refine your search.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn

	// A callback for modifying response which are generated after receive from the network.
	ResponseEditors []ResponseEditorFn

	// The user agent header identifies your application, its version number, and the platform and programming language you are using.
	// You must include a user agent header in each request submitted to the sales partner API.
	UserAgent string
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) GetCatalogItem

func (c *Client) GetCatalogItem(ctx context.Context, asin string, params *GetCatalogItemParams) (*http.Response, error)

func (*Client) SearchCatalogItems

func (c *Client) SearchCatalogItems(ctx context.Context, params *SearchCatalogItemsParams) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// SearchCatalogItems request
	SearchCatalogItems(ctx context.Context, params *SearchCatalogItemsParams) (*http.Response, error)

	// GetCatalogItem request
	GetCatalogItem(ctx context.Context, asin string, params *GetCatalogItemParams) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

func WithResponseEditorFn

func WithResponseEditorFn(fn ResponseEditorFn) ClientOption

WithResponseEditorFn allows setting up a callback function, which will be called right after receive the response.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) GetCatalogItemWithResponse

func (c *ClientWithResponses) GetCatalogItemWithResponse(ctx context.Context, asin string, params *GetCatalogItemParams) (*GetCatalogItemResp, error)

GetCatalogItemWithResponse request returning *GetCatalogItemResp

func (*ClientWithResponses) SearchCatalogItemsWithResponse

func (c *ClientWithResponses) SearchCatalogItemsWithResponse(ctx context.Context, params *SearchCatalogItemsParams) (*SearchCatalogItemsResp, error)

SearchCatalogItemsWithResponse request returning *SearchCatalogItemsResp

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// SearchCatalogItemsWithResponse request
	SearchCatalogItemsWithResponse(ctx context.Context, params *SearchCatalogItemsParams) (*SearchCatalogItemsResp, error)

	// GetCatalogItemWithResponse request
	GetCatalogItemWithResponse(ctx context.Context, asin string, params *GetCatalogItemParams) (*GetCatalogItemResp, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Dimension

type Dimension struct {
	// Unit Unit of measurement for the dimension value.
	Unit *string `json:"unit,omitempty"`

	// Value Numeric value of the dimension.
	Value *float32 `json:"value,omitempty"`
}

Dimension The value of an individual dimension for an Amazon catalog item or item package.

type Dimensions

type Dimensions struct {
	// Height The value of an individual dimension for an Amazon catalog item or item package.
	Height *Dimension `json:"height,omitempty"`

	// Length The value of an individual dimension for an Amazon catalog item or item package.
	Length *Dimension `json:"length,omitempty"`

	// Weight The value of an individual dimension for an Amazon catalog item or item package.
	Weight *Dimension `json:"weight,omitempty"`

	// Width The value of an individual dimension for an Amazon catalog item or item package.
	Width *Dimension `json:"width,omitempty"`
}

Dimensions Dimensions of an Amazon catalog item or item in its packaging.

type Error

type Error struct {
	// Code An error code that identifies the type of error that occurred.
	Code string `json:"code"`

	// Details Additional details that can help the caller understand or fix the issue.
	Details *string `json:"details,omitempty"`

	// Message A message that describes the error condition.
	Message string `json:"message"`
}

Error Error response returned when the request is unsuccessful.

type ErrorList

type ErrorList struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors []Error `json:"errors"`
}

ErrorList A list of error responses returned when a request is unsuccessful.

type GetCatalogItemParams

type GetCatalogItemParams struct {
	// MarketplaceIds A comma-delimited list of Amazon marketplace identifiers. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`

	// IncludedData A comma-delimited list of datasets to include in the response.
	IncludedData *[]GetCatalogItemParamsIncludedData `form:"includedData,omitempty" json:"includedData,omitempty"`

	// Locale The locale for which you want to retrieve localized summaries. Defaults to the primary locale of the marketplace.
	Locale *string `form:"locale,omitempty" json:"locale,omitempty"`
}

GetCatalogItemParams defines parameters for GetCatalogItem.

type GetCatalogItemParamsIncludedData

type GetCatalogItemParamsIncludedData string

GetCatalogItemParamsIncludedData defines parameters for GetCatalogItem.

const (
	GetCatalogItemParamsIncludedDataAttributes      GetCatalogItemParamsIncludedData = "attributes"
	GetCatalogItemParamsIncludedDataClassifications GetCatalogItemParamsIncludedData = "classifications"
	GetCatalogItemParamsIncludedDataDimensions      GetCatalogItemParamsIncludedData = "dimensions"
	GetCatalogItemParamsIncludedDataIdentifiers     GetCatalogItemParamsIncludedData = "identifiers"
	GetCatalogItemParamsIncludedDataImages          GetCatalogItemParamsIncludedData = "images"
	GetCatalogItemParamsIncludedDataProductTypes    GetCatalogItemParamsIncludedData = "productTypes"
	GetCatalogItemParamsIncludedDataRelationships   GetCatalogItemParamsIncludedData = "relationships"
	GetCatalogItemParamsIncludedDataSalesRanks      GetCatalogItemParamsIncludedData = "salesRanks"
	GetCatalogItemParamsIncludedDataSummaries       GetCatalogItemParamsIncludedData = "summaries"
	GetCatalogItemParamsIncludedDataVendorDetails   GetCatalogItemParamsIncludedData = "vendorDetails"
)

Defines values for GetCatalogItemParamsIncludedData.

type GetCatalogItemResp

type GetCatalogItemResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Item
	JSON400      *ErrorList
	JSON403      *ErrorList
	JSON404      *ErrorList
	JSON413      *ErrorList
	JSON415      *ErrorList
	JSON429      *ErrorList
	JSON500      *ErrorList
	JSON503      *ErrorList
}

func ParseGetCatalogItemResp

func ParseGetCatalogItemResp(rsp *http.Response) (*GetCatalogItemResp, error)

ParseGetCatalogItemResp parses an HTTP response from a GetCatalogItemWithResponse call

func (GetCatalogItemResp) Status

func (r GetCatalogItemResp) Status() string

Status returns HTTPResponse.Status

func (GetCatalogItemResp) StatusCode

func (r GetCatalogItemResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Item

type Item struct {
	// Asin The unique identifier of an item in the Amazon catalog.
	Asin ItemAsin `json:"asin"`

	// Attributes A JSON object containing structured item attribute data that is keyed by attribute name. Catalog item attributes conform to the related Amazon product type definitions that you can get from the [Product Type Definitions API](https://developer-docs.amazon.com/sp-api/reference/product-type-definitions-v2020-09-01).
	Attributes *ItemAttributes `json:"attributes,omitempty"`

	// Classifications An array of classifications (browse nodes) that is associated with the item in the Amazon catalog, grouped by `marketplaceId`.
	Classifications *ItemBrowseClassifications `json:"classifications,omitempty"`

	// Dimensions An array of dimensions that are associated with the item in the Amazon catalog, grouped by `marketplaceId`.
	Dimensions *ItemDimensions `json:"dimensions,omitempty"`

	// Identifiers Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers.
	Identifiers *ItemIdentifiers `json:"identifiers,omitempty"`

	// Images The images for an item in the Amazon catalog.
	Images *ItemImages `json:"images,omitempty"`

	// ProductTypes Product types that are associated with the Amazon catalog item.
	ProductTypes *ItemProductTypes `json:"productTypes,omitempty"`

	// Relationships Relationships grouped by `marketplaceId` for an Amazon catalog item (for example, variations).
	Relationships *ItemRelationships `json:"relationships,omitempty"`

	// SalesRanks Sales ranks of an Amazon catalog item.
	SalesRanks *ItemSalesRanks `json:"salesRanks,omitempty"`

	// Summaries Summaries of Amazon catalog items.
	Summaries *ItemSummaries `json:"summaries,omitempty"`

	// VendorDetails The vendor details that are associated with an Amazon catalog item. Vendor details are only available to vendors.
	VendorDetails *ItemVendorDetails `json:"vendorDetails,omitempty"`
}

Item An item in the Amazon catalog.

type ItemAsin

type ItemAsin = string

ItemAsin The unique identifier of an item in the Amazon catalog.

type ItemAttributes

type ItemAttributes map[string]interface{}

ItemAttributes A JSON object containing structured item attribute data that is keyed by attribute name. Catalog item attributes conform to the related Amazon product type definitions that you can get from the [Product Type Definitions API](https://developer-docs.amazon.com/sp-api/reference/product-type-definitions-v2020-09-01).

type ItemBrowseClassification

type ItemBrowseClassification struct {
	// ClassificationId Identifier of the classification.
	ClassificationId string `json:"classificationId"`

	// DisplayName Display name for the classification.
	DisplayName string `json:"displayName"`

	// Parent Classification (browse node) for an Amazon catalog item.
	Parent *ItemBrowseClassification `json:"parent,omitempty"`
}

ItemBrowseClassification Classification (browse node) for an Amazon catalog item.

type ItemBrowseClassifications added in v1.2.0

type ItemBrowseClassifications = []ItemBrowseClassificationsByMarketplace

ItemBrowseClassifications An array of classifications (browse nodes) that is associated with the item in the Amazon catalog, grouped by `marketplaceId`.

type ItemBrowseClassificationsByMarketplace added in v1.2.0

type ItemBrowseClassificationsByMarketplace struct {
	// Classifications Classifications (browse nodes) that are associated with the item in the Amazon catalog.
	Classifications *[]ItemBrowseClassification `json:"classifications,omitempty"`

	// MarketplaceId Amazon marketplace identifier. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
	MarketplaceId string `json:"marketplaceId"`
}

ItemBrowseClassificationsByMarketplace Classifications (browse nodes) that are associated with the item in the Amazon catalog for the indicated `marketplaceId`.

type ItemClassificationSalesRank

type ItemClassificationSalesRank struct {
	// ClassificationId Identifier of the classification that is associated with the sales rank.
	ClassificationId string `json:"classificationId"`

	// Link Corresponding Amazon retail website URL for the sales category.
	Link *string `json:"link,omitempty"`

	// Rank Sales rank.
	Rank int `json:"rank"`

	// Title Name of the sales rank.
	Title string `json:"title"`
}

ItemClassificationSalesRank Sales rank of an Amazon catalog item.

type ItemContributor

type ItemContributor struct {
	// Role Role of an individual contributor in the creation of an item, such as author or actor.
	Role ItemContributorRole `json:"role"`

	// Value Name of the contributor, such as `Jane Austen`.
	Value string `json:"value"`
}

ItemContributor Individual contributor to the creation of an item, such as an author or actor.

type ItemContributorRole

type ItemContributorRole struct {
	// DisplayName Display name of the role in the requested locale, such as `Author` or `Actor`.
	DisplayName *string `json:"displayName,omitempty"`

	// Value Role value for the Amazon catalog item, such as `author` or `actor`.
	Value string `json:"value"`
}

ItemContributorRole Role of an individual contributor in the creation of an item, such as author or actor.

type ItemDimensions

type ItemDimensions = []ItemDimensionsByMarketplace

ItemDimensions An array of dimensions that are associated with the item in the Amazon catalog, grouped by `marketplaceId`.

type ItemDimensionsByMarketplace

type ItemDimensionsByMarketplace struct {
	// Item Dimensions of an Amazon catalog item or item in its packaging.
	Item *Dimensions `json:"item,omitempty"`

	// MarketplaceId Amazon marketplace identifier. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
	MarketplaceId string `json:"marketplaceId"`

	// Package Dimensions of an Amazon catalog item or item in its packaging.
	Package *Dimensions `json:"package,omitempty"`
}

ItemDimensionsByMarketplace Dimensions that are associated with the item in the Amazon catalog for the indicated `marketplaceId`.

type ItemDisplayGroupSalesRank

type ItemDisplayGroupSalesRank struct {
	// Link Corresponding Amazon retail website URL for the sales rank.
	Link *string `json:"link,omitempty"`

	// Rank Sales rank.
	Rank int `json:"rank"`

	// Title Name of the sales rank.
	Title string `json:"title"`

	// WebsiteDisplayGroup Name of the website display group that is associated with the sales rank
	WebsiteDisplayGroup string `json:"websiteDisplayGroup"`
}

ItemDisplayGroupSalesRank Sales rank of an Amazon catalog item, grouped by website display group.

type ItemIdentifier

type ItemIdentifier struct {
	// Identifier Identifier of the item.
	Identifier string `json:"identifier"`

	// IdentifierType Type of identifier, such as UPC, EAN, or ISBN.
	IdentifierType string `json:"identifierType"`
}

ItemIdentifier The identifier that is associated with the item in the Amazon catalog, such as a UPC or EAN identifier.

type ItemIdentifiers

type ItemIdentifiers = []ItemIdentifiersByMarketplace

ItemIdentifiers Identifiers associated with the item in the Amazon catalog, such as UPC and EAN identifiers.

type ItemIdentifiersByMarketplace

type ItemIdentifiersByMarketplace struct {
	// Identifiers Identifiers associated with the item in the Amazon catalog for the indicated `marketplaceId`.
	Identifiers []ItemIdentifier `json:"identifiers"`

	// MarketplaceId Amazon marketplace identifier. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).identifier.
	MarketplaceId string `json:"marketplaceId"`
}

ItemIdentifiersByMarketplace Identifiers that are associated with the item in the Amazon catalog, grouped by `marketplaceId`.

type ItemImage

type ItemImage struct {
	// Height Height of the image in pixels.
	Height int `json:"height"`

	// Link URL for the image.
	Link string `json:"link"`

	// Variant Variant of the image, such as `MAIN` or `PT01`.
	Variant ItemImageVariant `json:"variant"`

	// Width Width of the image in pixels.
	Width int `json:"width"`
}

ItemImage Image for an item in the Amazon catalog.

type ItemImageVariant

type ItemImageVariant string

ItemImageVariant Variant of the image, such as `MAIN` or `PT01`.

const (
	MAIN ItemImageVariant = "MAIN"
	PT01 ItemImageVariant = "PT01"
	PT02 ItemImageVariant = "PT02"
	PT03 ItemImageVariant = "PT03"
	PT04 ItemImageVariant = "PT04"
	PT05 ItemImageVariant = "PT05"
	PT06 ItemImageVariant = "PT06"
	PT07 ItemImageVariant = "PT07"
	PT08 ItemImageVariant = "PT08"
	SWCH ItemImageVariant = "SWCH"
)

Defines values for ItemImageVariant.

type ItemImages

type ItemImages = []ItemImagesByMarketplace

ItemImages The images for an item in the Amazon catalog.

type ItemImagesByMarketplace

type ItemImagesByMarketplace struct {
	// Images Images for an item in the Amazon catalog, grouped by `marketplaceId`.
	Images []ItemImage `json:"images"`

	// MarketplaceId Amazon marketplace identifier. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
	MarketplaceId string `json:"marketplaceId"`
}

ItemImagesByMarketplace Images for an item in the Amazon catalog, grouped by `marketplaceId`.

type ItemProductTypeByMarketplace

type ItemProductTypeByMarketplace struct {
	// MarketplaceId Amazon marketplace identifier. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
	MarketplaceId *string `json:"marketplaceId,omitempty"`

	// ProductType Name of the product type that is associated with the Amazon catalog item.
	ProductType *string `json:"productType,omitempty"`
}

ItemProductTypeByMarketplace Product type that is associated with the Amazon catalog item, grouped by `marketplaceId`.

type ItemProductTypes

type ItemProductTypes = []ItemProductTypeByMarketplace

ItemProductTypes Product types that are associated with the Amazon catalog item.

type ItemRelationship

type ItemRelationship struct {
	// ChildAsins ASINs of the related items that are children of this item.
	ChildAsins *[]string `json:"childAsins,omitempty"`

	// ParentAsins ASINs of the related items that are parents of this item.
	ParentAsins *[]string `json:"parentAsins,omitempty"`

	// Type Type of relationship.
	Type ItemRelationshipType `json:"type"`

	// VariationTheme The variation theme is a list of Amazon catalog item attributes that define the variation family.
	VariationTheme *ItemVariationTheme `json:"variationTheme,omitempty"`
}

ItemRelationship Relationship details for an Amazon catalog item.

type ItemRelationshipType

type ItemRelationshipType string

ItemRelationshipType Type of relationship.

const (
	PACKAGEHIERARCHY ItemRelationshipType = "PACKAGE_HIERARCHY"
	VARIATION        ItemRelationshipType = "VARIATION"
)

Defines values for ItemRelationshipType.

type ItemRelationships

type ItemRelationships = []ItemRelationshipsByMarketplace

ItemRelationships Relationships grouped by `marketplaceId` for an Amazon catalog item (for example, variations).

type ItemRelationshipsByMarketplace

type ItemRelationshipsByMarketplace struct {
	// MarketplaceId Amazon marketplace identifier. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
	MarketplaceId string `json:"marketplaceId"`

	// Relationships Relationships for the item.
	Relationships []ItemRelationship `json:"relationships"`
}

ItemRelationshipsByMarketplace Relationship details for the Amazon catalog item for the specified Amazon `marketplaceId`.

type ItemSalesRanks

type ItemSalesRanks = []ItemSalesRanksByMarketplace

ItemSalesRanks Sales ranks of an Amazon catalog item.

type ItemSalesRanksByMarketplace

type ItemSalesRanksByMarketplace struct {
	// ClassificationRanks Sales ranks of an Amazon catalog item for a `marketplaceId`, grouped by classification.
	ClassificationRanks *[]ItemClassificationSalesRank `json:"classificationRanks,omitempty"`

	// DisplayGroupRanks Sales ranks of an Amazon catalog item for a `marketplaceId`, grouped by website display group.
	DisplayGroupRanks *[]ItemDisplayGroupSalesRank `json:"displayGroupRanks,omitempty"`

	// MarketplaceId Amazon marketplace identifier. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
	MarketplaceId string `json:"marketplaceId"`
}

ItemSalesRanksByMarketplace Sales ranks of an Amazon catalog item, grouped by `marketplaceId`.

type ItemSearchResults

type ItemSearchResults struct {
	// Items A list of items from the Amazon catalog.
	Items []Item `json:"items"`

	// NumberOfResults For searches that are based on `identifiers`, `numberOfResults` is the total number of Amazon catalog items found. For searches that are based on `keywords`, `numberOfResults` is the estimated total number of Amazon catalog items that are matched by the search query. Only results up to the page count limit are returned per request regardless of the number found.
	//
	// **Note:** The maximum number of items (ASINs) that can be returned and paged through is 1,000.
	NumberOfResults int `json:"numberOfResults"`

	// Pagination Pagination occurs when a request produces a response that exceeds the `pageSize`. This means that the response is divided into individual pages. To retrieve the next page or the previous page of results, you must pass the `nextToken` value or the `previousToken` value as the `pageToken` parameter in the next request. There is no `nextToken` in the pagination object on the last page.
	Pagination *Pagination `json:"pagination,omitempty"`

	// Refinements Optional fields that you can use to refine your search results.
	Refinements *Refinements `json:"refinements,omitempty"`
}

ItemSearchResults Items in the Amazon catalog and search-related metadata.

type ItemSummaries

type ItemSummaries = []ItemSummaryByMarketplace

ItemSummaries Summaries of Amazon catalog items.

type ItemSummaryByMarketplace

type ItemSummaryByMarketplace struct {
	// AdultProduct When `true`, the Amazon catalog item is intended for an adult audience or is sexual in nature.
	AdultProduct *bool `json:"adultProduct,omitempty"`

	// Autographed When `true`, the Amazon catalog item is autographed.
	Autographed *bool `json:"autographed,omitempty"`

	// Brand Name of the brand that is associated with the Amazon catalog item.
	Brand *string `json:"brand,omitempty"`

	// BrowseClassification Classification (browse node) for an Amazon catalog item.
	BrowseClassification *ItemBrowseClassification `json:"browseClassification,omitempty"`

	// Color The color that is associated with the Amazon catalog item.
	Color *string `json:"color,omitempty"`

	// Contributors Individual contributors to the creation of the item, such as the authors or actors.
	Contributors *[]ItemContributor `json:"contributors,omitempty"`

	// ItemClassification Classification type that is associated with the Amazon catalog item.
	ItemClassification *ItemSummaryByMarketplaceItemClassification `json:"itemClassification,omitempty"`

	// ItemName The name that is associated with the Amazon catalog item.
	ItemName *string `json:"itemName,omitempty"`

	// Manufacturer The name of the manufacturer that is associated with the Amazon catalog item.
	Manufacturer *string `json:"manufacturer,omitempty"`

	// MarketplaceId Amazon marketplace identifier. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
	MarketplaceId string `json:"marketplaceId"`

	// Memorabilia When true, the item is classified as memorabilia.
	Memorabilia *bool `json:"memorabilia,omitempty"`

	// ModelNumber The model number that is associated with the Amazon catalog item.
	ModelNumber *string `json:"modelNumber,omitempty"`

	// PackageQuantity The quantity of the Amazon catalog item within one package.
	PackageQuantity *int `json:"packageQuantity,omitempty"`

	// PartNumber The part number that is associated with the Amazon catalog item.
	PartNumber *string `json:"partNumber,omitempty"`

	// ReleaseDate The earliest date on which the Amazon catalog item can be shipped to customers.
	ReleaseDate *openapi_types.Date `json:"releaseDate,omitempty"`

	// Size The name of the size of the Amazon catalog item.
	Size *string `json:"size,omitempty"`

	// Style The name of the style that is associated with the Amazon catalog item.
	Style *string `json:"style,omitempty"`

	// TradeInEligible When true, the Amazon catalog item is eligible for trade-in.
	TradeInEligible *bool `json:"tradeInEligible,omitempty"`

	// WebsiteDisplayGroup The identifier of the website display group that is associated with the Amazon catalog item.
	WebsiteDisplayGroup *string `json:"websiteDisplayGroup,omitempty"`

	// WebsiteDisplayGroupName The display name of the website display group that is associated with the Amazon catalog item.
	WebsiteDisplayGroupName *string `json:"websiteDisplayGroupName,omitempty"`
}

ItemSummaryByMarketplace Information about an Amazon catalog item for the indicated `marketplaceId`.

type ItemSummaryByMarketplaceItemClassification

type ItemSummaryByMarketplaceItemClassification string

ItemSummaryByMarketplaceItemClassification Classification type that is associated with the Amazon catalog item.

const (
	BASEPRODUCT     ItemSummaryByMarketplaceItemClassification = "BASE_PRODUCT"
	OTHER           ItemSummaryByMarketplaceItemClassification = "OTHER"
	PRODUCTBUNDLE   ItemSummaryByMarketplaceItemClassification = "PRODUCT_BUNDLE"
	VARIATIONPARENT ItemSummaryByMarketplaceItemClassification = "VARIATION_PARENT"
)

Defines values for ItemSummaryByMarketplaceItemClassification.

type ItemVariationTheme

type ItemVariationTheme struct {
	// Attributes Names of the Amazon catalog item attributes that are associated with the variation theme.
	Attributes *[]string `json:"attributes,omitempty"`

	// Theme Variation theme that indicates the combination of Amazon catalog item attributes that define the variation family.
	Theme *string `json:"theme,omitempty"`
}

ItemVariationTheme The variation theme is a list of Amazon catalog item attributes that define the variation family.

type ItemVendorDetails

type ItemVendorDetails = []ItemVendorDetailsByMarketplace

ItemVendorDetails The vendor details that are associated with an Amazon catalog item. Vendor details are only available to vendors.

type ItemVendorDetailsByMarketplace

type ItemVendorDetailsByMarketplace struct {
	// BrandCode The brand code that is associated with an Amazon catalog item.
	BrandCode *string `json:"brandCode,omitempty"`

	// ManufacturerCode The manufacturer code that is associated with an Amazon catalog item.
	ManufacturerCode *string `json:"manufacturerCode,omitempty"`

	// ManufacturerCodeParent The parent vendor code of the manufacturer code.
	ManufacturerCodeParent *string `json:"manufacturerCodeParent,omitempty"`

	// MarketplaceId Amazon marketplace identifier. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
	MarketplaceId string `json:"marketplaceId"`

	// ProductCategory The product category or subcategory that is associated with an Amazon catalog item.
	ProductCategory *ItemVendorDetailsCategory `json:"productCategory,omitempty"`

	// ProductGroup The product group that is associated with an Amazon catalog item.
	ProductGroup *string `json:"productGroup,omitempty"`

	// ProductSubcategory The product category or subcategory that is associated with an Amazon catalog item.
	ProductSubcategory *ItemVendorDetailsCategory `json:"productSubcategory,omitempty"`

	// ReplenishmentCategory The replenishment category that is associated with an Amazon catalog item.
	ReplenishmentCategory *ItemVendorDetailsByMarketplaceReplenishmentCategory `json:"replenishmentCategory,omitempty"`
}

ItemVendorDetailsByMarketplace The vendor details that are associated with an Amazon catalog item for the specified `marketplaceId`.

type ItemVendorDetailsByMarketplaceReplenishmentCategory

type ItemVendorDetailsByMarketplaceReplenishmentCategory string

ItemVendorDetailsByMarketplaceReplenishmentCategory The replenishment category that is associated with an Amazon catalog item.

const (
	ALLOCATED              ItemVendorDetailsByMarketplaceReplenishmentCategory = "ALLOCATED"
	BASICREPLENISHMENT     ItemVendorDetailsByMarketplaceReplenishmentCategory = "BASIC_REPLENISHMENT"
	INSEASON               ItemVendorDetailsByMarketplaceReplenishmentCategory = "IN_SEASON"
	LIMITEDREPLENISHMENT   ItemVendorDetailsByMarketplaceReplenishmentCategory = "LIMITED_REPLENISHMENT"
	MANUFACTUREROUTOFSTOCK ItemVendorDetailsByMarketplaceReplenishmentCategory = "MANUFACTURER_OUT_OF_STOCK"
	NEWPRODUCT             ItemVendorDetailsByMarketplaceReplenishmentCategory = "NEW_PRODUCT"
	NONREPLENISHABLE       ItemVendorDetailsByMarketplaceReplenishmentCategory = "NON_REPLENISHABLE"
	NONSTOCKUPABLE         ItemVendorDetailsByMarketplaceReplenishmentCategory = "NON_STOCKUPABLE"
	OBSOLETE               ItemVendorDetailsByMarketplaceReplenishmentCategory = "OBSOLETE"
	PLANNEDREPLENISHMENT   ItemVendorDetailsByMarketplaceReplenishmentCategory = "PLANNED_REPLENISHMENT"
)

Defines values for ItemVendorDetailsByMarketplaceReplenishmentCategory.

type ItemVendorDetailsCategory

type ItemVendorDetailsCategory struct {
	// DisplayName The display name of the product category or subcategory.
	DisplayName *string `json:"displayName,omitempty"`

	// Value The code that identifies the product category or subcategory.
	Value *string `json:"value,omitempty"`
}

ItemVendorDetailsCategory The product category or subcategory that is associated with an Amazon catalog item.

type Pagination

type Pagination struct {
	// NextToken A token that you can use to retrieve the next page.
	NextToken *string `json:"nextToken,omitempty"`

	// PreviousToken A token that you can use to retrieve the previous page.
	PreviousToken *string `json:"previousToken,omitempty"`
}

Pagination Pagination occurs when a request produces a response that exceeds the `pageSize`. This means that the response is divided into individual pages. To retrieve the next page or the previous page of results, you must pass the `nextToken` value or the `previousToken` value as the `pageToken` parameter in the next request. There is no `nextToken` in the pagination object on the last page.

type Refinements

type Refinements struct {
	// Brands A list of brands you can use to refine your search.
	Brands []BrandRefinement `json:"brands"`

	// Classifications A list of classifications you can use to refine your search.
	Classifications []ClassificationRefinement `json:"classifications"`
}

Refinements Optional fields that you can use to refine your search results.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResponseEditorFn

type ResponseEditorFn func(ctx context.Context, rsp *http.Response) error

ResponseEditorFn is the function signature for the ResponseEditor callback function

type SearchCatalogItemsParams

type SearchCatalogItemsParams struct {
	// Identifiers A comma-delimited list of product identifiers that you can use to search the Amazon catalog. **Note:** You cannot include `identifiers` and `keywords` in the same request.
	Identifiers *[]string `form:"identifiers,omitempty" json:"identifiers,omitempty"`

	// IdentifiersType The type of product identifiers that you can use to search the Amazon catalog. **Note:** `identifiersType` is required when `identifiers` is in the request.
	IdentifiersType *SearchCatalogItemsParamsIdentifiersType `form:"identifiersType,omitempty" json:"identifiersType,omitempty"`

	// MarketplaceIds A comma-delimited list of Amazon marketplace identifiers. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
	MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"`

	// IncludedData A comma-delimited list of datasets to include in the response.
	IncludedData *[]SearchCatalogItemsParamsIncludedData `form:"includedData,omitempty" json:"includedData,omitempty"`

	// Locale The locale for which you want to retrieve localized summaries. Defaults to the primary locale of the marketplace.
	Locale *string `form:"locale,omitempty" json:"locale,omitempty"`

	// SellerId A selling partner identifier, such as a seller account or vendor code. **Note:** Required when `identifiersType` is `SKU`.
	SellerId *string `form:"sellerId,omitempty" json:"sellerId,omitempty"`

	// Keywords A comma-delimited list of keywords that you can use to search the Amazon catalog. **Note:** You cannot include `keywords` and `identifiers` in the same request.
	Keywords *[]string `form:"keywords,omitempty" json:"keywords,omitempty"`

	// BrandNames A comma-delimited list of brand names that you can use to limit the search in queries based on `keywords`. **Note:** Cannot be used with `identifiers`.
	BrandNames *[]string `form:"brandNames,omitempty" json:"brandNames,omitempty"`

	// ClassificationIds A comma-delimited list of classification identifiers that you can use to limit the search in queries based on `keywords`. **Note:** Cannot be used with `identifiers`.
	ClassificationIds *[]string `form:"classificationIds,omitempty" json:"classificationIds,omitempty"`

	// PageSize The number of results to include on each page.
	PageSize *int `form:"pageSize,omitempty" json:"pageSize,omitempty"`

	// PageToken A token that you can use to fetch a specific page when there are multiple pages of results.
	PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`

	// KeywordsLocale The language of the keywords that are included in queries based on `keywords`. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`.
	KeywordsLocale *string `form:"keywordsLocale,omitempty" json:"keywordsLocale,omitempty"`
}

SearchCatalogItemsParams defines parameters for SearchCatalogItems.

type SearchCatalogItemsParamsIdentifiersType

type SearchCatalogItemsParamsIdentifiersType string

SearchCatalogItemsParamsIdentifiersType defines parameters for SearchCatalogItems.

type SearchCatalogItemsParamsIncludedData

type SearchCatalogItemsParamsIncludedData string

SearchCatalogItemsParamsIncludedData defines parameters for SearchCatalogItems.

const (
	SearchCatalogItemsParamsIncludedDataAttributes      SearchCatalogItemsParamsIncludedData = "attributes"
	SearchCatalogItemsParamsIncludedDataClassifications SearchCatalogItemsParamsIncludedData = "classifications"
	SearchCatalogItemsParamsIncludedDataDimensions      SearchCatalogItemsParamsIncludedData = "dimensions"
	SearchCatalogItemsParamsIncludedDataIdentifiers     SearchCatalogItemsParamsIncludedData = "identifiers"
	SearchCatalogItemsParamsIncludedDataImages          SearchCatalogItemsParamsIncludedData = "images"
	SearchCatalogItemsParamsIncludedDataProductTypes    SearchCatalogItemsParamsIncludedData = "productTypes"
	SearchCatalogItemsParamsIncludedDataRelationships   SearchCatalogItemsParamsIncludedData = "relationships"
	SearchCatalogItemsParamsIncludedDataSalesRanks      SearchCatalogItemsParamsIncludedData = "salesRanks"
	SearchCatalogItemsParamsIncludedDataSummaries       SearchCatalogItemsParamsIncludedData = "summaries"
	SearchCatalogItemsParamsIncludedDataVendorDetails   SearchCatalogItemsParamsIncludedData = "vendorDetails"
)

Defines values for SearchCatalogItemsParamsIncludedData.

type SearchCatalogItemsResp

type SearchCatalogItemsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ItemSearchResults
	JSON400      *ErrorList
	JSON403      *ErrorList
	JSON404      *ErrorList
	JSON413      *ErrorList
	JSON415      *ErrorList
	JSON429      *ErrorList
	JSON500      *ErrorList
	JSON503      *ErrorList
}

func ParseSearchCatalogItemsResp

func ParseSearchCatalogItemsResp(rsp *http.Response) (*SearchCatalogItemsResp, error)

ParseSearchCatalogItemsResp parses an HTTP response from a SearchCatalogItemsWithResponse call

func (SearchCatalogItemsResp) Status

func (r SearchCatalogItemsResp) Status() string

Status returns HTTPResponse.Status

func (SearchCatalogItemsResp) StatusCode

func (r SearchCatalogItemsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL