Skip to main content
POST
/
v1
/
sessions
/
creem
Create a Creem session
curl --request POST \
  --url https://api.salesnip.com/v1/sessions/creem \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "enviroment": "test",
  "projectId": "project_abcdefghjijklmnop",
  "productId": "product_abcdefghjijklmnop",
  "minimumPrice": 10,
  "callbacks": {
    "success": "https://example.com/salesnip/success?sessionId={SESSION_ID}",
    "cancel": "https://example.com/salesnip/cancel?sessionId={SESSION_ID}"
  },
  "customer": {
    "id": "customer_abcdefghjijklmnop",
    "email": "customer@example.com"
  },
  "discount": {
    "duration": {
      "mode": "once",
      "months": 1
    }
  },
  "customFields": [
    {
      "type": "text",
      "key": "custom_field_key",
      "label": "Custom Field Label",
      "optional": false,
      "validation": {
        "minLength": 5,
        "maxLength": 50
      }
    }
  ],
  "metadata": {
    "some_important_info": "SaleSnip is awesome!"
  }
}'
{
  "id": "session_abcdefghjijklmnop",
  "url": "https://chat.salesnip.com/#abcdefghjijklmnop"
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
enviroment
enum<string>
required
Available options:
test,
live
Example:
projectId
string
required
Example:
productId
string
required
Example:
minimumPrice
number
required
Example:
callbacks
object
customer
object
discount
object
customFields
object[]
metadata
object
Example:

Response

id
string
required
Example:
url
string
required
Example: