Description Usage Arguments Details Value Examples
Creates an item and at least one variation for it.
1 | sq_create_item(location, input_data, verbose = FALSE)
|
location |
character; the Square ID or name associated to a location. This must be an exact match to the ID or name as found using sq_list_locations. |
input_data |
|
verbose |
logical; do you want informative messages? |
You must provide at the following fields in your request to this endpoint:
name
variations
Required permissions: ITEMS_WRITE
.
tbl_df
of the created item record
1 2 3 4 5 6 7 | ## Not run:
new_item_data <- list(name = "API Test Item",
variations = list())
this_item <- sq_create_item(location,
new_item_data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.