List stored cards
curl --request GET \
--url https://api.lightspark.com/grid/2025-10-13/customers/{customerId}/stored-cards \
--header 'Authorization: Basic <encoded-value>'const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lightspark.com/grid/2025-10-13/customers/{customerId}/stored-cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));val client = OkHttpClient()
val request = Request.Builder()
.url("https://api.lightspark.com/grid/2025-10-13/customers/{customerId}/stored-cards")
.get()
.addHeader("Authorization", "Basic <encoded-value>")
.build()
val response = client.newCall(request).execute(){
"data": [
{
"lastFour": "0005",
"brand": "VISA",
"funding": "CREDIT",
"expiryMonth": 8,
"expiryYear": 2029,
"id": "StoredCard:019542f5-b3e7-1d02-0000-000000000077",
"customerId": "Customer:019542f5-b3e7-1d02-0000-000000000010",
"status": "ACTIVE",
"holderName": "Jane Doe",
"agentIds": [
"Agent:019542f5-b3e7-1d02-0000-000000000042"
],
"createdAt": "2026-11-06T15:00:00Z",
"updatedAt": "2026-11-06T15:00:00Z",
"issuerCountry": "US",
"nickname": "Personal Visa",
"billingAddress": {
"line1": "123 Main Street",
"postalCode": "94105",
"country": "US",
"line2": "Apt 4B",
"city": "San Francisco",
"state": "CA"
},
"autoApprovals": [
{
"agentId": "Agent:019542f5-b3e7-1d02-0000-000000000042",
"merchant": "example-store.com",
"maxAmount": 4999,
"currency": "USD"
}
],
"removedAt": "2026-11-07T09:30:00Z"
}
]
}{
"code": "UNAUTHORIZED",
"reason": "<string>",
"details": {}
}{
"code": "FORBIDDEN",
"reason": "<string>",
"details": {
"refusalReason": "AGENT_POLICY_DENIED",
"permission": "ISSUE_CARDS",
"policyDenialReason": "DAILY_LIMIT_EXCEEDED"
}
}{
"code": "TRANSACTION_NOT_FOUND",
"reason": "<string>",
"details": {}
}{
"code": "GRID_SWITCH_ERROR",
"reason": "<string>",
"details": {}
}Agent Management
List stored cards
The customer’s ACTIVE stored cards, newest first.
GET
/
customers
/
{customerId}
/
stored-cards
List stored cards
curl --request GET \
--url https://api.lightspark.com/grid/2025-10-13/customers/{customerId}/stored-cards \
--header 'Authorization: Basic <encoded-value>'const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lightspark.com/grid/2025-10-13/customers/{customerId}/stored-cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));val client = OkHttpClient()
val request = Request.Builder()
.url("https://api.lightspark.com/grid/2025-10-13/customers/{customerId}/stored-cards")
.get()
.addHeader("Authorization", "Basic <encoded-value>")
.build()
val response = client.newCall(request).execute(){
"data": [
{
"lastFour": "0005",
"brand": "VISA",
"funding": "CREDIT",
"expiryMonth": 8,
"expiryYear": 2029,
"id": "StoredCard:019542f5-b3e7-1d02-0000-000000000077",
"customerId": "Customer:019542f5-b3e7-1d02-0000-000000000010",
"status": "ACTIVE",
"holderName": "Jane Doe",
"agentIds": [
"Agent:019542f5-b3e7-1d02-0000-000000000042"
],
"createdAt": "2026-11-06T15:00:00Z",
"updatedAt": "2026-11-06T15:00:00Z",
"issuerCountry": "US",
"nickname": "Personal Visa",
"billingAddress": {
"line1": "123 Main Street",
"postalCode": "94105",
"country": "US",
"line2": "Apt 4B",
"city": "San Francisco",
"state": "CA"
},
"autoApprovals": [
{
"agentId": "Agent:019542f5-b3e7-1d02-0000-000000000042",
"merchant": "example-store.com",
"maxAmount": 4999,
"currency": "USD"
}
],
"removedAt": "2026-11-07T09:30:00Z"
}
]
}{
"code": "UNAUTHORIZED",
"reason": "<string>",
"details": {}
}{
"code": "FORBIDDEN",
"reason": "<string>",
"details": {
"refusalReason": "AGENT_POLICY_DENIED",
"permission": "ISSUE_CARDS",
"policyDenialReason": "DAILY_LIMIT_EXCEEDED"
}
}{
"code": "TRANSACTION_NOT_FOUND",
"reason": "<string>",
"details": {}
}{
"code": "GRID_SWITCH_ERROR",
"reason": "<string>",
"details": {}
}