API reference
Funding
Request fields, access rules and response contracts for funding.
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/walletsList funding balances
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/wallets' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" Success: 200 · Request completed.
OpenAPI operation and schemas
{
"operationId": "get__api_v1_wallets",
"tags": [
"Funding"
],
"summary": "List funding balances",
"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"
},
"available_amount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Signed integer in the ISO 4217 minor unit of the record currency."
},
"reserved_amount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Signed integer in the ISO 4217 minor unit of the record currency."
},
"debt_amount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Signed integer in the ISO 4217 minor unit of the record currency."
},
"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",
"currency",
"available_amount",
"reserved_amount",
"debt_amount",
"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/fundingRequest program funding
Creates a durable funding request. Funds become available only after a confirmed, matching provider receipt. Bank-account fields apply to the enabled provider funding rail.
AccessCompany owner, admin or finance
| Body field | Type | Details |
|---|---|---|
programIdrequired | string | |
amountrequired | integer | |
currencyrequired | string | |
externalBankAccountToken | string | Length: 1 to 100. |
method | string | One of: ACH_NEXT_DAY, ACH_SAME_DAY |
secCode | string | One of: WEB, CCD |
curl --fail-with-body --request POST \
'https://api.digitalcard.technology/api/v1/funding' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H 'Content-Type: application/json' \
--data-binary @request.json Success: 202 · Accepted for asynchronous processing. Read the operation for the confirmed provider outcome.
OpenAPI operation and schemas
{
"operationId": "post__api_v1_funding",
"tags": [
"Funding"
],
"summary": "Request program funding",
"description": "Creates a durable funding request. Funds become available only after a confirmed, matching provider receipt. Bank-account fields apply to the enabled provider funding rail.\n\nAccess: Company owner, admin or finance",
"security": [
{
"session": []
},
{
"apiKey": []
}
],
"parameters": [
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"description": "One stable key per intended write. Reuse the key and identical body when recovering a transport failure.",
"schema": {
"type": "string",
"minLength": 12,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_.:-]+$"
}
}
],
"responses": {
"202": {
"description": "Accepted for asynchronous processing; inspect the operation status.",
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"reference": {
"type": "string"
},
"currency": {
"type": "string"
},
"amount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Signed integer in the ISO 4217 minor unit of the record currency."
},
"status": {
"type": "string"
}
},
"required": [
"id",
"reference",
"currency",
"amount",
"status"
],
"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"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"programId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{12,100}$"
},
"amount": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"currency": {
"type": "string"
},
"externalBankAccountToken": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"method": {
"type": "string",
"enum": [
"ACH_NEXT_DAY",
"ACH_SAME_DAY"
]
},
"secCode": {
"type": "string",
"enum": [
"WEB",
"CCD"
]
}
},
"required": [
"programId",
"amount",
"currency"
]
}
}
}
}
}