Customers
Get customers
Retrieves all customers for the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
minecraftCustomerMinecraftProfileDtoOptionalRepresents a Minecraft profile for a customer.
unknownjavabedrock
profileCustomerGenericProfileDtoOptionalRepresents a generic platform profile for a customer.
steamCustomerSteamProfileDtoOptionalRepresents a Steam profile for a customer.
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/customers" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.customers.getCustomers();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/customers", headers=headers)[
{
"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"
}
]Create customer
Creates a new customer based on the fields passed.
Authorization: APIKey TOKEN.unknownjavabedrock
Show fieldsHide fields
minecraftCustomerMinecraftProfileDtoOptionalRepresents a Minecraft profile for a customer.
unknownjavabedrock
profileCustomerGenericProfileDtoOptionalRepresents a generic platform profile for a customer.
steamCustomerSteamProfileDtoOptionalRepresents a Steam profile for a customer.
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/customers" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"minecraft_platform": "unknown",
"xbox_xuid": "string",
"name": "string",
"metadata": {}
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.customers.createCustomer({
steam_id: "76561197960287930",
minecraft_uuid: "string",
minecraft_platform: "unknown",
xbox_xuid: "string",
name: "string",
metadata: {},
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"minecraft_platform": "unknown",
"xbox_xuid": "string",
"name": "string",
"metadata": {},
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/customers", headers=headers, json=payload){
"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"
}Get customer by ID
Retrieves a customer by the ID for the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
minecraftCustomerMinecraftProfileDtoOptionalRepresents a Minecraft profile for a customer.
unknownjavabedrock
profileCustomerGenericProfileDtoOptionalRepresents a generic platform profile for a customer.
steamCustomerSteamProfileDtoOptionalRepresents a Steam profile for a customer.
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.customers.getCustomerById("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}", headers=headers){
"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"
}Update customer
Updates an existing customer based on the fields passed.
Authorization: APIKey TOKEN.unknownjavabedrock
Show fieldsHide fields
minecraftCustomerMinecraftProfileDtoOptionalRepresents a Minecraft profile for a customer.
unknownjavabedrock
profileCustomerGenericProfileDtoOptionalRepresents a generic platform profile for a customer.
steamCustomerSteamProfileDtoOptionalRepresents a Steam profile for a customer.
Failed requests return a PayNowError body. See the error response guide.
curl -X PATCH "https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"minecraft_platform": "unknown",
"xbox_xuid": "string",
"name": "string",
"metadata": {}
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.customers.updateCustomer("411486491630370816", {
steam_id: "76561197960287930",
minecraft_uuid: "string",
minecraft_platform: "unknown",
xbox_xuid: "string",
name: "string",
metadata: {},
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"minecraft_platform": "unknown",
"xbox_xuid": "string",
"name": "string",
"metadata": {},
}
response = requests.patch("https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}", headers=headers, json=payload){
"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"
}Create customer token
Generates a customer token that can be used by the Storefront (Headless) API.
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}/customers/{customerId}/tokens" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.customers.createCustomerToken("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/tokens", headers=headers){
"token": "string"
}Invalidate customer tokens
Invalidates all generated customer tokens.
Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/tokens" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.customers.invalidateCustomerTokens("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/stores/{storeId}/customers/{customerId}/tokens", headers=headers)Lookup customer
Looks up a customer by an external platform ID.
Authorization: APIKey TOKEN.Show fieldsHide fields
minecraftCustomerMinecraftProfileDtoOptionalRepresents a Minecraft profile for a customer.
unknownjavabedrock
profileCustomerGenericProfileDtoOptionalRepresents a generic platform profile for a customer.
steamCustomerSteamProfileDtoOptionalRepresents a Steam profile for a customer.
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/customers/lookup" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.customers.lookupCustomer();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/customers/lookup", headers=headers){
"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"
}Bulk create customers
Creates up to 200 customers at once.
Authorization: APIKey TOKEN.unknownjavabedrock
Show fieldsHide fields
minecraftCustomerMinecraftProfileDtoOptionalRepresents a Minecraft profile for a customer.
unknownjavabedrock
profileCustomerGenericProfileDtoOptionalRepresents a generic platform profile for a customer.
steamCustomerSteamProfileDtoOptionalRepresents a Steam profile for a customer.
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/customers/bulk" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '[
{
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"minecraft_platform": "unknown",
"xbox_xuid": "string",
"name": "string",
"metadata": {}
}
]'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.customers.bulkCreateCustomers([
{
steam_id: "76561197960287930",
minecraft_uuid: "string",
minecraft_platform: "unknown",
xbox_xuid: "string",
name: "string",
metadata: {},
},
]);import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = [
{
"steam_id": "76561197960287930",
"minecraft_uuid": "string",
"minecraft_platform": "unknown",
"xbox_xuid": "string",
"name": "string",
"metadata": {},
},
]
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/customers/bulk", headers=headers, json=payload)[
{
"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"
}
]