POST /loyalty/offer/programs/{pid}/rewards/attribute
Create a voucher and attribute it to a specific membership.
Servers
- https://api.brevo.com/v3
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
pid |
String | Yes |
Loyalty Program ID |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
expirationDate |
String | No |
Reward expiration date |
loyaltySubscriptionId |
String | No |
One of contactId or loyaltySubscriptionId is required |
rewardId |
String | Yes |
Reward id |
meta |
Object | No |
Offer meta information (key/value object) |
value |
Number | No |
Value of the selected reward config |
code |
String | No |
Code generated to attribute reward to a contact |
contactId |
Integer | No |
Contact to attribute the reward |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.