Constants

Url's

BASE_URL = "https://api.discogs.com"
RELEASES_URL = f"{BASE_URL}/releases"
MASTERS_URL = f"{BASE_URL}/masters"
ARTIST_URL = f"{BASE_URL}/artists"
LABEL_URL = f"{BASE_URL}/labels"
USERS_URL = f"{BASE_URL}/users"
MARKETPLACE_URL = f"{BASE_URL}/marketplace"
LISTINGS_URL = f"{MARKETPLACE_URL}/listings"
ORDERS_URL = f"{MARKETPLACE_URL}/orders"
FEE_URL = f"{MARKETPLACE_URL}/fee"
PRICE_SUGGESTIONS_URL = f"{MARKETPLACE_URL}/price_suggestions"
INVENTORY_URL = f"{BASE_URL}/inventory"
INVENTORY_EXPORT_URL = f"{INVENTORY_URL}/export"
INVENTORY_UPLOAD_URL = f"{INVENTORY_URL}/upload"
LISTS_URL = f"{BASE_URL}/lists"

Optional Values

CurrAbbr

class CurrAbbr(Enum):
    """
    Valid currencies for marketplace data
    """
    
    USD = "USD"
    GBP = "GBP"
    EUR = "EUR"
    CAD = "CAD"
    AUD = "AUD"
    JPY = "JPY"
    CHF = "CHF"
    MXN = "MXN"
    BRL = "BRL"
    NZD = "NZD"
    SEK = "SEK"
    ZAR = "ZAR"
    

class CurrAbbr[source]

CurrAbbr(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid currencies for marketplace data

Sort options

class SortOptionsMaster(Enum):
    """
    Valid sort options for master releases.
    """
    
    released = "released"
    title = "title"
    format = "format"
    label = "label"
    catno = "catno"
    country = "country"
    

class SortOptionsMaster[source]

SortOptionsMaster(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid sort options for master releases.

class SortOptionsArtist(Enum):
    """
    Valid sort options for artist releases.
    """
    
    year = "year"
    title = "title"
    format = "format"
    

class SortOptionsArtist[source]

SortOptionsArtist(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid sort options for artist releases.

class SortOptionsLabel(Enum):
    """
    Valid sort options for label releases.
    """
    
    year = "year"
    title = "title"
    format = "format"

class SortOptionsLabel[source]

SortOptionsLabel(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid sort options for label releases.

class SortOptionsInventory(Enum):
    """
    Valid sort options for inventory.
    """
    
    listed = "listed"
    price = "price"
    item = "item"
    artist = "artist"
    label = "label"
    catno = "catno"
    audio = "audio"
    status = "status" # when authenticated as the inventory owner
    location = "location" # when authenticated as the inventory owner
    

class SortOptionsInventory[source]

SortOptionsInventory(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid sort options for inventory.

class SortOptionsOrders(Enum):
    """
    Valid sort options for orders.
    """
    
    id = "id"
    buyer = "buyer"
    created = "created"
    status = "status"
    last_activity = "last_activity"
    

class SortOptionsOrders[source]

SortOptionsOrders(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid sort options for orders.

class SortOptionsCollection(Enum):
    """
    Valid sort options for collections.
    """
    
    label = "label"
    artist = "artist"
    title = "title"
    catno = "catno"
    format = "format"
    rating = "rating"
    added = "added"
    year = "year"

class SortOptionsCollection[source]

SortOptionsCollection(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid sort options for collections.

Sort order

class SortOrder(Enum):
    """
    Valid sort order options.
    """
    
    asc = "asc"
    desc = "desc"

class SortOrder[source]

SortOrder(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid sort order options.

Status options

class StatusInventory(Enum):
    """
    Valid status options for inventory items.
    """
    
    for_sale = "For Sale"
    sold = "Sold"
    draft = "Draft"
    expired = "Expired"

class StatusInventory[source]

StatusInventory(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid status options for inventory items.

class StatusNewListing(Enum):
    """
    Valid status options for inventory listing.
    """
    
    for_sale = "For Sale"
    draft = "Draft"
    

class StatusNewListing[source]

StatusNewListing(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid status options for inventory listing.

class StatusOrder(Enum):
    """
    Valid status options for updating an order.
    """
    
    new_order = "New Order"
    buyer_contacted = "Buyer Contacted"
    invoice_sent = "Invoice Sent"
    payment_pending = "Payment Pending"
    payment_received = "Payment Received"
    shipped = "Shipped"
    refund_sent = "Refund Sent"
    cancelled_no_payment = "Cancelled (Non-Paying Buyer)"
    cancelled_item_unavailable = "Cancelled (Item Unavailable)"
    cancelled_buyer_request = "Cancelled (Per Buyer's Request)"

class StatusOrder[source]

StatusOrder(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid status options for updating an order.

class StatusOrders(Enum):
    """
    Valid status options for filtering order list.
    """
    
    all = "All"
    new_order = "New Order"
    invoice_sent = "Invoice Sent"
    buyer_contacted = "Buyer Contacted"
    payment_pending = "Payment Pending"
    payment_received = "Payment Received"
    shipped = "Shipped"
    merged = "Merged"
    order_changed = "Order Changed"
    refund_sent = "Refund Sent"
    cancelled = "Cancelled"
    cancelled_no_payment = "Cancelled (Non-Paying Buyer)"
    cancelled_item_unavailable = "Cancelled (Item Unavailable)"
    cancelled_buyer_request = "Cancelled (Per Buyer's Request)"
    cancelled_refund_received = "Cancelled (Refund Received)"

class StatusOrders[source]

StatusOrders(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid status options for filtering order list.

Conditions

Release Condition

class ReleaseCondition(Enum):
    """
    Valid release conditions.
    """
    
    mint = "Mint (M)"
    near_mint = "Near Mint (NM or M-)"
    very_good_plus = "Very Good Plus (VG+)"
    very_good = "Very Good (VG)"   
    good_plus = "Good Plus (G+)"   
    good = "Good (G)"   
    fair = "Fair (F)"   
    poor = "Poor (P)"   
    

class ReleaseCondition[source]

ReleaseCondition(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid release conditions.

class SleeveCondition(Enum):
    """
    Valid listing conditions.
    """
    
    mint = "Mint (M)"
    near_mint = "Near Mint (NM or M-)"
    very_good_plus = "Very Good Plus (VG+)"
    very_good = "Very Good (VG)"   
    good_plus = "Good Plus (G+)"   
    good = "Good (G)"   
    fair = "Fair (F)"   
    poor = "Poor (P)"      
    generic = "Generic"
    not_graded = "Not Graded"
    no_cover = "No Cover"
    

class SleeveCondition[source]

SleeveCondition(value, names=None, module=None, qualname=None, type=None, start=1) :: Enum

Valid listing conditions.