/ Developers API v1Open workspace

API reference

Cards

Request fields, access rules and response contracts for cards.

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/cards

List cards

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

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/cards' \
  -H "Authorization: Bearer $DIGITALCARD_API_KEY"

Success: 200 · Request completed.

OpenAPI operation and schemas
OpenAPI 3.1
{
  "operationId": "get__api_v1_cards",
  "tags": [
    "Cards"
  ],
  "summary": "List cards",
  "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 cards.",
  "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"
                    },
                    "recipient_id": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "single_load",
                        "reloadable"
                      ]
                    },
                    "purpose": {
                      "type": "string",
                      "enum": [
                        "distribution",
                        "expense"
                      ]
                    },
                    "status": {
                      "type": "string"
                    },
                    "last_four": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "network": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expires_month": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "expires_year": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "funded_amount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Signed integer in the ISO 4217 minor unit of the record currency."
                    },
                    "available_amount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Signed integer in the ISO 4217 minor unit of the record currency."
                    },
                    "limits_json": {
                      "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",
                    "currency",
                    "label",
                    "kind",
                    "purpose",
                    "status",
                    "last_four",
                    "network",
                    "expires_month",
                    "expires_year",
                    "funded_amount",
                    "available_amount",
                    "limits_json",
                    "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"
    }
  }
}
POST/api/v1/cards

Issue a funded virtual card

Reserves the amount and configured fee, then queues issuance. Requires an approved program and accepted beneficiary identity. One card per beneficiary per program.

AccessCompany owner, admin or operator

Body fieldTypeDetails
programIdrequiredstring
recipientIdrequiredstring
labelrequiredstringLength: 1 to 120.
kindrequiredstringOne of: single_load, reloadable
amountrequiredinteger
currencyrequiredstring
purposerequiredstringOne of: distribution, expense
Request
curl --fail-with-body --request POST \
  'https://api.digitalcard.technology/api/v1/cards' \
  -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
OpenAPI 3.1
{
  "operationId": "post__api_v1_cards",
  "tags": [
    "Cards"
  ],
  "summary": "Issue a funded virtual card",
  "description": "Reserves the amount and configured fee, then queues issuance. Requires an approved program and accepted beneficiary identity. One card per beneficiary per program.\n\nAccess: Company owner, admin or operator",
  "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"
              },
              "operationId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "operationId",
              "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}$"
            },
            "recipientId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{12,100}$"
            },
            "label": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "kind": {
              "type": "string",
              "enum": [
                "single_load",
                "reloadable"
              ]
            },
            "amount": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "currency": {
              "type": "string"
            },
            "purpose": {
              "type": "string",
              "enum": [
                "distribution",
                "expense"
              ]
            }
          },
          "required": [
            "programId",
            "recipientId",
            "label",
            "kind",
            "amount",
            "currency",
            "purpose"
          ]
        }
      }
    }
  }
}
POST/api/v1/cards/distribute

Distribute cards from CSV

Processes 1 to 100 allocations. CSV columns: recipientId, amount, label, kind, purpose. CSV amounts use decimal currency units. Each row returns its result.

AccessCompany owner, admin or operator

Body fieldTypeDetails
programIdrequiredstring
csvrequiredstringLength: 1 to 1000000.
Request
curl --fail-with-body --request POST \
  'https://api.digitalcard.technology/api/v1/cards/distribute' \
  -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
OpenAPI 3.1
{
  "operationId": "post__api_v1_cards_distribute",
  "tags": [
    "Cards"
  ],
  "summary": "Distribute cards from CSV",
  "description": "Processes 1 to 100 allocations. CSV columns: recipientId, amount, label, kind, purpose. CSV amounts use decimal currency units. Each row returns its result.\n\nAccess: Company owner, admin or operator",
  "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."
    },
    "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}$"
            },
            "csv": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000000
            }
          },
          "required": [
            "programId",
            "csv"
          ]
        }
      }
    }
  }
}
POST/api/v1/cards/{id}/load

Load a card

Reserves program funds and queues a same-currency load. Only reloadable cards may receive additional loads.

AccessCompany owner, admin, finance or operator

Body fieldTypeDetails
amountrequiredinteger
currencyrequiredstring
originalTransferTokenstring
Request
curl --fail-with-body --request POST \
  'https://api.digitalcard.technology/api/v1/cards/<id>/load' \
  -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
