novinzodevelopers
API referenceCore for pluginsSigned in customer

Current

GET/api/storefront/customer

The customer the storefront visitor whose request the calling plugin handles is signed in as: their id, their email and whether they verified it. Null for a guest, an expired session, a customer the store no longer has, and every invocation the storefront did not mint for a visitor's request to the plugin's public routes, such as a webhook's. The customer comes from the invocation token, never from the request. Requires the store to have granted the plugin customers:read.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/storefront/customer"
{  "customer": {    "id": "string",    "email": "string",    "emailVerified": true  }}