sq_create_customer: Create Customer

Description Usage Arguments Details Value Examples

View source: R/customers.R

Description

Creates a new customer for a business, which can have associated cards on file.

Usage

1
sq_create_customer(input_data, verbose = FALSE)

Arguments

input_data

list; data used for creating or updating an object.

verbose

logical; do you want informative messages?

Details

You must provide at least one of the following values in your request to this endpoint:

This endpoint does not accept an idempotency key. If you accidentally create a duplicate customer, you can delete it with the DeleteCustomer endpoint. Required permissions: CUSTOMERS_WRITE.

Value

tbl_df of the created customer record

Examples

1
2
3
4
5
6
7
## Not run: 
new_cust_data <- list(given_name = "API Test",
                      family_name = "API Test",
                      note = "This customer was created by the API as a test")
this_customer <- sq_create_customer(new_cust_data)

## End(Not run)

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