API reference
Support
Request fields, access rules and response contracts for support.
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/ticketsList support requests
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; beneficiaries see their own requests.
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/tickets' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" Success: 200 · Request completed.
OpenAPI operation and schemas
{
"operationId": "get__api_v1_tickets",
"tags": [
"Support"
],
"summary": "List support requests",
"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; beneficiaries see their own requests.",
"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",
"null"
]
},
"recipient_id": {
"type": [
"string",
"null"
]
},
"card_id": {
"type": [
"string",
"null"
]
},
"transaction_id": {
"type": [
"string",
"null"
]
},
"type": {
"type": "string"
},
"subject": {
"type": "string"
},
"status": {
"type": "string"
},
"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",
"recipient_id",
"card_id",
"transaction_id",
"type",
"subject",
"status",
"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"
}
}
} /api/v1/ticketsCreate a support request
Creates a support, dispute or incident conversation. Never submit full card numbers or security codes.
AccessCompany session or API key; beneficiary session
| Body field | Type | Details |
|---|---|---|
typerequired | string | One of: support, dispute, incident |
subjectrequired | string | Length: 3 to 200. |
messagerequired | string | Length: 3 to 10000. |
programId | string | |
cardId | string | |
transactionId | string |
curl --fail-with-body --request POST \
'https://api.digitalcard.technology/api/v1/tickets' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H 'Content-Type: application/json' \
--data-binary @request.json Success: 201 · Resource created.
OpenAPI operation and schemas
{
"operationId": "post__api_v1_tickets",
"tags": [
"Support"
],
"summary": "Create a support request",
"description": "Creates a support, dispute or incident conversation. Never submit full card numbers or security codes.\n\nAccess: Company session or API key; beneficiary session",
"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": {
"201": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
],
"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": {
"type": {
"type": "string",
"enum": [
"support",
"dispute",
"incident"
]
},
"subject": {
"type": "string",
"minLength": 3,
"maxLength": 200
},
"message": {
"type": "string",
"minLength": 3,
"maxLength": 10000
},
"programId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{12,100}$"
},
"cardId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{12,100}$"
},
"transactionId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{12,100}$"
}
},
"required": [
"type",
"subject",
"message"
]
}
}
}
}
} /api/v1/tickets/{id}/messagesRead a conversation
Returns messages from a support request within the current access scope.
AccessCompany session or API key; beneficiary session; platform administrator
curl --fail-with-body --request GET \
'https://api.digitalcard.technology/api/v1/tickets/<id>/messages' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" Success: 200 · Request completed.
OpenAPI operation and schemas
{
"operationId": "get__api_v1_tickets__id__messages",
"tags": [
"Support"
],
"summary": "Read a conversation",
"description": "Returns messages from a support request within the current access scope.\n\nAccess: Company session or API key; beneficiary session; platform administrator",
"security": [
{
"session": []
},
{
"apiKey": []
}
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"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"
}
}
} /api/v1/tickets/{id}/messagesReply to a conversation
Adds a message and can update the request status.
AccessCompany session or API key; beneficiary session; platform administrator
| Body field | Type | Details |
|---|---|---|
messagerequired | string | Length: 1 to 10000. |
status | string | One of: open, in_progress, resolved, closed |
curl --fail-with-body --request POST \
'https://api.digitalcard.technology/api/v1/tickets/<id>/messages' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H 'Content-Type: application/json' \
--data-binary @request.json Success: 201 · Resource created.
OpenAPI operation and schemas
{
"operationId": "post__api_v1_tickets__id__messages",
"tags": [
"Support"
],
"summary": "Reply to a conversation",
"description": "Adds a message and can update the request status.\n\nAccess: Company session or API key; beneficiary session; platform administrator",
"security": [
{
"session": []
},
{
"apiKey": []
}
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"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": {
"201": {
"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"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"message": {
"type": "string",
"minLength": 1,
"maxLength": 10000
},
"status": {
"type": "string",
"enum": [
"open",
"in_progress",
"resolved",
"closed"
]
}
},
"required": [
"message"
]
}
}
}
}
}