Customer
Authenticate customer
Creates a customer and returns a customer token from a platform account.
invalidsteamSteam profile platform - the ID param must be a Steam ID 64.
minecraftMinecraft profile platform - the ID param must be a Minecraft nick. If your store platform is Geyser, this automatically sets the Minecraft platform based on the prefix configured in store settings.
paynow_namePayNow name profile platform - the ID param must be a PayNow username.
paynowPayNow name profile platform - the ID param must be a PayNow username.
minecraft_java_nameMinecraft Java Profile Platform - the ID param must be a Java minecraft nick.
minecraft_bedrock_nameMinecraft Bedrock Profile Platform - the ID param must be a Bedrock minecraft nick.
xbox_xuidMinecraft Xbox XUID Profile Platform - the ID param must be an xbox xuid
minecraft_uuidMinecraft profile platform - the ID param must be a Minecraft UUID.
Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/store/customer/auth" \
-H "Content-Type: application/json" \
-d '{
"id": "76561198152492642",
"platform": "invalid"
}'import { createStorefrontClient } from "@paynow-gg/typescript-sdk";
const paynow = createStorefrontClient({
storeId: "STORE_ID",
});
const result = await paynow.customer.authenticateStorefrontCustomer({
id: "76561198152492642",
platform: "invalid",
});import requests
payload = {
"id": "76561198152492642",
"platform": "invalid",
}
response = requests.post("https://api.paynow.gg/v1/store/customer/auth", json=payload){
"customer_token": "string"
}Get current customer
Retrieves the current customer from the passed Customer token.
Authorization: Customer 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/store/customer" \
-H "Authorization: Customer TOKEN"import { createStorefrontClient } from "@paynow-gg/typescript-sdk";
const paynow = createStorefrontClient({
storeId: "STORE_ID",
customerToken: "CUSTOMER_TOKEN",
});
const result = await paynow.customer.getStorefrontCustomer();import requests
headers = {"Authorization": "Customer TOKEN"}
response = requests.get("https://api.paynow.gg/v1/store/customer", 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"
}Authorization: Customer TOKEN.Show fieldsHide fields
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/store/customer/giftcards/lookup/{code}" \
-H "Authorization: Customer TOKEN"import { createStorefrontClient } from "@paynow-gg/typescript-sdk";
const paynow = createStorefrontClient({
storeId: "STORE_ID",
customerToken: "CUSTOMER_TOKEN",
});
const result = await paynow.customer.getStorefrontGiftCard("string");import requests
headers = {"Authorization": "Customer TOKEN"}
response = requests.get("https://api.paynow.gg/v1/store/customer/giftcards/lookup/{code}", headers=headers){
"balance": 0,
"code": "string",
"starting_balance": 0,
"expires_at": "2024-01-01T00:00:00Z"
}