POST
/
v1
/
sessions
/
creem

Authorizations

X-Api-Key
string
headerrequired

Body

application/json
enviroment
enum<string>
required

The enviroment of the Creem checkout session.

Available options:
test,
live
projectId
string
required

The id of the SaleSnip project for this session. You can locate your project ID in the SaleSnip dashboard under the 'Keys' tab on the project level.

productId
string
required

The Creem id of the product to be included in the session.

minimumPrice
number
required

The minimum price of the product that can be negotiated.

callbacks
object

A set of callback URLs for the session. If you are using SaleSnip inside the widget, these fields can be left empty.

customer
object

The customer details for the session. You may only specify one of id or email.

discount
object

Configuration for the Creem discount.

customFields
object[]

Collect additional information from your customers during the checkout. Allows up to 3 custom fields.

metadata
object

Custom metadata to be included with the session.

Response

201 - application/json
id
string
required

The unique ID of the session. You can use this to open SaleSnip as a widget.

url
string
required

The hosted URL of the session. You can redirect users to this URL to use SaleSnip in a standalone mode.