API reference
Transactions
Request fields, access rules and response contracts for transactions.
All endpoint paths include /api/v1. For protected writes, persist a stable idempotency key before making the request. Company integrations use https://api.digitalcard.technology.
/api/v1/transactionsList transactions
Returns records in descending identifier order. Use the cursor to read the next page. Platform administrators may additionally filter by companyId.
AccessCompany sessions and company API keys; beneficiary sessions see their own card transactions.
Query parameters: limit (1 to 200, default 50), before, programId, administrator-only companyId and format=csv. Read pagination and exports.
curl --fail-with-body --request GET \
'https://api.digitalcard.technology/api/v1/transactions' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" Success: 200 · Request completed.
OpenAPI operation and schemas
{
"operationId": "get__api_v1_transactions",
"tags": [
"Transactions"
],
"summary": "List transactions",
"description": "Returns records in descending identifier order. Use the cursor to read the next page. Platform administrators may additionally filter by companyId.\n\nAccess: Company sessions and company API keys; beneficiary sessions see their own card transactions.",
"security": [
{
"session": []
},
{
"apiKey": []
}
],
"parameters": [
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"default": 50
},
"description": "Page size."
},
{
"name": "before",
"in": "query",
"schema": {
"type": "string"
},
"description": "The nextCursor returned by the previous page."
},
{
"name": "programId",
"in": "query",
"schema": {
"type": "string"
},
"description": "Filter by program, except on the programs collection."
},
{
"name": "companyId",
"in": "query",
"schema": {
"type": "string"
},
"description": "Company filter for platform administrators only."
},
{
"name": "format",
"in": "query",
"schema": {
"type": "string",
"enum": [
"csv"
]
},
"description": "Export the current page as CSV."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"company_id": {
"type": "string"
},
"program_id": {
"type": "string"
},
"card_id": {
"type": "string"
},
"currency": {
"type": "string"
},
"hold_amount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Signed integer in the ISO 4217 minor unit of the record currency."
},
"settlement_amount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Signed integer in the ISO 4217 minor unit of the record currency."
},
"status": {
"type": "string"
},
"merchant": {
"type": [
"string",
"null"
]
},
"merchant_category": {
"type": [
"string",
"null"
]
},
"original_currency": {
"type": [
"string",
"null"
]
},
"original_amount": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Signed integer in the ISO 4217 minor unit of the record currency."
},
{
"type": "null"
}
]
},
"occurred_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"updated_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
}
},
"required": [
"id",
"company_id",
"program_id",
"card_id",
"currency",
"hold_amount",
"settlement_amount",
"status",
"merchant",
"merchant_category",
"original_currency",
"original_amount",
"occurred_at",
"updated_at"
],
"additionalProperties": false
}
},
"nextCursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"items",
"nextCursor"
],
"additionalProperties": false
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"422": {
"$ref": "#/components/responses/Invalid"
},
"429": {
"$ref": "#/components/responses/RateLimited"
},
"500": {
"$ref": "#/components/responses/Failed"
}
}
} /api/v1/ledgerList ledger entries
Returns records in descending identifier order. Use the cursor to read the next page. Platform administrators may additionally filter by companyId.
AccessCompany sessions and company API keys.
Query parameters: limit (1 to 200, default 50), before, programId, administrator-only companyId and format=csv. Read pagination and exports.
curl --fail-with-body --request GET \
'https://api.digitalcard.technology/api/v1/ledger' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" Success: 200 · Request completed.
OpenAPI operation and schemas
{
"operationId": "get__api_v1_ledger",
"tags": [
"Transactions"
],
"summary": "List ledger entries",
"description": "Returns records in descending identifier order. Use the cursor to read the next page. Platform administrators may additionally filter by companyId.\n\nAccess: Company sessions and company API keys.",
"security": [
{
"session": []
},
{
"apiKey": []
}
],
"parameters": [
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"default": 50
},
"description": "Page size."
},
{
"name": "before",
"in": "query",
"schema": {
"type": "string"
},
"description": "The nextCursor returned by the previous page."
},
{
"name": "programId",
"in": "query",
"schema": {
"type": "string"
},
"description": "Filter by program, except on the programs collection."
},
{
"name": "companyId",
"in": "query",
"schema": {
"type": "string"
},
"description": "Company filter for platform administrators only."
},
{
"name": "format",
"in": "query",
"schema": {
"type": "string",
"enum": [
"csv"
]
},
"description": "Export the current page as CSV."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"company_id": {
"type": "string"
},
"program_id": {
"type": "string"
},
"currency": {
"type": "string"
},
"journal_id": {
"type": "string"
},
"account": {
"type": "string"
},
"amount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Signed integer in the ISO 4217 minor unit of the record currency."
},
"created_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
}
},
"required": [
"id",
"company_id",
"program_id",
"currency",
"journal_id",
"account",
"amount",
"created_at"
],
"additionalProperties": false
}
},
"nextCursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"items",
"nextCursor"
],
"additionalProperties": false
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"422": {
"$ref": "#/components/responses/Invalid"
},
"429": {
"$ref": "#/components/responses/RateLimited"
},
"500": {
"$ref": "#/components/responses/Failed"
}
}
} /api/v1/reportsRead program reports
Returns per-program funding, card counts and signed settlement totals. Totals retain their own currencies.
AccessCompany session or API key
curl --fail-with-body --request GET \
'https://api.digitalcard.technology/api/v1/reports' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" Success: 200 · Request completed.
OpenAPI operation and schemas
{
"operationId": "get__api_v1_reports",
"tags": [
"Transactions"
],
"summary": "Read program reports",
"description": "Returns per-program funding, card counts and signed settlement totals. Totals retain their own currencies.\n\nAccess: Company session or API key",
"security": [
{
"session": []
},
{
"apiKey": []
}
],
"parameters": [],
"responses": {
"200": {
"description": "Successful response"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"422": {
"$ref": "#/components/responses/Invalid"
},
"429": {
"$ref": "#/components/responses/RateLimited"
},
"500": {
"$ref": "#/components/responses/Failed"
}
}
}