Create or update a push subscription.
| Header | Type | Description |
|---|---|---|
Authorization | string | Provide the customer token as Bearer <jwt>. |
x-shop-id | string | Identify the shop. |
Content-Type | string | Always set to application/json. |
| Field | Type | Required | Description |
|---|---|---|---|
subscription | object | Yes | Push subscription object from browser. |
subscription.endpoint | string | Yes | Push service endpoint URL. |
subscription.expirationTime | integer/null | No | Subscription expiration time. |
subscription.keys | object | Yes | Encryption keys object. |
subscription.keys.p256dh | string | Yes | P-256 public key. |
subscription.keys.auth | string | Yes | Authentication secret. |
label | string | No | Device label (e.g., “Chrome Desktop”). |
JWT issued by the Salesive Store API for authenticated shoppers.
Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.
Subscription created