POST
/
v1
/
sessions
/
creem
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": "[email protected]"
  },
  "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

Response

201
application/json

Created

The response is of type object.