Trials
Get trials for a store
Retrieves all trials for the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
customerCustomerDtoRequiredRepresents a customer in the PayNow system with their associated profiles and metadata.
minecraftCustomerMinecraftProfileDtoOptionalRepresents a Minecraft profile for a customer.
unknownjavabedrock
profileCustomerGenericProfileDtoOptionalRepresents a generic platform profile for a customer.
steamCustomerSteamProfileDtoOptionalRepresents a Steam profile for a customer.
createdThe trial has been created but is not yet active.
activeThe trial is currently active.
canceledThe trial has been canceled.
completedThe trial has been completed.
canceled_byActorDtoOptionalRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/trials" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.trials.getTrials();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/trials", headers=headers)[
{
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"customer": {
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"metadata": {},
"store_id": "411486491630370816",
"minecraft": {
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"avatar_url": "string",
"name": "notch"
},
"minecraft_platform": "unknown",
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "m0uka",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam": {
"id": "76561197960287930",
"avatar_url": "string",
"name": "string"
},
"steam_id": "76561197960287930",
"updated_at": "2024-01-01T00:00:00Z",
"xbox_xuid": "string"
},
"customer_id": "411486491630370816",
"period_scale": "string",
"period_value": 0,
"pretty_id": "string",
"product_id": "411486491630370816",
"product_name": "string",
"product_version_id": "411486491630370816",
"status": "created",
"store_id": "411486491630370816",
"canceled_at": "2024-01-01T00:00:00Z",
"canceled_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"ends_at": "2024-01-01T00:00:00Z",
"product_image_url": "string",
"starts_at": "2024-01-01T00:00:00Z"
}
]Get a trial by ID for a store
Retrieves a trial by the ID for the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
customerCustomerDtoRequiredRepresents a customer in the PayNow system with their associated profiles and metadata.
minecraftCustomerMinecraftProfileDtoOptionalRepresents a Minecraft profile for a customer.
unknownjavabedrock
profileCustomerGenericProfileDtoOptionalRepresents a generic platform profile for a customer.
steamCustomerSteamProfileDtoOptionalRepresents a Steam profile for a customer.
createdThe trial has been created but is not yet active.
activeThe trial is currently active.
canceledThe trial has been canceled.
completedThe trial has been completed.
canceled_byActorDtoOptionalRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/trials/{trialId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.trials.getTrial("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/trials/{trialId}", headers=headers){
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"customer": {
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"metadata": {},
"store_id": "411486491630370816",
"minecraft": {
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"avatar_url": "string",
"name": "notch"
},
"minecraft_platform": "unknown",
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "m0uka",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam": {
"id": "76561197960287930",
"avatar_url": "string",
"name": "string"
},
"steam_id": "76561197960287930",
"updated_at": "2024-01-01T00:00:00Z",
"xbox_xuid": "string"
},
"customer_id": "411486491630370816",
"period_scale": "string",
"period_value": 0,
"pretty_id": "string",
"product_id": "411486491630370816",
"product_name": "string",
"product_version_id": "411486491630370816",
"status": "created",
"store_id": "411486491630370816",
"canceled_at": "2024-01-01T00:00:00Z",
"canceled_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"ends_at": "2024-01-01T00:00:00Z",
"product_image_url": "string",
"starts_at": "2024-01-01T00:00:00Z"
}Get trial eligibility overrides for a specific customer
Retrieves all trial eligibility overrides for the specified customer.
Authorization: APIKey TOKEN.Show fieldsHide fields
created_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
deleted_byActorDtoOptionalRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.trials.getEligibilityOverridesForCustomer("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides", headers=headers)[
{
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"customer_id": "411486491630370816",
"expires_at": "2024-01-01T00:00:00Z",
"pretty_id": "string",
"product_id": "411486491630370816",
"product_name": "string",
"store_id": "411486491630370816",
"deleted_at": "2024-01-01T00:00:00Z",
"deleted_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"note": "string",
"product_image_url": "string",
"used_at": "2024-01-01T00:00:00Z",
"used_on_trial_id": "411486491630370816"
}
]Create trial eligibility override for a customer
Creates a new trial eligibility override for the specified customer.
Authorization: APIKey TOKEN.Show fieldsHide fields
created_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
deleted_byActorDtoOptionalRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"expires_at": "2024-01-01T00:00:00Z",
"product_id": "411486491630370816",
"note": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.trials.createEligibilityOverrideForCustomer("411486491630370816", {
expires_at: "2024-01-01T00:00:00Z",
product_id: "411486491630370816",
note: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"expires_at": "2024-01-01T00:00:00Z",
"product_id": "411486491630370816",
"note": "string",
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides", headers=headers, json=payload){
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"customer_id": "411486491630370816",
"expires_at": "2024-01-01T00:00:00Z",
"pretty_id": "string",
"product_id": "411486491630370816",
"product_name": "string",
"store_id": "411486491630370816",
"deleted_at": "2024-01-01T00:00:00Z",
"deleted_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"note": "string",
"product_image_url": "string",
"used_at": "2024-01-01T00:00:00Z",
"used_on_trial_id": "411486491630370816"
}Delete trial eligibility override for a customer
Deletes an existing trial eligibility override.
Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides/{trialEligibilityOverrideId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.trials.deleteEligibilityOverrideForCustomer("string", "411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides/{trialEligibilityOverrideId}", headers=headers)