Get reward
curl --request GET \
--url https://api.example.com/v1/rewards/{id}import requests
url = "https://api.example.com/v1/rewards/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/rewards/{id}', 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.example.com/v1/rewards/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/rewards/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/rewards/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/rewards/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "rwd_01jcx7m4q9v2k8t5r3n6w0ha1b",
"key": "invoice_1001",
"action": "sale",
"status": "review_period",
"customer": "customer_123",
"partner": "partner_123",
"amount": 200.0,
"amount_units": "USD",
"is_currency": true,
"credit": false,
"created_at": "2026-11-12T09:30:00.000000Z",
"deleted_at": null,
"product_type_data": [],
"paid": false,
"payout_status": "in_review",
"transaction": "invoice_1001"
},
"status": 1
}
Rewards
Get reward
Get a single partner commission and its payout status
GET
/
v1
/
rewards
/
{id}
Get reward
curl --request GET \
--url https://api.example.com/v1/rewards/{id}import requests
url = "https://api.example.com/v1/rewards/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/rewards/{id}', 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.example.com/v1/rewards/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/rewards/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/rewards/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/rewards/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "rwd_01jcx7m4q9v2k8t5r3n6w0ha1b",
"key": "invoice_1001",
"action": "sale",
"status": "review_period",
"customer": "customer_123",
"partner": "partner_123",
"amount": 200.0,
"amount_units": "USD",
"is_currency": true,
"credit": false,
"created_at": "2026-11-12T09:30:00.000000Z",
"deleted_at": null,
"product_type_data": [],
"paid": false,
"payout_status": "in_review",
"transaction": "invoice_1001"
},
"status": 1
}
Endpoint
GET https://api.partnero.com/v1/rewards/{id}
Affiliate programs only. In newsletter and refer-a-friend programs this endpoint returns
428.Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The reward’s ID, e.g. rwd_01jcx7m4q9v2k8t5r3n6w0ha1b, as returned by List rewards or in a transaction’s rewards array. The reward key isn’t accepted |
Request
cURL
curl --location 'https://api.partnero.com/v1/rewards/rwd_01jcx7m4q9v2k8t5r3n6w0ha1b' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY'
Response
{
"data": {
"id": "rwd_01jcx7m4q9v2k8t5r3n6w0ha1b",
"key": "invoice_1001",
"action": "sale",
"status": "review_period",
"customer": "customer_123",
"partner": "partner_123",
"amount": 200.0,
"amount_units": "USD",
"is_currency": true,
"credit": false,
"created_at": "2026-11-12T09:30:00.000000Z",
"deleted_at": null,
"product_type_data": [],
"paid": false,
"payout_status": "in_review",
"transaction": "invoice_1001"
},
"status": 1
}
Error responses
| Status | Error | Solution |
|---|---|---|
| 401 | Unauthenticated | Check your API key is set in the Authorization header |
| 404 | Reward not found | Check the ID belongs to a reward in this program. Archived rewards aren’t returned |
| 428 | Rewards are not valid for this program type. They are only available for affiliate programs. | Use an API key of an affiliate program |
Was this page helpful?
