---
schema_version: "1"
id: 659361423e434b2c7457ce486f6faa8a3d7c4a4fd6a8aa5e32d0d107ed969bdc
title: Recommendation Decisions
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/connect_resources_recommendation_decisions.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/connect_resources_recommendation_decisions.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c581678942626233474143609d8f75ce8fee6c8026773c575e6864c3e1c7ff27
description: Save visit or task recommendation decisions.
---
# Recommendation Decisions

Save visit or task recommendation decisions.

## Resource

services/data/vXX.X/connect/visit/recommendations/recommendation-decisions

## Available Version

51.0

## Requires Chatter

No

## HTTP Methods

POST

## Request Body for POST

### JSON Example

{  "recommendationDecision": "Accept",
  "recommendationIds": \["9Tuxx0000004Eu0CAE"\],
}

### Properties

| Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| recommendation​Decision | String | The unique identifier of a recommendation decision that is taken for recommendations. | Required | 51.0 |
| recommendation​DecisionParams | Map<String, String> | The unique identifier of the other parameters that are relevant to process the decision taken. | Optional | 51.0 |
| recommendationIds | String\[\] | The unique identifier of the recommendations for which the recommendation decision is taken. | Required | 51.0 |

## Response Body for POST

[Recommendation Decisions Output](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/connect_responses_recommendation_decisions_output.htm "Details of recommendation decision processed for the input recommendations.")

### Sample Response Body

{
  "recommendationDecisionDetails" : \[ {
    "message" : "Visit cannot be created in the past date",
    "isSuccess" : false,
    "recommendationId" : "9Tuxx0000004Eu0CAE"
  },
  {
    "message" : "",
    "isSuccess" : true,
    "recommendationId" : "9Tuxx0000004Eu0CAE"
  }
  \],
  "status" : {
    "code" : "200",
    "message" : "70 out of 80 visits are scheduled."
    “totalRecommendations” : 80
    “successCount: : 70
  }
}