Delivery
Get delivery items associated with an order
Retrieves all delivery items associated with a specific order.
Authorization: APIKey TOKEN.Show fieldsHide fields
command_attemptsCommandAttemptDto[]RequiredThe command execution attempts for this delivery item
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.
productDeliveryItemProductDtoRequiredRepresents the product information for a delivery item
usableactiveusedrevokedrenewed
added_byActorDtoOptional
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
order_customerCustomerDtoOptionalRepresents 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.
revoked_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}/orders/{orderId}/delivery/items" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.delivery.getOrderDeliveryItems("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/orders/{orderId}/delivery/items", headers=headers)[
{
"added_at": "2024-01-01T00:00:00Z",
"command_attempts": [
{
"command": "string",
"gameserver_id": "411486491630370816",
"id": "411486491630370816",
"online_only": true,
"queued_at": "2024-01-01T00:00:00Z",
"rerun": true,
"store_id": "411486491630370816",
"inventory_item_id": "411486491630370816",
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"customer_name": "string",
"customer_id": "411486491630370816",
"command_stage": "string",
"executed_at": "2024-01-01T00:00:00Z",
"executed_by_ip": "string",
"unqueued_at": "2024-01-01T00:00:00Z"
}
],
"custom_variables": {},
"customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"customer_id": "411486491630370816",
"expirable": true,
"gift": true,
"id": "411486491630370816",
"product": {
"id": "411486491630370816",
"name": "Premium Membership",
"slug": "premium-membership",
"version_id": "v2.1.0"
},
"skip_commands": true,
"state": "usable",
"store_id": "411486491630370816",
"order_customer_id": "411486491630370816",
"order_customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"order_id": "411486491630370816",
"order_line_id": "411486491630370816",
"subscription_id": "411486491630370816",
"trial_id": "411486491630370816",
"execute_on_gameserver_id": "411486491630370816",
"quantity_index": 0,
"added_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"active_at": "2024-01-01T00:00:00Z",
"expires_at": "2024-01-01T00:00:00Z",
"override_expires_at": "2024-01-01T00:00:00Z",
"removed_at": "2024-01-01T00:00:00Z",
"revoked_at": "2024-01-01T00:00:00Z",
"revoke_reason": "string",
"revoked_by": {
"type": "anonymous",
"id": "411486491630370816"
}
}
]Get all delivery items
Retrieves all delivery items associated with this store (paginated)
Authorization: APIKey TOKEN.Show fieldsHide fields
command_attemptsCommandAttemptDto[]RequiredThe command execution attempts for this delivery item
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.
productDeliveryItemProductDtoRequiredRepresents the product information for a delivery item
usableactiveusedrevokedrenewed
added_byActorDtoOptional
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
order_customerCustomerDtoOptionalRepresents 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.
revoked_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}/delivery/items" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.delivery.getStoreDeliveryItems();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/delivery/items", headers=headers)[
{
"added_at": "2024-01-01T00:00:00Z",
"command_attempts": [
{
"command": "string",
"gameserver_id": "411486491630370816",
"id": "411486491630370816",
"online_only": true,
"queued_at": "2024-01-01T00:00:00Z",
"rerun": true,
"store_id": "411486491630370816",
"inventory_item_id": "411486491630370816",
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"customer_name": "string",
"customer_id": "411486491630370816",
"command_stage": "string",
"executed_at": "2024-01-01T00:00:00Z",
"executed_by_ip": "string",
"unqueued_at": "2024-01-01T00:00:00Z"
}
],
"custom_variables": {},
"customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"customer_id": "411486491630370816",
"expirable": true,
"gift": true,
"id": "411486491630370816",
"product": {
"id": "411486491630370816",
"name": "Premium Membership",
"slug": "premium-membership",
"version_id": "v2.1.0"
},
"skip_commands": true,
"state": "usable",
"store_id": "411486491630370816",
"order_customer_id": "411486491630370816",
"order_customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"order_id": "411486491630370816",
"order_line_id": "411486491630370816",
"subscription_id": "411486491630370816",
"trial_id": "411486491630370816",
"execute_on_gameserver_id": "411486491630370816",
"quantity_index": 0,
"added_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"active_at": "2024-01-01T00:00:00Z",
"expires_at": "2024-01-01T00:00:00Z",
"override_expires_at": "2024-01-01T00:00:00Z",
"removed_at": "2024-01-01T00:00:00Z",
"revoked_at": "2024-01-01T00:00:00Z",
"revoke_reason": "string",
"revoked_by": {
"type": "anonymous",
"id": "411486491630370816"
}
}
]Assign delivery items in bulk
Allows you to assign multiple delivery items for multiple customers in bulk
Authorization: APIKey TOKEN.Show fieldsHide fields
command_attemptsCommandAttemptDto[]RequiredThe command execution attempts for this delivery item
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.
productDeliveryItemProductDtoRequiredRepresents the product information for a delivery item
usableactiveusedrevokedrenewed
added_byActorDtoOptional
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
order_customerCustomerDtoOptionalRepresents 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.
revoked_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}/delivery/items" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '[
{
"customer_id": "411486491630370816",
"product_version_id": "411486491630370816",
"execute_on_gameserver_id": "411486491630370816",
"quantity": 0,
"override_expires_at": "2024-01-01T00:00:00Z",
"skip_commands": true,
"custom_variables": {}
}
]'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.delivery.assignDeliveryItemsBulk([
{
customer_id: "411486491630370816",
product_version_id: "411486491630370816",
execute_on_gameserver_id: "411486491630370816",
quantity: 0,
override_expires_at: "2024-01-01T00:00:00Z",
skip_commands: true,
custom_variables: {},
},
]);import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = [
{
"customer_id": "411486491630370816",
"product_version_id": "411486491630370816",
"execute_on_gameserver_id": "411486491630370816",
"quantity": 0,
"override_expires_at": "2024-01-01T00:00:00Z",
"skip_commands": True,
"custom_variables": {},
},
]
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/delivery/items", headers=headers, json=payload)[
{
"added_at": "2024-01-01T00:00:00Z",
"command_attempts": [
{
"command": "string",
"gameserver_id": "411486491630370816",
"id": "411486491630370816",
"online_only": true,
"queued_at": "2024-01-01T00:00:00Z",
"rerun": true,
"store_id": "411486491630370816",
"inventory_item_id": "411486491630370816",
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"customer_name": "string",
"customer_id": "411486491630370816",
"command_stage": "string",
"executed_at": "2024-01-01T00:00:00Z",
"executed_by_ip": "string",
"unqueued_at": "2024-01-01T00:00:00Z"
}
],
"custom_variables": {},
"customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"customer_id": "411486491630370816",
"expirable": true,
"gift": true,
"id": "411486491630370816",
"product": {
"id": "411486491630370816",
"name": "Premium Membership",
"slug": "premium-membership",
"version_id": "v2.1.0"
},
"skip_commands": true,
"state": "usable",
"store_id": "411486491630370816",
"order_customer_id": "411486491630370816",
"order_customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"order_id": "411486491630370816",
"order_line_id": "411486491630370816",
"subscription_id": "411486491630370816",
"trial_id": "411486491630370816",
"execute_on_gameserver_id": "411486491630370816",
"quantity_index": 0,
"added_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"active_at": "2024-01-01T00:00:00Z",
"expires_at": "2024-01-01T00:00:00Z",
"override_expires_at": "2024-01-01T00:00:00Z",
"removed_at": "2024-01-01T00:00:00Z",
"revoked_at": "2024-01-01T00:00:00Z",
"revoke_reason": "string",
"revoked_by": {
"type": "anonymous",
"id": "411486491630370816"
}
}
]Unqueue commands by Attempt IDs
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/stores/{storeId}/delivery/commands/unqueue" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"attempt_ids": [
"411486491630370816"
]
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.delivery.unqueueDeliveryCommandAttemptByAttemptIDs({
attempt_ids: [
"411486491630370816",
],
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"attempt_ids": [
"411486491630370816",
],
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/delivery/commands/unqueue", headers=headers, json=payload){
"unqueued_count": 0
}Get delivery items associated with a customer
Retrieves delivery items associated with a customer
Authorization: APIKey TOKEN.Show fieldsHide fields
command_attemptsCommandAttemptDto[]RequiredThe command execution attempts for this delivery item
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.
productDeliveryItemProductDtoRequiredRepresents the product information for a delivery item
usableactiveusedrevokedrenewed
added_byActorDtoOptional
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
order_customerCustomerDtoOptionalRepresents 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.
revoked_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}/customers/{customerId}/delivery/items" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.delivery.getCustomerDeliveryItems("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/delivery/items", headers=headers)[
{
"added_at": "2024-01-01T00:00:00Z",
"command_attempts": [
{
"command": "string",
"gameserver_id": "411486491630370816",
"id": "411486491630370816",
"online_only": true,
"queued_at": "2024-01-01T00:00:00Z",
"rerun": true,
"store_id": "411486491630370816",
"inventory_item_id": "411486491630370816",
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"customer_name": "string",
"customer_id": "411486491630370816",
"command_stage": "string",
"executed_at": "2024-01-01T00:00:00Z",
"executed_by_ip": "string",
"unqueued_at": "2024-01-01T00:00:00Z"
}
],
"custom_variables": {},
"customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"customer_id": "411486491630370816",
"expirable": true,
"gift": true,
"id": "411486491630370816",
"product": {
"id": "411486491630370816",
"name": "Premium Membership",
"slug": "premium-membership",
"version_id": "v2.1.0"
},
"skip_commands": true,
"state": "usable",
"store_id": "411486491630370816",
"order_customer_id": "411486491630370816",
"order_customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"order_id": "411486491630370816",
"order_line_id": "411486491630370816",
"subscription_id": "411486491630370816",
"trial_id": "411486491630370816",
"execute_on_gameserver_id": "411486491630370816",
"quantity_index": 0,
"added_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"active_at": "2024-01-01T00:00:00Z",
"expires_at": "2024-01-01T00:00:00Z",
"override_expires_at": "2024-01-01T00:00:00Z",
"removed_at": "2024-01-01T00:00:00Z",
"revoked_at": "2024-01-01T00:00:00Z",
"revoke_reason": "string",
"revoked_by": {
"type": "anonymous",
"id": "411486491630370816"
}
}
]Assign a delivery item to a customer
Allows you to assign a delivery item to a customer
Authorization: APIKey TOKEN.Show fieldsHide fields
command_attemptsCommandAttemptDto[]RequiredThe command execution attempts for this delivery item
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.
productDeliveryItemProductDtoRequiredRepresents the product information for a delivery item
usableactiveusedrevokedrenewed
added_byActorDtoOptional
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
order_customerCustomerDtoOptionalRepresents 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.
revoked_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}/customers/{customerId}/delivery/items" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"execute_on_gameserver_id": "411486491630370816",
"quantity": 0,
"override_expires_at": "2024-01-01T00:00:00Z",
"skip_commands": true,
"custom_variables": {}
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.delivery.assignDeliveryItem("411486491630370816", {
product_id: "411486491630370816",
product_version_id: "411486491630370816",
execute_on_gameserver_id: "411486491630370816",
quantity: 0,
override_expires_at: "2024-01-01T00:00:00Z",
skip_commands: true,
custom_variables: {},
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"execute_on_gameserver_id": "411486491630370816",
"quantity": 0,
"override_expires_at": "2024-01-01T00:00:00Z",
"skip_commands": True,
"custom_variables": {},
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/delivery/items", headers=headers, json=payload)[
{
"added_at": "2024-01-01T00:00:00Z",
"command_attempts": [
{
"command": "string",
"gameserver_id": "411486491630370816",
"id": "411486491630370816",
"online_only": true,
"queued_at": "2024-01-01T00:00:00Z",
"rerun": true,
"store_id": "411486491630370816",
"inventory_item_id": "411486491630370816",
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"customer_name": "string",
"customer_id": "411486491630370816",
"command_stage": "string",
"executed_at": "2024-01-01T00:00:00Z",
"executed_by_ip": "string",
"unqueued_at": "2024-01-01T00:00:00Z"
}
],
"custom_variables": {},
"customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"customer_id": "411486491630370816",
"expirable": true,
"gift": true,
"id": "411486491630370816",
"product": {
"id": "411486491630370816",
"name": "Premium Membership",
"slug": "premium-membership",
"version_id": "v2.1.0"
},
"skip_commands": true,
"state": "usable",
"store_id": "411486491630370816",
"order_customer_id": "411486491630370816",
"order_customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"order_id": "411486491630370816",
"order_line_id": "411486491630370816",
"subscription_id": "411486491630370816",
"trial_id": "411486491630370816",
"execute_on_gameserver_id": "411486491630370816",
"quantity_index": 0,
"added_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"active_at": "2024-01-01T00:00:00Z",
"expires_at": "2024-01-01T00:00:00Z",
"override_expires_at": "2024-01-01T00:00:00Z",
"removed_at": "2024-01-01T00:00:00Z",
"revoked_at": "2024-01-01T00:00:00Z",
"revoke_reason": "string",
"revoked_by": {
"type": "anonymous",
"id": "411486491630370816"
}
}
]Revoke a delivery item from a customer
Allows you to revoke a delivery item associated with a customer
Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/delivery/items/{deliveryItemId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.delivery.revokeDeliveryItem("411486491630370816", "411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/delivery/items/{deliveryItemId}", headers=headers)Get command attempts associated with a customer
Retrieves command attempts associated with a customer
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}/customers/{customerId}/delivery/commands" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.delivery.getCommandAttemptsForCustomer("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/delivery/commands", headers=headers)[
{
"command": "string",
"gameserver_id": "411486491630370816",
"id": "411486491630370816",
"online_only": true,
"queued_at": "2024-01-01T00:00:00Z",
"rerun": true,
"store_id": "411486491630370816",
"inventory_item_id": "411486491630370816",
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"customer_name": "string",
"customer_id": "411486491630370816",
"command_stage": "string",
"executed_at": "2024-01-01T00:00:00Z",
"executed_by_ip": "string",
"unqueued_at": "2024-01-01T00:00:00Z"
}
]Returns delivery items in which an associated command attempt is for the gameserver
Authorization: APIKey TOKEN.Show fieldsHide fields
command_attemptsCommandAttemptDto[]RequiredThe command execution attempts for this delivery item
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.
productDeliveryItemProductDtoRequiredRepresents the product information for a delivery item
usableactiveusedrevokedrenewed
added_byActorDtoOptional
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
order_customerCustomerDtoOptionalRepresents 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.
revoked_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}/gameservers/{gameServerId}/delivery/items" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.delivery.getGameServerDeliveryItems("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/delivery/items", headers=headers)[
{
"added_at": "2024-01-01T00:00:00Z",
"command_attempts": [
{
"command": "string",
"gameserver_id": "411486491630370816",
"id": "411486491630370816",
"online_only": true,
"queued_at": "2024-01-01T00:00:00Z",
"rerun": true,
"store_id": "411486491630370816",
"inventory_item_id": "411486491630370816",
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"customer_name": "string",
"customer_id": "411486491630370816",
"command_stage": "string",
"executed_at": "2024-01-01T00:00:00Z",
"executed_by_ip": "string",
"unqueued_at": "2024-01-01T00:00:00Z"
}
],
"custom_variables": {},
"customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"customer_id": "411486491630370816",
"expirable": true,
"gift": true,
"id": "411486491630370816",
"product": {
"id": "411486491630370816",
"name": "Premium Membership",
"slug": "premium-membership",
"version_id": "v2.1.0"
},
"skip_commands": true,
"state": "usable",
"store_id": "411486491630370816",
"order_customer_id": "411486491630370816",
"order_customer": {
"created_at": "2024-01-01T00:00:00Z",
"id": "411486491630370816",
"metadata": {},
"store_id": "411486491630370816",
"profile": {
"id": "string",
"name": "string",
"platform": "steam",
"avatar_url": "string"
},
"steam_id": "76561197960287930",
"steam": {
"avatar_url": "string",
"id": "76561197960287930",
"name": "string"
},
"minecraft_uuid": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"minecraft": {
"avatar_url": "string",
"id": "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2",
"name": "notch"
},
"xbox_xuid": "string",
"minecraft_platform": "unknown",
"name": "m0uka",
"updated_at": "2024-01-01T00:00:00Z"
},
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"order_id": "411486491630370816",
"order_line_id": "411486491630370816",
"subscription_id": "411486491630370816",
"trial_id": "411486491630370816",
"execute_on_gameserver_id": "411486491630370816",
"quantity_index": 0,
"added_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"active_at": "2024-01-01T00:00:00Z",
"expires_at": "2024-01-01T00:00:00Z",
"override_expires_at": "2024-01-01T00:00:00Z",
"removed_at": "2024-01-01T00:00:00Z",
"revoked_at": "2024-01-01T00:00:00Z",
"revoke_reason": "string",
"revoked_by": {
"type": "anonymous",
"id": "411486491630370816"
}
}
]Resend commands for a given Gameserver
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/stores/{storeId}/gameservers/{gameServerId}/delivery/commands/resend" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"starts_at": "2024-01-01T00:00:00Z",
"ends_at": "2024-01-01T00:00:00Z",
"inventory_item_id": "411486491630370816",
"customer_id": "411486491630370816",
"order_id": "411486491630370816",
"product_id": "411486491630370816",
"subscription_id": "411486491630370816"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.delivery.resendDeliveryCommandsForGameServer("411486491630370816", {
starts_at: "2024-01-01T00:00:00Z",
ends_at: "2024-01-01T00:00:00Z",
inventory_item_id: "411486491630370816",
customer_id: "411486491630370816",
order_id: "411486491630370816",
product_id: "411486491630370816",
subscription_id: "411486491630370816",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"starts_at": "2024-01-01T00:00:00Z",
"ends_at": "2024-01-01T00:00:00Z",
"inventory_item_id": "411486491630370816",
"customer_id": "411486491630370816",
"order_id": "411486491630370816",
"product_id": "411486491630370816",
"subscription_id": "411486491630370816",
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/delivery/commands/resend", headers=headers, json=payload){
"enqueued_commands_count": 0
}