getPromotionTemplate
get
                    /ccadmin/v1/promotionTemplates/{id}
Get Promotion Template. Get a promotion template by path (type) and name.
                Request
Supported Media Types
                - application/json
Path Parameters
                - 
                    id: string
                    
                    The promotion template name.
Query Parameters
                - 
                        format(optional): boolean
                        
                        Flag indicating that the response should follow standard formatting rules including an items and links array.
- 
                        path(optional): string
                        
                        The promotion template type (path).
Response
Supported Media Types
                - application/json
200 Response
Following model is returned when operation succeeds.
                
                
                    Root Schema : getPromotionTemplate_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            items(optional): 
            array  items
            
            Array of templateValues placeholders which correspond to the templateValues input needed when creating a promotion using this template.
- 
            links(optional): 
            object  links
            
            The links referring to this response, and any applicable next or previous parts of the response. This is based on the total results, limit, and offset.
Nested Schema : items
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayArray of templateValues placeholders which correspond to the templateValues input needed when creating a promotion using this template.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : links
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectThe links referring to this response, and any applicable next or previous parts of the response. This is based on the total results, limit, and offset.
    
    
    
    
    
    
    
    
    
    
Example Response (application/json)
                    {
    "links":[
        {
            "rel":"self",
            "href":"/promotionTemplates/getItemDiscount?path=item"
        }
    ],
    "items":[
        "discount_type_value",
        "discount_value",
        "no_of_items_to_discount",
        "sort_order",
        "PSC_Value"
    ]
}Default Response
The error response.
 The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|21103|The promotion template is not supported for path {0} and name {1}.|
|21100|Promotion template path must be provided.|
|21009|Internal Error.|
                
                
                    Root Schema : errorModel
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
- 
            errorCode(optional): 
            string
            The numerical code identifying the error
- 
            errors(optional): 
            array  errors
            
            An optional list of errors if multiple errors were encountered
- 
            message(optional): 
            string
            The localized message describing the error
- 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
- 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
- 
            status(optional): 
            string
            The HTTP status code
- 
            type(optional): 
            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(optional): 
            string
            An optional non-localized message containing technical information for developers
- 
            errorCode(optional): 
            string
            The numerical code identifying the error
- 
            message(optional): 
            string
            The localized message describing the error
- 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
- 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
- 
            status(optional): 
            string
            The HTTP status code