POST
/
v2
/
customer_sessions
curl --request POST \
  --url https://dev.sbx.imprint.co/v2/customer_sessions \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "AD87A18A-A4BE-49FF-BC46-BF6F0779DBAA",
  "partner_customer_id": "CUST_03476998",
  "transaction_amount": 34000,
  "transaction_currency": "USD",
  "customer_history": {
    "email": "customer@example.com",
    "phone": "+14155552671",
    "first_name": "John",
    "last_name": "Doe",
    "preferred_language": "en",
    "address": {
      "street_line1": "123 Main St",
      "street_line2": "Apt 4B",
      "city": "San Francisco",
      "state": "CA",
      "postal_code": "94105",
      "country": "USA"
    },
    "account_tenure": 13,
    "ltv_amount": 34000,
    "ltv_currency": "USD",
    "loyalty_tier": "GOLD"
  },
  "source": "<string>",
  "metadata": {
    "store_number": "123"
  }
}'
{
  "id": "2EE24580-B97B-4949-A65C-929CCB9B9B8D",
  "client_secret": "QzMyNzg4QzgtNEUwOS00QkU4LThDMjEtMkU5OUQ3QzkwRDhGCg==",
  "expires_at": "2025-02-13T19:08:07.000Z",
  "metadata": {
    "store_number": "123"
  },
  "source": "web_signup"
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Body

application/json

Response

200
application/json

Customer session created successfully

Represents a session created on behalf of an Imprint customer