Transactions
Get transaction
Retrieve a specific transaction by key, including its associated rewards
GET
/
v1
/
transactions
/
{key}
Get transaction
curl --request GET \
--url https://api.example.com/v1/transactions/{key}import requests
url = "https://api.example.com/v1/transactions/{key}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/transactions/{key}', 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/transactions/{key}",
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/transactions/{key}"
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/transactions/{key}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/transactions/{key}")
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": {
"key": "transaction_123",
"action": "sale",
"amount": 99.99,
"partner": "partner_123",
"customer": "customer_123",
"credit": false,
"is_currency": true,
"amount_units": "USD",
"created_at": "2025-05-07T05:32:48.000000Z",
"deleted_at": null,
"rewards": [
{
"key": "transaction_123",
"action": "sale",
"status": "ok",
"customer": "customer_123",
"partner": "partner_123",
"amount": 29.997,
"amount_units": "USD",
"is_currency": true,
"credit": false,
"created_at": "2025-05-07T05:32:48.000000Z",
"deleted_at": null,
"product_type_data": {
"product_id": "prod_123",
"product_type": "monthly"
}
}
]
},
"status": 1
}
Endpoint
GET https://api.partnero.com/v1/transactions/{key}
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Transaction’s unique key |
Request
cURL
curl --location 'https://api.partnero.com/v1/transactions/transaction_123' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY'
Response
{
"data": {
"key": "transaction_123",
"action": "sale",
"amount": 99.99,
"partner": "partner_123",
"customer": "customer_123",
"credit": false,
"is_currency": true,
"amount_units": "USD",
"created_at": "2025-05-07T05:32:48.000000Z",
"deleted_at": null,
"rewards": [
{
"key": "transaction_123",
"action": "sale",
"status": "ok",
"customer": "customer_123",
"partner": "partner_123",
"amount": 29.997,
"amount_units": "USD",
"is_currency": true,
"credit": false,
"created_at": "2025-05-07T05:32:48.000000Z",
"deleted_at": null,
"product_type_data": {
"product_id": "prod_123",
"product_type": "monthly"
}
}
]
},
"status": 1
}
Response fields
Transaction — data
Transaction — data
| Field | Type | Description |
|---|---|---|
key | string | Unique transaction identifier |
action | string | Transaction type |
amount | number | Transaction amount |
amount_units | string | Currency code |
partner | string | Partner key |
customer | string | Customer key |
credit | boolean | Whether this is a credit transaction |
is_currency | boolean | Whether the amount is monetary |
created_at | string | ISO 8601 timestamp |
deleted_at | string|null | Deletion timestamp if archived/refunded |
Rewards — data.rewards[]
Rewards — data.rewards[]
| Field | Type | Description |
|---|---|---|
key | string | Reward identifier (matches transaction key) |
action | string | Reward origin |
status | string | Reward status (ok, review_period, rejected) |
customer | string | Customer key |
partner | string | Partner key |
amount | number | Commission amount |
amount_units | string | Currency code |
is_currency | boolean | Whether the amount is monetary |
credit | boolean | Whether this is a credit reward |
created_at | string | ISO 8601 timestamp |
deleted_at | string|null | Deletion timestamp |
product_type_data | object | Product ID and type (if provided) |
⌘I
Get transaction
curl --request GET \
--url https://api.example.com/v1/transactions/{key}import requests
url = "https://api.example.com/v1/transactions/{key}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/transactions/{key}', 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/transactions/{key}",
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/transactions/{key}"
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/transactions/{key}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/transactions/{key}")
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": {
"key": "transaction_123",
"action": "sale",
"amount": 99.99,
"partner": "partner_123",
"customer": "customer_123",
"credit": false,
"is_currency": true,
"amount_units": "USD",
"created_at": "2025-05-07T05:32:48.000000Z",
"deleted_at": null,
"rewards": [
{
"key": "transaction_123",
"action": "sale",
"status": "ok",
"customer": "customer_123",
"partner": "partner_123",
"amount": 29.997,
"amount_units": "USD",
"is_currency": true,
"credit": false,
"created_at": "2025-05-07T05:32:48.000000Z",
"deleted_at": null,
"product_type_data": {
"product_id": "prod_123",
"product_type": "monthly"
}
}
]
},
"status": 1
}
