Webstore
Authorization: APIKey TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}/modules" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.getWebstoreModules();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}/modules", headers=headers)[
{
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"sort_order": 0,
"type": "string",
"updated_at": "2024-01-01T00:00:00Z",
"webstore_id": "411486491630370816",
"ends_at": "2024-01-01T00:00:00Z",
"settings": {},
"starts_at": "2024-01-01T00:00:00Z"
}
]Authorization: APIKey TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X PUT "https://api.paynow.gg/v1/webstores/{storeId}/modules" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"type": "string",
"ends_at": "2024-01-01T00:00:00Z",
"settings": {},
"starts_at": "2024-01-01T00:00:00Z"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.createWebstoreModule({
enabled: true,
type: "string",
ends_at: "2024-01-01T00:00:00Z",
settings: {},
starts_at: "2024-01-01T00:00:00Z",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"enabled": True,
"type": "string",
"ends_at": "2024-01-01T00:00:00Z",
"settings": {},
"starts_at": "2024-01-01T00:00:00Z",
}
response = requests.put("https://api.paynow.gg/v1/webstores/{storeId}/modules", headers=headers, json=payload){
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"sort_order": 0,
"type": "string",
"updated_at": "2024-01-01T00:00:00Z",
"webstore_id": "411486491630370816",
"ends_at": "2024-01-01T00:00:00Z",
"settings": {},
"starts_at": "2024-01-01T00:00:00Z"
}Authorization: APIKey TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X PUT "https://api.paynow.gg/v1/webstores/{storeId}/modules/{moduleId}" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"type": "string",
"ends_at": "2024-01-01T00:00:00Z",
"settings": {},
"starts_at": "2024-01-01T00:00:00Z"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.updateWebstoreModule("411486491630370816", {
enabled: true,
type: "string",
ends_at: "2024-01-01T00:00:00Z",
settings: {},
starts_at: "2024-01-01T00:00:00Z",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"enabled": True,
"type": "string",
"ends_at": "2024-01-01T00:00:00Z",
"settings": {},
"starts_at": "2024-01-01T00:00:00Z",
}
response = requests.put("https://api.paynow.gg/v1/webstores/{storeId}/modules/{moduleId}", headers=headers, json=payload){
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"sort_order": 0,
"type": "string",
"updated_at": "2024-01-01T00:00:00Z",
"webstore_id": "411486491630370816",
"ends_at": "2024-01-01T00:00:00Z",
"settings": {},
"starts_at": "2024-01-01T00:00:00Z"
}Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/webstores/{storeId}/modules/{moduleId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.webstore.deleteWebstoreModule("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/webstores/{storeId}/modules/{moduleId}", headers=headers)Authorization: APIKey TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.getWebstore();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}", headers=headers){
"id": "411486491630370816",
"custom_domain_verified": true,
"is_active": true,
"slug": "string",
"current_template_id": "411486491630370816",
"custom_domain": "string"
}Authorization: APIKey TOKEN.curl -X POST "https://api.paynow.gg/v1/webstores/{storeId}/set-default-template" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"template_id": "411486491630370816"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.webstore.setWebstoreDefaultTemplate({
template_id: "411486491630370816",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"template_id": "411486491630370816",
}
response = requests.post("https://api.paynow.gg/v1/webstores/{storeId}/set-default-template", headers=headers, json=payload)Authorization: APIKey TOKEN.curl -X POST "https://api.paynow.gg/v1/webstores/{storeId}/set-slug" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"slug": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.webstore.setWebstoreSlug({
slug: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"slug": "string",
}
response = requests.post("https://api.paynow.gg/v1/webstores/{storeId}/set-slug", headers=headers, json=payload)Authorization: APIKey TOKEN.Show fieldsHide fields
ownership_verificationWebstoreCustomDomainOwnershipVerificationDtoOptional
ownership_verification_httpWebstoreCustomDomainOwnershipVerificationHttpDtoOptional
sslWebstoreCustomDomainSslDtoOptional
validation_recordsWebstoreCustomDomainSslValidationRecordDto[]Required
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}/custom-domain" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.getWebstoreCustomDomain();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}/custom-domain", headers=headers){
"id": "string",
"hostname": "string",
"status": "string",
"verification_errors": [
"string"
],
"created_at": "2024-01-01T00:00:00Z",
"ownership_verification": {
"name": "string",
"type": "string",
"value": "string"
},
"ownership_verification_http": {
"http_body": "string",
"http_url": "string"
},
"ssl": {
"id": "string",
"method": "string",
"status": "string",
"validation_errors": [
"string"
],
"validation_records": [
{
"emails": [
"string"
],
"http_body": "string",
"http_url": "string",
"txt_name": "string",
"txt_value": "string"
}
],
"certificate_authority": "string"
}
}Authorization: APIKey TOKEN.invalidhttptxtemailcname
Show fieldsHide fields
ownership_verificationWebstoreCustomDomainOwnershipVerificationDtoOptional
ownership_verification_httpWebstoreCustomDomainOwnershipVerificationHttpDtoOptional
sslWebstoreCustomDomainSslDtoOptional
validation_recordsWebstoreCustomDomainSslValidationRecordDto[]Required
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/webstores/{storeId}/custom-domain" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"domain": "string",
"verification_type": "invalid"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.setWebstoreCustomDomain({
domain: "string",
verification_type: "invalid",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"domain": "string",
"verification_type": "invalid",
}
response = requests.post("https://api.paynow.gg/v1/webstores/{storeId}/custom-domain", headers=headers, json=payload){
"id": "string",
"hostname": "string",
"status": "string",
"verification_errors": [
"string"
],
"created_at": "2024-01-01T00:00:00Z",
"ownership_verification": {
"name": "string",
"type": "string",
"value": "string"
},
"ownership_verification_http": {
"http_body": "string",
"http_url": "string"
},
"ssl": {
"id": "string",
"method": "string",
"status": "string",
"validation_errors": [
"string"
],
"validation_records": [
{
"emails": [
"string"
],
"http_body": "string",
"http_url": "string",
"txt_name": "string",
"txt_value": "string"
}
],
"certificate_authority": "string"
}
}Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/webstores/{storeId}/custom-domain" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.webstore.deleteWebstoreCustomDomain();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/webstores/{storeId}/custom-domain", headers=headers)Authorization: APIKey TOKEN.curl -X POST "https://api.paynow.gg/v1/webstores/{storeId}/custom-domain/verify" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.webstore.verifyWebstoreCustomDomain();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.post("https://api.paynow.gg/v1/webstores/{storeId}/custom-domain/verify", headers=headers)Get Webstore Template Files
Authorization: APIKey TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/files" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.getWebstoreTemplateFiles("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/files", headers=headers)[
{
"id": "411486491630370816",
"content_type": "string",
"created_at": "2024-01-01T00:00:00Z",
"file_name": "string",
"is_deletable": true,
"is_public": true,
"template_id": "411486491630370816",
"updated_at": "2024-01-01T00:00:00Z",
"content": "string"
}
]Create Webstore Template File
Authorization: APIKey TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X PUT "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/files" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"content_type": "string",
"file_name": "string",
"content": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.createWebstoreTemplateFile("411486491630370816", {
content_type: "string",
file_name: "string",
content: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"content_type": "string",
"file_name": "string",
"content": "string",
}
response = requests.put("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/files", headers=headers, json=payload){
"id": "411486491630370816",
"content_type": "string",
"created_at": "2024-01-01T00:00:00Z",
"file_name": "string",
"is_deletable": true,
"is_public": true,
"template_id": "411486491630370816",
"updated_at": "2024-01-01T00:00:00Z",
"content": "string"
}Get Webstore Template File
Authorization: APIKey TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/files/{templateFileId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.getWebstoreTemplateFile("411486491630370816", "411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/files/{templateFileId}", headers=headers){
"id": "411486491630370816",
"content_type": "string",
"created_at": "2024-01-01T00:00:00Z",
"file_name": "string",
"is_deletable": true,
"is_public": true,
"template_id": "411486491630370816",
"updated_at": "2024-01-01T00:00:00Z",
"content": "string"
}Update Webstore Template File
Authorization: APIKey TOKEN.curl -X PUT "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/files/{templateFileId}" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"content": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.webstore.updateWebstoreTemplateFile("411486491630370816", "411486491630370816", {
content: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"content": "string",
}
response = requests.put("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/files/{templateFileId}", headers=headers, json=payload)Delete Webstore Template File
Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/files/{templateFileId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.webstore.deleteWebstoreTemplateFile("411486491630370816", "411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/files/{templateFileId}", headers=headers)Authorization: APIKey TOKEN.Show fieldsHide fields
invalidpaynowtebex
template_filesWebstoreTemplateFileDto[]Optional
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}/templates" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.getWebstoreTemplates();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}/templates", headers=headers)[
{
"id": "411486491630370816",
"compatibility_mode": "invalid",
"created_at": "2024-01-01T00:00:00Z",
"is_public": true,
"name": "string",
"updated_at": "2024-01-01T00:00:00Z",
"webstore_id": "411486491630370816",
"template_files": [
{
"id": "411486491630370816",
"content_type": "string",
"created_at": "2024-01-01T00:00:00Z",
"file_name": "string",
"is_deletable": true,
"is_public": true,
"template_id": "411486491630370816",
"updated_at": "2024-01-01T00:00:00Z",
"content": "string"
}
]
}
]Authorization: APIKey TOKEN.invalidpaynowtebex
Show fieldsHide fields
invalidpaynowtebex
template_filesWebstoreTemplateFileDto[]Optional
Failed requests return a PayNowError body. See the error response guide.
curl -X PUT "https://api.paynow.gg/v1/webstores/{storeId}/templates" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"compatibility_mode": "invalid",
"name": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.createWebstoreTemplate({
compatibility_mode: "invalid",
name: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"compatibility_mode": "invalid",
"name": "string",
}
response = requests.put("https://api.paynow.gg/v1/webstores/{storeId}/templates", headers=headers, json=payload){
"id": "411486491630370816",
"compatibility_mode": "invalid",
"created_at": "2024-01-01T00:00:00Z",
"is_public": true,
"name": "string",
"updated_at": "2024-01-01T00:00:00Z",
"webstore_id": "411486491630370816",
"template_files": [
{
"id": "411486491630370816",
"content_type": "string",
"created_at": "2024-01-01T00:00:00Z",
"file_name": "string",
"is_deletable": true,
"is_public": true,
"template_id": "411486491630370816",
"updated_at": "2024-01-01T00:00:00Z",
"content": "string"
}
]
}Authorization: APIKey TOKEN.Show fieldsHide fields
invalidpaynowtebex
template_filesWebstoreTemplateFileDto[]Optional
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.getWebstoreTemplate("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}", headers=headers){
"id": "411486491630370816",
"compatibility_mode": "invalid",
"created_at": "2024-01-01T00:00:00Z",
"is_public": true,
"name": "string",
"updated_at": "2024-01-01T00:00:00Z",
"webstore_id": "411486491630370816",
"template_files": [
{
"id": "411486491630370816",
"content_type": "string",
"created_at": "2024-01-01T00:00:00Z",
"file_name": "string",
"is_deletable": true,
"is_public": true,
"template_id": "411486491630370816",
"updated_at": "2024-01-01T00:00:00Z",
"content": "string"
}
]
}Authorization: APIKey TOKEN.invalidpaynowtebex
Show fieldsHide fields
invalidpaynowtebex
template_filesWebstoreTemplateFileDto[]Optional
Failed requests return a PayNowError body. See the error response guide.
curl -X PUT "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"compatibility_mode": "invalid",
"name": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.updateWebstoreTemplate("411486491630370816", {
compatibility_mode: "invalid",
name: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"compatibility_mode": "invalid",
"name": "string",
}
response = requests.put("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}", headers=headers, json=payload){
"id": "411486491630370816",
"compatibility_mode": "invalid",
"created_at": "2024-01-01T00:00:00Z",
"is_public": true,
"name": "string",
"updated_at": "2024-01-01T00:00:00Z",
"webstore_id": "411486491630370816",
"template_files": [
{
"id": "411486491630370816",
"content_type": "string",
"created_at": "2024-01-01T00:00:00Z",
"file_name": "string",
"is_deletable": true,
"is_public": true,
"template_id": "411486491630370816",
"updated_at": "2024-01-01T00:00:00Z",
"content": "string"
}
]
}Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.webstore.deleteWebstoreTemplate("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}", headers=headers)Get Webstore Template Latest Version
Authorization: APIKey TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/update" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.getWebstoreTemplateLatestVersion("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/update", headers=headers){
"version": "string"
}Download Webstore Template Update
Authorization: APIKey TOKEN.curl -X POST "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/update" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.webstore.downloadWebstoreTemplateUpdate("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.post("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/update", headers=headers)Get Webstore Template Schema
Authorization: APIKey TOKEN.Show fieldsHide fields
configWebstoreTemplateSchemaSectionDto[]Required
optionsWebstoreTemplateSchemaOptionDto[]Required
updatesWebstoreTemplateSchemaUpdatesDtoOptional
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/schema" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.getWebstoreTemplateSchema("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/schema", headers=headers){
"author": "string",
"config": [
{
"header": "string",
"options": [
{
"id": "string",
"name": "string",
"nested_options": [
{}
],
"type": "string",
"values": [
"string"
],
"default": {},
"description": "string",
"max": 0,
"min": 0,
"multiline": true,
"numeric": true
}
]
}
],
"support_email": "string",
"support_url": "string",
"updates": {
"github_branch": "string",
"supported": true,
"version_check_supported": true,
"github_token": "string",
"github_url": "string",
"version": "string"
}
}Update Webstore Template Schema Variables
Authorization: APIKey TOKEN.curl -X PUT "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/schema/variables" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.webstore.updateWebstoreTemplateSchemaVariables("411486491630370816", {});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {}
response = requests.put("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/schema/variables", headers=headers, json=payload)Duplicate Webstore Template
Authorization: APIKey TOKEN.Show fieldsHide fields
invalidpaynowtebex
template_filesWebstoreTemplateFileDto[]Optional
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/duplicate" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.duplicateWebstoreTemplate("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.post("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/duplicate", headers=headers){
"id": "411486491630370816",
"compatibility_mode": "invalid",
"created_at": "2024-01-01T00:00:00Z",
"is_public": true,
"name": "string",
"updated_at": "2024-01-01T00:00:00Z",
"webstore_id": "411486491630370816",
"template_files": [
{
"id": "411486491630370816",
"content_type": "string",
"created_at": "2024-01-01T00:00:00Z",
"file_name": "string",
"is_deletable": true,
"is_public": true,
"template_id": "411486491630370816",
"updated_at": "2024-01-01T00:00:00Z",
"content": "string"
}
]
}Get Webstore Template Archive
Authorization: APIKey TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/archive" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.getWebstoreTemplateArchive("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/archive", headers=headers){
"download_url": "string"
}Get Webstore Template Upload Url
Authorization: APIKey TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/upload_url" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.getWebstoreTemplateUploadUrl("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/upload_url", headers=headers){
"upload_url": "string"
}Finish Webstore Template Upload
Authorization: APIKey TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/upload_finish" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.finishWebstoreTemplateUpload("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.post("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/upload_finish", headers=headers){
"failed_files": [
"string"
]
}Preview Webstore Template
Authorization: APIKey TOKEN.Show fieldsHide fields
templateWebstoreTemplatePreviewDtoRequired
invalidpaynowtebex
compiledWebstoreTemplateCompiledFileDto[]Required
schemaWebstoreTemplateSchemaDtoOptional
variablesWebstoreTemplatePreviewVariablesDtoRequired
variablesWebstoreTemplateVariableDto[]Required
invalidstringhtmlnumberbooleanjson
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/preview" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.previewWebstoreTemplate("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/preview", headers=headers){
"template": {
"compatibilityMode": "invalid",
"compiled": [
{
"content_type": "string",
"file_name": "string",
"compiled": "string",
"error": "string"
}
],
"compiled_at": "2024-01-01T00:00:00Z",
"schema": {
"author": "string",
"config": [
{
"header": "string",
"options": [
{
"id": "string",
"name": "string",
"nested_options": [
{}
],
"type": "string",
"values": [
"string"
],
"default": {},
"description": "string",
"max": 0,
"min": 0,
"multiline": true,
"numeric": true
}
]
}
],
"support_email": "string",
"support_url": "string",
"updates": {
"github_branch": "string",
"supported": true,
"version_check_supported": true,
"github_token": "string",
"github_url": "string",
"version": "string"
}
}
},
"variables": {
"saved_at": "2024-01-01T00:00:00Z",
"variables": [
{
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"name": "string",
"template_id": "411486491630370816",
"type": "invalid",
"updated_at": "2024-01-01T00:00:00Z",
"value": "string",
"variable": "string",
"webstore_id": "411486491630370816"
}
]
}
}Get Webstore Template Variables
Authorization: APIKey TOKEN.Show fieldsHide fields
invalidstringhtmlnumberbooleanjson
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/variables" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.getWebstoreTemplateVariables("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/variables", headers=headers)[
{
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"name": "string",
"template_id": "411486491630370816",
"type": "invalid",
"updated_at": "2024-01-01T00:00:00Z",
"value": "string",
"variable": "string",
"webstore_id": "411486491630370816"
}
]Create Webstore Template Variable
Authorization: APIKey TOKEN.invalidstringhtmlnumberbooleanjson
Show fieldsHide fields
invalidstringhtmlnumberbooleanjson
Failed requests return a PayNowError body. See the error response guide.
curl -X PUT "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/variables" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"type": "invalid",
"value": "string",
"variable": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.createWebstoreTemplateVariable("411486491630370816", {
name: "string",
type: "invalid",
value: "string",
variable: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"name": "string",
"type": "invalid",
"value": "string",
"variable": "string",
}
response = requests.put("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/variables", headers=headers, json=payload){
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"name": "string",
"template_id": "411486491630370816",
"type": "invalid",
"updated_at": "2024-01-01T00:00:00Z",
"value": "string",
"variable": "string",
"webstore_id": "411486491630370816"
}Update Webstore Template Variable
Authorization: APIKey TOKEN.invalidstringhtmlnumberbooleanjson
Show fieldsHide fields
invalidstringhtmlnumberbooleanjson
Failed requests return a PayNowError body. See the error response guide.
curl -X PUT "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/variables/{templateVariableId}" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"type": "invalid",
"value": "string",
"variable": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.webstore.updateWebstoreTemplateVariable("411486491630370816", "411486491630370816", {
name: "string",
type: "invalid",
value: "string",
variable: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"name": "string",
"type": "invalid",
"value": "string",
"variable": "string",
}
response = requests.put("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/variables/{templateVariableId}", headers=headers, json=payload){
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"name": "string",
"template_id": "411486491630370816",
"type": "invalid",
"updated_at": "2024-01-01T00:00:00Z",
"value": "string",
"variable": "string",
"webstore_id": "411486491630370816"
}Delete Webstore Template Variable
Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/variables/{templateVariableId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.webstore.deleteWebstoreTemplateVariable("411486491630370816", "411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/webstores/{storeId}/templates/{templateId}/variables/{templateVariableId}", headers=headers)