curl --request GET \
--url https://dev.sbx.imprint.co/v2/card_designs \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://dev.sbx.imprint.co/v2/card_designs"
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/card_designs', 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/card_designs",
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/card_designs"
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/card_designs")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.sbx.imprint.co/v2/card_designs")
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{
"data": [
{
"id": "3b9c1f3e-52a0-44c1-b131-a7ab0099a214",
"name": "Midnight Black",
"access_min_rank": 0,
"type": "REGULAR",
"status": "ACTIVE",
"loyalty_tier_name": "GOLD",
"categories": {},
"image_orientation": "VERTICAL",
"light_asset_url_path": "https://assets.imprint.co/brand-assets/card-designs/light/midnight-black.svg",
"virtual_digital_card_art_id": "<string>",
"physical_digital_card_art_id": "<string>"
}
],
"has_more": true,
"total": 123,
"next_page_token": "eyJsIjoyNSwiYyI6eyJpZCI6MTAzfX0="
}{
"path": "/v2/customers",
"details": [
"email: must be a well-formed email address"
],
"error": "Bad Request",
"status": 400,
"timestamp": "2025-01-20T18:18:22.923+00:00"
}{
"type": "CUSTOMER_NOT_FOUND_ERROR",
"message": "Customer not found for provided ID: CSMR-v1-123",
"param": "customer_id"
}List card designs
Returns the card designs available for your product.
ACTIVE and INACTIVE designs are both returned. Only ACTIVE designs can be
selected, so check status before offering a design to a customer.
Designs gated behind a loyalty tier are included, with their requirement exposed
via access_min_rank. Pass customer_id to restrict the list to designs that
customer is eligible to select; omit it (for example, on a pre-signup teaser
screen) to receive every design the product offers.
If your product defines no designs of its own, the designs configured for your partner are returned instead.
With a partner-scoped API key and no x-imprint-merchant-key header, the list
returns the designs configured for your partner. Filtering by customer_id is
not supported with a partner-scoped key alone and returns 400; send the
merchant key of the customer’s product to filter by customer.
Results are paginated. When has_more is true, pass the response’s
next_page_token back as starting_after to retrieve the next page.
curl --request GET \
--url https://dev.sbx.imprint.co/v2/card_designs \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://dev.sbx.imprint.co/v2/card_designs"
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/card_designs', 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/card_designs",
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/card_designs"
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/card_designs")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.sbx.imprint.co/v2/card_designs")
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{
"data": [
{
"id": "3b9c1f3e-52a0-44c1-b131-a7ab0099a214",
"name": "Midnight Black",
"access_min_rank": 0,
"type": "REGULAR",
"status": "ACTIVE",
"loyalty_tier_name": "GOLD",
"categories": {},
"image_orientation": "VERTICAL",
"light_asset_url_path": "https://assets.imprint.co/brand-assets/card-designs/light/midnight-black.svg",
"virtual_digital_card_art_id": "<string>",
"physical_digital_card_art_id": "<string>"
}
],
"has_more": true,
"total": 123,
"next_page_token": "eyJsIjoyNSwiYyI6eyJpZCI6MTAzfX0="
}{
"path": "/v2/customers",
"details": [
"email: must be a well-formed email address"
],
"error": "Bad Request",
"status": 400,
"timestamp": "2025-01-20T18:18:22.923+00:00"
}{
"type": "CUSTOMER_NOT_FOUND_ERROR",
"message": "Customer not found for provided ID: CSMR-v1-123",
"param": "customer_id"
}Authorizations
Query Parameters
Response
List of card designs