Requests
pypricecharting.requests
OfferPublishRequestParams
Bases: PriceChartingModel
api/offer-publish request
Set one of product, upc, asin, or epid to create an offer, or offer_id to edit one.
Set each condition tag that applies to State.ON. Leave them all unset for normal wear.
https://www.pricecharting.com/api-documentation#offer-publish
product = None
class-attribute
instance-attribute
PriceCharting product ID of the item to list.
offer_id = None
class-attribute
instance-attribute
ID of an existing offer to edit. The other identifiers create a new offer.
price_max
instance-attribute
Price in pennies buyers pay, or the starting price when price_min is set.
condition_id
instance-attribute
Condition ID for the product's category. See types.Condition.
add_to_collection = None
class-attribute
instance-attribute
Set to State.ON to add the item to your collection instead of listing it for sale.
cost_basis = None
class-attribute
instance-attribute
What you paid for the item, in pennies.
description = None
class-attribute
instance-attribute
Listing description, up to 300 characters.
pristine = None
class-attribute
instance-attribute
No blemishes. Overrides the other condition tags.
price_min = None
class-attribute
instance-attribute
Lowest price in pennies.
Makes the offer a reverse auction that drops from price_max over 30 days.
sku = None
class-attribute
instance-attribute
Your internal SKU, up to 64 alphanumeric characters. Unique among active offers.
quantity = None
class-attribute
instance-attribute
Number of copies owned. Collections only. The API defaults to 1.
check_identifier()
Check that at least one of product, upc, asin, epid, or offer_id is set.
Raises:
| Type | Description |
|---|---|
ValueError
|
If none of them is set. |
OffersStatus
Bases: StrEnum
Offer status to filter api/offers by
COLLECTION = 'collection'
class-attribute
instance-attribute
Tracked in the seller's collection, not listed for sale.
OffersSort
Bases: StrEnum
Sort order for api/offers results
NAME = 'name'
class-attribute
instance-attribute
Alphabetical.
STARTS = 'starts'
class-attribute
instance-attribute
Newest listings first.
OffersRequestParams
Bases: PriceChartingModel
api/offers request
Only status is required. The other fields narrow the results.
https://www.pricecharting.com/api-documentation#offers
buyer = None
class-attribute
instance-attribute
Buyer user ID.
condition_id = None
class-attribute
instance-attribute
Condition ID for the product's category. See types.Condition.
id = None
class-attribute
instance-attribute
PriceCharting product ID.
seller = None
class-attribute
instance-attribute
Seller user ID.