v1

latestOpenAPI 3.1.02026-07-241120379.1 KB

Generate session token

This endpoint generates a secure session token used to authenticate Storefront API requests and obtain access and refresh tokens.

post/2023-10/customer/{customerShopifyId}/sessionToken

Path parameters

customerShopifyIdinteger required

The unique identifier of the customer in Shopify.

Response

200

successboolean
messagestring
codestring
{"stackTrail":"paths:/2023-10/customer/{customerShopifyId}/sessionToken:post:responses:200:content:application/json:schema:properties:pageInfo","oasType":"schema","type":"unknown"}

Example response

{
  "success": true,
  "message": "Customer session token generated successfully",
  "data": {
    "sessionToken": "1531a681dbfb425e90b66daf73fd9483"
  },
  "code": "SUCCESS"
}