Description Usage Arguments Details Value Examples
Creates a new customer for a business, which can have associated cards on file.
1 | sq_create_customer(input_data, verbose = FALSE)
|
input_data |
|
verbose |
logical; do you want informative messages? |
You must provide at least one of the following values in your request to this endpoint:
given_name
family_name
company_name
email_address
phone_number
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
.
tbl_df
of the created customer record
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.