curl --request GET \
--url https://dev.sbx.imprint.co/v2/payment_methods/{payment_method_id} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://dev.sbx.imprint.co/v2/payment_methods/{payment_method_id}"
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/payment_methods/{payment_method_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://dev.sbx.imprint.co/v2/payment_methods/{payment_method_id}",
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/payment_methods/{payment_method_id}"
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/payment_methods/{payment_method_id}")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.sbx.imprint.co/v2/payment_methods/{payment_method_id}")
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{
"id": "DCBFC736-2286-42DD-897D-160DCA80AED2",
"type": "CARD",
"customer_id": "B40A789E-BD46-4BB9-B63E-F9919582694C",
"created_at": "2025-02-13T19:08:07.000Z",
"status": "ACTIVE",
"metadata": {
"platform_version": "2.1.0"
},
"card": {
"last4": "1234",
"network": "VISA",
"card_type": "PHYSICAL",
"card_design_id": "3b9c1f3e-52a0-44c1-b131-a7ab0099a214",
"exp_month": "06",
"exp_year": "2027",
"pci_details": {
"pan": "5105105105105100",
"exp_month": "06",
"exp_year": "26",
"cvv": "123"
},
"tokens": [
{
"type": "ADYEN",
"token": "<string>",
"created_at": "2025-02-13T19:08:07.000Z",
"updated_at": "2025-02-13T19:08:07.000Z",
"pan_reference_id": "<string>"
}
]
},
"secured_credit_card": {
"last4": "1234",
"network": "VISA",
"card_type": "PHYSICAL",
"card_design_id": "3b9c1f3e-52a0-44c1-b131-a7ab0099a214",
"exp_month": "06",
"exp_year": "2027",
"pci_details": {
"pan": "5105105105105100",
"exp_month": "06",
"exp_year": "26",
"cvv": "123"
},
"tokens": [
{
"type": "ADYEN",
"token": "<string>",
"created_at": "2025-02-13T19:08:07.000Z",
"updated_at": "2025-02-13T19:08:07.000Z",
"pan_reference_id": "<string>"
}
]
},
"bank_account": {
"last4": "1234",
"routing_number": "<string>",
"bank_name": "Wells Fargo",
"account_type": "CHECKING"
},
"loan": {
"amount": 10000,
"term_months": 12,
"currency": "USD",
"remaining_balance": 123,
"apr": "5.89",
"loan_status": "PENDING"
},
"updated_at": "2025-02-13T19:08:07.000Z"
}{
"type": "PAYMENT_METHOD_NOT_FOUND_ERROR",
"message": "Payment method not found for provided ID: pymd_123",
"param": "payment_method_id"
}Retrieve a payment method
Retrieves the details of the payment method associated with the supplied payment_method_id.
Optional scope: PCI_DETAILS_READ. Without it the request still succeeds, but card.pci_details (PAN, CVV, expiry) is omitted from the response.
curl --request GET \
--url https://dev.sbx.imprint.co/v2/payment_methods/{payment_method_id} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://dev.sbx.imprint.co/v2/payment_methods/{payment_method_id}"
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/payment_methods/{payment_method_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://dev.sbx.imprint.co/v2/payment_methods/{payment_method_id}",
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/payment_methods/{payment_method_id}"
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/payment_methods/{payment_method_id}")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.sbx.imprint.co/v2/payment_methods/{payment_method_id}")
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{
"id": "DCBFC736-2286-42DD-897D-160DCA80AED2",
"type": "CARD",
"customer_id": "B40A789E-BD46-4BB9-B63E-F9919582694C",
"created_at": "2025-02-13T19:08:07.000Z",
"status": "ACTIVE",
"metadata": {
"platform_version": "2.1.0"
},
"card": {
"last4": "1234",
"network": "VISA",
"card_type": "PHYSICAL",
"card_design_id": "3b9c1f3e-52a0-44c1-b131-a7ab0099a214",
"exp_month": "06",
"exp_year": "2027",
"pci_details": {
"pan": "5105105105105100",
"exp_month": "06",
"exp_year": "26",
"cvv": "123"
},
"tokens": [
{
"type": "ADYEN",
"token": "<string>",
"created_at": "2025-02-13T19:08:07.000Z",
"updated_at": "2025-02-13T19:08:07.000Z",
"pan_reference_id": "<string>"
}
]
},
"secured_credit_card": {
"last4": "1234",
"network": "VISA",
"card_type": "PHYSICAL",
"card_design_id": "3b9c1f3e-52a0-44c1-b131-a7ab0099a214",
"exp_month": "06",
"exp_year": "2027",
"pci_details": {
"pan": "5105105105105100",
"exp_month": "06",
"exp_year": "26",
"cvv": "123"
},
"tokens": [
{
"type": "ADYEN",
"token": "<string>",
"created_at": "2025-02-13T19:08:07.000Z",
"updated_at": "2025-02-13T19:08:07.000Z",
"pan_reference_id": "<string>"
}
]
},
"bank_account": {
"last4": "1234",
"routing_number": "<string>",
"bank_name": "Wells Fargo",
"account_type": "CHECKING"
},
"loan": {
"amount": 10000,
"term_months": 12,
"currency": "USD",
"remaining_balance": 123,
"apr": "5.89",
"loan_status": "PENDING"
},
"updated_at": "2025-02-13T19:08:07.000Z"
}{
"type": "PAYMENT_METHOD_NOT_FOUND_ERROR",
"message": "Payment method not found for provided ID: pymd_123",
"param": "payment_method_id"
}Authorizations
Basic HTTP authentication. Allowed headers-- Authorization: Basic <base64(api_key_id:api_key_secret)>
Path Parameters
The unique identifier of the payment method
"9ED4FE47-8E9C-48E9-BBEF-094DF1789012"
Response
Payment method retrieved successfully
The unique ID Imprint assigns to the payment method.
"DCBFC736-2286-42DD-897D-160DCA80AED2"
The type of payment method
CARD, BANK_ACCOUNT, LOAN The id of the Imprint customer that the payment method belongs to.
"B40A789E-BD46-4BB9-B63E-F9919582694C"
the RFC-3339 timestamp when the payment method was created
"2025-02-13T19:08:07.000Z"
Current status of the payment method
ACTIVE, INACTIVE, CANCELED Additional metadata for the payment method
{ "platform_version": "2.1.0" }
When the payment method is a non-secured CARD type, this object holds its card-specific data. Exactly one of card or secured_credit_card is present.
Show child attributes
Show child attributes
Card-specific data for a secured-credit-card product, emitted in place of card when the payment method's product is a secured credit card. Exactly one of card or secured_credit_card is present.
Show child attributes
Show child attributes
When payment method is a BANK_ACCOUNT type, this object will have bank account specific data.
Show child attributes
Show child attributes
When payment method is a LOAN type, this object will have loan specific data.
Show child attributes
Show child attributes
the RFC-3339 timestamp when the payment method was last updated
"2025-02-13T19:08:07.000Z"