---
agentTools:
  projectIndex: https://sendinblue.readme.io/llms.txt
---

# Get reward information

Returns reward information.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "contact": {
      "email": "contact@brevo.com",
      "name": "Brevo Support",
      "url": "https://account.brevo.com/support"
    },
    "description": "Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to :\n  - Manage your campaigns and get the statistics\n  - Manage your contacts\n  - Send transactional Emails and SMS\n  - and much more...\n\nYou can download our wrappers at https://github.com/orgs/brevo\n**Possible responses**\n  | Code | Message |\n  | :-------------: | ------------- |\n  | 200  | OK. Successful Request  |\n  | 201  | OK. Successful Creation |\n  | 202  | OK. Request accepted |\n  | 204  | OK. Successful Update/Deletion  |\n  | 400  | Error. Bad Request  |\n  | 401  | Error. Authentication Needed  |\n  | 402  | Error. Not enough credit, plan upgrade needed  |\n  | 403  | Error. Permission denied  |\n  | 404  | Error. Object does not exist |\n  | 405  | Error. Method not allowed  |\n  | 406  | Error. Not Acceptable  |\n  | 422  | Error. Unprocessable Entity |\n",
    "license": {
      "name": "MIT",
      "url": "http://opensource.org/licenses/MIT"
    },
    "title": "Brevo API",
    "version": "3.0.0"
  },
  "servers": [
    {
      "url": "https://api.brevo.com/v3"
    }
  ],
  "security": [
    {
      "api-key": []
    },
    {
      "partner-key": []
    }
  ],
  "paths": {
    "/loyalty/offer/programs/{pid}/rewards/{rid}": {
      "get": {
        "description": "Returns reward information.",
        "parameters": [
          {
            "description": "Loyalty Program ID",
            "in": "path",
            "name": "pid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Reward ID",
            "in": "path",
            "name": "rid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Version",
            "in": "query",
            "name": "version",
            "schema": {
              "default": "draft",
              "enum": [
                "active",
                "draft"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "attributionPerConsumer": {
                      "description": "Maximum number of times a consumer can be attributed this reward",
                      "type": "integer"
                    },
                    "balanceDefinitionId": {
                      "description": "Unique identifier for the balance definition",
                      "format": "uuid",
                      "type": "string"
                    },
                    "code": {
                      "description": "Unique code for the reward",
                      "type": "string"
                    },
                    "codeCount": {
                      "description": "Total number of codes generated",
                      "format": "int64",
                      "type": "integer"
                    },
                    "codeGeneratorId": {
                      "description": "Unique identifier for the code generator",
                      "format": "uuid",
                      "type": "string"
                    },
                    "codePoolId": {
                      "description": "Unique identifier for the code pool",
                      "format": "uuid",
                      "type": "string"
                    },
                    "config": {
                      "description": "Configuration settings for the reward",
                      "type": "string"
                    },
                    "createdAt": {
                      "description": "Timestamp when the reward was created",
                      "format": "date-time",
                      "type": "string"
                    },
                    "disabledAt": {
                      "description": "Disabled date of the reward",
                      "format": "date-time",
                      "type": "string"
                    },
                    "endDate": {
                      "description": "End date of the reward validity",
                      "format": "date-time",
                      "type": "string"
                    },
                    "expirationDate": {
                      "description": "Expiration date of the reward",
                      "format": "date-time",
                      "type": "string"
                    },
                    "expirationModifier": {
                      "default": "noModification",
                      "description": "Select startOfPeriod to configure rewards expiry on start of day/week/month/year. Select endOfPeriod to configure reward expiry on end of day/week/month/year, else select noModification",
                      "enum": [
                        "startOfPeriod",
                        "endOfPeriod",
                        "noModification"
                      ],
                      "type": "string"
                    },
                    "expirationUnit": {
                      "description": "Unit of time for the rewards's availability (e.g., day/week/month/year).",
                      "type": "string"
                    },
                    "expirationValue": {
                      "description": "Number of days/weeks/month/year for reward expiry",
                      "type": "integer"
                    },
                    "generator": {
                      "allOf": [
                        {
                          "properties": {
                            "createdAt": {
                              "description": "Timestamp when the reward was created",
                              "type": "string"
                            },
                            "description": {
                              "description": "Public facing description of the reward",
                              "type": "string"
                            },
                            "id": {
                              "description": "Unique identifier for the reward",
                              "format": "uuid",
                              "type": "string"
                            },
                            "name": {
                              "description": "Name of the reward",
                              "type": "string"
                            },
                            "pattern": {
                              "description": "Generated pattern",
                              "type": "string"
                            },
                            "updatedAt": {
                              "description": "Timestamp when the reward was created",
                              "format": "date-time",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      ],
                      "description": "object"
                    },
                    "id": {
                      "description": "Unique identifier for the reward",
                      "format": "uuid",
                      "type": "string"
                    },
                    "limits": {
                      "description": "Attribution / Redeem Limits for the reward",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Timestamp when the reward limit was created",
                            "format": "date-time",
                            "type": "string"
                          },
                          "durationUnit": {
                            "description": "Unit of time for the reward limit's availability (e.g., day/week/month/year).",
                            "type": "string"
                          },
                          "durationValue": {
                            "description": "Number of days/weeks/month/year for reward limit",
                            "type": "integer"
                          },
                          "limitValue": {
                            "description": "Value of the limit",
                            "type": "integer"
                          },
                          "rewardLimitId": {
                            "description": "Unique identifier for the reward limit",
                            "type": "string"
                          },
                          "slidingSchedule": {
                            "description": "Select true to calculate all redeems/attributions from the previous value of selected durationUnit to the current time",
                            "type": "boolean"
                          },
                          "type": {
                            "description": "Type of reward",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Timestamp when the reward limit was created",
                            "format": "date-time",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "loyaltyProgramId": {
                      "description": "Id of the loyalty program to which the current reward belongs to",
                      "format": "uuid",
                      "type": "string"
                    },
                    "meta": {
                      "additionalProperties": {},
                      "description": "Additional data for reward definition",
                      "type": "object"
                    },
                    "name": {
                      "description": "Name of the reward",
                      "type": "string"
                    },
                    "products": {
                      "description": "Selected products for reward definition",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Timestamp when the product was created",
                            "type": "string"
                          },
                          "imageRef": {
                            "description": "URL of the product image",
                            "type": "string"
                          },
                          "productId": {
                            "description": "Unique identifier for the product",
                            "type": "string"
                          },
                          "value": {
                            "description": "string",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "publicDescription": {
                      "description": "Public description for the reward",
                      "type": "string"
                    },
                    "publicImage": {
                      "description": "Public Image for the reward",
                      "type": "string"
                    },
                    "publicName": {
                      "description": "Public name for the reward",
                      "type": "string"
                    },
                    "redeemPerConsumer": {
                      "description": "Defines the redeem limit for the consumer",
                      "type": "integer"
                    },
                    "redeemRules": {
                      "description": "Rules defined to redeem a reward",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "rewardConfigs": {
                      "allOf": [
                        {
                          "properties": {
                            "attribution": {
                              "description": "Attribution config of the reward",
                              "type": "string"
                            },
                            "code": {
                              "description": "Code config of the reward",
                              "type": "string"
                            },
                            "value": {
                              "description": "Value config of the reward",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      ],
                      "description": "object"
                    },
                    "rule": {
                      "allOf": [
                        {
                          "properties": {
                            "condition": {
                              "allOf": [
                                {
                                  "$ref": "#/components/schemas/ruleConditionResponse"
                                }
                              ],
                              "description": "Selected rule condition"
                            },
                            "createdAt": {
                              "description": "Timestamp when the rule was created",
                              "type": "string"
                            },
                            "description": {
                              "description": "Description of the rule",
                              "type": "string"
                            },
                            "event": {
                              "allOf": [
                                {
                                  "properties": {
                                    "name": {
                                      "description": "Name of the event",
                                      "type": "string"
                                    },
                                    "source": {
                                      "description": "Source of the event",
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              ],
                              "description": "Selected event in the rule"
                            },
                            "isInternal": {
                              "description": "Metric to identify if it's an internal rule or not",
                              "type": "boolean"
                            },
                            "loyaltyProgramId": {
                              "description": "Loyalty Program id to which current rule is associated",
                              "type": "string"
                            },
                            "loyaltyVersionId": {
                              "description": "Loyalty Version id to which current rule is associated",
                              "format": "int16",
                              "type": "integer"
                            },
                            "meta": {
                              "additionalProperties": true,
                              "description": "Additional data to define the rule",
                              "type": "object"
                            },
                            "name": {
                              "description": "Rule name",
                              "type": "string"
                            },
                            "results": {
                              "description": "Results of the rule definition",
                              "items": {
                                "properties": {
                                  "action": {
                                    "description": "Action for the defined rule",
                                    "type": "string"
                                  },
                                  "parameters": {
                                    "description": "Parameters to define the reward",
                                    "items": {
                                      "properties": {
                                        "name": {
                                          "description": "Name of the rule",
                                          "type": "string"
                                        },
                                        "value": {
                                          "allOf": [
                                            {
                                              "$ref": "#/components/schemas/valueResponse"
                                            }
                                          ],
                                          "description": "Selected value of the parameter to define the rule"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    "type": "array"
                                  },
                                  "service": {
                                    "description": "Selected service to define the reward",
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "ruleId": {
                              "description": "Unique identifier for the rule",
                              "type": "string"
                            },
                            "ruleType": {
                              "description": "Type of the rule",
                              "type": "string"
                            },
                            "updatedAt": {
                              "description": "Timestamp when the rule was updated",
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      ],
                      "description": "Rule to define the reward"
                    },
                    "startDate": {
                      "description": "Start date of attribution of the reward",
                      "format": "date-time",
                      "type": "string"
                    },
                    "subtractBalanceDefinitionId": {
                      "description": "Id of the selected balance while redeeming / attributing a reward",
                      "type": "string"
                    },
                    "subtractBalanceStrategy": {
                      "description": "Strategy of the Balance while redeeming / attributing a reward",
                      "type": "string"
                    },
                    "subtractBalanceValue": {
                      "description": "Amount of balance to be selected while redeeming / attributing a reward",
                      "type": "integer"
                    },
                    "subtractTotalBalance": {
                      "description": "Value to indicate to subtract full balance or not",
                      "type": "boolean"
                    },
                    "totalAttribution": {
                      "description": "Defines the limit to which a consumer can attribute a reward",
                      "type": "integer"
                    },
                    "totalRedeem": {
                      "description": "Defines the limit to which a consumer can redeem a reward",
                      "type": "integer"
                    },
                    "triggerId": {
                      "description": "Id of the Rule to be updated for that reward",
                      "type": "string"
                    },
                    "unit": {
                      "description": "Selected unit of the balance",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Timestamp for when this reward was last updated.",
                      "type": "string"
                    },
                    "value": {
                      "description": "Value of metric in selected config for reward definition",
                      "format": "float64",
                      "type": "number"
                    },
                    "valueType": {
                      "description": "Type of config selected for reward definition",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Successful retrieval of reward data"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorModel"
                }
              }
            },
            "description": "Request Authentication Failed"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorModel"
                }
              }
            },
            "description": "Cannot Authenticate Request"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorModel"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorModel"
                }
              }
            },
            "description": "Validation errors"
          },
          "424": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorModel"
                }
              }
            },
            "description": "Failed Dependency"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorModel"
                }
              }
            },
            "description": "Internal error occurred"
          }
        },
        "summary": "Get reward information",
        "tags": [
          "Reward"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api-key": {
        "description": "The API key should be passed in the request headers as `api-key` for authentication.",
        "in": "header",
        "name": "api-key",
        "type": "apiKey"
      },
      "partner-key": {
        "description": "The partner key should be passed in the request headers as `partner-key` along with `api-key` pair for successful authentication of partner (Optional).",
        "in": "header",
        "name": "partner-key",
        "type": "apiKey"
      }
    },
    "schemas": {
      "errorModel": {
        "properties": {
          "code": {
            "description": "Error code displayed in case of a failure",
            "example": "method_not_allowed",
            "type": "string"
          },
          "message": {
            "description": "Readable message associated to the failure",
            "example": "POST Method is not allowed on this path",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "type": "object"
      },
      "ruleConditionResponse": {
        "properties": {
          "and": {
            "description": "Metric to indicate AND between rules",
            "items": {
              "$ref": "#/components/schemas/ruleConditionResponse"
            },
            "type": "array"
          },
          "lhs": {
            "allOf": [
              {
                "$ref": "#/components/schemas/valueResponse"
              }
            ],
            "description": "Condition of the rule"
          },
          "op": {
            "description": "Selected operator for the rule",
            "type": "string"
          },
          "or": {
            "description": "Metric to indicate OR between rules",
            "items": {
              "$ref": "#/components/schemas/ruleConditionResponse"
            },
            "type": "array"
          },
          "rhs": {
            "allOf": [
              {
                "$ref": "#/components/schemas/valueResponse"
              }
            ],
            "description": "Action of the rule"
          }
        },
        "type": "object"
      },
      "valueResponse": {
        "properties": {
          "array": {
            "description": "Array values to define the rule",
            "items": {
              "$ref": "#/components/schemas/valueResponse"
            },
            "type": "array"
          },
          "boolean": {
            "description": "Boolean values for rule definition",
            "type": "boolean"
          },
          "contactProperty": {
            "description": "string",
            "type": "string"
          },
          "date": {
            "description": "Selected date for rule definition",
            "type": "string"
          },
          "eventProperty": {
            "description": "Selected event property for rule definition",
            "type": "string"
          },
          "expression": {
            "allOf": [
              {
                "$ref": "#/components/schemas/nodeResponse"
              }
            ],
            "description": "Created expression for rule definition"
          },
          "number": {
            "description": "Boolean values for rule definition",
            "format": "float64",
            "type": "number"
          },
          "string": {
            "description": "String values for rule definition",
            "type": "string"
          }
        },
        "type": "object"
      },
      "nodeResponse": {
        "properties": {
          "args": {
            "description": "array[object]",
            "items": {
              "$ref": "#/components/schemas/nodeResponse"
            },
            "type": "array"
          },
          "array": {
            "description": "Array values for rule definition",
            "items": {
              "$ref": "#/components/schemas/nodeResponse"
            },
            "type": "array"
          },
          "boolean": {
            "description": "Boolean values for rule definition",
            "type": "boolean"
          },
          "description": {
            "description": "Description for rule definition",
            "type": "string"
          },
          "float": {
            "description": "Float values for rule definition",
            "format": "float64",
            "type": "number"
          },
          "int": {
            "description": "int64",
            "format": "int64",
            "type": "integer"
          },
          "op": {
            "description": "Operator selected for rule definition",
            "type": "string"
          },
          "string": {
            "description": "Boolean values for rule definition",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "x-samples-languages": [
    "curl"
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 91,
      "1": 104,
      "2": 180,
      "3": 205,
      "4": 240,
      "5": 82,
      "6": 207,
      "7": 0,
      "8": 3,
      "9": 36,
      "10": 63,
      "11": 142
    }
  }
}
```