curl --request PUT \
--url https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": {},
"code": "code",
"component_ids": [
"component_id"
],
"component_references": [
{
"component_id": "component_id",
"socket_names": [
"socket_name"
]
}
],
"enabled": true,
"event_time": "2025-10-24T09:00:00.000Z",
"image": {},
"instructions": "instructions",
"link": {},
"message": "message",
"partner_reward_id": "partner_reward_id",
"quality": "ALWAYS",
"reward_id": "reward_id",
"success": "success"
}
'import requests
url = "https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId}"
payload = {
"amount": {},
"code": "code",
"component_ids": ["component_id"],
"component_references": [
{
"component_id": "component_id",
"socket_names": ["socket_name"]
}
],
"enabled": True,
"event_time": "2025-10-24T09:00:00.000Z",
"image": {},
"instructions": "instructions",
"link": {},
"message": "message",
"partner_reward_id": "partner_reward_id",
"quality": "ALWAYS",
"reward_id": "reward_id",
"success": "success"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: {},
code: 'code',
component_ids: ['component_id'],
component_references: [{component_id: 'component_id', socket_names: ['socket_name']}],
enabled: true,
event_time: '2025-10-24T09:00:00.000Z',
image: {},
instructions: 'instructions',
link: {},
message: 'message',
partner_reward_id: 'partner_reward_id',
quality: 'ALWAYS',
reward_id: 'reward_id',
success: 'success'
})
};
fetch('https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'amount' => [
],
'code' => 'code',
'component_ids' => [
'component_id'
],
'component_references' => [
[
'component_id' => 'component_id',
'socket_names' => [
'socket_name'
]
]
],
'enabled' => true,
'event_time' => '2025-10-24T09:00:00.000Z',
'image' => [
],
'instructions' => 'instructions',
'link' => [
],
'message' => 'message',
'partner_reward_id' => 'partner_reward_id',
'quality' => 'ALWAYS',
'reward_id' => 'reward_id',
'success' => 'success'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId}"
payload := strings.NewReader("{\n \"amount\": {},\n \"code\": \"code\",\n \"component_ids\": [\n \"component_id\"\n ],\n \"component_references\": [\n {\n \"component_id\": \"component_id\",\n \"socket_names\": [\n \"socket_name\"\n ]\n }\n ],\n \"enabled\": true,\n \"event_time\": \"2025-10-24T09:00:00.000Z\",\n \"image\": {},\n \"instructions\": \"instructions\",\n \"link\": {},\n \"message\": \"message\",\n \"partner_reward_id\": \"partner_reward_id\",\n \"quality\": \"ALWAYS\",\n \"reward_id\": \"reward_id\",\n \"success\": \"success\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": {},\n \"code\": \"code\",\n \"component_ids\": [\n \"component_id\"\n ],\n \"component_references\": [\n {\n \"component_id\": \"component_id\",\n \"socket_names\": [\n \"socket_name\"\n ]\n }\n ],\n \"enabled\": true,\n \"event_time\": \"2025-10-24T09:00:00.000Z\",\n \"image\": {},\n \"instructions\": \"instructions\",\n \"link\": {},\n \"message\": \"message\",\n \"partner_reward_id\": \"partner_reward_id\",\n \"quality\": \"ALWAYS\",\n \"reward_id\": \"reward_id\",\n \"success\": \"success\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": {},\n \"code\": \"code\",\n \"component_ids\": [\n \"component_id\"\n ],\n \"component_references\": [\n {\n \"component_id\": \"component_id\",\n \"socket_names\": [\n \"socket_name\"\n ]\n }\n ],\n \"enabled\": true,\n \"event_time\": \"2025-10-24T09:00:00.000Z\",\n \"image\": {},\n \"instructions\": \"instructions\",\n \"link\": {},\n \"message\": \"message\",\n \"partner_reward_id\": \"partner_reward_id\",\n \"quality\": \"ALWAYS\",\n \"reward_id\": \"reward_id\",\n \"success\": \"success\"\n}"
response = http.request(request)
puts response.read_body{
"action_id": "<string>",
"action_type": "FULFILL_REWARD",
"component_ids": [
"<string>"
],
"component_references": [
{
"component_id": "<string>",
"socket_names": [
"<string>"
]
}
],
"enabled": true,
"quality": "ALWAYS",
"amount": 123,
"code": "<string>",
"event_time": "2025-10-24T09:00:00.000Z",
"image": "<string>",
"instructions": "<string>",
"link": "<string>",
"message": "<string>",
"partner_reward_id": "<string>",
"reward_id": "<string>",
"success": "<string>"
}Update a fulfill-reward action
Updates the fulfill-reward action on the specified campaign controller. Only fields present in the request body are changed. Returns the updated action.
curl --request PUT \
--url https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": {},
"code": "code",
"component_ids": [
"component_id"
],
"component_references": [
{
"component_id": "component_id",
"socket_names": [
"socket_name"
]
}
],
"enabled": true,
"event_time": "2025-10-24T09:00:00.000Z",
"image": {},
"instructions": "instructions",
"link": {},
"message": "message",
"partner_reward_id": "partner_reward_id",
"quality": "ALWAYS",
"reward_id": "reward_id",
"success": "success"
}
'import requests
url = "https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId}"
payload = {
"amount": {},
"code": "code",
"component_ids": ["component_id"],
"component_references": [
{
"component_id": "component_id",
"socket_names": ["socket_name"]
}
],
"enabled": True,
"event_time": "2025-10-24T09:00:00.000Z",
"image": {},
"instructions": "instructions",
"link": {},
"message": "message",
"partner_reward_id": "partner_reward_id",
"quality": "ALWAYS",
"reward_id": "reward_id",
"success": "success"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: {},
code: 'code',
component_ids: ['component_id'],
component_references: [{component_id: 'component_id', socket_names: ['socket_name']}],
enabled: true,
event_time: '2025-10-24T09:00:00.000Z',
image: {},
instructions: 'instructions',
link: {},
message: 'message',
partner_reward_id: 'partner_reward_id',
quality: 'ALWAYS',
reward_id: 'reward_id',
success: 'success'
})
};
fetch('https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'amount' => [
],
'code' => 'code',
'component_ids' => [
'component_id'
],
'component_references' => [
[
'component_id' => 'component_id',
'socket_names' => [
'socket_name'
]
]
],
'enabled' => true,
'event_time' => '2025-10-24T09:00:00.000Z',
'image' => [
],
'instructions' => 'instructions',
'link' => [
],
'message' => 'message',
'partner_reward_id' => 'partner_reward_id',
'quality' => 'ALWAYS',
'reward_id' => 'reward_id',
'success' => 'success'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId}"
payload := strings.NewReader("{\n \"amount\": {},\n \"code\": \"code\",\n \"component_ids\": [\n \"component_id\"\n ],\n \"component_references\": [\n {\n \"component_id\": \"component_id\",\n \"socket_names\": [\n \"socket_name\"\n ]\n }\n ],\n \"enabled\": true,\n \"event_time\": \"2025-10-24T09:00:00.000Z\",\n \"image\": {},\n \"instructions\": \"instructions\",\n \"link\": {},\n \"message\": \"message\",\n \"partner_reward_id\": \"partner_reward_id\",\n \"quality\": \"ALWAYS\",\n \"reward_id\": \"reward_id\",\n \"success\": \"success\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": {},\n \"code\": \"code\",\n \"component_ids\": [\n \"component_id\"\n ],\n \"component_references\": [\n {\n \"component_id\": \"component_id\",\n \"socket_names\": [\n \"socket_name\"\n ]\n }\n ],\n \"enabled\": true,\n \"event_time\": \"2025-10-24T09:00:00.000Z\",\n \"image\": {},\n \"instructions\": \"instructions\",\n \"link\": {},\n \"message\": \"message\",\n \"partner_reward_id\": \"partner_reward_id\",\n \"quality\": \"ALWAYS\",\n \"reward_id\": \"reward_id\",\n \"success\": \"success\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.extole.io/v2/campaigns/{campaignId}/controllers/{controllerId}/actions/fulfill-rewards/{actionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": {},\n \"code\": \"code\",\n \"component_ids\": [\n \"component_id\"\n ],\n \"component_references\": [\n {\n \"component_id\": \"component_id\",\n \"socket_names\": [\n \"socket_name\"\n ]\n }\n ],\n \"enabled\": true,\n \"event_time\": \"2025-10-24T09:00:00.000Z\",\n \"image\": {},\n \"instructions\": \"instructions\",\n \"link\": {},\n \"message\": \"message\",\n \"partner_reward_id\": \"partner_reward_id\",\n \"quality\": \"ALWAYS\",\n \"reward_id\": \"reward_id\",\n \"success\": \"success\"\n}"
response = http.request(request)
puts response.read_body{
"action_id": "<string>",
"action_type": "FULFILL_REWARD",
"component_ids": [
"<string>"
],
"component_references": [
{
"component_id": "<string>",
"socket_names": [
"<string>"
]
}
],
"enabled": true,
"quality": "ALWAYS",
"amount": 123,
"code": "<string>",
"event_time": "2025-10-24T09:00:00.000Z",
"image": "<string>",
"instructions": "<string>",
"link": "<string>",
"message": "<string>",
"partner_reward_id": "<string>",
"reward_id": "<string>",
"success": "<string>"
}Body
Body of a PUT /v2/campaigns/{campaignId}{version:(/version/.+)?}/controllers/{controllerId}/actions/fulfill-rewards/{actionId} request.
The fulfillment amount, stored for reference only. It does not override the reward’s actual amount. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
The reward code, that could be used in order to redeem the reward. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
Choose between static or dynamic enabled. Buildtime expressions use ControllerBuildtimeContext.
Choose between static or dynamic event time. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$"2025-10-24T09:00:00.000Z"
An image associated with the reward. E.g.: a brand image. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
Instructions on how to redeem the reward. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
A link associated with the reward. E.g.: a reward redemption link. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
The partner’s reward identifier. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
Response
Successful response
The enabled as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.
The fulfillment amount, stored for reference only. It does not override the reward’s actual amount. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
The reward code, that could be used in order to redeem the reward. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
The event time as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$"2025-10-24T09:00:00.000Z"
An image associated with the reward. E.g.: a brand image. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
Instructions on how to redeem the reward. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
A link associated with the reward. E.g.: a reward redemption link. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
The partner’s reward identifier. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardActionContext.
Was this page helpful?
