curl --location --request GET 'https://api.stateset.com/v1/customers' \ --header 'Content-Type: application/json' \ --header 'Authorization: Token <token>' \ --data-raw '{ "sso_id": "1234-5678-9012-3456" }'
{ "customers": { "sso_id": "1234-5678-9012-3456", "activationDate": "2020-01-01T00:00:00.000Z", "email": "customer@customer.com", "firstName": "Customer", "lastName": "Customer", "phone": "123-456-7890", "stripe_customer_id": "cus_1234567890", "timestamp": "2020-01-01T00:00:00.000Z" } }
This endpoint gets or creates a new customer.