Core.rq_marketplace is a collection of function wrappers around the Discogs API for marketplace interactions.
Inventory¶
# Example for usage of get_inventory
get_inventory(user=example_user,
username="Les_nuits_noires",
status=StatusInventory.for_sale,
page=1,
per_page=3,
sort=SortOptionsInventory.price,
sort_order=SortOrder.asc)
Listing¶
# Example for usage of get_listing
get_listing(user=example_user,
listing_id=1034876519,
curr_abbr=CurrAbbr.EUR)
# Example for usage of update_listing
update_listing(user=example_user,
listing_id=1059961457,
release_id=10361797,
condition=ReleaseCondition.mint,
price=5.42,
status=StatusInventory.for_sale,
sleeve_condition=SleeveCondition.mint,
comments="CD is new and unplayed",
allow_offers=False,
external_id="Private Comment",
location="Test Location",
weight=100,
format_quantity=1,
curr_abbr=CurrAbbr.EUR)
# Example for usage of delete_listing
delete_listing(user=example_user,
listing_id=1052411061)
# Example for usage of add_new_listing
add_new_listing(user=example_user,
release_id=10361797,
condition=ReleaseCondition.mint,
price=10.00,
status=StatusNewListing.draft,
sleeve_condition=SleeveCondition.mint,
comments="Standard CD",
allow_offers=False,
external_id="Private Comment",
location="Test Location",
weight=100,
format_quantity=1)
Order¶
# Example for usage of get_order
get_order(user=example_user,
order_id="1906948-512")
# Example for usage of update_order_status
update_order_status(user=example_user,
order_id="1906948-522",
status=StatusOrder.payment_received)
# Example for usage of update_order_shipping
update_order_shipping(user=example_user,
order_id="1906948-516",
shipping_cost=3.70)
# Example for usage of get_orders
get_orders(user=example_user,
status=StatusOrders.payment_pending,
page=1,
per_page=3,
sort=SortOptionsOrders.created,
sort_order=SortOrder.asc)
# Example for usage of get_order_messages
get_order_messages(user=example_user,
order_id="1906948-515",
page=1,
per_page=3)
# Example for usage of post_message_on_order
post_message_on_order(user=example_user,
order_id="1906948-516",
message="Hello World")
Fee¶
# Example for usage of get_discogs_fee_for_given_price
get_discogs_fee_for_given_price(user=example_user,
price=5.42)
Price Suggestions¶
# Example for usage of get_price_suggestions
get_price_suggestions(user=example_user,
release_id=9453891)