---
title: "Create a customer session"
method: POST
path: "/v1/sdk/customers/customer-sessions"
tags: ["Customers"]
---

# Create a customer session

`POST /v1/sdk/customers/customer-sessions`

Creates a customer session URL that can be used to redirect customers to the customer page. Returns the customer URL and session ID. The session is short-lived (15 minutes) for security reasons.

## Request body

- CreateCustomerSessionRequest
  - `customerRef` string, required
  - `productRef` string

## Response `201`

Customer session created successfully

- CreateCustomerSessionResponse
  - `customerUrl` string, required — Full customer URL based on backend configuration (ready to redirect customer)
  - `sessionId` string, required — Customer session ID/token

## Other responses

- `400` — Invalid request data or customer not found
- `404` — Customer not found

---

[API](https://skmtc.net/solvapay/apis/solvapay-rest-api.md) · [All operations](https://skmtc.net/solvapay/apis/solvapay-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/solvapay/solvapay-rest-api/versions/bbc2ff2bc849/schema)
