sign_in
Sign the customer in with a code from their email. 1) Send email: Tanatasa emails them a 6-digit code. 2) Send email and the code they read to you: returns a private account_token (24 hours, this session only). 3) Send only account_token: shows their referral code and cashback credit with expiry dates. The token lets quote_cart and create_checkout use their credit and list_orders and get_order open their orders. Never guess a code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The 6-digit code the customer read from their email. | |
| No | The customer's email. Alone: Tanatasa emails them a 6-digit code. With code: signs them in. | ||
| guest_token | No | Private guest session token from create_cart. Retain for cart, checkout and purchase-status calls; no account login needed. | |
| account_token | No | Private account token from sign_in, after the customer gave you the code from their email. Lets quotes and checkout use their cashback credit, and opens their orders. |