/ Developers API v1Open workspace

API reference

Operations

Request fields, access rules and response contracts for operations.

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.

GET/api/v1/operations

List operations

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 operations.

Query parameters: limit (1 to 200, default 50), before, programId, administrator-only companyId and format=csv. Read pagination and exports.

Request
curl --fail-with-body --request GET \
  'https://api.digitalcard.technology/api/v1/operations' \
  -H "Authorization: Bearer $DIGITALCARD_API_KEY"

Success: 200 · Request completed.

OpenAPI operation and schemas
OpenAPI 3.1
{
  "operationId": "get__api_v1_operations",
  "tags": [
    "Operations"
  ],
  "summary": "List operations",
  "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 operations.",
  "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."
    },
    {
      "name": "kind",
      "in": "query",
      "schema": {
        "type": "string",
        "enum": [
          "issue",
          "load",
          "unload",
          "pause",
          "resume",
          "close",
          "identity",
          "funding",
          "limits"
        ]
      }
    }
  ],
  "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",
                        "null"
                      ]
                    },
                    "recipient_id": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "kind": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "queued",
                        "processing",
                        "pending",
                        "reconciling",
                        "settled",
                        "failed"
                      ]
                    },
                    "amount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Signed integer in the ISO 4217 minor unit of the record currency."
                    },
                    "fee_amount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Signed integer in the ISO 4217 minor unit of the record currency."
                    },
                    "currency": {
                      "type": "string"
                    },
                    "external_reference": {
                      "type": "string"
                    },
                    "provider_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "error_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "phase": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "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))$"
                    },
                    "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",
                    "recipient_id",
                    "kind",
                    "status",
                    "amount",
                    "fee_amount",
                    "currency",
                    "external_reference",
                    "provider_reference",
                    "error_code",
                    "phase",
                    "created_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"
    }
  }
}

Search documentation

Use ↑ ↓ to navigate · Enter to open