Description Usage Arguments Details Examples
Edit the data associated with a listing.
1 2 3 4 5 6 7 8 9 |
listing_id |
The ID of the listing you are fetching |
release_id |
Integer value representing a valid release ID |
condition |
The condition of the release you are posting. See Details |
price |
The price of the item (in the seller’s currency). |
status |
The status of the listing. See Details |
token |
Token object obtained from authorize() or a string containing your personal access token |
options |
(optional) Parameters, see Details |
Create a Marketplace listing. Authentication is required; the listing will be added to the authenticated user’s Inventory.
Condition must be one of the following:
Mint(M)
Near Mint (NM or M-)
Very Good Plus (VG+)
Very Good (VG)
Good Plus (G+)
Good (G)
Fair (F)
Poor (P)
Defaults to For Sale. Options are:
For Sale (the listing is ready to be shown on the Marketplace)
Draft (the listing is not ready for public display).
Below are optional parameters that can be provided to the options argument
The condition of the sleeve of the item you are posting. Must be one of the following:
Mint(M)
Near Mint (NM or M-)
Very Good Plus (VG+)
Very Good (VG)
Good Plus (G+)
Good (G)
Fair (F)
Poor (P)
Generic
Not Graded
No Cover
Any remarks about the item that will be displayed to buyers.
Whether or not to allow buyers to make offers on the item. Defaults to False.
A freeform field that can be used for the seller’s own reference. Information stored here will not be displayed to anyone other than the seller. This field is called “Private Comments” on the Discogs website.
A freeform field that is intended to help identify an item’s physical storage location. Information stored here will not be displayed to anyone other than the seller. This field will be visible on the inventory management page and will be available in inventory exports via the website.
The weight, in grams, of this listing, for the purpose of calculating shipping. Set this field to auto to have the weight automatically estimated for you.
The number of items this listing counts as, for the purpose of calculating shipping. This field is called “Counts As” on the Discogs website. Set this field to auto to have the quantity automatically estimated for you.
1 2 3 4 | token <- authorize("key", "secret")
edit_listing(1, 10, "Near Mint (NM or M-)", "10.30", "For Sale", token)
edit_listing(13, 112301, "Near Mint (NM or M-)", 12.30, "Draft", token, options=list("weight" = 400))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.