跳转到内容
EN

Customer API

(待译)

Customer holds one directory of end users per organization, shared by every product instead of a copy inside each one: the identified people who signed in and the anonymous visitors admitted with a publishable key, whose sign-ins the directory merges, plus the block, unblock, token revocation and deletion acts. The directory follows Shopify Admin customers (list, retrieve, block, sign-out and data deletion of the people who use a storefront), and sign-in follows Shopify Storefront customer access tokens (a one-time sign-in code, a short access token, renewal and logout), so those experiences apply. Differences: one record serves every product, so a block applies organization-wide and takes effect at the product admission door; a sign-in carries resource scopes of the form agent:<id>:chat, content:<id>:play or application:<id>:visit instead of a storefront binding; and the merchant backend decides entitlement, so the directory records the resources it was handed and never decides them. Start with praxis.customer.grantCodes.create from your backend after your own login, then exchange the code with praxis.customer.accessTokens.create in the browser.