List payment intents
curl --request GET \
--url http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents \
--header 'Authorization: Bearer <token>'import requests
url = "http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents', 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 => "http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents",
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: Bearer <token>"
],
]);
$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 := "http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"payment_intents": [
{
"id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"merchant_id": "74815c83-e47b-4dc5-aefe-abe4484dd280",
"amount": 99.99,
"currency": "USD",
"status": "pending",
"expires_at": "2026-02-24T14:30:00Z",
"merchant_name": "Whole Foods Market",
"description": "Coffee and pastry",
"qr_code_url": "data:image/png;base64,iVBORw0KGgo...",
"qr_data": "{\"payment_intent_id\":\"abc123\",\"amount\":99.99,\"currency\":\"USD\",\"merchant_id\":\"...\",\"merchant_name\":\"Whole Foods Market\"}",
"target_wallet_id": "8566959d-f366-45d9-9e6e-241ba189988f",
"completed_by": "d9f3a2b1-c4e5-6789-abcd-ef0123456789",
"refund_status": "pending",
"refund_ledger_tx_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"counter_id": "c1d2e3f4-a5b6-7890-abcd-ef1234567890",
"reference": "ORD-12345",
"callback_url": "https://shop.example.com/orders/ORD-12345/payment-callback",
"metadata": {
"customer_email": "alice@example.com",
"cart_id": "cart-abc123"
},
"created_at": "2026-02-24T14:00:00Z",
"updated_at": "2026-02-24T14:00:00Z"
}
],
"page": 1,
"limit": 20
}{
"success": false,
"error": "Unauthorized"
}{
"success": false,
"error": "Failed to create payment intent"
}Payment Intents
List payment intents
Get a paginated list of payment intents for the authenticated merchant. merchant_id is taken from the JWT.
GET
/
merchant
/
api
/
v1
/
payment-intents
List payment intents
curl --request GET \
--url http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents \
--header 'Authorization: Bearer <token>'import requests
url = "http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents', 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 => "http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents",
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: Bearer <token>"
],
]);
$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 := "http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"payment_intents": [
{
"id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"merchant_id": "74815c83-e47b-4dc5-aefe-abe4484dd280",
"amount": 99.99,
"currency": "USD",
"status": "pending",
"expires_at": "2026-02-24T14:30:00Z",
"merchant_name": "Whole Foods Market",
"description": "Coffee and pastry",
"qr_code_url": "data:image/png;base64,iVBORw0KGgo...",
"qr_data": "{\"payment_intent_id\":\"abc123\",\"amount\":99.99,\"currency\":\"USD\",\"merchant_id\":\"...\",\"merchant_name\":\"Whole Foods Market\"}",
"target_wallet_id": "8566959d-f366-45d9-9e6e-241ba189988f",
"completed_by": "d9f3a2b1-c4e5-6789-abcd-ef0123456789",
"refund_status": "pending",
"refund_ledger_tx_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"counter_id": "c1d2e3f4-a5b6-7890-abcd-ef1234567890",
"reference": "ORD-12345",
"callback_url": "https://shop.example.com/orders/ORD-12345/payment-callback",
"metadata": {
"customer_email": "alice@example.com",
"cart_id": "cart-abc123"
},
"created_at": "2026-02-24T14:00:00Z",
"updated_at": "2026-02-24T14:00:00Z"
}
],
"page": 1,
"limit": 20
}{
"success": false,
"error": "Unauthorized"
}{
"success": false,
"error": "Failed to create payment intent"
}Authorizations
Keycloak JWT. Roles: admin (platform admin — can register merchants, act on behalf of any merchant), merchant (dashboard user — scoped to their own merchant_id via user attribute mapper), POS terminals use client credentials flow with merchant_id injected via protocol mapper.
Query Parameters
Page number (default: 1)
Required range:
x >= 1Number of items per page (default: 20, max: 100)
Required range:
1 <= x <= 100⌘I
