sq_get_payment: Get Payment

Description Usage Arguments Details Value Examples

View source: R/payments.R

Description

Provides comprehensive information for a single payment.

Usage

1
sq_get_payment(location, payment_id, verbose = FALSE)

Arguments

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.

payment_id

character; the Square ID assigned to each unique payment. This can be found using sq_list_payments

verbose

logical; do you want informative messages?

Details

Required permissions: PAYMENTS_READ

Value

tbl_df of a single payment

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
our_locations <- sq_list_locations()
our_payments <- sq_list_payments(location = our_locations$id[1], 
                                 begin=Sys.Date()-1, end=Sys.Date())
# return just one payment                                          
this_payment <- sq_get_payment(location = our_locations$id[1], 
                               payment_id = our_payments$id[1])

## End(Not run)

StevenMMortimer/squareupr documentation built on July 12, 2019, 1:45 a.m.