Sitecore OrderCloud Documentation

docs

Portal login

Get a single user access token.

POST

/buyers/{buyerID}/users/{userID}/accesstoken

200

Roles

At least one of the roles below is required to access this endpoint.

FullAccessBuyerImpersonation

Parameters

NameTypeDescriptionPossible Values
buyerIDRequiredstringID of the buyer.---
userIDRequiredstringID of the user.---

Request Body

PropertyTypeFormatMax LengthPossible Values
ClientIDRequiredstring---------
RolesRequiredarray---------
CustomRolesarray---------

Response Body

PropertyTypeFormatMax LengthPossible Values
access_tokenstring---------
expires_inintegerint32------
token_typestring---------
refresh_tokenstring---------

Get a single user access token.

POST

/buyers/{buyerID}/users/{userID}/accesstoken

200

Roles

At least one of the roles below is required to access this endpoint.

FullAccessBuyerImpersonation

Parameters

NameTypeDescriptionPossible Values
buyerIDRequiredstringID of the buyer.---
userIDRequiredstringID of the user.---

Request Body

PropertyTypeFormatMax LengthPossible Values
ClientIDRequiredstring---------
RolesRequiredarray---------
CustomRolesarray---------

Response Body

PropertyTypeFormatMax LengthPossible Values
access_tokenstring---------
expires_inintegerint32------
token_typestring---------
refresh_tokenstring---------
Sitecore Logo

© Copyright 2024, Sitecore OrderCloud®. All rights reserved.

Contact Us
Privacy Policy
Sitecore