add_inventory: Upload a CSV of listings to add to your inventory.

Description Usage Arguments Details Examples

View source: R/Inventory.R

Description

Upload a CSV of listings to add to your inventory.

Usage

1
2
3
4
add_inventory(
 path,
 token
)

Arguments

path

A string representing the source location of a csv file, see Details

token

Token object obtained from authorize() or a string containing your personal access token

Details

File structure

The file you upload must be a comma-separated CSV. The first row must be a header with lower case field names. Here’s an example: release_id,price,media_condition,comments 123,1.50,Mint (M),Comments about this release for sale 456,2.50,Near Mint (NM or M-),More comments 7890,3.50,Good (G),Signed vinyl copy

Things to note:

These listings will be marked “For Sale” immediately. Currency information will be pulled from your marketplace settings. Any fields that aren’t optional or required will be ignored.

Required fields:

Optional fields:

Conditions:

When you specify a media condition, it must exactly match one of these:

Sleeve condition may be any of the above, or:

Examples

1
token <- authorize("key", "secret")

Pascallio/discogsAPI documentation built on Dec. 31, 2020, 3:27 p.m.