Add Redemption Reversal
curl --request POST \
--url https://api.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversalimport requests
url = "https://api.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversal"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversal', 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.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversal"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversal")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"profile_id": "<string>",
"total_localised": "<string>",
"total": "<string>",
"location_id": "<string>",
"balances": {
"reward_balance": "<string>",
"credit_balance": "<string>",
"point_balance": "<string>",
"point_balance_dollars": "<string>",
"benefit_balance": "<string>",
"combined_balance_dollars": "<string>",
"localised": {
"reward_balance": "<string>",
"point_balance_dollars": "<string>",
"combined_balance_dollars": "<string>"
},
"currency": {
"id": 123,
"from": "<string>",
"to": "<string>",
"rate": 123,
"is_system": true,
"created_at": "<string>",
"updated_at": "<string>"
}
},
"meta": "<string>",
"transaction_external_id": "<string>",
"transaction_receipt_ref": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"location": {
"id": "<string>",
"type": "<string>",
"name": "<string>",
"description": "<string>",
"phone": "<string>",
"email": "<string>",
"external_id": "<string>",
"is_published": "<string>",
"is_permanently_closed": "<string>"
},
"currency": {
"id": 123,
"from": "<string>",
"to": "<string>",
"rate": 123,
"is_system": true,
"created_at": "<string>",
"updated_at": "<string>"
}
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Return Strategy
Add Redemption Reversal
A POST to the /redemptions/{redemptionId}/reversal endpoint allows your application Reverse any Redemption created within the last 10 minutes.
POST
/
v3
/
redemptions
/
{redemption}
/
reversal
Add Redemption Reversal
curl --request POST \
--url https://api.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversalimport requests
url = "https://api.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversal"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversal', 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.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversal"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversal")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/redemptions/{redemption}/reversal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"profile_id": "<string>",
"total_localised": "<string>",
"total": "<string>",
"location_id": "<string>",
"balances": {
"reward_balance": "<string>",
"credit_balance": "<string>",
"point_balance": "<string>",
"point_balance_dollars": "<string>",
"benefit_balance": "<string>",
"combined_balance_dollars": "<string>",
"localised": {
"reward_balance": "<string>",
"point_balance_dollars": "<string>",
"combined_balance_dollars": "<string>"
},
"currency": {
"id": 123,
"from": "<string>",
"to": "<string>",
"rate": 123,
"is_system": true,
"created_at": "<string>",
"updated_at": "<string>"
}
},
"meta": "<string>",
"transaction_external_id": "<string>",
"transaction_receipt_ref": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"location": {
"id": "<string>",
"type": "<string>",
"name": "<string>",
"description": "<string>",
"phone": "<string>",
"email": "<string>",
"external_id": "<string>",
"is_published": "<string>",
"is_permanently_closed": "<string>"
},
"currency": {
"id": 123,
"from": "<string>",
"to": "<string>",
"rate": 123,
"is_system": true,
"created_at": "<string>",
"updated_at": "<string>"
}
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}⌘I