Marketing
Authorization: APIKey TOKEN.Show fieldsHide fields
created_byActorDtoRequired
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
unspecifiedinactiveactivatingactive
unspecifiedlayoutpassword_resetemail_verificationemail_changeemail_changed_notificationforgot_passwordlogged_in_new_locationwelcome_loginorder_completedrefund_initiatedsubscription_canceledsubscription_renewal_failedsubscription_price_changedsubscription_change_verification_codesubscription_renewal_upcomingsubscription_manage_loginsubscription_manage_no_historypayout_createdpayout_completedstore_invitestore_lock_changedabandoned_checkout_recovery_attemptpurchase_follow_up_attemptdownloadable_file_granteddiscord_invite_linkgift_card_createdtrial_ending_sooninvoice_generatedpayment_method_type_approvalstore_trust_eventdata_subject_request_export_completed
updated_byActorDtoOptional
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}/marketing/email/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.marketing.getEmailTemplates();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates", headers=headers)[
{
"content": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"email_template_state": "unspecified",
"email_template_state_note": "string",
"email_template_type": "unspecified",
"id": "411486491630370816",
"name": "string",
"store_id": "411486491630370816",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2024-01-01T00:00:00Z"
}
]Authorization: APIKey TOKEN.unspecifiedlayoutpassword_resetemail_verificationemail_changeemail_changed_notificationforgot_passwordlogged_in_new_locationwelcome_loginorder_completedrefund_initiatedsubscription_canceledsubscription_renewal_failedsubscription_price_changedsubscription_change_verification_codesubscription_renewal_upcomingsubscription_manage_loginsubscription_manage_no_historypayout_createdpayout_completedstore_invitestore_lock_changedabandoned_checkout_recovery_attemptpurchase_follow_up_attemptdownloadable_file_granteddiscord_invite_linkgift_card_createdtrial_ending_sooninvoice_generatedpayment_method_type_approvalstore_trust_eventdata_subject_request_export_completed
Show fieldsHide fields
created_byActorDtoRequired
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
unspecifiedinactiveactivatingactive
unspecifiedlayoutpassword_resetemail_verificationemail_changeemail_changed_notificationforgot_passwordlogged_in_new_locationwelcome_loginorder_completedrefund_initiatedsubscription_canceledsubscription_renewal_failedsubscription_price_changedsubscription_change_verification_codesubscription_renewal_upcomingsubscription_manage_loginsubscription_manage_no_historypayout_createdpayout_completedstore_invitestore_lock_changedabandoned_checkout_recovery_attemptpurchase_follow_up_attemptdownloadable_file_granteddiscord_invite_linkgift_card_createdtrial_ending_sooninvoice_generatedpayment_method_type_approvalstore_trust_eventdata_subject_request_export_completed
updated_byActorDtoOptional
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}/marketing/email/templates" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email_template_type": "unspecified",
"name": "string",
"content": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.marketing.createEmailTemplate({
email_template_type: "unspecified",
name: "string",
content: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"email_template_type": "unspecified",
"name": "string",
"content": "string",
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates", headers=headers, json=payload){
"content": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"email_template_state": "unspecified",
"email_template_state_note": "string",
"email_template_type": "unspecified",
"id": "411486491630370816",
"name": "string",
"store_id": "411486491630370816",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2024-01-01T00:00:00Z"
}Get Email Template
Authorization: APIKey TOKEN.Show fieldsHide fields
created_byActorDtoRequired
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
unspecifiedinactiveactivatingactive
unspecifiedlayoutpassword_resetemail_verificationemail_changeemail_changed_notificationforgot_passwordlogged_in_new_locationwelcome_loginorder_completedrefund_initiatedsubscription_canceledsubscription_renewal_failedsubscription_price_changedsubscription_change_verification_codesubscription_renewal_upcomingsubscription_manage_loginsubscription_manage_no_historypayout_createdpayout_completedstore_invitestore_lock_changedabandoned_checkout_recovery_attemptpurchase_follow_up_attemptdownloadable_file_granteddiscord_invite_linkgift_card_createdtrial_ending_sooninvoice_generatedpayment_method_type_approvalstore_trust_eventdata_subject_request_export_completed
updated_byActorDtoOptional
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}/marketing/email/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.marketing.getEmailTemplate("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates/{templateId}", headers=headers){
"content": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"email_template_state": "unspecified",
"email_template_state_note": "string",
"email_template_type": "unspecified",
"id": "411486491630370816",
"name": "string",
"store_id": "411486491630370816",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2024-01-01T00:00:00Z"
}Update Email Template
Authorization: APIKey TOKEN.Show fieldsHide fields
created_byActorDtoRequired
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
unspecifiedinactiveactivatingactive
unspecifiedlayoutpassword_resetemail_verificationemail_changeemail_changed_notificationforgot_passwordlogged_in_new_locationwelcome_loginorder_completedrefund_initiatedsubscription_canceledsubscription_renewal_failedsubscription_price_changedsubscription_change_verification_codesubscription_renewal_upcomingsubscription_manage_loginsubscription_manage_no_historypayout_createdpayout_completedstore_invitestore_lock_changedabandoned_checkout_recovery_attemptpurchase_follow_up_attemptdownloadable_file_granteddiscord_invite_linkgift_card_createdtrial_ending_sooninvoice_generatedpayment_method_type_approvalstore_trust_eventdata_subject_request_export_completed
updated_byActorDtoOptional
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X PATCH "https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates/{templateId}" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"content": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.marketing.updateEmailTemplate("411486491630370816", {
name: "string",
content: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"name": "string",
"content": "string",
}
response = requests.patch("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates/{templateId}", headers=headers, json=payload){
"content": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"email_template_state": "unspecified",
"email_template_state_note": "string",
"email_template_type": "unspecified",
"id": "411486491630370816",
"name": "string",
"store_id": "411486491630370816",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2024-01-01T00:00:00Z"
}Delete Email Template
Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates/{templateId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.marketing.deleteEmailTemplate("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates/{templateId}", headers=headers)Activate Email Template
Authorization: APIKey TOKEN.curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates/{templateId}/activate" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.marketing.activateEmailTemplate("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates/{templateId}/activate", headers=headers)Deactivate Email Template
Authorization: APIKey TOKEN.curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates/{templateId}/deactivate" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.marketing.deactivateEmailTemplate("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates/{templateId}/deactivate", headers=headers)Deactivate Email Template By Type
Authorization: APIKey TOKEN.unspecifiedlayoutpassword_resetemail_verificationemail_changeemail_changed_notificationforgot_passwordlogged_in_new_locationwelcome_loginorder_completedrefund_initiatedsubscription_canceledsubscription_renewal_failedsubscription_price_changedsubscription_change_verification_codesubscription_renewal_upcomingsubscription_manage_loginsubscription_manage_no_historypayout_createdpayout_completedstore_invitestore_lock_changedabandoned_checkout_recovery_attemptpurchase_follow_up_attemptdownloadable_file_granteddiscord_invite_linkgift_card_createdtrial_ending_sooninvoice_generatedpayment_method_type_approvalstore_trust_eventdata_subject_request_export_completed
curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates/deactivate" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email_template_type": "unspecified"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.marketing.deactivateEmailTemplateByType({
email_template_type: "unspecified",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"email_template_type": "unspecified",
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/templates/deactivate", headers=headers, json=payload)Get Email Template Definitions
Authorization: APIKey TOKEN.Show fieldsHide fields
componentsEmailTemplateComponentDto[]Required
unspecifiedlayoutpassword_resetemail_verificationemail_changeemail_changed_notificationforgot_passwordlogged_in_new_locationwelcome_loginorder_completedrefund_initiatedsubscription_canceledsubscription_renewal_failedsubscription_price_changedsubscription_change_verification_codesubscription_renewal_upcomingsubscription_manage_loginsubscription_manage_no_historypayout_createdpayout_completedstore_invitestore_lock_changedabandoned_checkout_recovery_attemptpurchase_follow_up_attemptdownloadable_file_granteddiscord_invite_linkgift_card_createdtrial_ending_sooninvoice_generatedpayment_method_type_approvalstore_trust_eventdata_subject_request_export_completed
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/marketing/email/template-definitions" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.marketing.getEmailTemplateDefinitions();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/template-definitions", headers=headers)[
{
"components": [
{
"content": "string",
"tag": "string"
}
],
"default_content": "string",
"display_name": "string",
"email_template_type": "unspecified",
"example_variables": {}
}
]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/stores/{storeId}/marketing/email/branding" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.marketing.getEmailBranding();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/branding", headers=headers){
"color": "string",
"store_id": "411486491630370816",
"header_image_light_url": "string",
"header_image_dark_url": "string"
}Authorization: APIKey TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X PATCH "https://api.paynow.gg/v1/stores/{storeId}/marketing/email/branding" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"color": "string",
"header_image_light_url": "string",
"header_image_dark_url": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.marketing.updateEmailBranding({
color: "string",
header_image_light_url: "string",
header_image_dark_url: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"color": "string",
"header_image_light_url": "string",
"header_image_dark_url": "string",
}
response = requests.patch("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/branding", headers=headers, json=payload){
"color": "string",
"store_id": "411486491630370816",
"header_image_light_url": "string",
"header_image_dark_url": "string"
}Get Email Branding Image 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/stores/{storeId}/marketing/email/branding/image-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.marketing.getEmailBrandingImageUploadUrl();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/branding/image-upload-url", headers=headers){
"image_id": "string",
"upload_url": "string"
}Finish Email Branding Image Upload
Authorization: APIKey TOKEN.curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/marketing/email/branding/image-upload-finish" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"dark_mode": true,
"image_id": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.marketing.finishEmailBrandingImageUpload({
dark_mode: true,
image_id: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"dark_mode": True,
"image_id": "string",
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/branding/image-upload-finish", headers=headers, json=payload)Authorization: APIKey TOKEN.Show fieldsHide fields
unspecifiedlayoutpassword_resetemail_verificationemail_changeemail_changed_notificationforgot_passwordlogged_in_new_locationwelcome_loginorder_completedrefund_initiatedsubscription_canceledsubscription_renewal_failedsubscription_price_changedsubscription_change_verification_codesubscription_renewal_upcomingsubscription_manage_loginsubscription_manage_no_historypayout_createdpayout_completedstore_invitestore_lock_changedabandoned_checkout_recovery_attemptpurchase_follow_up_attemptdownloadable_file_granteddiscord_invite_linkgift_card_createdtrial_ending_sooninvoice_generatedpayment_method_type_approvalstore_trust_eventdata_subject_request_export_completed
unspecifiedpendingsentdelivereddeferredbounceddroppedfailed
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/marketing/email/deliveries" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.marketing.getEmailDeliveries();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/deliveries", headers=headers)[
{
"created_at": "2024-01-01T00:00:00Z",
"email_template_type": "unspecified",
"id": "411486491630370816",
"receiver_email": "string",
"status": "unspecified",
"subject": "string",
"store_id": "411486491630370816",
"message_id": "string",
"error_message": "string",
"sent_at": "2024-01-01T00:00:00Z",
"opened_at": "2024-01-01T00:00:00Z"
}
]Get Email Delivery
Authorization: APIKey TOKEN.Show fieldsHide fields
unspecifiedlayoutpassword_resetemail_verificationemail_changeemail_changed_notificationforgot_passwordlogged_in_new_locationwelcome_loginorder_completedrefund_initiatedsubscription_canceledsubscription_renewal_failedsubscription_price_changedsubscription_change_verification_codesubscription_renewal_upcomingsubscription_manage_loginsubscription_manage_no_historypayout_createdpayout_completedstore_invitestore_lock_changedabandoned_checkout_recovery_attemptpurchase_follow_up_attemptdownloadable_file_granteddiscord_invite_linkgift_card_createdtrial_ending_sooninvoice_generatedpayment_method_type_approvalstore_trust_eventdata_subject_request_export_completed
unspecifiedpendingsentdelivereddeferredbounceddroppedfailed
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/marketing/email/deliveries/{emailDeliveryId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.marketing.getEmailDelivery("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/marketing/email/deliveries/{emailDeliveryId}", headers=headers){
"created_at": "2024-01-01T00:00:00Z",
"email_template_type": "unspecified",
"id": "411486491630370816",
"receiver_email": "string",
"status": "unspecified",
"subject": "string",
"store_id": "411486491630370816",
"message_id": "string",
"error_message": "string",
"sent_at": "2024-01-01T00:00:00Z",
"opened_at": "2024-01-01T00:00:00Z"
}Gets the abandoned checkout behaviour for a store
Authorization: APIKey TOKEN.Show fieldsHide fields
commandsAbandonedCheckoutStoreConfigurationCommandDto[]RequiredThe commands you want to execute when the email is sent.
coupon_configurationMarketingCouponConfigurationDtoRequiredRepresents the configuration settings for a coupon applied to marketing features.
unspecifiedNo discount type specified. This value is typically used as a default or uninitialized state.
percentA percentage-based discount (e.g., 10% off).
amountA fixed amount discount (e.g., $5 off).
onceThe coupon can be used only once.
foreverThe coupon remains valid indefinitely (no expiration).
repeatingThe coupon is valid for a repeating period, typically specified in months.
updated_byActorDtoRequired
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}/marketing/abandoned-checkouts/configuration" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.marketing.getStoreAbandonedCheckoutConfigurationOptions();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/marketing/abandoned-checkouts/configuration", headers=headers){
"commands": [
{
"command": "string",
"id": "411486491630370816",
"online_only": true,
"store_id": "411486491630370816"
}
],
"coupon_configuration": {
"customer_redeem_limit": 0,
"customer_redeem_limit_enabled": true,
"discount_amount": 0,
"discount_apply_before_sales": true,
"discount_only_required_tags_or_products": true,
"discount_type": "unspecified",
"duration": "once",
"minimum_order_value": 0,
"required_product_ids": [
"411486491630370816"
],
"required_tag_ids": [
"411486491630370816"
],
"usable_on_one_time_purchases": true,
"usable_on_subscriptions": true,
"duration_in_intervals": 0,
"expires_after": "P1Y2M3DT4H5M6S"
},
"enabled": true,
"invalid": true,
"minimum_order_value": 0,
"store_id": "411486491630370816",
"trigger_after": "P1Y2M3DT4H5M6S",
"updated_at": "2024-01-01T00:00:00Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"maximum_order_value": 0,
"max_coupons_per_customer_amount": 0,
"max_coupons_per_customer_period": "P1Y2M3DT4H5M6S",
"max_coupons_global_amount": 0,
"max_coupons_global_period": "P1Y2M3DT4H5M6S"
}Sets the abandoned checkout behaviour for a store
Authorization: APIKey TOKEN.commandsAbandonedCheckoutStoreConfigurationUpdateCommandDto[]RequiredRepresents a command associated with the store-level abandoned checkout configuration.
coupon_configurationMarketingCouponConfigurationDtoRequiredRepresents the configuration settings for a coupon applied to marketing features.
unspecifiedNo discount type specified. This value is typically used as a default or uninitialized state.
percentA percentage-based discount (e.g., 10% off).
amountA fixed amount discount (e.g., $5 off).
onceThe coupon can be used only once.
foreverThe coupon remains valid indefinitely (no expiration).
repeatingThe coupon is valid for a repeating period, typically specified in months.
Show fieldsHide fields
commandsAbandonedCheckoutStoreConfigurationCommandDto[]RequiredThe commands you want to execute when the email is sent.
coupon_configurationMarketingCouponConfigurationDtoRequiredRepresents the configuration settings for a coupon applied to marketing features.
unspecifiedNo discount type specified. This value is typically used as a default or uninitialized state.
percentA percentage-based discount (e.g., 10% off).
amountA fixed amount discount (e.g., $5 off).
onceThe coupon can be used only once.
foreverThe coupon remains valid indefinitely (no expiration).
repeatingThe coupon is valid for a repeating period, typically specified in months.
updated_byActorDtoRequired
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X PUT "https://api.paynow.gg/v1/stores/{storeId}/marketing/abandoned-checkouts/configuration" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"commands": [
{
"command": "string",
"online_only": true
}
],
"coupon_configuration": {
"customer_redeem_limit": 0,
"customer_redeem_limit_enabled": true,
"discount_amount": 0,
"discount_apply_before_sales": true,
"discount_only_required_tags_or_products": true,
"discount_type": "unspecified",
"duration": "once",
"minimum_order_value": 0,
"required_product_ids": [
"411486491630370816"
],
"required_tag_ids": [
"411486491630370816"
],
"usable_on_one_time_purchases": true,
"usable_on_subscriptions": true,
"duration_in_intervals": 0,
"expires_after": "P1Y2M3DT4H5M6S"
},
"enabled": true,
"minimum_order_value": 0,
"trigger_after": "P1Y2M3DT4H5M6S",
"maximum_order_value": 0,
"max_coupons_per_customer_amount": 0,
"max_coupons_per_customer_period": "P1Y2M3DT4H5M6S",
"max_coupons_global_amount": 0,
"max_coupons_global_period": "P1Y2M3DT4H5M6S"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.marketing.setStoreAbandonedCheckoutConfigurationOptions({
commands: [
{
command: "string",
online_only: true,
},
],
coupon_configuration: {
customer_redeem_limit: 0,
customer_redeem_limit_enabled: true,
discount_amount: 0,
discount_apply_before_sales: true,
discount_only_required_tags_or_products: true,
discount_type: "unspecified",
duration: "once",
minimum_order_value: 0,
required_product_ids: [
"411486491630370816",
],
required_tag_ids: [
"411486491630370816",
],
usable_on_one_time_purchases: true,
usable_on_subscriptions: true,
duration_in_intervals: 0,
expires_after: "P1Y2M3DT4H5M6S",
},
enabled: true,
minimum_order_value: 0,
trigger_after: "P1Y2M3DT4H5M6S",
maximum_order_value: 0,
max_coupons_per_customer_amount: 0,
max_coupons_per_customer_period: "P1Y2M3DT4H5M6S",
max_coupons_global_amount: 0,
max_coupons_global_period: "P1Y2M3DT4H5M6S",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"commands": [
{
"command": "string",
"online_only": True,
},
],
"coupon_configuration": {
"customer_redeem_limit": 0,
"customer_redeem_limit_enabled": True,
"discount_amount": 0,
"discount_apply_before_sales": True,
"discount_only_required_tags_or_products": True,
"discount_type": "unspecified",
"duration": "once",
"minimum_order_value": 0,
"required_product_ids": [
"411486491630370816",
],
"required_tag_ids": [
"411486491630370816",
],
"usable_on_one_time_purchases": True,
"usable_on_subscriptions": True,
"duration_in_intervals": 0,
"expires_after": "P1Y2M3DT4H5M6S",
},
"enabled": True,
"minimum_order_value": 0,
"trigger_after": "P1Y2M3DT4H5M6S",
"maximum_order_value": 0,
"max_coupons_per_customer_amount": 0,
"max_coupons_per_customer_period": "P1Y2M3DT4H5M6S",
"max_coupons_global_amount": 0,
"max_coupons_global_period": "P1Y2M3DT4H5M6S",
}
response = requests.put("https://api.paynow.gg/v1/stores/{storeId}/marketing/abandoned-checkouts/configuration", headers=headers, json=payload){
"commands": [
{
"command": "string",
"id": "411486491630370816",
"online_only": true,
"store_id": "411486491630370816"
}
],
"coupon_configuration": {
"customer_redeem_limit": 0,
"customer_redeem_limit_enabled": true,
"discount_amount": 0,
"discount_apply_before_sales": true,
"discount_only_required_tags_or_products": true,
"discount_type": "unspecified",
"duration": "once",
"minimum_order_value": 0,
"required_product_ids": [
"411486491630370816"
],
"required_tag_ids": [
"411486491630370816"
],
"usable_on_one_time_purchases": true,
"usable_on_subscriptions": true,
"duration_in_intervals": 0,
"expires_after": "P1Y2M3DT4H5M6S"
},
"enabled": true,
"invalid": true,
"minimum_order_value": 0,
"store_id": "411486491630370816",
"trigger_after": "P1Y2M3DT4H5M6S",
"updated_at": "2024-01-01T00:00:00Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"maximum_order_value": 0,
"max_coupons_per_customer_amount": 0,
"max_coupons_per_customer_period": "P1Y2M3DT4H5M6S",
"max_coupons_global_amount": 0,
"max_coupons_global_period": "P1Y2M3DT4H5M6S"
}Gets the purchase follow up behaviour for a store
Authorization: APIKey TOKEN.Show fieldsHide fields
commandsPurchaseFollowUpStoreConfigurationCommandDto[]RequiredThe commands you want to execute when the email is sent.
coupon_configurationMarketingCouponConfigurationDtoRequiredRepresents the configuration settings for a coupon applied to marketing features.
unspecifiedNo discount type specified. This value is typically used as a default or uninitialized state.
percentA percentage-based discount (e.g., 10% off).
amountA fixed amount discount (e.g., $5 off).
onceThe coupon can be used only once.
foreverThe coupon remains valid indefinitely (no expiration).
repeatingThe coupon is valid for a repeating period, typically specified in months.
updated_byActorDtoRequired
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}/marketing/purchase-follow-ups/configuration" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.marketing.getStorePurchaseFollowUpConfigurationOptions();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/marketing/purchase-follow-ups/configuration", headers=headers){
"commands": [
{
"command": "string",
"id": "411486491630370816",
"online_only": true,
"store_id": "411486491630370816"
}
],
"coupon_configuration": {
"customer_redeem_limit": 0,
"customer_redeem_limit_enabled": true,
"discount_amount": 0,
"discount_apply_before_sales": true,
"discount_only_required_tags_or_products": true,
"discount_type": "unspecified",
"duration": "once",
"minimum_order_value": 0,
"required_product_ids": [
"411486491630370816"
],
"required_tag_ids": [
"411486491630370816"
],
"usable_on_one_time_purchases": true,
"usable_on_subscriptions": true,
"duration_in_intervals": 0,
"expires_after": "P1Y2M3DT4H5M6S"
},
"enabled": true,
"invalid": true,
"minimum_order_value": 0,
"store_id": "411486491630370816",
"trigger_after": "P1Y2M3DT4H5M6S",
"updated_at": "2024-01-01T00:00:00Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"maximum_order_value": 0,
"max_coupons_per_customer_amount": 0,
"max_coupons_per_customer_period": "P1Y2M3DT4H5M6S",
"max_coupons_global_amount": 0,
"max_coupons_global_period": "P1Y2M3DT4H5M6S"
}Sets the purchase follow up behaviour for a store
Authorization: APIKey TOKEN.commandsPurchaseFollowUpStoreConfigurationUpdateCommandDto[]RequiredRepresents a command associated with the store-level purchase follow uo configuration.
coupon_configurationMarketingCouponConfigurationDtoRequiredRepresents the configuration settings for a coupon applied to marketing features.
unspecifiedNo discount type specified. This value is typically used as a default or uninitialized state.
percentA percentage-based discount (e.g., 10% off).
amountA fixed amount discount (e.g., $5 off).
onceThe coupon can be used only once.
foreverThe coupon remains valid indefinitely (no expiration).
repeatingThe coupon is valid for a repeating period, typically specified in months.
Show fieldsHide fields
commandsPurchaseFollowUpStoreConfigurationCommandDto[]RequiredThe commands you want to execute when the email is sent.
coupon_configurationMarketingCouponConfigurationDtoRequiredRepresents the configuration settings for a coupon applied to marketing features.
unspecifiedNo discount type specified. This value is typically used as a default or uninitialized state.
percentA percentage-based discount (e.g., 10% off).
amountA fixed amount discount (e.g., $5 off).
onceThe coupon can be used only once.
foreverThe coupon remains valid indefinitely (no expiration).
repeatingThe coupon is valid for a repeating period, typically specified in months.
updated_byActorDtoRequired
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X PUT "https://api.paynow.gg/v1/stores/{storeId}/marketing/purchase-follow-ups/configuration" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"commands": [
{
"command": "string",
"online_only": true
}
],
"coupon_configuration": {
"customer_redeem_limit": 0,
"customer_redeem_limit_enabled": true,
"discount_amount": 0,
"discount_apply_before_sales": true,
"discount_only_required_tags_or_products": true,
"discount_type": "unspecified",
"duration": "once",
"minimum_order_value": 0,
"required_product_ids": [
"411486491630370816"
],
"required_tag_ids": [
"411486491630370816"
],
"usable_on_one_time_purchases": true,
"usable_on_subscriptions": true,
"duration_in_intervals": 0,
"expires_after": "P1Y2M3DT4H5M6S"
},
"enabled": true,
"minimum_order_value": 0,
"trigger_after": "P1Y2M3DT4H5M6S",
"maximum_order_value": 0,
"max_coupons_per_customer_amount": 0,
"max_coupons_per_customer_period": "P1Y2M3DT4H5M6S",
"max_coupons_global_amount": 0,
"max_coupons_global_period": "P1Y2M3DT4H5M6S"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.marketing.setStorePurchaseFollowUpConfigurationOptions({
commands: [
{
command: "string",
online_only: true,
},
],
coupon_configuration: {
customer_redeem_limit: 0,
customer_redeem_limit_enabled: true,
discount_amount: 0,
discount_apply_before_sales: true,
discount_only_required_tags_or_products: true,
discount_type: "unspecified",
duration: "once",
minimum_order_value: 0,
required_product_ids: [
"411486491630370816",
],
required_tag_ids: [
"411486491630370816",
],
usable_on_one_time_purchases: true,
usable_on_subscriptions: true,
duration_in_intervals: 0,
expires_after: "P1Y2M3DT4H5M6S",
},
enabled: true,
minimum_order_value: 0,
trigger_after: "P1Y2M3DT4H5M6S",
maximum_order_value: 0,
max_coupons_per_customer_amount: 0,
max_coupons_per_customer_period: "P1Y2M3DT4H5M6S",
max_coupons_global_amount: 0,
max_coupons_global_period: "P1Y2M3DT4H5M6S",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"commands": [
{
"command": "string",
"online_only": True,
},
],
"coupon_configuration": {
"customer_redeem_limit": 0,
"customer_redeem_limit_enabled": True,
"discount_amount": 0,
"discount_apply_before_sales": True,
"discount_only_required_tags_or_products": True,
"discount_type": "unspecified",
"duration": "once",
"minimum_order_value": 0,
"required_product_ids": [
"411486491630370816",
],
"required_tag_ids": [
"411486491630370816",
],
"usable_on_one_time_purchases": True,
"usable_on_subscriptions": True,
"duration_in_intervals": 0,
"expires_after": "P1Y2M3DT4H5M6S",
},
"enabled": True,
"minimum_order_value": 0,
"trigger_after": "P1Y2M3DT4H5M6S",
"maximum_order_value": 0,
"max_coupons_per_customer_amount": 0,
"max_coupons_per_customer_period": "P1Y2M3DT4H5M6S",
"max_coupons_global_amount": 0,
"max_coupons_global_period": "P1Y2M3DT4H5M6S",
}
response = requests.put("https://api.paynow.gg/v1/stores/{storeId}/marketing/purchase-follow-ups/configuration", headers=headers, json=payload){
"commands": [
{
"command": "string",
"id": "411486491630370816",
"online_only": true,
"store_id": "411486491630370816"
}
],
"coupon_configuration": {
"customer_redeem_limit": 0,
"customer_redeem_limit_enabled": true,
"discount_amount": 0,
"discount_apply_before_sales": true,
"discount_only_required_tags_or_products": true,
"discount_type": "unspecified",
"duration": "once",
"minimum_order_value": 0,
"required_product_ids": [
"411486491630370816"
],
"required_tag_ids": [
"411486491630370816"
],
"usable_on_one_time_purchases": true,
"usable_on_subscriptions": true,
"duration_in_intervals": 0,
"expires_after": "P1Y2M3DT4H5M6S"
},
"enabled": true,
"invalid": true,
"minimum_order_value": 0,
"store_id": "411486491630370816",
"trigger_after": "P1Y2M3DT4H5M6S",
"updated_at": "2024-01-01T00:00:00Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"maximum_order_value": 0,
"max_coupons_per_customer_amount": 0,
"max_coupons_per_customer_period": "P1Y2M3DT4H5M6S",
"max_coupons_global_amount": 0,
"max_coupons_global_period": "P1Y2M3DT4H5M6S"
}