List an account's reward categories
curl --request GET \
--url https://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories', 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://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"currency": "FanCash",
"categories": [
{
"name": "On-Merchant",
"description": "Purchases at Fanatics stores",
"earn_rate": "10.00",
"type": "ON_MERCHANT",
"merchants": [
"Fanatics",
"NFL Shop",
"NBA Store"
]
}
],
"special_categories": [
{
"name": "Signup Bonus",
"description": "One-time bonus after first purchase",
"amount": "$200",
"type": "SIGNUP"
}
]
}{
"error": {
"type": "BAD_REQUEST_ERROR",
"message": "unsupported reward_type: INVALID, must be STATEMENT or DELAYED"
}
}{
"type": "CUSTOMER_NOT_FOUND_ERROR",
"message": "Customer not found for provided ID: CSMR-v1-123",
"param": "customer_id"
}Customers
List an account's reward categories
Returns the account program’s standard earning categories and active signup categories. The response is assembled from the same live product, accrual, and offer configuration used by Imprint’s application and servicing experiences; it is not read from static rewards assets.
earn_rate is the configured exchange rate as a decimal string: reward
units earned per one transaction-currency unit, in the currency named by
currency. Its decimal places carry the precision the rate is
configured with.
Required scope: ACCOUNT_READ
GET
/
v2
/
customers
/
{customer_id}
/
accounts
/
{account_id}
/
rewards_categories
List an account's reward categories
curl --request GET \
--url https://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories', 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://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.sbx.imprint.co/v2/customers/{customer_id}/accounts/{account_id}/rewards_categories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"currency": "FanCash",
"categories": [
{
"name": "On-Merchant",
"description": "Purchases at Fanatics stores",
"earn_rate": "10.00",
"type": "ON_MERCHANT",
"merchants": [
"Fanatics",
"NFL Shop",
"NBA Store"
]
}
],
"special_categories": [
{
"name": "Signup Bonus",
"description": "One-time bonus after first purchase",
"amount": "$200",
"type": "SIGNUP"
}
]
}{
"error": {
"type": "BAD_REQUEST_ERROR",
"message": "unsupported reward_type: INVALID, must be STATEMENT or DELAYED"
}
}{
"type": "CUSTOMER_NOT_FOUND_ERROR",
"message": "Customer not found for provided ID: CSMR-v1-123",
"param": "customer_id"
}Authorizations
basicAuthbearerAuth
Path Parameters
Query Parameters
Response
Reward categories and earn rates