Switch store (JWT only)

​

Switches the current store/unit and issues a new JWT access/refresh token pair for the new store context. Unlike SwitchToStore, this endpoint only supports JWT bearer authentication (no cookie sessions). Permissions: All users.

Headers

  • The Integration Key generated for API Authentication by the PAR OPS support team as part of the integration/partnership process.

Body·

Store to switch to and, for OAuth users, the current refresh token so it can be carried over.

Switch store model

  • Refresh token

  • Store identifier

Responses

Request Example for post/v2/Account/SwitchStore
curl /v2/Account/SwitchStore \
  --request POST \
  --header 'Content-Type: application/json-patch+json' \
  --header 'DCKey: YOUR_SECRET_TOKEN' \
  --data '{
  "StoreID": 1,
  "RefreshToken": null
}'
{
  "AccessToken": "string",
  "RefreshToken": "string"
}