Switch back to parent

​

Switches the current session back from a store/unit context to the parent (multi-unit) context the user switched from. Forbidden if the user has no parent context to switch back to (employee-only user, or not currently switched to a unit). 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·

Optional refresh token; required only when the user authenticates via OAuth, so the OAuth refresh token can be carried over to the parent context.

Responses

  • OK

Request Example for post/v2/Account/SwitchToParent
curl /v2/Account/SwitchToParent \
  --request POST \
  --header 'Content-Type: application/json-patch+json' \
  --header 'DCKey: YOUR_SECRET_TOKEN' \
  --data '{
  "RefreshToken": ""
}'
No Body