Store
Get stores
Retrieves all stores accessible to the authenticated user or API key.
Authorization: APIKey TOKEN.Show fieldsHide fields
platform_store_type_associationPlatformStoreTypeAssociationDetailsDtoOptional
associated_platformPublicPlatformDtoOptional
invalidconnected_users
invalidmarketplacestore_platformother
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.store.getStores();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores", headers=headers)[
{
"id": "411486491630370816",
"currency": "string",
"description": "string",
"game": "string",
"live_mode": true,
"name": "string",
"owner_id": "411486491630370816",
"platform": "string",
"slug": "string",
"contact_email": "string",
"created_at": "2024-01-01T00:00:00Z",
"integration_type": "string",
"logo_square_url": "string",
"logo_url": "string",
"minecraft_bedrock_username_prefix": "string",
"onboarding_completed_at": "2024-01-01T00:00:00Z",
"platform_store_type_association": {
"disable_billing_plans": true,
"display_disclaimers": true,
"full_external_management": true,
"platform_id": "411486491630370816",
"store_platform": "string",
"associated_platform": {
"id": "411486491630370816",
"accent_color": "string",
"business_name": "string",
"capabilities": [
"invalid"
],
"country_code": "string",
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"logo_url": "string",
"name": "string",
"slug": "string",
"type": "invalid",
"website_url": "string",
"disabled_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
},
"connected_platform_fee_percentage": 0,
"connected_platform_wallet_id": "411486491630370816",
"paynow_platform_fee_percentage_override": 0
},
"support_email": "string",
"support_url": "string",
"updated_at": "2024-01-01T00:00:00Z",
"website_url": "string"
}
]Authorization: APIKey TOKEN.Show fieldsHide fields
platform_store_type_associationPlatformStoreTypeAssociationDetailsDtoOptional
associated_platformPublicPlatformDtoOptional
invalidconnected_users
invalidmarketplacestore_platformother
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{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.store.getStore();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}", headers=headers){
"id": "411486491630370816",
"currency": "string",
"description": "string",
"game": "string",
"live_mode": true,
"name": "string",
"owner_id": "411486491630370816",
"platform": "string",
"slug": "string",
"contact_email": "string",
"created_at": "2024-01-01T00:00:00Z",
"integration_type": "string",
"logo_square_url": "string",
"logo_url": "string",
"minecraft_bedrock_username_prefix": "string",
"onboarding_completed_at": "2024-01-01T00:00:00Z",
"platform_store_type_association": {
"disable_billing_plans": true,
"display_disclaimers": true,
"full_external_management": true,
"platform_id": "411486491630370816",
"store_platform": "string",
"associated_platform": {
"id": "411486491630370816",
"accent_color": "string",
"business_name": "string",
"capabilities": [
"invalid"
],
"country_code": "string",
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"logo_url": "string",
"name": "string",
"slug": "string",
"type": "invalid",
"website_url": "string",
"disabled_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
},
"connected_platform_fee_percentage": 0,
"connected_platform_wallet_id": "411486491630370816",
"paynow_platform_fee_percentage_override": 0
},
"support_email": "string",
"support_url": "string",
"updated_at": "2024-01-01T00:00:00Z",
"website_url": "string"
}Update a store
Partially updates a store's configuration using the provided fields.
Authorization: APIKey TOKEN.Show fieldsHide fields
platform_store_type_associationPlatformStoreTypeAssociationDetailsDtoOptional
associated_platformPublicPlatformDtoOptional
invalidconnected_users
invalidmarketplacestore_platformother
Failed requests return a PayNowError body. See the error response guide.
curl -X PATCH "https://api.paynow.gg/v1/stores/{storeId}" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"contact_email": "string",
"description": "string",
"game": "string",
"integration_type": "string",
"live_mode": true,
"minecraft_bedrock_username_prefix": "string",
"name": "string",
"platform": "string",
"slug": "string",
"support_email": "string",
"support_url": "string",
"website_url": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.store.updateStore({
contact_email: "string",
description: "string",
game: "string",
integration_type: "string",
live_mode: true,
minecraft_bedrock_username_prefix: "string",
name: "string",
platform: "string",
slug: "string",
support_email: "string",
support_url: "string",
website_url: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"contact_email": "string",
"description": "string",
"game": "string",
"integration_type": "string",
"live_mode": True,
"minecraft_bedrock_username_prefix": "string",
"name": "string",
"platform": "string",
"slug": "string",
"support_email": "string",
"support_url": "string",
"website_url": "string",
}
response = requests.patch("https://api.paynow.gg/v1/stores/{storeId}", headers=headers, json=payload){
"id": "411486491630370816",
"currency": "string",
"description": "string",
"game": "string",
"live_mode": true,
"name": "string",
"owner_id": "411486491630370816",
"platform": "string",
"slug": "string",
"contact_email": "string",
"created_at": "2024-01-01T00:00:00Z",
"integration_type": "string",
"logo_square_url": "string",
"logo_url": "string",
"minecraft_bedrock_username_prefix": "string",
"onboarding_completed_at": "2024-01-01T00:00:00Z",
"platform_store_type_association": {
"disable_billing_plans": true,
"display_disclaimers": true,
"full_external_management": true,
"platform_id": "411486491630370816",
"store_platform": "string",
"associated_platform": {
"id": "411486491630370816",
"accent_color": "string",
"business_name": "string",
"capabilities": [
"invalid"
],
"country_code": "string",
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"logo_url": "string",
"name": "string",
"slug": "string",
"type": "invalid",
"website_url": "string",
"disabled_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
},
"connected_platform_fee_percentage": 0,
"connected_platform_wallet_id": "411486491630370816",
"paynow_platform_fee_percentage_override": 0
},
"support_email": "string",
"support_url": "string",
"updated_at": "2024-01-01T00:00:00Z",
"website_url": "string"
}List store members
Retrieves all members who have access to the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
userStoreMemberUserDtoRequiredRepresents identity and profile information for a store member.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
added_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}/members" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.store.getStoreMembers();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/members", headers=headers)[
{
"id": "411486491630370816",
"user": {
"id": "411486491630370816",
"type": "anonymous",
"email": "string",
"first_name": "string",
"last_name": "string",
"nickname": "string"
},
"user_id": "411486491630370816",
"added_at": "2024-01-01T00:00:00Z",
"added_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"role_id": "411486491630370816"
}
]Get store member permissions
Retrieves the resolved permissions map for a specific member of a store.
Authorization: APIKey TOKEN.curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/members/{memberId}/permissions" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.store.getStoreMemberPermissions("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/members/{memberId}/permissions", headers=headers){}Update a store member
Updates the role assigned to a specific member of the store.
Authorization: APIKey TOKEN.curl -X PATCH "https://api.paynow.gg/v1/stores/{storeId}/members/{memberId}" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"role_id": "411486491630370816"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.store.updateStoreMember("411486491630370816", {
role_id: "411486491630370816",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"role_id": "411486491630370816",
}
response = requests.patch("https://api.paynow.gg/v1/stores/{storeId}/members/{memberId}", headers=headers, json=payload)Remove a store member
Removes the specified member from the store, revoking their access.
Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/stores/{storeId}/members/{memberId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.store.kickStoreMember("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/stores/{storeId}/members/{memberId}", headers=headers)Get upload URL for store logo
Gets a pre-signed upload URL for uploading a logo to a store.
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}/logo-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.store.getStoreLogoUploadUrl();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/logo-upload-url", headers=headers){
"id": "string",
"upload_url": "string"
}Finish store logo upload
Finishes a logo upload for a store, attaching the uploaded image to the store.
Authorization: APIKey TOKEN.curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/logo-upload-finish" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"image_id": "string",
"logo_type": 0
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.store.finishStoreLogoUpload({
image_id: "string",
logo_type: 0,
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"image_id": "string",
"logo_type": 0,
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/logo-upload-finish", headers=headers, json=payload)Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/stores/{storeId}/logo" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.store.deleteStoreLogo();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/stores/{storeId}/logo", headers=headers)