List payment methods
curl --request POST \
--url https://dev.sbx.imprint.co/v2/payment_methods \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "54CFF41D-0AA0-4D16-853B-608C5AAF503D",
"type": "CARD",
"pan": "4111111592341815"
}
'import requests
url = "https://dev.sbx.imprint.co/v2/payment_methods"
payload = {
"customer_id": "54CFF41D-0AA0-4D16-853B-608C5AAF503D",
"type": "CARD",
"pan": "4111111592341815"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customer_id: '54CFF41D-0AA0-4D16-853B-608C5AAF503D',
type: 'CARD',
pan: '4111111592341815'
})
};
fetch('https://dev.sbx.imprint.co/v2/payment_methods', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customer_id' => '54CFF41D-0AA0-4D16-853B-608C5AAF503D',
'type' => 'CARD',
'pan' => '4111111592341815'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dev.sbx.imprint.co/v2/payment_methods"
payload := strings.NewReader("{\n \"customer_id\": \"54CFF41D-0AA0-4D16-853B-608C5AAF503D\",\n \"type\": \"CARD\",\n \"pan\": \"4111111592341815\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dev.sbx.imprint.co/v2/payment_methods")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"54CFF41D-0AA0-4D16-853B-608C5AAF503D\",\n \"type\": \"CARD\",\n \"pan\": \"4111111592341815\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.sbx.imprint.co/v2/payment_methods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_id\": \"54CFF41D-0AA0-4D16-853B-608C5AAF503D\",\n \"type\": \"CARD\",\n \"pan\": \"4111111592341815\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "DCBFC736-2286-42DD-897D-160DCA80AED2",
"customer_id": "B40A789E-BD46-4BB9-B63E-F9919582694C",
"created_at": "2025-02-13T19:08:07.000Z",
"metadata": {
"platform_version": "2.1.0"
},
"card": {
"last4": "1234",
"card_design_id": "3b9c1f3e-52a0-44c1-b131-a7ab0099a214",
"pci_details": {
"pan": "5105105105105100",
"exp_month": "06",
"exp_year": "26",
"cvv": "123"
},
"tokens": [
{
"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"
},
"loan": {
"amount": 10000,
"term_months": 12,
"currency": "USD",
"remaining_balance": 123,
"apr": "5.89"
},
"updated_at": "2025-02-13T19:08:07.000Z"
}
],
"has_more": true,
"total": 123
}{
"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"
}Payment Methods
List payment methods
POST
/
v2
/
payment_methods
List payment methods
curl --request POST \
--url https://dev.sbx.imprint.co/v2/payment_methods \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "54CFF41D-0AA0-4D16-853B-608C5AAF503D",
"type": "CARD",
"pan": "4111111592341815"
}
'import requests
url = "https://dev.sbx.imprint.co/v2/payment_methods"
payload = {
"customer_id": "54CFF41D-0AA0-4D16-853B-608C5AAF503D",
"type": "CARD",
"pan": "4111111592341815"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customer_id: '54CFF41D-0AA0-4D16-853B-608C5AAF503D',
type: 'CARD',
pan: '4111111592341815'
})
};
fetch('https://dev.sbx.imprint.co/v2/payment_methods', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customer_id' => '54CFF41D-0AA0-4D16-853B-608C5AAF503D',
'type' => 'CARD',
'pan' => '4111111592341815'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dev.sbx.imprint.co/v2/payment_methods"
payload := strings.NewReader("{\n \"customer_id\": \"54CFF41D-0AA0-4D16-853B-608C5AAF503D\",\n \"type\": \"CARD\",\n \"pan\": \"4111111592341815\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dev.sbx.imprint.co/v2/payment_methods")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"54CFF41D-0AA0-4D16-853B-608C5AAF503D\",\n \"type\": \"CARD\",\n \"pan\": \"4111111592341815\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.sbx.imprint.co/v2/payment_methods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_id\": \"54CFF41D-0AA0-4D16-853B-608C5AAF503D\",\n \"type\": \"CARD\",\n \"pan\": \"4111111592341815\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "DCBFC736-2286-42DD-897D-160DCA80AED2",
"customer_id": "B40A789E-BD46-4BB9-B63E-F9919582694C",
"created_at": "2025-02-13T19:08:07.000Z",
"metadata": {
"platform_version": "2.1.0"
},
"card": {
"last4": "1234",
"card_design_id": "3b9c1f3e-52a0-44c1-b131-a7ab0099a214",
"pci_details": {
"pan": "5105105105105100",
"exp_month": "06",
"exp_year": "26",
"cvv": "123"
},
"tokens": [
{
"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"
},
"loan": {
"amount": 10000,
"term_months": 12,
"currency": "USD",
"remaining_balance": 123,
"apr": "5.89"
},
"updated_at": "2025-02-13T19:08:07.000Z"
}
],
"has_more": true,
"total": 123
}{
"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"
}Authorizations
basicAuthbearerAuth
Basic HTTP authentication. Allowed headers-- Authorization: Basic <base64(api_key_id:api_key_secret)>
Body
application/json
⌘I