customerPriceGroup
query · in the family Customer price group
What it does
Look up one record — a customer price group — named customers who get special pricing.
One CustomerPriceGroup by id. The record must belong to your organization group; an id from another group reads as not found.
Before you call
A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.
Capability area: Reading your records — Looking up and listing the records of your organization.
Roles that may call it:
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- An API key whose scope allows
api:customerPriceGroup
What happens
Reads only — changes nothing.
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
id | ID ID! | yes | The id of the record. |
Returns
CustomerPriceGroup — A CustomerPriceGroup — the customer-classification / pricing-ELIGIBILITY axis (retail tiers: standard · member · vip · wholesale_lite — merchant-defined, the registry's roster is illustrative). An eligibility KEY, NOT a price store: the group carries NO rate fields — its benefits are expressed exclusively promotions scoped to it; the priceListId carrier is live while the group itself stays rate-field-FREE (the anti-price-plane guard's letter: the plane is the PriceList's, the group is the eligibility KEY + the carrier). The axis law: CustomerPriceGroup = pricing eligibility · Segment = marketing audience · CorporateCustomer = B2B identity — three distinct axes a customer may carry independently. Assignment v1 rides the LoyaltyMember carrier. Resolution degrades: anonymous / no member / no group / group non-ACTIVE-or-deselected ⇒ no eligibility — a lapsed group never kills a cart. Org participation is the canned-pool selection (≤ 32; absent = every org). At most 32 active per org group. Doom is gated by non-doomed LoyaltyMembers carrying the group; deactivate stays free (a paused group's scoped promotions simply stop matching). NO code/identity — no uniq marker (nothing bearer-resolvable rides a group).
Example request
query ExampleCustomerPriceGroup($id: ID!) {
customerPriceGroup(id: $id) {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
organizationIds
priceListId
}
}Variables:
{
"id": "01900000-0000-7000-8000-275385110000"
}Example response
{
"data": {
"customerPriceGroup": {
"id": "01900000-0000-7000-8000-275385110000",
"sysId": "PG-EXMP-0000-000F",
"type": "CustomerPriceGroup",
"caption": "Blue jeans",
"status": "active",
"parentId": "01900000-0000-7000-8000-eacdfcfd0000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-53c6eea90000",
"organizationIds": [
"01900000-0000-7000-8000-1971e30a0000"
],
"priceListId": "01900000-0000-7000-8000-41fd9d260000"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. Retry: no. (NOT_FOUND)