Customers

Get customers

get

Retrieves all customers for the specified store.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to retrieve customers for.

Example: 411486491630370816
Query parameters
limitinteger · int32 · min: 1 · max: 100Optional

The maximum number of items to return in a single request.

afterstring · flake-idOptional

Returns items after the specified ID. Used for forward pagination through results.

Example: 411486491630370816
beforestring · flake-idOptional

Returns items before the specified ID. Used for backward pagination through results.

Example: 411486491630370816
ascbooleanOptional

Determines the sort order of returned items. When true, items are returned in ascending order. When false, items are returned in descending order.

searchstringOptional
Responses
200

OK

application/json
get
/v1/stores/{storeId}/customers

Create customer

post

Creates a new customer based on the fields passed.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to create the customer for.

Example: 411486491630370816
Body
steam_idstring · steam-idOptional

A 64-bit Steam account identifier. Accepts string or numeric format.

Example: 76561197960287930
minecraft_uuidnull | stringOptional

The Minecraft UUID for the customer.

minecraft_platformstring · enumOptionalPossible values:
xbox_xuidnull | stringOptional

The Xbox XUID (Xbox User ID) for the customer.

namenull | stringOptional

The name of the customer.

metadatanull | objectOptional

Additional customer information stored as key-value pairs.

Responses
200

OK

application/json
post
/v1/stores/{storeId}/customers

Get customer by ID

get

Retrieves a customer by the ID for the specified store.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to retrieve the customer for.

Example: 411486491630370816
customerIdstring · flake-idRequired

The ID of the customer.

Example: 411486491630370816
Responses
200

OK

application/json
get
/v1/stores/{storeId}/customers/{customerId}

Update customer

patch

Updates an existing customer based on the fields passed.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to update the customer for.

Example: 411486491630370816
customerIdstring · flake-idRequiredExample: 411486491630370816
Body
steam_idstring · steam-idOptional

A 64-bit Steam account identifier. Accepts string or numeric format.

Example: 76561197960287930
minecraft_uuidnull | stringOptional

The Minecraft UUID for the customer.

minecraft_platformstring · enumOptionalPossible values:
xbox_xuidnull | stringOptional

The Xbox XUID (Xbox User ID) for the customer.

namenull | stringOptional

The name of the customer.

metadatanull | objectOptional

Additional customer information stored as key-value pairs.

Responses
200

OK

application/json
patch
/v1/stores/{storeId}/customers/{customerId}

Create customer token

post

Generates a customer token that can be used by the Storefront (Headless) API.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to generate the customer token for.

Example: 411486491630370816
customerIdstring · flake-idRequired

The ID of the customer to generate the customer token for.

Example: 411486491630370816
Responses
200

OK

application/json
post
/v1/stores/{storeId}/customers/{customerId}/tokens

Invalidate customer tokens

delete

Invalidates all generated customer tokens.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to invalidate the customer tokens for.

Example: 411486491630370816
customerIdstring · flake-idRequired

The ID of the customer to invalidate the customer tokens for.

Example: 411486491630370816
Responses
delete
/v1/stores/{storeId}/customers/{customerId}/tokens

No content

Lookup customer

get

Looks up a customer by an external platform ID.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to retrieve the customer for.

Example: 411486491630370816
Query parameters
idstringOptional

Looks up customer by PayNow Customer ID.

steam_idstring · steam-idOptional

A 64-bit Steam account identifier. Accepts string or numeric format.

Example: 76561197960287930
minecraft_uuidstringOptional

Looks up customer by a Minecraft UUID.

xbox_xuidstringOptional

Looks up customer by an Xbox XUID.

minecraft_java_namestringOptional

Looks up customer by Minecraft Java name.

minecraft_bedrock_namestringOptional

Looks up customer by Minecraft Bedrock name.

namestringOptional

Looks up customer by a PayNow Customer Name. Name has to be explicitly set in the Customer entity - profile names won't be matched.

Responses
200

OK

application/json
get
/v1/stores/{storeId}/customers/lookup

Bulk create customers

post

Creates up to 200 customers at once.

Authorizations
AuthorizationstringRequired

An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.

Path parameters
storeIdstring · flake-idRequired

The ID of the store to create the customers for.

Example: 411486491630370816
Bodyobject[]
steam_idstring · steam-idOptional

A 64-bit Steam account identifier. Accepts string or numeric format.

Example: 76561197960287930
minecraft_uuidnull | stringOptional

The Minecraft UUID for the customer.

minecraft_platformstring · enumOptionalPossible values:
xbox_xuidnull | stringOptional

The Xbox XUID (Xbox User ID) for the customer.

namenull | stringOptional

The name of the customer.

metadatanull | objectOptional

Additional customer information stored as key-value pairs.

Responses
200

OK

application/json
post
/v1/stores/{storeId}/customers/bulk

Last updated

Was this helpful?