ListingsItems
Returns details about a listings item for a selling partner.
The following filters are required:
- SKU
- SellerId: You can either specify SellerId as a pseudo-column condition in WHERE filters, or in the connection string.
SELECT * FROM ListingsItems WHERE SKU = '12345' AND SellerId = 'XXXXXXXXXXXXXX'
INSERT INTO ListingsItems (ProductType, Requirements, Attributes, SKU, SellerId)
VALUES ('product_type', 'LISTING', '{\"AttributeName\": \"test_attribute\", \"AttributeValue\": \"value\"}', '12345', 'XXXXXXXXXXXXXX')
DELETE FROM ListingsItems WHERE SKU = '12345' AND SellerId = 'XXXXXXXXXXXXXX'
When inserting, you can also use temp tables in order to insert multiple attributes, as shown in the example below:
INSERT INTO Attributes#TEMP (AttributeName, AttributeValue) VALUES ('attr1', 'val1')
INSERT INTO Attributes#TEMP (AttributeName, AttributeValue) VALUES ('attr2', 'val2')
INSERT INTO Attributes#TEMP (AttributeName, AttributeValue) VALUES ('attr3', 'val3')
INSERT INTO ListingsItems (ProductType, Requirements, Attributes, SKU, SellerId)
VALUES ('product_type', 'LISTING', 'Attributes#TEMP', '12345', 'XXXXXXXXXXXXXX')
*The temporary table must be defined and used within the same connection. Closing the connection will clear out any temporary tables in memory.
Columns
Name | Type | ReadOnly | References | Description |
SKU [KEY] | String | False |
A selling partner provided identifier for an Amazon listing. | |
FulfillmentAvailability | String | False |
Fulfillment availability for the listings item. | |
Procurements | String | False |
The vendor procurement information for the listings item. | |
ProcurementCostCurrency | String | False |
The price (ISO4217 currency code) that you want Amazon to pay you for this product. | |
ProcurementCostAmount | String | False |
The price (numeric value) that you want Amazon to pay you for this product. | |
Attributes | String | False |
This field is required for INSERT statements. Aggregate field containing structured 'AttributeName' and 'AttributeValue' fields. | |
SellerId [KEY] | String | False |
A selling partner identifier, such as a merchant account or vendor code. | |
Requirements | String | False |
This field can be specified for INSERT statements. The allowed values are LISTING, LISTING_PRODUCT_ONLY, LISTING_OFFER_ONLY. | |
ProductType | String | False |
This field is required for INSERT statements. |