Email a sign-in link
Emails a customer a link that signs them in to your app without a password, for example to see past orders and downloads. The customer is found by email address. When several customers of the account have that email, the newest gets the link and the email offers the others too (up to 10).
The link opens https://<your app host>/link and works for 4 hours. The account needs an app host in its technical settings and a notification set up for customer links, or the call fails with 422.
No token is needed. Every input is in the query string; there is no body.
account_id*stringThe account the customer belongs to.
app_id*stringThe id of an app installed on the account. The link signs the customer in to it.
email*stringThe customer's email address. Must match a customer's email exactly (not case sensitive).
emailredirect_uri?stringA relative path in the app to open after sign-in, for example /orders. A full URL with https:// is a 400.
test?booleantrue to look up a test customer.
falsedate_start?stringOnly consider customers created on or after this date (ISO 8601).
date_end?stringOnly consider customers created on or before this date (ISO 8601).
date_type?stringWhich customer date date_start and date_end use.
"date_created""date_created""date_modified"The link was sent. There is no body.
curl -X POST 'https://api.comecero.com/api/v1/customers/send_link?account_id=string&app_id=string&email=user%40example.com'Log in a customer POST
Signs a customer in with the `username` and `password` set on the customer. Three ways to call it: - With a limited token: on success that token is tied to the customer. It can then read and change the customer, their payment methods, orders, subscriptions and invoices, and use `me` as the customer id. No new token is returned. - With no token: send `account_id` (and `test=true` for a test customer) in the query. A new limited token for the customer comes back in `auth`. - With a secret token: you must send the shopper's `user_ip_address` in the query, and the token needs permission to create auths and update customers. A new limited token for the customer comes back in `auth`. Every attempt waits about half a second. After too many failed attempts the customer is locked out for 10 minutes (`401`).
Get a customer GET
Gets one customer. Use `expand` to include the customer's `payment_methods`, `payments`, `refunds`, `orders`, `subscriptions`, `invoices` or `balance` in full. Secret tokens, and limited tokens tied to the customer. With a token from a customer login, send `me` as the id.