Documentation Sweet Pricing API

GET / variants / :variantId / stats

This endpoint gets the number of sessions and average revenue per session statistics for a particular pricing model experiment.

URL

https://api.sweetpricing.com/v1.0/variants/:variantId/stats

Header

Field Type Description
Authorization String

Header of form api-key <API key>

Authorization: api-key <API Key>

Parameters

Field Type Description
:variantId Number

Variant ID

200

Field Type Description
numSessions Number

Number of user sessions that saw variant.

averageRevenuePerSession Number

Average revenue per session in home currency.

{
	"numSessions": 1000,
	"averageRevenuePerSession": 0.18
}

401

Name Description
401

You are not authenticated to perform the request.

403

Name Description
403

You are not allowed to view/modify this resource.

404

Name Description
404

Resource not found.