onBehalfOf
post
                    /ccagent/v1/onBehalfOf
Generate On-Behalf-Of access token.
                
                Request
Supported Media Types
                - application/json
 
Root Schema : onbehalfof_request
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            shopperProfileId: 
            string
            Profile Id of the Shopper.
 
Response
Supported Media Types
                - application/json
 
200 Response
Following model is returned when operation succeeds.
                
                
                    Root Schema : onbehalfof_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            access_token: 
            string
            Refreshable OAuth token.
 - 
            expires_in: 
            integer
            Time in seconds until token expires.
 - 
            token_type: 
            string
            OAuth token type.
 
Example Response (application/json)
                    {
    "access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MTQxNDk5NTYsInN1YiI6IjExMDU1OCIsImlzcyI6InN0b3JlZnJvbnRVSSIsImlhdCI6MTQxNDE0OTAyNn0=.B9qM0/VKpCNKvjCmOnUPv4RS7mkIDgKcP8RJPaVQGYU=",
    "token_type":"bearer",
    "expires_in":930
}
                    
                    Default Response
The error response
                
                
                    Root Schema : errorModel
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            devMessage: 
            string
            An optional non-localized message containing technical information for developers
 - 
            errorCode: 
            string
            The numerical code identifying the error
 - 
            errors: 
            array  errors
            
            An optional list of errors if multiple errors were encountered
 - 
            message: 
            string
            The localized message describing the error
 - 
            moreInfo: 
            string
            An optional non-localized message with more information
 - 
            o:errorPath: 
            string
            An optional machine readable description of where the error occurred
 - 
            status: 
            string
            The HTTP status code
 - 
            type: 
            string
            The URI to the HTTP state code definition
 
Nested Schema : errors
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayAn optional list of errors if multiple errors were encountered
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            devMessage: 
            string
            An optional non-localized message containing technical information for developers
 - 
            errorCode: 
            string
            The numerical code identifying the error
 - 
            message: 
            string
            The localized message describing the error
 - 
            moreInfo: 
            string
            An optional non-localized message with more information
 - 
            o:errorPath: 
            string
            An optional machine readable description of where the error occurred
 - 
            status: 
            string
            The HTTP status code