OpenAPI 3.1
{
  "operationId": "post__api_v1_cards__id__load",
  "tags": [
    "Cards"
  ],
  "summary": "Load a card",
  "description": "Reserves program funds and queues a same-currency load. Only reloadable cards may receive additional loads.\n\nAccess: Company owner, admin, finance or operator",
  "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": {
    "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": {
              "operationId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "operationId",
              "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": {
            "amount": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "currency": {
              "type": "string"
            },
            "originalTransferToken": {
              "type": "string",
              "maxLength": 100
            }
          },
          "required": [
            "amount",
            "currency"
          ]
        }
      }
    }
  }
}
POST/api/v1/cards/{id}/unload

Unload a card

Queues a same-currency return from the card to its program. Marqeta requires the original GPA order token.

AccessCompany owner, admin, finance or operator

Body fieldTypeDetails
amountrequiredinteger
currencyrequiredstring
originalTransferTokenstring
Request
curl --fail-with-body --request POST \
  'https://api.digitalcard.technology/api/v1/cards/<id>/unload' \
  -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
OpenAPI 3.1
{
  "operationId": "post__api_v1_cards__id__unload",
  "tags": [
    "Cards"
  ],
  "summary": "Unload a card",
  "description": "Queues a same-currency return from the card to its program. Marqeta requires the original GPA order token.\n\nAccess: Company owner, admin, finance or operator",
  "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": {
    "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": {
              "operationId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "operationId",
              "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": {
            "amount": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "currency": {
              "type": "string"
            },
            "originalTransferToken": {
              "type": "string",
              "maxLength": 100
            }
          },
          "required": [
            "amount",
            "currency"
          ]
        }
      }
    }
  }
}
POST/api/v1/cards/{id}/pause

Pause a card

Queues a provider card pause. The operation succeeds only after provider confirmation.

AccessCompany owner, admin, finance or operator

Request
curl --fail-with-body --request POST \
  'https://api.digitalcard.technology/api/v1/cards/<id>/pause' \
  -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
OpenAPI 3.1
{
  "operationId": "post__api_v1_cards__id__pause",
  "tags": [
    "Cards"
  ],
  "summary": "Pause a card",
  "description": "Queues a provider card pause. The operation succeeds only after provider confirmation.\n\nAccess: Company owner, admin, finance or operator",
  "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": {
    "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": {
              "operationId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "operationId",
              "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": {}
        }
      }
    }
  }
}
POST/api/v1/cards/{id}/resume

Resume a card

Queues a provider card resume. The issuing program must support controls.

AccessCompany owner, admin, finance or operator

Request
curl --fail-with-body --request POST \
  'https://api.digitalcard.technology/api/v1/cards/<id>/resume' \
  -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
OpenAPI 3.1
{
  "operationId": "post__api_v1_cards__id__resume",
  "tags": [
    "Cards"
  ],
  "summary": "Resume a card",
  "description": "Queues a provider card resume. The issuing program must support controls.\n\nAccess: Company owner, admin, finance or operator",
  "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": {
    "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": {
              "operationId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "operationId",
              "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": {}
        }
      }
    }
  }
}
POST/api/v1/cards/{id}/close

Close a card

Queues permanent closure at the provider. The operation is subject to the provider product rules.

AccessCompany owner, admin, finance or operator

Request
curl --fail-with-body --request POST \
  'https://api.digitalcard.technology/api/v1/cards/<id>/close' \
  -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
OpenAPI 3.1
{
  "operationId": "post__api_v1_cards__id__close",
  "tags": [
    "Cards"
  ],
  "summary": "Close a card",
  "description": "Queues permanent closure at the provider. The operation is subject to the provider product rules.\n\nAccess: Company owner, admin, finance or operator",
  "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": {
    "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": {
              "operationId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "operationId",
              "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": {}
        }
      }
    }
  }
}
POST/api/v1/cards/{id}/limits

Update card limits

Queues provider spending limits in minor units. Unimplemented limit intervals are rejected.

AccessCompany owner, admin, finance or operator

Body fieldTypeDetails
singleAmountinteger
dayAmountinteger
weekAmountinteger
monthAmountinteger
Request
curl --fail-with-body --request POST \
  'https://api.digitalcard.technology/api/v1/cards/<id>/limits' \
  -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
OpenAPI 3.1
{
  "operationId": "post__api_v1_cards__id__limits",
  "tags": [
    "Cards"
  ],
  "summary": "Update card limits",
  "description": "Queues provider spending limits in minor units. Unimplemented limit intervals are rejected.\n\nAccess: Company owner, admin, finance or operator",
  "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": {
    "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": {
              "operationId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "operationId",
              "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": {
            "singleAmount": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "dayAmount": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "weekAmount": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "monthAmount": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          }
        }
      }
    }
  }
}

Search documentation

Use ↑ ↓ to navigate · Enter to open