Description Usage Arguments Details Value Examples
Retrieves details for a single transaction.
1 | sq_get_transaction(location, transaction_id, 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. |
transaction_id |
character; the Square ID assigned to each unique transaction. This can be found using sq_list_transactions |
verbose |
logical; do you want informative messages? |
Required permissions: PAYMENTS_READ
tbl_df
of a single transaction
1 2 3 4 5 6 7 8 9 | ## Not run:
our_locations <- sq_list_locations()
our_transactions <- sq_list_transactions(location = our_locations$id[1],
begin=Sys.Date()-1, end=Sys.Date())
# return just one transaction
this_transaction <- sq_get_transaction(location = our_locations$id[1],
transaction_id = our_transactions$id[1])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.